aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMuhammad Moinur Rahman <bofh@FreeBSD.org>2023-07-23 20:16:50 +0000
committerMuhammad Moinur Rahman <bofh@FreeBSD.org>2023-07-23 22:16:15 +0000
commit12148e9752dba827fd018f173f75e06d60cde28d (patch)
treedb4a99d2b4dbc90c680dd203d2b11755dbc971b4
parentcaec8824b82d754312ae4b122a352e7a830530bb (diff)
downloadports-12148e9752dba827fd018f173f75e06d60cde28d.tar.gz
ports-12148e9752dba827fd018f173f75e06d60cde28d.zip
devel/ucommon: Fix build with openssl3
Approved by: portmgr (blanket) Sponsored by: The FreeBSD Foundation
-rw-r--r--devel/ucommon/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/devel/ucommon/Makefile b/devel/ucommon/Makefile
index b86b69db4292..35a55dc8593d 100644
--- a/devel/ucommon/Makefile
+++ b/devel/ucommon/Makefile
@@ -23,6 +23,10 @@ TEST_TARGET= test
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