Index: head/security/fastd/Makefile =================================================================== --- head/security/fastd/Makefile (revision 402992) +++ head/security/fastd/Makefile (revision 402993) @@ -1,28 +1,35 @@ # $FreeBSD$ PORTNAME= fastd PORTVERSION= 17 CATEGORIES= security net MASTER_SITES= http://git.universe-factory.net/fastd/snapshot/ MAINTAINER= crest_maintainer@rlwinm.de COMMENT= Fast and Secure Tunnelling Daemon LICENSE= BSD2CLAUSE LICENSE_FILE= ${WRKSRC}/COPYRIGHT LIB_DEPENDS= libjson-c.so:${PORTSDIR}/devel/json-c \ libsodium.so:${PORTSDIR}/security/libsodium \ libuecc.so:${PORTSDIR}/security/libuecc USES= bison cmake:outsource pkgconfig tar USE_RC_SUBR= fastd PLIST_FILES= bin/fastd \ man/man1/fastd.1.gz +.include + +# GCC from base does not support -mpclmul. +.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1000024 +CMAKE_ARGS+= -DWITH_MAC_GHASH_PCLMULQDQ=FALSE +.endif + post-install: ${INSTALL_MAN} ${WRKSRC}/doc/fastd.1 ${STAGEDIR}${PREFIX}/man/man1 -.include +.include Index: head/security/fastd-devel/Makefile =================================================================== --- head/security/fastd-devel/Makefile (revision 402992) +++ head/security/fastd-devel/Makefile (revision 402993) @@ -1,33 +1,40 @@ # $FreeBSD$ PORTNAME= fastd PORTVERSION= 18.a.20151111 CATEGORIES= security net MASTER_SITES= http://git.universe-factory.net/fastd/snapshot/ PKGNAMESUFFIX= -devel DISTNAME= 999b87b80302dbc14e23ef3dff187b91dae7fab5 MAINTAINER= crest_maintainer@rlwinm.de COMMENT= Fast and Secure Tunnelling Daemon LICENSE= BSD2CLAUSE LICENSE_FILE= ${WRKSRC}/COPYRIGHT LIB_DEPENDS= libjson-c.so:${PORTSDIR}/devel/json-c \ libsodium.so:${PORTSDIR}/security/libsodium \ libuecc.so:${PORTSDIR}/security/libuecc USES= bison cmake:outsource pkgconfig tar PKG_CONFIG_PATH= ${PREFIX}/lib/pkgconfig/ CONFIGURE_ENV+= PKG_CONFIG_PATH=${PKG_CONFIG_PATH} USE_RC_SUBR= fastd_devel PLIST_FILES= bin/fastd-devel \ man/man1/fastd-devel.1.gz +.include + +# GCC from base does not support -mpclmul. +.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1000024 +CMAKE_ARGS+= -DWITH_MAC_GHASH_PCLMULQDQ=FALSE +.endif + post-install: ${INSTALL_MAN} ${WRKSRC}/doc/fastd.1 ${STAGEDIR}${PREFIX}/man/man1/fastd-devel.1 -.include +.include