git: f0dd69ce6298 - main - lang/php81: Fix some compile-time warning

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Mon, 10 Jan 2022 10:54:27 UTC
The branch main has been updated by bofh:

URL: https://cgit.FreeBSD.org/ports/commit/?id=f0dd69ce62987415664eb8d9dba3dde079a19a38

commit f0dd69ce62987415664eb8d9dba3dde079a19a38
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2022-01-10 10:52:42 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2022-01-10 10:52:42 +0000

    lang/php81: Fix some compile-time warning
    
    Sponsored by:   Bounce Experts
---
 lang/php81/Makefile | 28 +++++++++-------------------
 1 file changed, 9 insertions(+), 19 deletions(-)

diff --git a/lang/php81/Makefile b/lang/php81/Makefile
index 1a2919fa1ffb..14f0dd453fec 100644
--- a/lang/php81/Makefile
+++ b/lang/php81/Makefile
@@ -264,19 +264,17 @@ CONFIGURE_ARGS+=	--enable-exif
 
 .if ${PHP_MODNAME} == "ffi"
 LIB_DEPENDS=		libffi.so:devel/libffi
-CONFIGURE_ARGS+=	--enable-ffi
+CONFIGURE_ARGS+=	--with-ffi
 .endif
 
 .if ${PHP_MODNAME} == "fileinfo"
-CONFIGURE_ARGS+=	--enable-fileinfo \
-			--with-pcre-dir=${LOCALBASE}
+CONFIGURE_ARGS+=	--enable-fileinfo
 
 PHP_HEADER_DIRS=	libmagic
 .endif
 
 .if ${PHP_MODNAME} == "filter"
-CONFIGURE_ARGS+=	--enable-filter \
-			--with-pcre-dir=${LOCALBASE}
+CONFIGURE_ARGS+=	--enable-filter
 .endif
 
 .if ${PHP_MODNAME} == "ftp"
@@ -344,8 +342,7 @@ PANDA_LIB_DEPENDS=	libc-client4.so.10:mail/panda-cclient
 PANDA_LIB_DEPENDS_OFF=	libc-client4.so.9:mail/cclient
 
 CONFIGURE_ARGS+=	--with-imap-ssl=${OPENSSLBASE} \
-			--with-imap=${LOCALBASE} \
-			--with-pcre-dir=${LOCALBASE}
+			--with-imap=${LOCALBASE}
 
 CONFIGURE_ENV+=	OPENSSL_CFLAGS="-I${OPENSSLINC}" \
 		OPENSSL_LIBS="-L${OPENSSLLIB} -lssl -lcrypto" \
@@ -375,15 +372,13 @@ USE_OPENLDAP=	yes
 
 .if ${PHP_MODNAME} == "mbstring"
 
-CONFIGURE_ARGS+=	--enable-mbstring \
-			--with-pcre-dir=${LOCALBASE}
+CONFIGURE_ARGS+=	--enable-mbstring
 
 OPTIONS_DEFINE=		REGEX
 OPTIONS_DEFAULT=	REGEX
 
 REGEX_DESC=		Enable multibyte regex support
 REGEX_LIB_DEPENDS=	libonig.so:devel/oniguruma
-REGEX_CONFIGURE_ON=	--with-onig=${LOCALBASE}
 REGEX_CONFIGURE_OFF=	--disable-mbregex
 
 PHP_HEADER_DIRS=	libmbfl libmbfl/filters libmbfl/mbfl libmbfl/nls
@@ -489,8 +484,7 @@ CONFIGURE_ARGS+=	--with-pgsql=${LOCALBASE}
 .endif
 
 .if ${PHP_MODNAME} == "phar"
-CONFIGURE_ARGS+=	--enable-phar \
-			--with-pcre-dir=${LOCALBASE}
+CONFIGURE_ARGS+=	--enable-phar
 .endif
 
 .if ${PHP_MODNAME} == "posix"
@@ -518,16 +512,14 @@ CONFIGURE_ARGS+=	--enable-shmop
 .endif
 
 .if ${PHP_MODNAME} == "simplexml"
-CONFIGURE_ARGS+=	--enable-simplexml \
-			--with-pcre-dir=${LOCALBASE}
+CONFIGURE_ARGS+=	--enable-simplexml
 
 USES+=		pkgconfig
 USE_GNOME=	libxml2
 .endif
 
 .if ${PHP_MODNAME} == "snmp"
-CONFIGURE_ARGS+=	--with-openssl-dir=${OPENSSLBASE} \
-			--with-snmp=${LOCALBASE}
+CONFIGURE_ARGS+=	--with-snmp=${LOCALBASE}
 
 CONFIGURE_ENV+=	ac_cv_buggy_snprint_value="no"
 
@@ -623,9 +615,7 @@ USE_PHP=	dom:build xml:build
 .if ${PHP_MODNAME} == "zip"
 LIB_DEPENDS+=	libzip.so:archivers/libzip
 
-CONFIGURE_ARGS+=	--enable-zip \
-			--with-libzip=${LOCALBASE} \
-			--with-pcre-dir=${LOCALBASE} \
+CONFIGURE_ARGS+=	--with-zip \
 			--with-zlib-dir=/usr
 USES+=			pkgconfig
 .endif