mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
lang/php81: Fix some compile-time warning
Sponsored by: Bounce Experts
This commit is contained in:
parent
c5a743203c
commit
f0dd69ce62
1 changed files with 9 additions and 19 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue