diff --git a/devel/ucommon/Makefile b/devel/ucommon/Makefile index 5d3f9048b0f5..b86b69db4292 100644 --- a/devel/ucommon/Makefile +++ b/devel/ucommon/Makefile @@ -1,33 +1,29 @@ PORTNAME= ucommon PORTVERSION= 7.0.0 PORTREVISION= 6 CATEGORIES= devel MASTER_SITES= GNU/commoncpp MAINTAINER= ports@FreeBSD.org COMMENT= Very lightweight C++ design pattern library WWW= https://www.gnu.org/software/commoncpp/ LICENSE= LGPL3 LICENSE_FILE= ${WRKSRC}/COPYING.LESSER USES= compiler:c++11-lib cmake pathfix pkgconfig ssl CMAKE_ARGS= -DBUILD_TESTING:BOOL=ON \ -DCMAKE_INSTALL_BINDIR:STRING=bin/${PORTNAME} USE_LDCONFIG= yes TEST_TARGET= test .include .if ${COMPILER_TYPE} == clang && ${COMPILER_VERSION} >= 160 USE_CXXSTD= c++11 .endif -.if ( ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400092 && ${SSL_DEFAULT} == base ) || ${SSL_DEFAULT:Mopenssl3*} -CXXFLAGS+= -DOPENSSL_API_COMPAT=0x30000000L -.endif - post-install: ${INSTALL_DATA} ${BUILD_WRKSRC}/ucommon-config.h ${STAGEDIR}${PREFIX}/include/ucommon .include diff --git a/devel/ucommon/files/patch-openssl_secure.cpp b/devel/ucommon/files/patch-openssl_secure.cpp new file mode 100644 index 000000000000..6821ad6a11b3 --- /dev/null +++ b/devel/ucommon/files/patch-openssl_secure.cpp @@ -0,0 +1,12 @@ +--- openssl/secure.cpp.orig 2023-08-16 16:05:03 UTC ++++ openssl/secure.cpp +@@ -72,7 +72,9 @@ bool secure::init(void) + + SSL_library_init(); + SSL_load_error_strings(); ++#if OPENSSL_VERSION_NUMBER < 0x30000000L + ERR_load_BIO_strings(); ++#endif + OpenSSL_add_all_algorithms(); + OpenSSL_add_all_digests(); +