summaryrefslogtreecommitdiff
path: root/net/bctoolbox/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'net/bctoolbox/Makefile')
-rw-r--r--net/bctoolbox/Makefile17
1 files changed, 11 insertions, 6 deletions
diff --git a/net/bctoolbox/Makefile b/net/bctoolbox/Makefile
index 299cf7427450..790214d3f004 100644
--- a/net/bctoolbox/Makefile
+++ b/net/bctoolbox/Makefile
@@ -1,5 +1,5 @@
PORTNAME= bctoolbox
-DISTVERSION= 5.4.2
+DISTVERSION= 5.4.28
CATEGORIES= net
MAINTAINER= bofh@FreeBSD.org
@@ -9,9 +9,7 @@ WWW= https://gitlab.linphone.org/BC/public/bctoolbox
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/LICENSE.txt
-IGNORE_FreeBSD_13= is not supported on systems with OpenSSL 1.1.1
-
-BUILD_DEPENDS= ${LOCALBASE}/lib/libbcunit.a:devel/bcunit
+LIB_DEPENDS= libbcunit.so:devel/bcunit
USES= cmake compiler:c++17-lang ssl
USE_GITLAB= yes
@@ -22,12 +20,19 @@ USE_LDCONFIG= yes
CMAKE_ARGS= -DENABLE_STATIC=NO -DENABLE_STRICT=NO \
-DCMAKE_PREFIX_PATH=${LOCALBASE} \
-DCMAKE_SKIP_INSTALL_RPATH=ON \
- -DENABLE_MBEDTLS=OFF -DENABLE_OPENSSL=ON \
- -DENABLE_UNIT_TESTS=OFF
+ -DENABLE_MBEDTLS=OFF -DENABLE_OPENSSL=ON
+CMAKE_ON= BUILD_SHARED_LIBS
+CMAKE_OFF= ENABLE_UNIT_TESTS
CFLAGS+= -DHAVE_ARC4RANDOM
LDFLAGS+= -lpthread
+.include <bsd.port.options.mk>
+
+.if ( ${OPSYS} == FreeBSD && ${OSVERSION} < 1400092 && ${SSL_DEFAULT} == base ) || ${SSL_DEFAULT:Mopenssl111}
+IGNORE= is not supported on systems with OpenSSL 1.1.1
+.endif
+
post-patch:
@${REINPLACE_CMD} '/clock_gettime/d' ${WRKSRC}/CMakeLists.txt