git: 02c61dffcbac - main - security/pecl-crypto: Fix build with llvm16
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 05 Aug 2023 11:53:30 UTC
The branch main has been updated by bofh: URL: https://cgit.FreeBSD.org/ports/commit/?id=02c61dffcbacd639cec46b55501f7c10ecedc1ec commit 02c61dffcbacd639cec46b55501f7c10ecedc1ec Author: Muhammad Moinur Rahman <bofh@FreeBSD.org> AuthorDate: 2023-08-05 10:08:12 +0000 Commit: Muhammad Moinur Rahman <bofh@FreeBSD.org> CommitDate: 2023-08-05 11:53:18 +0000 security/pecl-crypto: Fix build with llvm16 - Pet portclippy Approved by: portmgr (blanket) Sponsored by: The FreeBSD Foundation --- security/pecl-crypto/Makefile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/security/pecl-crypto/Makefile b/security/pecl-crypto/Makefile index 48ef0cb0a3c7..b19667bc3d00 100644 --- a/security/pecl-crypto/Makefile +++ b/security/pecl-crypto/Makefile @@ -8,9 +8,17 @@ WWW= https://pecl.php.net/package/crypto LICENSE= PHP301 -USES= compiler:c++11-lang php:pecl +USES= compiler:c++11-lang php:pecl ssl + CONFIGURE_ARGS= --with-crypto + CFLAGS+= -I${OPENSSLINC} LDFLAGS+= -L${OPENSSLLIB} +.include <bsd.port.options.mk> + +.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400091 || ( ${OSVERSION} >= 1302507 && ${OSVERSION} < 1400000 )) +CFLAGS+= -Wno-error=incompatible-function-pointer-types +.endif + .include <bsd.port.mk>