git: ff42bb605e1c - main - devel/cjose: Fix build with llvm16
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 19 Jul 2023 17:30:48 UTC
The branch main has been updated by bofh:
URL: https://cgit.FreeBSD.org/ports/commit/?id=ff42bb605e1c46a95f4a7d91ad1194869be7e5ee
commit ff42bb605e1c46a95f4a7d91ad1194869be7e5ee
Author: Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-07-19 16:32:13 +0000
Commit: Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-07-19 17:30:38 +0000
devel/cjose: Fix build with llvm16
- Fix build with OpenSSL 3 and later
Approved by: portmgr (blanket)
Sponsored by: The FreeBSD Foundation
---
devel/cjose/Makefile | 13 ++++++++-----
1 file changed, 8 insertions(+), 5 deletions(-)
diff --git a/devel/cjose/Makefile b/devel/cjose/Makefile
index e657681e2eac..c1a52369bcaf 100644
--- a/devel/cjose/Makefile
+++ b/devel/cjose/Makefile
@@ -13,8 +13,6 @@ LICENSE_FILE= ${WRKSRC}/LICENSE
LIB_DEPENDS= libjansson.so:devel/jansson
USES= compiler:c++11-lang libtool pathfix pkgconfig ssl
-BROKEN_SSL= openssl30 openssl31
-BROKEN_SSL_REASON= Requires OpenSSL 3.0.0 deprecated RSA_ routines
USE_LDCONFIG= yes
INSTALL_TARGET= install-strip
@@ -24,10 +22,15 @@ GH_ACCOUNT= cisco
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-jansson=${PREFIX} --with-openssl=${OPENSSLBASE}
-.include <bsd.port.options.mk>
+.include <bsd.port.pre.mk>
-.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400079 || ( ${OSVERSION} >= 1302505 && ${OSVERSION} < 1400000 ))
+.if ${COMPILER_TYPE} == clang && ${COMPILER_VERSION} >= 160
CFLAGS+= -Wno-error=strict-prototypes
.endif
-.include <bsd.port.mk>
+.if ( ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400092 && ${SSL_DEFAULT} == base ) || ${SSL_DEFAULT:Mopenssl3*}
+CFLAGS+= -Wno-error=deprecated-declarations
+.endif
+
+
+.include <bsd.port.post.mk>