git: cc8d447a182c - main - www/lagrange: Fix build with openssl3
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 26 Jul 2023 15:04:12 UTC
The branch main has been updated by bofh: URL: https://cgit.FreeBSD.org/ports/commit/?id=cc8d447a182c66f51750d79b81bd09ab40fb5899 commit cc8d447a182c66f51750d79b81bd09ab40fb5899 Author: Muhammad Moinur Rahman <bofh@FreeBSD.org> AuthorDate: 2023-07-26 14:20:02 +0000 Commit: Muhammad Moinur Rahman <bofh@FreeBSD.org> CommitDate: 2023-07-26 15:04:01 +0000 www/lagrange: Fix build with openssl3 Approved by: portmgr (blanket) Sponsored by: The FreeBSD Foundation --- www/lagrange/Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/www/lagrange/Makefile b/www/lagrange/Makefile index 73dddd1179e1..d1a13c326047 100644 --- a/www/lagrange/Makefile +++ b/www/lagrange/Makefile @@ -31,4 +31,10 @@ OPTIONS_DEFINE= SSE41 SSE41_DESC= Enable SSE4.1 support SSE41_CMAKE_ON= -DTFDN_ENABLE_SSE41:BOOL=ON -.include <bsd.port.mk> +.include <bsd.port.pre.mk> + +.if ( ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400092 && ${SSL_DEFAULT} == base ) || ${SSL_DEFAULT:Mopenssl3*} +CXXFLAGS+= -DOPENSSL_API_COMPAT=0x30000000L" +.endif + +.include <bsd.port.post.mk>