mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-08 06:48:28 +00:00
b2baf73a29
This fixes the build on 9, which has failed ever since it was added to the tree. From the fallout logs: CMake Error at src/crypto/mac/ghash/pclmulqdq/CMakeLists.txt:9 (message): WITH_MAC_GHASH_PCLMULQDQ enabled, but there is no compiler support for -mpclmul This happens because GCC 4.2.1 in base (the default compiler) does not support the -mpcmul option. Fix it by disabling the module when on FreeBSD < 10 (i.e. when base GCC is the default compiler). PR 205017 PR: 205018 Approved by: Jan Bramkamp <crest_maintainer@rlwinm.de> (maintainer)
41 lines
1.0 KiB
Makefile
41 lines
1.0 KiB
Makefile
# $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 <bsd.port.pre.mk>
|
|
|
|
# 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 <bsd.port.post.mk>
|