freebsd-ports/sysutils/pesign/Makefile
Jan Beich 44b1190621 sysutils/pesign: unbreak build on DragonFly (like r403070)
Don't rely on USE_GCC using implicit -isystem/usr/local/include to fix

In file included from pesign.h:30:0,
                 from actions.c:28:
efitypes.h:22:20: fatal error: efivar.h: No such file or directory
compilation terminated.

Reported by:	http://muscles.dragonflybsd.org/bulk/latest-per-pkg/pesign/
Approved by:	portmgr blanket
2015-12-16 09:40:24 +00:00

43 lines
1.4 KiB
Makefile

# Created by: Edward Tomasz Napierala <trasz@FreeBSD.org>
# $FreeBSD$
PORTNAME= pesign
PORTVERSION= 0.110
CATEGORIES= sysutils
MAINTAINER= trasz@FreeBSD.org
COMMENT= Signing utility for UEFI secure boot
LICENSE= GPLv2
LIB_DEPENDS= libefivar.so:${PORTSDIR}/devel/efivar \
libnspr4.so:${PORTSDIR}/devel/nspr \
libnss3.so:${PORTSDIR}/security/nss \
libpopt.so:${PORTSDIR}/devel/popt \
libuuid.so:${PORTSDIR}/misc/e2fsprogs-libuuid
USE_GCC= yes
USE_GITHUB= yes
GH_ACCOUNT= rhinstaller
USES= gmake localbase pkgconfig
USE_LDCONFIG= yes
EXTRA_PATCHES= ${EXTRA_PATCHES_${OPSYS}_${OSREL:R}}
EXTRA_PATCHES_FreeBSD_9= ${FILESDIR}/extra-patch-src_client.c
post-patch:
@${REINPLACE_CMD} -e 's|%%CC%%|${CC}|g' ${WRKSRC}/Make.defaults
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/src/efikeygen ${STAGEDIR}${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/src/pesign ${STAGEDIR}${PREFIX}/bin
${INSTALL_LIB} ${WRKSRC}/libdpe/libdpe.so ${STAGEDIR}${PREFIX}/lib
${MKDIR} ${STAGEDIR}${PREFIX}/include/libdpe
${INSTALL_DATA} ${WRKSRC}/include/libdpe/pe.h ${STAGEDIR}${PREFIX}/include/libdpe
${INSTALL_DATA} ${WRKSRC}/include/libdpe/libdpe.h ${STAGEDIR}${PREFIX}/include/libdpe
${INSTALL_MAN} ${WRKSRC}/src/efikeygen.1 ${STAGEDIR}${MAN1PREFIX}/man/man1
${INSTALL_MAN} ${WRKSRC}/src/pesign-client.1 ${STAGEDIR}${MAN1PREFIX}/man/man1
${INSTALL_MAN} ${WRKSRC}/src/pesign.1 ${STAGEDIR}${MAN1PREFIX}/man/man1
.include <bsd.port.mk>