Changeset View
Changeset View
Standalone View
Standalone View
lang/php71/Makefile.ext
# $FreeBSD$ | # $FreeBSD$ | ||||
COMMENT= The ${PHP_MODNAME} shared extension for php | COMMENT= The ${PHP_MODNAME} shared extension for php | ||||
USES+= php:ext | USES+= php:ext | ||||
PHP_MODNAME= ${PKGNAMESUFFIX:S/-//} | PHP_MODNAME= ${PKGNAMESUFFIX:S/-//} | ||||
PHP_VER= 71 | PHP_VER= 71 | ||||
IGNORE_WITH_PHP= 55 56 70 | IGNORE_WITH_PHP= 56 70 | ||||
EXTSUBDIR= ${DISTNAME}/ext/${PHP_MODNAME} | EXTSUBDIR= ${DISTNAME}/ext/${PHP_MODNAME} | ||||
WRKSRC= ${WRKDIR}/${EXTSUBDIR} | WRKSRC= ${WRKDIR}/${EXTSUBDIR} | ||||
PATCHDIR= ${.CURDIR}/files | PATCHDIR= ${.CURDIR}/files | ||||
PLIST= ${NONEXISTENT} | PLIST= ${NONEXISTENT} | ||||
EXTRACT_AFTER_ARGS?= ${EXTSUBDIR} | EXTRACT_AFTER_ARGS?= ${EXTSUBDIR} | ||||
.if ${PHP_MODNAME} == "bcmath" | .if ${PHP_MODNAME} == "bcmath" | ||||
CONFIGURE_ARGS+=--enable-bcmath | CONFIGURE_ARGS+=--enable-bcmath | ||||
PHP_HEADER_DIRS=libbcmath libbcmath/src | PHP_HEADER_DIRS=libbcmath libbcmath/src | ||||
.endif | .endif | ||||
.if ${PHP_MODNAME} == "bz2" | .if ${PHP_MODNAME} == "bz2" | ||||
CONFIGURE_ARGS+=--with-bz2=/usr | CONFIGURE_ARGS+=--with-bz2=/usr | ||||
.endif | .endif | ||||
.if ${PHP_MODNAME} == "calendar" | .if ${PHP_MODNAME} == "calendar" | ||||
CONFIGURE_ARGS+=--enable-calendar | CONFIGURE_ARGS+=--enable-calendar | ||||
.endif | .endif | ||||
.if ${PHP_MODNAME} == "ctype" | .if ${PHP_MODNAME} == "ctype" | ||||
CONFIGURE_ARGS+=--enable-ctype | CONFIGURE_ARGS+=--enable-ctype | ||||
.endif | .endif | ||||
.if ${PHP_MODNAME} == "curl" | .if ${PHP_MODNAME} == "curl" | ||||
LIB_DEPENDS+= libcurl.so:ftp/curl | LIB_DEPENDS+= libcurl.so:ftp/curl | ||||
CONFIGURE_ARGS+=--with-curl=${LOCALBASE} | CONFIGURE_ARGS+=--with-curl=${LOCALBASE} | ||||
.endif | .endif | ||||
.if ${PHP_MODNAME} == "dba" | .if ${PHP_MODNAME} == "dba" | ||||
CONFIGURE_ARGS+=--enable-dba | CONFIGURE_ARGS+=--enable-dba | ||||
OPTIONS_DEFINE= CDB DB4 GDBM QDBM TOKYO INIFILE FLATFILE | OPTIONS_DEFINE= CDB DB4 GDBM QDBM TOKYO INIFILE FLATFILE | ||||
OPTIONS_DEFAULT=CDB INIFILE FLATFILE | OPTIONS_DEFAULT=CDB INIFILE FLATFILE | ||||
CDB_DESC= cdb database support | CDB_DESC= cdb database support | ||||
DB4_DESC= Berkeley DB4 support | DB4_DESC= Berkeley DB4 support | ||||
FLATFILE_DESC= flatfile support | |||||
GDBM_DESC= GDBM database support | GDBM_DESC= GDBM database support | ||||
INIFILE_DESC= INI file support | |||||
QDBM_DESC= QDBM database support | QDBM_DESC= QDBM database support | ||||
TOKYO_DESC= Tokyo Cabinet database support | TOKYO_DESC= Tokyo Cabinet database support | ||||
INIFILE_DESC= INI file support | |||||
FLATFILE_DESC= flatfile support | |||||
PHP_HEADER_DIRS= libcdb libflatfile libinifile | PHP_HEADER_DIRS= libcdb libflatfile libinifile | ||||
CDB_CONFIGURE_OFF= --without-cdb | |||||
DB4_CONFIGURE_ON= --with-db4=${LOCALBASE} | |||||
DB4_USES= bdb | |||||
DB4_VARS= with_bdb_highest=yes | |||||
FLATFILE_CONFIGURE_OFF= --disable-flatfile | |||||
GDBM_LIB_DEPENDS= libgdbm.so:databases/gdbm | |||||
GDBM_CONFIGURE_ON= --with-gdbm=${LOCALBASE} | |||||
MINIFILE_CONFIGURE_OFF= --disable-inifile | |||||
QDBM_LIB_DEPENDS= libqdbm.so:databases/qdbm | |||||
QDBM_CONFIGURE_ON= --with-qdbm=${LOCALBASE} | |||||
TOKYO_LIB_DEPENDS= libtokyocabinet.so:databases/tokyocabinet | |||||
TOKYO_CONFIGURE_ON= --with-tcadb=${LOCALBASE} | |||||
.endif | .endif | ||||
.if ${PHP_MODNAME} == "dom" | .if ${PHP_MODNAME} == "dom" | ||||
CONFIGURE_ARGS+=--enable-dom \ | CONFIGURE_ARGS+=--enable-dom \ | ||||
--with-libxml-dir=${LOCALBASE} | --with-libxml-dir=${LOCALBASE} | ||||
USE_GNOME= libxml2 | USE_GNOME= libxml2 | ||||
.endif | .endif | ||||
.if ${PHP_MODNAME} == "enchant" | .if ${PHP_MODNAME} == "enchant" | ||||
LIB_DEPENDS+= libenchant.so:textproc/enchant | LIB_DEPENDS+= libenchant.so:textproc/enchant | ||||
CONFIGURE_ARGS+=--with-enchant=${LOCALBASE} | CONFIGURE_ARGS+=--with-enchant=${LOCALBASE} | ||||
.endif | .endif | ||||
.if ${PHP_MODNAME} == "exif" | .if ${PHP_MODNAME} == "exif" | ||||
CONFIGURE_ARGS+=--enable-exif | CONFIGURE_ARGS+=--enable-exif | ||||
.endif | .endif | ||||
.if ${PHP_MODNAME} == "fileinfo" | .if ${PHP_MODNAME} == "fileinfo" | ||||
CONFIGURE_ARGS+=--enable-fileinfo \ | CONFIGURE_ARGS+=--enable-fileinfo \ | ||||
--with-pcre-dir=${LOCALBASE} | --with-pcre-dir=${LOCALBASE} | ||||
PHP_HEADER_DIRS= libmagic | PHP_HEADER_DIRS= libmagic | ||||
.endif | .endif | ||||
.if ${PHP_MODNAME} == "filter" | .if ${PHP_MODNAME} == "filter" | ||||
CONFIGURE_ARGS+=--enable-filter \ | CONFIGURE_ARGS+=--enable-filter \ | ||||
--with-pcre-dir=${LOCALBASE} | --with-pcre-dir=${LOCALBASE} | ||||
.endif | .endif | ||||
.if ${PHP_MODNAME} == "ftp" | .if ${PHP_MODNAME} == "ftp" | ||||
CONFIGURE_ARGS+=--enable-ftp \ | CONFIGURE_ARGS+=--enable-ftp \ | ||||
--with-openssl-dir=${OPENSSLBASE} | --with-openssl-dir=${OPENSSLBASE} | ||||
LDFLAGS+= -L${OPENSSLLIB} -lcrypto -lssl | LDFLAGS+= -L${OPENSSLLIB} -lcrypto -lssl | ||||
USES+= ssl | USES+= ssl | ||||
.endif | .endif | ||||
.if ${PHP_MODNAME} == "gd" | .if ${PHP_MODNAME} == "gd" | ||||
LIB_DEPENDS= libfreetype.so:print/freetype2 \ | LIB_DEPENDS= libfreetype.so:print/freetype2 \ | ||||
libpng.so:graphics/png | libpng.so:graphics/png | ||||
USES+= jpeg | USES+= jpeg | ||||
CONFIGURE_ARGS+=--with-gd \ | CONFIGURE_ARGS+=--with-gd \ | ||||
--with-freetype-dir=${LOCALBASE} \ | --with-freetype-dir=${LOCALBASE} \ | ||||
--with-jpeg-dir=${LOCALBASE} \ | --with-jpeg-dir=${LOCALBASE} \ | ||||
--with-png-dir=${LOCALBASE} \ | --with-png-dir=${LOCALBASE} \ | ||||
--with-zlib-dir=/usr | --with-zlib-dir=/usr | ||||
OPTIONS_DEFINE=TRUETYPE JIS WEBP X11 | OPTIONS_DEFINE=TRUETYPE JIS WEBP X11 | ||||
OPTIONS_DEFAULT=TRUETYPE X11 | OPTIONS_DEFAULT=TRUETYPE X11 | ||||
TRUETYPE_DESC= Enable TrueType string function | |||||
JIS_DESC= Enable JIS-mapped Japanese font support | JIS_DESC= Enable JIS-mapped Japanese font support | ||||
TRUETYPE_DESC= Enable TrueType string function | |||||
WEBP_DESC= Enable WebP image format support | WEBP_DESC= Enable WebP image format support | ||||
X11_DESC= Enable XPM support | X11_DESC= Enable XPM support | ||||
PHP_HEADER_DIRS=libgd | PHP_HEADER_DIRS=libgd | ||||
JIS_CONFIGURE_ON= --enable-gd-jis-conv | |||||
TRUETYPE_CONFIGURE_ON= --enable-gd-native-ttf | |||||
WEBP_LIB_DEPENDS= libwebp.so:graphics/webp | |||||
WEBP_CONFIGURE_ON= --with-webp-dir=${LOCALBASE} | |||||
X11_USE_XORG= xpm | |||||
X11_CONFIGURE_ON= --with-xpm-dir=${LOCALBASE} | |||||
.endif | .endif | ||||
.if ${PHP_MODNAME} == "gettext" | .if ${PHP_MODNAME} == "gettext" | ||||
CONFIGURE_ARGS+=--with-gettext=${LOCALBASE} | CONFIGURE_ARGS+=--with-gettext=${LOCALBASE} | ||||
USES+= gettext | USES+= gettext | ||||
.endif | .endif | ||||
.if ${PHP_MODNAME} == "gmp" | .if ${PHP_MODNAME} == "gmp" | ||||
LIB_DEPENDS+= libgmp.so:math/gmp | LIB_DEPENDS+= libgmp.so:math/gmp | ||||
CONFIGURE_ARGS+=--with-gmp=${LOCALBASE} | CONFIGURE_ARGS+=--with-gmp=${LOCALBASE} | ||||
.endif | .endif | ||||
.if ${PHP_MODNAME} == "hash" | .if ${PHP_MODNAME} == "hash" | ||||
CONFIGURE_ARGS+=--enable-hash \ | CONFIGURE_ARGS+=--enable-hash \ | ||||
--with-mhash | --with-mhash | ||||
.endif | .endif | ||||
.if ${PHP_MODNAME} == "iconv" | .if ${PHP_MODNAME} == "iconv" | ||||
CONFIGURE_ARGS+=--with-iconv=${LOCALBASE} | CONFIGURE_ARGS+=--with-iconv=${LOCALBASE} | ||||
USES+= iconv:translit | USES+= iconv:translit | ||||
.endif | .endif | ||||
.if ${PHP_MODNAME} == "imap" | .if ${PHP_MODNAME} == "imap" | ||||
OPTIONS_DEFINE= PANDA | OPTIONS_DEFINE= PANDA | ||||
PANDA_DESC= Uses the forked panda-cclient instead of the original cclient | PANDA_DESC= Uses the forked panda-cclient instead of the original cclient | ||||
CONFIGURE_ARGS+=--with-imap=${LOCALBASE} \ | CONFIGURE_ARGS+=--with-imap=${LOCALBASE} \ | ||||
--with-pcre-dir=${LOCALBASE} \ | --with-pcre-dir=${LOCALBASE} \ | ||||
--with-imap-ssl=${OPENSSLBASE} | --with-imap-ssl=${OPENSSLBASE} | ||||
LDFLAGS+= -L${OPENSSLLIB} -lcrypto -lssl | LDFLAGS+= -L${OPENSSLLIB} -lcrypto -lssl | ||||
USES+= ssl | USES+= ssl | ||||
PANDA_LIB_DEPENDS= libc-client4.so.10:mail/panda-cclient | |||||
PANDA_LIB_DEPENDS_OFF= libc-client4.so.9:mail/cclient | |||||
.endif | .endif | ||||
.if ${PHP_MODNAME} == "interbase" | .if ${PHP_MODNAME} == "interbase" | ||||
CONFIGURE_ARGS+=--with-interbase=${LOCALBASE} | CONFIGURE_ARGS+=--with-interbase=${LOCALBASE} | ||||
USES+= firebird | USES+= firebird | ||||
.endif | .endif | ||||
Show All 12 Lines | |||||
USE_OPENLDAP= yes | USE_OPENLDAP= yes | ||||
. ifdef(WANT_OPENLDAP_SASL) | . ifdef(WANT_OPENLDAP_SASL) | ||||
CONFIGURE_ARGS+=--with-ldap-sasl=${LOCALBASE} | CONFIGURE_ARGS+=--with-ldap-sasl=${LOCALBASE} | ||||
. endif | . endif | ||||
.endif | .endif | ||||
.if ${PHP_MODNAME} == "mbstring" | .if ${PHP_MODNAME} == "mbstring" | ||||
CONFIGURE_ARGS+=--enable-mbstring \ | CONFIGURE_ARGS+=--enable-mbstring \ | ||||
--with-pcre-dir=${LOCALBASE} | --with-pcre-dir=${LOCALBASE} | ||||
OPTIONS_DEFINE= REGEX | OPTIONS_DEFINE= REGEX | ||||
OPTIONS_DEFAULT=REGEX | OPTIONS_DEFAULT=REGEX | ||||
REGEX_DESC= Enable multibyte regex support | REGEX_DESC= Enable multibyte regex support | ||||
PHP_HEADER_DIRS=libmbfl libmbfl/filters libmbfl/mbfl libmbfl/nls | PHP_HEADER_DIRS=libmbfl libmbfl/filters libmbfl/mbfl libmbfl/nls | ||||
REGEX_LIB_DEPENDS= libonig.so:devel/oniguruma6 | |||||
REGEX_CONFIGURE_ON= --with-onig=${LOCALBASE} | |||||
REGEX_CONFIGURE_OFF= --disable-mbregex | |||||
.endif | .endif | ||||
.if ${PHP_MODNAME} == "mcrypt" | .if ${PHP_MODNAME} == "mcrypt" | ||||
LIB_DEPENDS+= libltdl.so:devel/libltdl \ | LIB_DEPENDS+= libltdl.so:devel/libltdl \ | ||||
libmcrypt.so:security/libmcrypt | libmcrypt.so:security/libmcrypt | ||||
CONFIGURE_ARGS+=--with-mcrypt=${LOCALBASE} | CONFIGURE_ARGS+=--with-mcrypt=${LOCALBASE} | ||||
.endif | .endif | ||||
.if ${PHP_MODNAME} == "mysqli" | .if ${PHP_MODNAME} == "mysqli" | ||||
OPTIONS_DEFINE= MYSQLND | OPTIONS_DEFINE= MYSQLND | ||||
OPTIONS_DEFAULT=MYSQLND | OPTIONS_DEFAULT=MYSQLND | ||||
MYSQLND_DESC= Use MySQL Native Driver | MYSQLND_DESC= Use MySQL Native Driver | ||||
MYSQLND_CONFIGURE_ON= --with-mysqli=mysqlnd | |||||
MYSQLND_CONFIGURE_OFF= --with-mysqli=${LOCALBASE}/bin/mysql_config | |||||
MYSQLND_USES_OFF= mysql | |||||
.endif | .endif | ||||
.if ${PHP_MODNAME} == "odbc" | .if ${PHP_MODNAME} == "odbc" | ||||
LIB_DEPENDS+= libodbc.so:databases/unixODBC | LIB_DEPENDS+= libodbc.so:databases/unixODBC | ||||
CONFIGURE_ARGS+=--enable-odbc \ | CONFIGURE_ARGS+=--enable-odbc \ | ||||
--with-unixODBC=${LOCALBASE} | --with-unixODBC=${LOCALBASE} | ||||
.endif | .endif | ||||
.if ${PHP_MODNAME} == "openssl" | .if ${PHP_MODNAME} == "openssl" | ||||
CONFIGURE_ARGS+=--with-openssl=${OPENSSLBASE} | CONFIGURE_ARGS+=--with-openssl=${OPENSSLBASE} | ||||
LDFLAGS+= -L${OPENSSLLIB} -lcrypto -lssl | LDFLAGS+= -L${OPENSSLLIB} -lcrypto -lssl | ||||
USES+= ssl | USES+= ssl | ||||
.endif | .endif | ||||
.if ${PHP_MODNAME} == "opcache" | .if ${PHP_MODNAME} == "opcache" | ||||
# This is needed by Zend extensions, keep before everything. | # This is needed by Zend extensions, keep before everything. | ||||
PHP_MOD_PRIO= 10 | PHP_MOD_PRIO= 10 | ||||
CONFIGURE_ARGS+=--enable-opcache | CONFIGURE_ARGS+=--enable-opcache --enable-opcache-file | ||||
USES+= localbase | USES+= localbase | ||||
.endif | .endif | ||||
.if ${PHP_MODNAME} == "pcntl" | .if ${PHP_MODNAME} == "pcntl" | ||||
CONFIGURE_ARGS+=--enable-pcntl | CONFIGURE_ARGS+=--enable-pcntl | ||||
.endif | .endif | ||||
.if ${PHP_MODNAME} == "pdo" | .if ${PHP_MODNAME} == "pdo" | ||||
CONFIGURE_ARGS+=--enable-pdo | CONFIGURE_ARGS+=--enable-pdo | ||||
.endif | .endif | ||||
.if ${PHP_MODNAME} == "pdo_dblib" | .if ${PHP_MODNAME} == "pdo_dblib" | ||||
CONFIGURE_ARGS+=--with-pdo-dblib=${LOCALBASE} | CONFIGURE_ARGS+=--with-pdo-dblib=${LOCALBASE} | ||||
USE_PHP= pdo:build | USE_PHP= pdo:build | ||||
OPTIONS_DEFINE= MSSQL | OPTIONS_DEFINE= MSSQL | ||||
MSSQL_DESC= Enable Microsoft SQL Server support | MSSQL_DESC= Enable Microsoft SQL Server support | ||||
MSSQL_LIB_DEPENDS= libsybdb.so:databases/freetds | |||||
MSSQL_LIB_DEPENDS_OFF= libct.so:databases/freetds | |||||
.endif | .endif | ||||
.if ${PHP_MODNAME} == "pdo_firebird" | .if ${PHP_MODNAME} == "pdo_firebird" | ||||
CONFIGURE_ARGS+=--with-pdo-firebird=${LOCALBASE} | CONFIGURE_ARGS+=--with-pdo-firebird=${LOCALBASE} | ||||
USES+= firebird | USES+= firebird | ||||
USE_PHP= pdo:build | USE_PHP= pdo:build | ||||
.endif | .endif | ||||
.if ${PHP_MODNAME} == "pdo_odbc" | .if ${PHP_MODNAME} == "pdo_odbc" | ||||
LIB_DEPENDS+= libodbc.so:databases/unixODBC | LIB_DEPENDS+= libodbc.so:databases/unixODBC | ||||
CONFIGURE_ARGS+=--with-pdo-odbc=unixODBC,${LOCALBASE} | CONFIGURE_ARGS+=--with-pdo-odbc=unixODBC,${LOCALBASE} | ||||
USE_PHP= pdo:build | USE_PHP= pdo:build | ||||
.endif | .endif | ||||
.if ${PHP_MODNAME} == "pdo_mysql" | .if ${PHP_MODNAME} == "pdo_mysql" | ||||
OPTIONS_DEFINE= MYSQLND | OPTIONS_DEFINE= MYSQLND | ||||
OPTIONS_DEFAULT=MYSQLND | OPTIONS_DEFAULT=MYSQLND | ||||
MYSQLND_DESC= Use MySQL Native Driver | MYSQLND_DESC= Use MySQL Native Driver | ||||
USE_PHP= pdo:build | USE_PHP= pdo:build | ||||
MYSQLND_CONFIGURE_ON= --with-pdo-mysql=mysqlnd | |||||
MYSQLND_CONFIGURE_OFF= --with-pdo-mysql=${LOCALBASE} \ | |||||
--with-zlib-dir=/usr | |||||
MYSQLND_USES_OFF= mysql | |||||
.endif | .endif | ||||
.if ${PHP_MODNAME} == "pdo_pgsql" | .if ${PHP_MODNAME} == "pdo_pgsql" | ||||
USES+= pgsql | USES+= pgsql | ||||
CONFIGURE_ARGS+=--with-pdo-pgsql=${LOCALBASE} | CONFIGURE_ARGS+=--with-pdo-pgsql=${LOCALBASE} | ||||
USE_PHP= pdo:build | USE_PHP= pdo:build | ||||
▲ Show 20 Lines • Show All 173 Lines • ▼ Show 20 Lines | CONFIGURE_ARGS+=--enable-zip \ | ||||
--with-pcre-dir=${LOCALBASE} \ | --with-pcre-dir=${LOCALBASE} \ | ||||
--with-libzip=${LOCALBASE} | --with-libzip=${LOCALBASE} | ||||
.endif | .endif | ||||
.if ${PHP_MODNAME} == "zlib" | .if ${PHP_MODNAME} == "zlib" | ||||
CONFIGURE_ARGS+=--with-zlib=/usr | CONFIGURE_ARGS+=--with-zlib=/usr | ||||
.endif | .endif | ||||
.include <bsd.port.options.mk> | |||||
.if ${PHP_MODNAME} == "dba" | |||||
. if empty(PORT_OPTIONS:MCDB) | |||||
CONFIGURE_ARGS+=--without-cdb | |||||
. endif | |||||
. if ${PORT_OPTIONS:MDB4} | |||||
CONFIGURE_ARGS+=--with-db4=${LOCALBASE} | |||||
USES+= bdb | |||||
WITH_BDB_HIGHEST= yes | |||||
. endif | |||||
. if ${PORT_OPTIONS:MGDBM} | |||||
LIB_DEPENDS+= libgdbm.so:databases/gdbm | |||||
CONFIGURE_ARGS+=--with-gdbm=${LOCALBASE} | |||||
. endif | |||||
. if ${PORT_OPTIONS:MQDBM} | |||||
LIB_DEPENDS+= libqdbm.so:databases/qdbm | |||||
CONFIGURE_ARGS+=--with-qdbm=${LOCALBASE} | |||||
. endif | |||||
. if ${PORT_OPTIONS:MTOKYO} | |||||
LIB_DEPENDS+= libtokyocabinet.so:databases/tokyocabinet | |||||
CONFIGURE_ARGS+=--with-tcadb=${LOCALBASE} | |||||
. endif | |||||
. if empty(PORT_OPTIONS:MINIFILE) | |||||
CONFIGURE_ARGS+=--disable-inifile | |||||
. endif | |||||
. if empty(PORT_OPTIONS:MFLATFILE) | |||||
CONFIGURE_ARGS+=--disable-flatfile | |||||
. endif | |||||
.endif | |||||
.if ${PHP_MODNAME} == "mysqli" | |||||
. if ${PORT_OPTIONS:MMYSQLND} | |||||
CONFIGURE_ARGS+=--with-mysqli=mysqlnd | |||||
. else | |||||
CONFIGURE_ARGS+=--with-mysqli=${LOCALBASE}/bin/mysql_config | |||||
USES+= mysql | |||||
. endif | |||||
.endif | |||||
.if ${PHP_MODNAME} == "pdo_mysql" | |||||
. if ${PORT_OPTIONS:MMYSQLND} | |||||
CONFIGURE_ARGS+=--with-pdo-mysql=mysqlnd | |||||
. else | |||||
CONFIGURE_ARGS+=--with-pdo-mysql=${LOCALBASE} \ | |||||
--with-zlib-dir=/usr | |||||
USES+= mysql | |||||
. endif | |||||
.endif | |||||
.include <bsd.port.pre.mk> | |||||
.if ${PHP_MODNAME} == "gd" | |||||
. if ${PORT_OPTIONS:MTRUETYPE} | |||||
CONFIGURE_ARGS+=--enable-gd-native-ttf | |||||
. endif | |||||
. if ${PORT_OPTIONS:MJIS} | |||||
CONFIGURE_ARGS+=--enable-gd-jis-conv | |||||
. endif | |||||
. if ${PORT_OPTIONS:MWEBP} | |||||
LIB_DEPENDS+= libwebp.so:graphics/webp | |||||
CONFIGURE_ARGS+=--with-webp-dir=${LOCALBASE} | |||||
. endif | |||||
. if ${PORT_OPTIONS:MX11} | |||||
USE_XORG= xpm | |||||
CONFIGURE_ARGS+=--with-xpm-dir=${LOCALBASE} | |||||
. endif | |||||
.endif | |||||
.if ${PHP_MODNAME} == "imap" | |||||
. if ${PORT_OPTIONS:MPANDA} | |||||
LIB_DEPENDS+= libc-client4.so.10:mail/panda-cclient | |||||
. else | |||||
LIB_DEPENDS+= libc-client4.so.9:mail/cclient | |||||
. endif | |||||
.endif | |||||
.if ${PHP_MODNAME} == "mbstring" | |||||
. if ${PORT_OPTIONS:MREGEX} | |||||
LIB_DEPENDS+= libonig.so:devel/oniguruma6 | |||||
CONFIGURE_ARGS+=--with-onig=${LOCALBASE} | |||||
. else | |||||
CONFIGURE_ARGS+=--disable-mbregex | |||||
. endif | |||||
.endif | |||||
.if ${PHP_MODNAME} == "openssl" || ${PHP_MODNAME} == "sqlite3" | .if ${PHP_MODNAME} == "openssl" || ${PHP_MODNAME} == "sqlite3" | ||||
post-extract: | post-extract: | ||||
@${MV} ${WRKSRC}/config0.m4 ${WRKSRC}/config.m4 | @${MV} ${WRKSRC}/config0.m4 ${WRKSRC}/config.m4 | ||||
.endif | |||||
.if ${PHP_MODNAME} == "pdo_dblib" | |||||
. if ${PORT_OPTIONS:MMSSQL} | |||||
LIB_DEPENDS+= libsybdb.so:databases/freetds | |||||
. else | |||||
LIB_DEPENDS+= libct.so:databases/freetds | |||||
. endif | |||||
.endif | .endif | ||||
.if ${PHP_MODNAME} == "xml" | .if ${PHP_MODNAME} == "xml" | ||||
post-extract: | post-extract: | ||||
@${MKDIR} ${WRKSRC}/ext/xml | @${MKDIR} ${WRKSRC}/ext/xml | ||||
@${CP} ${WRKSRC}/expat_compat.h ${WRKSRC}/ext/xml | @${CP} ${WRKSRC}/expat_compat.h ${WRKSRC}/ext/xml | ||||
.endif | .endif | ||||
.if ${PHP_MODNAME} == "zlib" | .if ${PHP_MODNAME} == "zlib" | ||||
post-extract: | post-extract: | ||||
@${MV} ${WRKSRC}/config0.m4 ${WRKSRC}/config.m4 | @${MV} ${WRKSRC}/config0.m4 ${WRKSRC}/config.m4 | ||||
.endif | .endif |