aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMuhammad Moinur Rahman <bofh@FreeBSD.org>2023-07-25 09:18:01 +0000
committerMuhammad Moinur Rahman <bofh@FreeBSD.org>2023-07-25 09:42:19 +0000
commitc544161f8230def97eb21305cd88612127142cc0 (patch)
tree909e8423a2428f864b33e358b8508f0c53a8c40d
parent0a9014e4535ea89b1aa35a1f59bf8b97f068f678 (diff)
downloadports-c544161f8230def97eb21305cd88612127142cc0.tar.gz
ports-c544161f8230def97eb21305cd88612127142cc0.zip
devel/thrift-c_glib: Fix build with openssl3
Approved by: portmgr (blanket) Sponsored by: The FreeBSD Foundation
-rw-r--r--devel/thrift-c_glib/Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/devel/thrift-c_glib/Makefile b/devel/thrift-c_glib/Makefile
index f92aa8a86df8..e6e993acbe23 100644
--- a/devel/thrift-c_glib/Makefile
+++ b/devel/thrift-c_glib/Makefile
@@ -28,6 +28,12 @@ USE_LDCONFIG= yes
PLIST_SUB+= PORTVERSION="${PORTVERSION}"
+.include <bsd.port.options.mk>
+
+.if ( ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400092 && ${SSL_DEFAULT} == base ) || ${SSL_DEFAULT:Mopenssl3*}
+CXXFLAGS+= -DOPENSSL_API_COMPAT=0x30000000L"
+.endif
+
post-patch:
@${REINPLACE_CMD} 's,-Werror,,' ${WRKSRC}/compiler/cpp/Makefile.am \
${WRKSRC}/lib/rb/ext/extconf.rb