--- Mk/Uses/php.mk +++ Mk/Uses/php.mk @@ -4,7 +4,17 @@ # # Feature: php # Usage: USES=php -# Valid ARGS: (none) +# Valid ARGS: (none), phpize, ext, zend, build, cli, cgi, mod, web, embed +# +# - phpize : Use to build a PHP extension. +# - ext : Use to build, install and register a PHP extension. +# - zend : Use to build, install and register a Zend extension. +# - build : Set PHP also as a build dependency. +# - cli : Want the CLI version of PHP. +# - cgi : Want the CGI version of PHP. +# - mod : Want the Apache Module for PHP. +# - web : Want the Apache Module or the CGI version of PHP. +# - embed : Want the embedded library version of PHP. # # If the port requires a predefined set of PHP extensions, they can be # listed in this way: @@ -15,15 +25,6 @@ # # DEFAULT_PHP_VER=N - Use PHP version N if PHP is not yet installed. # IGNORE_WITH_PHP=N - The port doesn't work with PHP version N. -# USE_PHPIZE=yes - Use to build a PHP extension. -# USE_PHPEXT=yes - Use to build, install and register a PHP extension. -# USE_ZENDEXT=yes - Use to build, install and register a Zend extension. -# USE_PHP_BUILD=yes - Set PHP also as a build dependency. -# WANT_PHP_CLI=yes - Want the CLI version of PHP. -# WANT_PHP_CGI=yes - Want the CGI version of PHP. -# WANT_PHP_MOD=yes - Want the Apache Module for PHP. -# WANT_PHP_WEB=yes - Want the Apache Module or the CGI version of PHP. -# WANT_PHP_EMB=yes - Want the embedded library version of PHP. # # You may combine multiple WANT_PHP_* knobs. # Don't specify any WANT_PHP_* knob if your port will work with every PHP SAPI. @@ -43,6 +44,44 @@ _INCLUDE_USES_PHP_MK= yes WARNING+= "DEFAULT_PHP_VER is defined, consider using DEFAULT_VERSIONS=php=${DEFAULT_PHP_VER} instead" . endif +. if defined(USE_PHPIZE) && empty(php_ARGS:Mphpize) +php_ARGS+= phpize +. endif +. if defined(USE_PHPEXT) && empty(php_ARGS:Mext) +php_ARGS+= ext +. endif +. if defined(USE_ZENDEXT) && empty(php_ARGS:Mzend) +php_ARGS+= zend +. endif +. if defined(USE_PHP_BUILD) && empty(php_ARGS:Mbuild) +php_ARGS+= build +. endif +. if defined(WANT_PHP_CLI) && empty(php_ARGS:Mcli) +php_ARGS+= cli +. endif +. if defined(WANT_PHP_CGI) && empty(php_ARGS:Mcgi) +php_ARGS+= cgi +. endif +. if defined(WANT_PHP_MOD) && empty(php_ARGS:Mmod) +php_ARGS+= mod +. endif +. if defined(WANT_PHP_WEB) && empty(php_ARGS:Mweb) +php_ARGS+= web +. endif +. if defined(WANT_PHP_EMB) && empty(php_ARGS:Membed) +php_ARGS+= embed +. endif + +. if ${php_ARGS:Mbuild} && ( ${php_ARGS:Mphpize} || ${php_ARGS:Mext} || ${php_ARGS:Mzend} ) +DEV_WARNING+= "USES=php:build is included in USES=php:phpize, USES=php:ext, and USES=php:zend, so it is not needed" +. endif +. if ${php_ARGS:Mphpize} && ( ${php_ARGS:Mext} || ${php_ARGS:Mzend} ) +DEV_WARNING+= "USES=php:phpize is included in USES=php:ext and USES=php:zend, so it is not needed" +. endif +. if ${php_ARGS:Mext} && ${php_ARGS:Mzend} +DEV_WARNING+= "USES=php:ext is included in USES=php:zend, so it is not needed" +. endif + PHPBASE?= ${LOCALBASE} . if exists(${PHPBASE}/etc/php.conf) .include "${PHPBASE}/etc/php.conf" @@ -98,16 +137,16 @@ IGNORE= cannot be installed: doesn't work with lang/php${PHP_VER} port\ . endfor . endif -. if defined(WANT_PHP_WEB) -. if defined(WANT_PHP_CGI) || defined(WANT_PHP_MOD) +. if ${php_ARGS:Mweb} +. if ${php_ARGS:Mcgi} || ${php_ARGS:Mmod} check-makevars:: - @${ECHO_CMD} "If you define WANT_PHP_WEB you cannot set also WANT_PHP_CGI" - @${ECHO_CMD} "or WANT_PHP_MOD. Use only one of them." + @${ECHO_CMD} "If you use :web you cannot also use :cgi" + @${ECHO_CMD} "or :mod. Use only one of them." @${FALSE} . endif . endif -. if defined(WANT_PHP_CGI) +. if ${php_ARGS:Mcgi} . if defined(PHP_VERSION) && ${PHP_SAPI:Mcgi} == "" && ${PHP_SAPI:Mfpm} == "" check-makevars:: @${ECHO_CMD} "This port requires the CGI version of PHP, but you have already" @@ -116,7 +155,7 @@ check-makevars:: . endif . endif -. if defined(WANT_PHP_CLI) +. if ${php_ARGS:Mcli} . if defined(PHP_VERSION) && ${PHP_SAPI:Mcli} == "" check-makevars:: @${ECHO_CMD} "This port requires the CLI version of PHP, but you have already" @@ -125,7 +164,7 @@ check-makevars:: . endif . endif -. if defined(WANT_PHP_EMB) +. if ${php_ARGS:Membed} . if defined(PHP_VERSION) && ${PHP_SAPI:Membed} == "" check-makevars:: @${ECHO_CMD} "This port requires the embedded library version of PHP, but you have already" @@ -137,11 +176,11 @@ check-makevars:: PHP_PORT?= lang/php${PHP_VER} MOD_PHP_PORT?= www/mod_php${PHP_VER} -. if defined(USE_PHP_BUILD) +. if ${php_ARGS:Mbuild} BUILD_DEPENDS+= ${PHPBASE}/include/php/main/php.h:${PHP_PORT} . endif RUN_DEPENDS+= ${PHPBASE}/include/php/main/php.h:${PHP_PORT} -. if defined(WANT_PHP_MOD) || (defined(WANT_PHP_WEB) && defined(PHP_VERSION) && ${PHP_SAPI:Mcgi} == "" && ${PHP_SAPI:Mfpm} == "") +. if ${php_ARGS:Mmod} || (${php_ARGS:Mweb} && defined(PHP_VERSION) && ${PHP_SAPI:Mcgi} == "" && ${PHP_SAPI:Mfpm} == "") USE_APACHE_RUN= 22+ .include "${PORTSDIR}/Mk/bsd.apache.mk" RUN_DEPENDS+= ${PHPBASE}/${APACHEMODDIR}/libphp5.so:${MOD_PHP_PORT} @@ -150,7 +189,7 @@ RUN_DEPENDS+= ${PHPBASE}/${APACHEMODDIR}/libphp5.so:${MOD_PHP_PORT} PLIST_SUB+= PHP_EXT_DIR=${PHP_EXT_DIR} SUB_LIST+= PHP_EXT_DIR=${PHP_EXT_DIR} -. if defined(USE_PHPIZE) || defined(USE_PHPEXT) || defined(USE_ZENDEXT) +. if ${php_ARGS:Mphpize} || ${php_ARGS:Mext} || ${php_ARGS:Mzend} BUILD_DEPENDS+= ${PHPBASE}/bin/phpize:${PHP_PORT} GNU_CONFIGURE= yes USE_AUTOTOOLS+= autoconf:env @@ -172,7 +211,7 @@ _USES_POST+=php _INCLUDE_USES_PHP_POST_MK=yes -. if (defined(USE_PHPEXT) || defined(USE_ZENDEXT)) +. if ${php_ARGS:Mext} || ${php_ARGS:Mzend} PHP_MODNAME?= ${PORTNAME} PHP_HEADER_DIRS?= "" @@ -206,7 +245,7 @@ add-plist-phpext: >> ${TMPPLIST} @${ECHO_CMD} "@dir etc/php" \ >> ${TMPPLIST} -. if defined(USE_ZENDEXT) +. if ${php_ARGS:Mzend} @${ECHO_CMD} "@exec echo zend_extension=%D/lib/php/${PHP_EXT_DIR}/${PHP_MODNAME}.so >> %D/etc/php/extensions.ini" \ >> ${TMPPLIST} . else @@ -215,7 +254,7 @@ add-plist-phpext: . endif @${ECHO_CMD} "@unexec cp %D/etc/php/extensions.ini %D/etc/php/extensions.ini.orig" \ >> ${TMPPLIST} -. if defined(USE_ZENDEXT) +. if ${php_ARGS:Mzend} @${ECHO_CMD} "@unexec grep -v zend_extension=%D/lib/php/${PHP_EXT_DIR}/${PHP_MODNAME}\\\.so %D/etc/php/extensions.ini.orig > %D/etc/php/extensions.ini || true" \ >> ${TMPPLIST} . else @@ -235,7 +274,7 @@ php-ini: @${ECHO_CMD} "The following line has been added to your ${PREFIX}/etc/php/extensions.ini" @${ECHO_CMD} "configuration file to automatically load the installed extension:" @${ECHO_CMD} "" -. if defined(USE_ZENDEXT) +. if ${php_ARGS:Mzend} @${ECHO_CMD} "zend_extension=${PREFIX}/lib/php/${PHP_EXT_DIR}/${PHP_MODNAME}.so" . else @${ECHO_CMD} "extension=${PHP_MODNAME}.so" @@ -245,7 +284,7 @@ php-ini: . endif # Extensions -. if ${USE_PHP:tl} != "yes" +. if defined(USE_PHP) && ${USE_PHP:tl} != "yes" # non-version specific components _USE_PHP_ALL= apc bcmath bitset bz2 calendar ctype curl dba dom \ exif fileinfo filter ftp gd gettext gmp \ @@ -297,7 +336,6 @@ ldap_DEPENDS= net/php${PHP_VER}-ldap mbstring_DEPENDS= converters/php${PHP_VER}-mbstring mcrypt_DEPENDS= security/php${PHP_VER}-mcrypt memcache_DEPENDS= databases/pecl-memcache -mhash_DEPENDS= security/php${PHP_VER}-mhash mssql_DEPENDS= databases/php${PHP_VER}-mssql mysql_DEPENDS= databases/php${PHP_VER}-mysql mysqli_DEPENDS= databases/php${PHP_VER}-mysqli @@ -347,23 +385,18 @@ zip_DEPENDS= archivers/php${PHP_VER}-zip zlib_DEPENDS= archivers/php${PHP_VER}-zlib . for extension in ${USE_PHP} -. if ${_USE_PHP_VER${PHP_VER}:M${extension}} != "" -. if ${PHP_EXT_INC:M${extension}} == "" -. if defined(USE_PHP_BUILD) -BUILD_DEPENDS+= ${PHPBASE}/lib/php/${PHP_EXT_DIR}/${extension}.so:${${extension}_DEPENDS} -. endif -RUN_DEPENDS+= ${PHPBASE}/lib/php/${PHP_EXT_DIR}/${extension}.so:${${extension}_DEPENDS} -. endif -. else ext= ${extension} -. if ${ext} == "mhash" -. if defined(USE_PHP_BUILD) -BUILD_DEPENDS+= ${PHPBASE}/lib/php/${PHP_EXT_DIR}/hash.so:${hash_DEPENDS} +. if ${_USE_PHP_VER${PHP_VER}:M${ext:S/:build//}} != "" +. if ${PHP_EXT_INC:M${ext:S/:build//}} == "" +. if !empty(php_ARGS:Mbuild) || !empty(extension:M*\:build) +BUILD_DEPENDS+= ${PHPBASE}/lib/php/${PHP_EXT_DIR}/${extension:S/:build//}.so:${${extension:S/:build//}_DEPENDS} . endif -RUN_DEPENDS+= ${PHPBASE}/lib/php/${PHP_EXT_DIR}/hash.so:${hash_DEPENDS} -. elif ${ext:tl} != "yes" +RUN_DEPENDS+= ${PHPBASE}/lib/php/${PHP_EXT_DIR}/${extension:S/:build//}.so:${${extension:S/:build//}_DEPENDS} +. endif +. else +. if ${ext:tl} != "yes" check-makevars:: - @${ECHO_CMD} "Unknown extension ${extension} for PHP ${PHP_VER}." + @${ECHO_CMD} "Unknown extension ${extension:S/:build//} for PHP ${PHP_VER}." @${FALSE} . endif . endif --- Mk/bsd.sanity.mk +++ Mk/bsd.sanity.mk @@ -177,7 +177,10 @@ SANITY_UNSUPPORTED= USE_OPENAL USE_FAM USE_MAKESELF USE_ZIP USE_LHA USE_CMAKE \ PYDISTUTILS_AUTOPLIST PYTHON_PY3K_PLIST_HACK PYDISTUTILS_NOEGGINFO \ USE_PYTHON_PREFIX USE_BZIP2 USE_XZ USE_PGSQL NEED_ROOT \ UNIQUENAME LATEST_LINK USE_SQLITE USE_FIREBIRD -SANITY_DEPRECATED= PYTHON_PKGNAMESUFFIX USE_AUTOTOOLS PLIST_DIRSTRY USE_BDB USE_MYSQL WANT_MYSQL_VER +SANITY_DEPRECATED= PYTHON_PKGNAMESUFFIX USE_AUTOTOOLS PLIST_DIRSTRY \ + USE_BDB USE_MYSQL WANT_MYSQL_VER USE_PHPIZE USE_PHPEXT \ + USE_ZENDEXT USE_PHP_BUILD WANT_PHP_CLI WANT_PHP_CGI \ + WANT_PHP_MOD WANT_PHP_WEB WANT_PHP_EMB SANITY_NOTNEEDED= WX_UNICODE USE_AUTOTOOLS_ALT= USES=autoreconf and GNU_CONFIGURE=yes @@ -221,6 +224,15 @@ USE_FIREBIRD_ALT= USES=firebird USE_BDB_ALT= USES=bdb:${USE_BDB} USE_MYSQL_ALT= USES=mysql:${USE_MYSQL} WANT_MYSQL_VER_ALT= USES=mysql:${WANT_MYSQL_VER} +USE_PHPIZE_ALT= USES=php:phpize +USE_PHPEXT_ALT= USES=php:ext +USE_ZENDEXT_ALT= USES=php:zend +USE_PHP_BUILD_ALT= USES=php:build +WANT_PHP_CLI_ALT= USES=php:cli +WANT_PHP_CGI_ALT= USES=php:cgi +WANT_PHP_MOD_ALT= USES=php:mod +WANT_PHP_WEB_ALT= USES=php:web +WANT_PHP_EMB_ALT= USES=php:embed .for a in ${SANITY_DEPRECATED} .if defined(${a}) --- archivers/pecl-lzf/Makefile +++ archivers/pecl-lzf/Makefile @@ -14,9 +14,7 @@ COMMENT= Handles LZF de/compression LICENSE= PHP202 -USES= tar:tgz -USE_PHP= yes -USE_PHPEXT= yes +USES= php:ext tar:tgz CONFIGURE_ARGS= --enable-lzf WRKSRC= ${WRKDIR}/${DISTNAME:tu} --- archivers/pecl-phk/Makefile +++ archivers/pecl-phk/Makefile @@ -15,10 +15,8 @@ LICENSE= PHP301 BROKEN_powerpc64= Does not build -USES= tar:tgz -USE_PHP= hash -USE_PHP_BUILD= yes -USE_PHPEXT= yes +USES= php:ext tar:tgz +USE_PHP= hash:build IGNORE_WITH_PHP= 70 CONFIGURE_ARGS= --enable-phk --- archivers/pecl-rar/Makefile +++ archivers/pecl-rar/Makefile @@ -13,10 +13,8 @@ COMMENT= PECL extension to create and read RAR files LICENSE= PHP301 -USES= tar:tgz -USE_PHP= spl -USE_PHPEXT= yes -USE_PHP_BUILD= yes +USES= php:ext tar:tgz +USE_PHP= spl:build IGNORE_WITH_PHP= 70 --- archivers/php-horde_lz4/Makefile +++ archivers/php-horde_lz4/Makefile @@ -12,8 +12,7 @@ DIST_SUBDIR= PECL MAINTAINER= mm@FreeBSD.org COMMENT= Horde LZ4 Compression Extension for php -USE_PHP= yes -USE_PHPEXT= yes +USES= php:ext IGNORE_WITH_PHP= 70 CONFIGURE_ARGS= --enable-horde_lz4 --- archivers/php5-snappy/Makefile +++ archivers/php5-snappy/Makefile @@ -17,8 +17,7 @@ LICENSE= BSD2CLAUSE LIB_DEPENDS+= libsnappy.so:archivers/snappy CONFIGURE_ARGS+= --with-snappy-includedir=${LOCALBASE}/include -USE_PHP= yes -USE_PHPEXT= yes +USES= php:ext PHP_MODNAME= snappy WRKSRC= ${WRKDIR}/${PROJECTHOST} OPTIONS_DEFINE= TEST --- benchmarks/phoronix-test-suite/Makefile +++ benchmarks/phoronix-test-suite/Makefile @@ -12,11 +12,10 @@ COMMENT= Phoronix Benchmarking Suite LICENSE= GPLv3 LICENSE_FILE= ${WRKSRC}/COPYING +USES= php:cli,build USE_GCC= any USE_PHP= ctype curl dom filter gd hash json openssl pcntl posix session \ simplexml sockets sqlite3 zip zlib -USE_PHP_BUILD= yes -WANT_PHP_CLI= yes NO_BUILD= yes WRKSRC= ${WRKDIR}/phoronix-test-suite --- chinese/php-cconv/Makefile +++ chinese/php-cconv/Makefile @@ -16,8 +16,7 @@ LICENSE= GPLv2 LIB_DEPENDS= libcconv.so:chinese/cconv CONFIGURE_ARGS= --with-cconv-dir=${LOCALBASE} -USE_PHP= yes -USE_PHPEXT= yes +USES= php:ext IGNORE_WITH_PHP= 70 post-patch: --- converters/pecl-fribidi/Makefile +++ converters/pecl-fribidi/Makefile @@ -14,9 +14,7 @@ COMMENT= PECL extension for the Unicode Bidi algorithm LIB_DEPENDS= libfribidi.so:converters/fribidi -USES= pkgconfig tar:tgz -USE_PHP= yes -USE_PHPEXT= yes +USES= php:ext pkgconfig tar:tgz IGNORE_WITH_PHP= 70 CONFIGURE_ARGS= --with-fribidi=${LOCALBASE} --- converters/pecl-igbinary/Makefile +++ converters/pecl-igbinary/Makefile @@ -18,10 +18,7 @@ LICENSE_FILE= ${WRKSRC}/COPYING BROKEN_powerpc64= does not build IGNORE_WITH_PHP=70 -USE_PHP= session -USE_PHP_BUILD= yes -USE_PHPEXT= yes -USE_PHPIZE= yes -USES= tar:tgz +USE_PHP= session:build +USES= php:ext tar:tgz .include --- converters/php5-bsdconv/Makefile +++ converters/php5-bsdconv/Makefile @@ -17,11 +17,7 @@ USE_GITHUB= yes GH_ACCOUNT= buganini GH_PROJECT= php-${PORTNAME} -USE_PHP= yes -USE_PHPEXT= yes -USE_PHPIZE= yes -USE_PHP_BUILD= yes -PHP_MODNAME= ${PORTNAME} +USES= php:ext IGNORE_WITH_PHP= 70 CONFIGURE_ARGS= --with-bsdconv=${LOCALBASE} --- databases/pecl-chdb/Makefile +++ databases/pecl-chdb/Makefile @@ -16,11 +16,7 @@ LICENSE_FILE= ${WRKSRC}/LICENSE BUILD_DEPENDS= ${LOCALBASE}/lib/libcmph.so:devel/cmph RUN_DEPENDS= ${LOCALBASE}/lib/libcmph.so:devel/cmph -USE_PHP= yes -USE_PHP_BUILD= yes -USE_PHPIZE= yes -USE_PHPEXT= yes -PHP_MODNAME= chdb +USES= php:ext IGNORE_WITH_PHP= 70 CFLAGS+= -L${LOCALBASE}/lib --- databases/pecl-dbase/Makefile +++ databases/pecl-dbase/Makefile @@ -14,8 +14,7 @@ COMMENT= dBase database file access functions for PHP LICENSE= PHP301 -USE_PHP= yes -USE_PHPEXT= yes +USES= php:ext IGNORE_WITH_PHP= 70 .include --- databases/pecl-drizzle/Makefile +++ databases/pecl-drizzle/Makefile @@ -15,9 +15,7 @@ LICENSE= PHP301 LIB_DEPENDS= libdrizzle.so:databases/libdrizzle -USES= tar:tgz -USE_PHP= yes -USE_PHPEXT= yes +USES= php:ext tar:tgz IGNORE_WITH_PHP= 70 OPTIONS_DEFINE= DOCS EXAMPLES --- databases/pecl-leveldb/Makefile +++ databases/pecl-leveldb/Makefile @@ -15,11 +15,7 @@ LICENSE= PHP301 LIB_DEPENDS= libleveldb.so:databases/leveldb -USES= tar:tgz -USE_PHP= yes -USE_PHP_BUILD= yes -USE_PHPEXT= yes -USE_PHPIZE= yes +USES= php:ext tar:tgz IGNORE_WITH_PHP= 70 .include --- databases/pecl-mdbtools/Makefile +++ databases/pecl-mdbtools/Makefile @@ -17,10 +17,7 @@ LICENSE= LGPL21 BUILD_DEPENDS= ${LOCALBASE}/lib/libmdb.a:databases/mdbtools RUN_DEPENDS= ${LOCALBASE}/lib/libmdb.a:databases/mdbtools -USES= pkgconfig tar:tgz -USE_PHP= yes -USE_PHPEXT= yes -USE_PHP_BUILD= yes +USES= php:ext pkgconfig tar:tgz IGNORE_WITH_PHP= 56 70 CONFIGURE_ARGS= --with-mdbtools=${LOCALBASE} --- databases/pecl-memcache/Makefile +++ databases/pecl-memcache/Makefile @@ -21,11 +21,8 @@ OPTIONS_DEFINE= EXAMPLES CONFIGURE_ARGS= --with-zlib-dir=/usr IGNORE_WITH_PHP=70 USE_CSTD= gnu89 -USE_PHP= zlib session -USE_PHP_BUILD= yes -USE_PHPEXT= yes -USE_PHPIZE= yes -USES= dos2unix tar:tgz +USE_PHP= zlib:build session:build +USES= dos2unix php:ext tar:tgz post-install-EXAMPLES-on: ${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/ --- databases/pecl-memcached/Makefile +++ databases/pecl-memcached/Makefile @@ -24,11 +24,8 @@ IGBINARY_DESC= Binary serializer support CONFIGURE_ARGS= --with-libmemcached-dir=${LOCALBASE} IGNORE_WITH_PHP=70 -USE_PHP= json session -USE_PHPEXT= yes -USE_PHPIZE= yes -USE_PHP_BUILD= yes -USES= pkgconfig tar:tgz +USE_PHP= json:build session:build +USES= php:ext pkgconfig tar:tgz IGBINARY_CONFIGURE_ENABLE= memcached-igbinary IGBINARY_USE= PHP=igbinary --- databases/pecl-mongo/Makefile +++ databases/pecl-mongo/Makefile @@ -15,10 +15,8 @@ LICENSE= APACHE20 BUILD_DEPENDS= re2c>=0.13.4:devel/re2c -USES= tar:tgz -USE_PHP= spl -USE_PHP_BUILD= yes -USE_PHPEXT= yes +USES= php:ext tar:tgz +USE_PHP= spl:build CONFIGURE_ARGS= --enable-mongo SUB_FILES= pkg-message IGNORE_WITH_PHP= 70 --- databases/pecl-mongodb/Makefile +++ databases/pecl-mongodb/Makefile @@ -12,9 +12,7 @@ COMMENT= PECL classes for MongoDB LICENSE= APACHE20 -USES= tar:tgz -USE_PHP= spl -USE_PHP_BUILD= yes -USE_PHPEXT= yes +USES= php:ext tar:tgz +USE_PHP= spl:build .include --- databases/pecl-mysqlnd_ms/Makefile +++ databases/pecl-mysqlnd_ms/Makefile @@ -12,10 +12,8 @@ DIST_SUBDIR= PECL MAINTAINER= johnpupu@gmail.com COMMENT= Replication and load balancing plugin for mysqlnd -USE_PHP= json -USE_PHP_BUILD= yes -USE_PHPEXT= yes -USE_PHPIZE= yes +USES= php:ext +USE_PHP= json:build IGNORE_WITH_PHP= 56 70 .include --- databases/pecl-mysqlnd_qc/Makefile +++ databases/pecl-mysqlnd_qc/Makefile @@ -12,9 +12,7 @@ DIST_SUBDIR= PECL MAINTAINER= johnpupu@gmail.com COMMENT= Query cache plugin for mysqlnd -USE_PHP= yes -USE_PHPEXT= yes -USE_PHPIZE= yes +USES= php:ext IGNORE_WITH_PHP= 56 70 .include --- databases/pecl-pdo_user/Makefile +++ databases/pecl-pdo_user/Makefile @@ -17,11 +17,8 @@ BROKEN_powerpc64= Does not build WRKSRC= ${WRKDIR}/PDO_USER-${PORTVERSION} -USE_PHP= pdo -USE_PHP_BUILD= yes -USE_PHPIZE= yes -USE_PHPEXT= yes -PHP_MODNAME= pdo_user +USES= php:ext +USE_PHP= pdo:build IGNORE_WITH_PHP= 70 .include --- databases/pecl-rrd/Makefile +++ databases/pecl-rrd/Makefile @@ -18,8 +18,7 @@ LIB_DEPENDS= librrd.so:databases/rrdtool LDFLAGS+= -L${LOCALBASE}/lib -USE_PHP= yes -USE_PHPEXT= yes +USES= php:ext IGNORE_WITH_PHP= 70 .include --- databases/pecl-tokyo_tyrant/Makefile +++ databases/pecl-tokyo_tyrant/Makefile @@ -17,11 +17,8 @@ BROKEN_powerpc64= Does not build LIB_DEPENDS= libtokyotyrant.so:databases/tokyotyrant -USES= pkgconfig tar:tgz -USE_PHP= session -USE_PHP_BUILD= spl -USE_PHPIZE= yes -USE_PHPEXT= yes +USES= php:ext pkgconfig tar:tgz +USE_PHP= session:build IGNORE_WITH_PHP= 70 .include --- databases/php-adodb-ext/Makefile +++ databases/php-adodb-ext/Makefile @@ -14,17 +14,14 @@ COMMENT= ADOdb Extension WRKSRC= ${WRKDIR}/adodb-${PORTVERSION:S/.//} -USES= dos2unix zip -USE_PHP= yes -USE_PHPEXT= yes -PHP_MODNAME= adodb +USES= dos2unix php:ext zip IGNORE_WITH_PHP=56 70 SUB_FILES= pkg-message .include -.if ${PHP_VER} == "5" || ${PHP_VER} == "54" || ${PHP_VER} == "55" +.if ${PHP_VER} == "55" EXTRA_PATCHES= ${PATCHDIR}/extra-patch-php54-adodb.c .endif --- databases/php-mdcached/Makefile +++ databases/php-mdcached/Makefile @@ -15,10 +15,9 @@ LICENSE= BSD2CLAUSE LIB_DEPENDS= libmdcached.so:databases/mdcached -USE_PHP= yes -USE_PHPEXT= yes +USES= php:ext IGNORE_WITH_PHP= 70 CONFIGURE_ARGS= --enable-mdcached -WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}/${PORTNAME}/client_php/${PORTNAME} +WRKSRC_SUBDIR= ${PORTNAME}/client_php/${PORTNAME} .include --- databases/php5-pdo_cassandra/Makefile +++ databases/php5-pdo_cassandra/Makefile @@ -21,11 +21,9 @@ GH_ACCOUNT= mkoppanen GH_PROJECT= php-${PORTNAME} GH_TAGNAME= 7debd5b -USES= compiler:c++11-lib pkgconfig +USES= compiler:c++11-lib php:ext pkgconfig USE_CXXSTD= c++11 -USE_PHP_BUILD= yes -USE_PHP= pdo -USE_PHPEXT= yes +USE_PHP= pdo:build IGNORE_WITH_PHP= 70 --- databases/php5-tarantool/Makefile +++ databases/php5-tarantool/Makefile @@ -9,12 +9,9 @@ PKGNAMEPREFIX= php5- MAINTAINER= vg@FreeBSD.org COMMENT= PECL PHP driver for Tarantool/Box +USES= php:ext USE_GITHUB= yes -USE_PHP= yes -USE_PHPEXT= yes -USE_PHPIZE= yes -PHP_MODNAME= ${PORTNAME} GH_PROJECT= ${PORTNAME}-php GH_TAGNAME= c1c5d5f TR_VER= 20151222 --- databases/php55-redis/Makefile +++ databases/php55-redis/Makefile @@ -17,21 +17,18 @@ USE_GITHUB= yes GH_ACCOUNT= nicolasff GH_PROJECT= phpredis -USE_PHP= session -USE_PHP_BUILD= yes -USE_PHPEXT= yes +USES= php:ext +USE_PHP= session:build PHP_DEFAULT= 5.5 IGNORE_WITH_PHP= 56 70 -PHP_MODNAME= redis - OPTIONS_DEFINE= IGBINARY IGBINARY_DESC= Build with Igbinary serializer .include .if ${PORT_OPTIONS:MIGBINARY} -USE_PHP+= igbinary +USE_PHP+= igbinary:build CONFIGURE_ARGS+=--enable-redis-igbinary .else CONFIGURE_ARGS+=--disable-redis-igbinary --- databases/php56-redis/Makefile +++ databases/php56-redis/Makefile @@ -13,9 +13,8 @@ LICENSE= PHP301 BROKEN_powerpc64= Does not build -USE_PHP= session -USE_PHP_BUILD= yes -USE_PHPEXT= yes +USES= php:ext +USE_PHP= session:build PHP_DEFAULT= 5.6 IGNORE_WITH_PHP= 55 70 @@ -23,8 +22,6 @@ USE_GITHUB= yes GH_ACCOUNT= nicolasff GH_PROJECT= phpredis -PHP_MODNAME= redis - OPTIONS_DEFINE= IGBINARY IGBINARY_DESC= Build with Igbinary serializer --- databases/vfront/Makefile +++ databases/vfront/Makefile @@ -17,7 +17,7 @@ NO_BUILD= yes NO_ARCH= yes PLIST= ${WRKDIR}/pkg-plist -USE_PHP= yes +USES= php OPTIONS_MULTI= database OPTIONS_MULTI_database= MYSQL PGSQL --- databases/xapian-bindings/Makefile +++ databases/xapian-bindings/Makefile @@ -34,7 +34,7 @@ LUA_CONFIGURE_WITH= lua LUA_USES= lua PHP_CONFIGURE_ENV= PHP_CONFIG=${LOCALBASE}/bin/php-config PHP_CONFIGURE_WITH= php -PHP_USE= PHP=yes PHP_BUILD=yes +PHP_USES= php:build PYTHON_CONFIGURE_ENV= PYTHON_LIB=${PYTHON_SITELIBDIR} PYTHON_CONFIGURE_WITH= python PYTHON_USES= python:2 --- devel/ioncube/Makefile +++ devel/ioncube/Makefile @@ -15,7 +15,7 @@ COMMENT= Loader for ionCube-encoded PHP files ONLY_FOR_ARCHS= i386 amd64 NO_BUILD= yes -USE_PHP= yes +USES= php SUB_FILES= pkg-message WRKSRC= ${WRKDIR}/${PORTNAME} --- devel/pear-Horde_Nls/Makefile +++ devel/pear-Horde_Nls/Makefile @@ -17,7 +17,7 @@ USE_HORDE_RUN= Horde_Translation \ OPTIONS_DEFINE= GEOIP GEOIP_DESC= Depend on geoip PHP extension -GEOIP_USE= PHP=yes +GEOIP_USES= php GEOIP_RUN_DEPENDS= ${PHPBASE}/lib/php/${PHP_EXT_DIR}/geoip.so:net/pecl-geoip .include --- devel/pear-VersionControl_SVN/Makefile +++ devel/pear-VersionControl_SVN/Makefile @@ -13,7 +13,6 @@ LICENSE= BSD2CLAUSE BUILD_DEPENDS= pear-XML_Parser>=1.3.4:devel/pear-XML_Parser RUN_DEPENDS= pear-XML_Parser>=1.3.4:devel/pear-XML_Parser -USE_PHP= yes USES= pear .include --- devel/pear/Makefile +++ devel/pear/Makefile @@ -13,14 +13,12 @@ LICENSE= PHP301 BROKEN_powerpc64= Does not build -USES= cpe tar:bzip2 +USES= cpe php:cli tar:bzip2 CPE_VENDOR= php NO_BUILD= yes NO_ARCH= yes -WANT_PHP_CLI= yes -USE_PHP= pcre xml zlib -USE_PHP_BUILD= yes +USE_PHP= pcre:build xml:build zlib:build PEARDIR= ${PREFIX}/share/pear --- devel/pecl-APCu/Makefile +++ devel/pecl-APCu/Makefile @@ -17,13 +17,8 @@ LICENSE= PHP301 CONFLICTS= pecl-APC-[0-9]* CFLAGS+= -I${LOCALBASE}/include -USE_PHP= yes -USE_PHP_BUILD= yes -USE_PHPIZE= yes -USE_PHPEXT= yes IGNORE_WITH_PHP= 70 -USES= tar:tgz +USES= php:ext tar:tgz PHP_MODNAME= ${PORTNAME:tl} -WRKSRC= ${WRKDIR}/${PORTNAME:tl}-${PORTVERSION} .include --- devel/pecl-automap/Makefile +++ devel/pecl-automap/Makefile @@ -13,11 +13,8 @@ COMMENT= PECL extension offering a fast map-based autoloader LICENSE= PHP301 -USES= tar:tgz -USE_PHP= spl -USE_PHP_BUILD= yes -USE_PHPEXT= yes -PHP_MODNAME= automap +USES= php:ext tar:tgz +USE_PHP= spl:build IGNORE_WITH_PHP= 56 70 CONFIGURE_ARGS= --enable-automap --- devel/pecl-bbcode/Makefile +++ devel/pecl-bbcode/Makefile @@ -14,10 +14,7 @@ COMMENT= PECL extension which allows quick and efficient BBCode Parsing LICENSE= PHP301 BSD3CLAUSE LICENSE_COMB= multi -USES= tar:tgz -USE_PHP= yes -USE_PHP_BUILD= yes -USE_PHPEXT= yes +USES= php:ext tar:tgz IGNORE_WITH_PHP= 56 70 CONFIGURE_ARGS= --enable-bbcode --- devel/pecl-bcompiler/Makefile +++ devel/pecl-bcompiler/Makefile @@ -13,9 +13,8 @@ COMMENT= Bytecode compiler extension LICENSE= PHP202 -USES= tar:tgz -USE_PHP= bz2 -USE_PHPEXT= yes +USES= php:ext tar:tgz +USE_PHP= bz2:build IGNORE_WITH_PHP=56 70 CONFIGURE_ARGS= --enable-bcompiler --- devel/pecl-dio/Makefile +++ devel/pecl-dio/Makefile @@ -13,8 +13,7 @@ COMMENT= PECL extension that provides direct access to low level IO LICENSE= PHP30 -USE_PHP= yes -USE_PHPEXT= yes +USES= php:ext IGNORE_WITH_PHP= 70 .include --- devel/pecl-eio/Makefile +++ devel/pecl-eio/Makefile @@ -15,8 +15,7 @@ COMMENT= Provides interface to the libeio library LICENSE= PHP301 CONFIGURE_ARGS= --enable-eio -USE_PHP= yes -USE_PHPEXT= yes +USES= php:ext IGNORE_WITH_PHP= 70 .include --- devel/pecl-ev/Makefile +++ devel/pecl-ev/Makefile @@ -15,11 +15,7 @@ COMMENT= Libev extension for PHP LICENSE= PHP301 LICENSE_FILE= ${WRKSRC}/LICENSE -USES= tar:tgz -USE_PHP= yes -USE_PHP_BUILD= yes -USE_PHPIZE= yes -USE_PHPEXT= yes +USES= php:ext tar:tgz IGNORE_WITH_PHP= 70 .include --- devel/pecl-event/Makefile +++ devel/pecl-event/Makefile @@ -18,11 +18,9 @@ LIB_DEPENDS= libevent.so:devel/libevent2 BROKEN_powerpc64= does not build -USES= tar:tgz +USES= php:ext tar:tgz USE_OPENSSL= yes CONFIGURE_ARGS= --with-openssl-dir=${OPENSSLBASE} -USE_PHP= sockets -USE_PHP_BUILD= yes -USE_PHPEXT= yes +USE_PHP= sockets:build .include --- devel/pecl-expect/Makefile +++ devel/pecl-expect/Makefile @@ -16,9 +16,7 @@ LICENSE= PHP301 LIB_DEPENDS= libexpect.so:lang/expect -USES= tar:tgz tcl:86 -USE_PHP= yes -USE_PHPEXT= yes +USES= php:ext tar:tgz tcl:86 IGNORE_WITH_PHP= 70 CFLAGS+= -I${TCL_INCLUDEDIR} --- devel/pecl-gearman/Makefile +++ devel/pecl-gearman/Makefile @@ -15,11 +15,8 @@ LICENSE= PHP301 LIB_DEPENDS= libgearman.so:devel/gearmand -USES= tar:tgz +USES= php:ext tar:tgz CONFIGURE_ARGS= --with-gearman -PHP_MODNAME= ${PORTNAME} -USE_PHP= yes -USE_PHPEXT= yes IGNORE_WITH_PHP= 70 .include --- devel/pecl-hidef/Makefile +++ devel/pecl-hidef/Makefile @@ -13,9 +13,7 @@ COMMENT= Constants for real LICENSE= PHP301 -USES= tar:tgz -USE_PHP= yes -USE_PHPEXT= yes +USES= php:ext tar:tgz IGNORE_WITH_PHP= 56 70 CONFIGURE_ARGS= --enable-hidef --- devel/pecl-hrtime/Makefile +++ devel/pecl-hrtime/Makefile @@ -13,8 +13,6 @@ COMMENT= High resolution timing for PHP LICENSE= BSD2CLAUSE -USES= tar:tgz -USE_PHP= yes -USE_PHPEXT= yes +USES= php:ext tar:tgz .include --- devel/pecl-htscanner/Makefile +++ devel/pecl-htscanner/Makefile @@ -13,9 +13,7 @@ COMMENT= Support htaccess for PHP LICENSE= PHP30 -USES= tar:tgz -USE_PHP= yes -USE_PHPEXT= yes +USES= php:ext tar:tgz IGNORE_WITH_PHP= 70 CONFIGURE_ARGS= --enable-htscanner --- devel/pecl-inotify/Makefile +++ devel/pecl-inotify/Makefile @@ -17,10 +17,7 @@ LICENSE= PHP301 LIB_DEPENDS= libinotify.so:devel/libinotify -USE_PHP= yes -USE_PHP_BUILD= yes -USE_PHPIZE= yes -USE_PHPEXT= yes +USES= php:ext IGNORE_WITH_PHP= 70 .include --- devel/pecl-intl/Makefile +++ devel/pecl-intl/Makefile @@ -16,9 +16,7 @@ LICENSE= PHP301 LIB_DEPENDS= libicui18n.so:devel/icu -USE_PHP= yes -USE_PHPEXT= yes -USES= tar:tgz +USES= php:ext tar:tgz IGNORE_WITH_PHP= 70 .include --- devel/pecl-jsmin/Makefile +++ devel/pecl-jsmin/Makefile @@ -13,9 +13,7 @@ COMMENT= PHP extension for minifying JavaScript LICENSE= PHP301 -USE_PHP= yes -USE_PHPEXT= yes -USES= tar:tgz +USES= php:ext tar:tgz IGNORE_WITH_PHP= 70 .include --- devel/pecl-json_post/Makefile +++ devel/pecl-json_post/Makefile @@ -16,9 +16,7 @@ LICENSE_FILE= ${WRKSRC}/LICENSE BROKEN_powerpc64= Does not build -USES= tar:tgz -USE_PHP= json -USE_PHP_BUILD= yes -USE_PHPEXT= yes +USES= php:ext tar:tgz +USE_PHP= json:build .include --- devel/pecl-jsonc/Makefile +++ devel/pecl-jsonc/Makefile @@ -15,11 +15,9 @@ LICENSE= PHP301 LIB_DEPENDS= libjson-c.so:devel/json-c -USES= pkgconfig tar:tgz +USES= php:ext pkgconfig tar:tgz CONFIGURE_ARGS= --with-jsonc --with-libjson MAKE_ARGS= EXTRA_CFLAGS=-DCOMPILE_DL_JSON=1 -USE_PHP= yes -USE_PHPEXT= yes IGNORE_WITH_PHP=70 CONFLICTS_INSTALL= php54-json-5* php55-json-5* php5-json-5* --- devel/pecl-jsond/Makefile +++ devel/pecl-jsond/Makefile @@ -13,9 +13,7 @@ COMMENT= JavaScript Object Notation in PHP LICENSE= PHP301 -USES= tar:tgz -USE_PHP= yes -USE_PHPEXT= yes +USES= php:ext tar:tgz IGNORE_WITH_PHP= 70 .include --- devel/pecl-jsonnet/Makefile +++ devel/pecl-jsonnet/Makefile @@ -19,10 +19,8 @@ BROKEN_powerpc64= Does not build LIB_DEPENDS= libjsonnet.so:devel/jsonnet -USES= tar:tgz -USE_PHP= json -USE_PHPEXT= yes -USE_PHP_BUILD= yes +USES= php:ext tar:tgz +USE_PHP= json:build CONFIGURE_ARGS= --with-jsonnet=${LOCALBASE} IGNORE_WITH_PHP= 70 --- devel/pecl-judy/Makefile +++ devel/pecl-judy/Makefile @@ -19,8 +19,7 @@ RUN_DEPENDS= Judy>=0:devel/judy BUILD_DEPENDS= Judy>=0:devel/judy CONFIGURE_ARGS= --with-judy=${LOCALBASE} -USE_PHP= yes -USE_PHPEXT= yes +USES= php:ext IGNORE_WITH_PHP= 70 .include --- devel/pecl-libevent/Makefile +++ devel/pecl-libevent/Makefile @@ -15,13 +15,8 @@ LICENSE= PHP301 LIB_DEPENDS= libevent.so:devel/libevent2 -USES= tar:tgz +USES= php:ext tar:tgz -USE_PHP= yes -USE_PHP_BUILD= yes -USE_PHPIZE= yes -USE_PHPEXT= yes -PHP_MODNAME= libevent IGNORE_WITH_PHP= 70 .include --- devel/pecl-mcve/Makefile +++ devel/pecl-mcve/Makefile @@ -16,10 +16,8 @@ LICENSE= PHP30 LIB_DEPENDS= libmonetra.so:devel/libmonetra -USES= tar:tgz +USES= php:ext tar:tgz USE_OPENSSL= yes -USE_PHP= yes -USE_PHPEXT= yes IGNORE_WITH_PHP= 56 70 CONFIGURE_ARGS+= --with-mcve="${LOCALBASE}" --- devel/pecl-memoize/Makefile +++ devel/pecl-memoize/Makefile @@ -14,9 +14,7 @@ COMMENT= PHP extension which transparently caches PHP functions LICENSE= PHP301 -USES= tar:tgz -USE_PHP= yes -USE_PHPEXT= yes +USES= php:ext tar:tgz CONFIGURE_ARGS= --enable-memoize IGNORE_WITH_PHP= 70 --- devel/pecl-msgpack/Makefile +++ devel/pecl-msgpack/Makefile @@ -15,10 +15,8 @@ LICENSE= BSD3CLAUSE BROKEN_powerpc64= Does not build -USES= tar:tgz -USE_PHP= session -USE_PHPEXT= yes -USE_PHP_BUILD= yes +USES= php:ext tar:tgz +USE_PHP= session:build IGNORE_WITH_PHP= 70 .include --- devel/pecl-ncurses/Makefile +++ devel/pecl-ncurses/Makefile @@ -14,11 +14,7 @@ COMMENT= PECL extension for ncurses LICENSE= PHP301 -USES= ncurses -USE_PHP= yes -USE_PHP_BUILD= yes -USE_PHPEXT= yes -WANT_PHP_CLI= yes +USES= php:ext,cli ncurses IGNORE_WITH_PHP=70 .include --- devel/pecl-newt/Makefile +++ devel/pecl-newt/Makefile @@ -13,12 +13,7 @@ LICENSE= PHP301 LIB_DEPENDS= libnewt.so:devel/newt -USES= tar:tgz -USE_PHP= yes -USE_PHPIZE= yes -USE_PHP_BUILD= yes -USE_PHPEXT= yes -PHP_MODNAME= newt +USES= php:ext tar:tgz IGNORE_WITH_PHP= 70 post-patch: --- devel/pecl-operator/Makefile +++ devel/pecl-operator/Makefile @@ -13,10 +13,7 @@ COMMENT= PHP extension that provides operator overloading for PHP objects LICENSE= PHP30 -USES= tar:tgz -USE_PHP= yes -USE_PHPEXT= yes -PHP_MODNAME= ${PORTNAME} +USES= php:ext tar:tgz IGNORE_WITH_PHP= 56 70 post-extract:: --- devel/pecl-params/Makefile +++ devel/pecl-params/Makefile @@ -11,10 +11,7 @@ DIST_SUBDIR= PECL MAINTAINER= miwi@FreeBSD.org COMMENT= PECL extension for a userspace equivalent of zend_parse_parameters() -USES= tar:tgz -USE_PHP= yes -USE_PHP_BUILD= yes -USE_PHPEXT= yes +USES= php:ext tar:tgz IGNORE_WITH_PHP= 70 CONFIGURE_ARGS= --enable-params --- devel/pecl-parsekit/Makefile +++ devel/pecl-parsekit/Makefile @@ -14,9 +14,7 @@ COMMENT= Extension for opcodes runtime analysis LICENSE= PHP301 -USE_PHP= yes -USE_PHP_BUILD= yes -USE_PHPEXT= yes +USES= php:ext IGNORE_WITH_PHP= 56 70 CONFIGURE_ARGS= --enable-parsekit --- devel/pecl-propro/Makefile +++ devel/pecl-propro/Makefile @@ -16,9 +16,7 @@ LICENSE_FILE= ${WRKSRC}/LICENSE PORTSCOUT= limit:^1.* -USES= gmake tar:tgz -USE_PHP= yes -USE_PHPEXT= yes +USES= gmake php:ext tar:tgz IGNORE_WITH_PHP= 70 .include --- devel/pecl-propro2/Makefile +++ devel/pecl-propro2/Makefile @@ -16,9 +16,7 @@ LICENSE_FILE= ${WRKSRC}/LICENSE PORTSCOUT= limit:^2.* -USES= gmake tar:tgz -USE_PHP= yes -USE_PHPEXT= yes +USES= gmake php:ext tar:tgz IGNORE_WITH_PHP= 55 56 CONFLICTS= pecl-propro-1* --- devel/pecl-pthreads/Makefile +++ devel/pecl-pthreads/Makefile @@ -15,12 +15,7 @@ LICENSE= PHP301 CFLAGS+= -I${LOCALBASE}/include -USE_PHP= yes -USE_PHP_BUILD= yes -USE_PHPIZE= yes -USE_PHPEXT= yes -PHP_MODNAME= pthreads -USES= tar:tgz +USES= php:ext tar:tgz .include --- devel/pecl-qb/Makefile +++ devel/pecl-qb/Makefile @@ -14,9 +14,7 @@ COMMENT= PHP Accelerator designed mainly for graphic work LICENSE= PHP301 -USE_PHP= yes -USE_PHPEXT= yes -USES= tar:tgz +USES= php:ext tar:tgz USE_GCC= any IGNORE_WITH_PHP= 70 --- devel/pecl-raphf/Makefile +++ devel/pecl-raphf/Makefile @@ -16,9 +16,7 @@ LICENSE_FILE= ${WRKSRC}/LICENSE PORTSCOUT= limit:^1.* -USES= gmake tar:tgz -USE_PHP= yes -USE_PHPEXT= yes +USES= gmake php:ext tar:tgz IGNORE_WITH_PHP= 70 .include --- devel/pecl-raphf2/Makefile +++ devel/pecl-raphf2/Makefile @@ -16,9 +16,7 @@ LICENSE_FILE= ${WRKSRC}/LICENSE PORTSCOUT= limit:^2.* -USES= gmake tar:tgz -USE_PHP= yes -USE_PHPEXT= yes +USES= gmake php:ext tar:tgz IGNORE_WITH_PHP= 55 56 CONFLICTS= pecl-raphf-1* --- devel/pecl-runkit/Makefile +++ devel/pecl-runkit/Makefile @@ -13,10 +13,7 @@ COMMENT= PECL extension to modify constants, user-defined functions, and classes LICENSE= PHP30 -USES= tar:tgz -USE_PHP= yes -USE_PHPEXT= yes -PHP_MODNAME= runkit +USES= php:ext tar:tgz IGNORE_WITH_PHP= 70 CONFIGURE_ARGS= --enable-runkit=classkit --- devel/pecl-scream/Makefile +++ devel/pecl-scream/Makefile @@ -14,8 +14,7 @@ COMMENT= Break the silence operator LICENSE= PHP301 -USE_PHP= yes -USE_PHPEXT= yes +USES= php:ext IGNORE_WITH_PHP= 70 test: build --- devel/pecl-shape/Makefile +++ devel/pecl-shape/Makefile @@ -16,10 +16,7 @@ LICENSE= PHP30 LIB_DEPENDS= libshp.so:devel/shapelib -USES= tar:tgz -USE_PHP= yes -USE_PHP_BUILD= yes -USE_PHPEXT= yes +USES= php:ext tar:tgz PHP_MODNAME= shp IGNORE_WITH_PHP= 56 70 --- devel/pecl-spl_types/Makefile +++ devel/pecl-spl_types/Makefile @@ -19,9 +19,7 @@ RE2C_DESC= Compile regular expression 2 C RE2C_RUN_DEPENDS= re2c:devel/re2c USE_PHP= spl -#USE_PHP_BUILD= yes -USE_PHPEXT= yes -USES= tar:tgz +USES= php:ext tar:tgz IGNORE_WITH_PHP= 70 CONFIGURE_ARGS= --enable-spl-types --- devel/pecl-spread/Makefile +++ devel/pecl-spread/Makefile @@ -17,9 +17,7 @@ LICENSE= PHP301 BUILD_DEPENDS= ${LOCALBASE}/include/sp.h:net/spread4 RUN_DEPENDS= ${LOCALBASE}/include/sp.h:net/spread4 -USES= tar:tgz -USE_PHP= yes -USE_PHPEXT= yes +USES= php:ext tar:tgz IGNORE_WITH_PHP= 56 70 CONFIGURE_ARGS+= --with-spread=${LOCALBASE} --- devel/pecl-statgrab/Makefile +++ devel/pecl-statgrab/Makefile @@ -16,8 +16,7 @@ COMMENT= PECL extension to retrieve information from libstatgrab LIB_DEPENDS= libstatgrab0.so:devel/libstatgrab0 -USE_PHP= yes -USE_PHPEXT= yes +USES= php:ext IGNORE_WITH_PHP= 70 CONFIGURE_ARGS= --with-statgrab=${LOCALBASE} --- devel/pecl-strict/Makefile +++ devel/pecl-strict/Makefile @@ -13,9 +13,7 @@ COMMENT= Strict scalar parameter type hint support for 5.4+ LICENSE= PHP301 -USES= tar:tgz -USE_PHP= yes -USE_PHPEXT= yes +USES= php:ext tar:tgz IGNORE_WITH_PHP= 70 .include --- devel/pecl-svn/Makefile +++ devel/pecl-svn/Makefile @@ -16,9 +16,7 @@ LICENSE= PHP301 LIB_DEPENDS= libsvn_client-1.so:devel/subversion18 -USES= tar:tgz -USE_PHP= yes -USE_PHPEXT= yes +USES= php:ext tar:tgz IGNORE_WITH_PHP= 70 .include --- devel/pecl-swoole/Makefile +++ devel/pecl-swoole/Makefile @@ -14,10 +14,8 @@ COMMENT= Asynchronous & concurrent & distributed networking framework LICENSE= APACHE20 LICENSE_FILE= ${WRKSRC}/LICENSE -USES= tar:tgz +USES= php:ext tar:tgz CFLAGS+= -I${LOCALBASE}/include -PHP_MODNAME= ${PORTNAME} USE_PHP= pcre -USE_PHPEXT= yes .include --- devel/pecl-sync/Makefile +++ devel/pecl-sync/Makefile @@ -14,8 +14,7 @@ COMMENT= Named and unnamed synchronization objects in PHP LICENSE= MIT -USE_PHP= yes -USE_PHPEXT= yes +USES= php:ext IGNORE_WITH_PHP= 70 .include --- devel/pecl-test_helpers/Makefile +++ devel/pecl-test_helpers/Makefile @@ -14,13 +14,8 @@ COMMENT= Extension to ease testing of PHP code LICENSE= BSD3CLAUSE CONFIGURE_ARGS= --enable-test-helpers -USE_PHP= yes -USE_PHPEXT= yes -USE_PHPIZE= yes -USES= tar:tgz +USES= php:ext tar:tgz SUB_FILES= pkg-message IGNORE_WITH_PHP= 70 -PKGMESSAGE= ${WRKDIR}/pkg-message - .include --- devel/pecl-trace/Makefile +++ devel/pecl-trace/Makefile @@ -13,14 +13,11 @@ COMMENT= Low-overhead tracing tool for PHP LICENSE= APACHE20 -WRKSRC= ${WRKDIR}/${DISTNAME}/extension +WRKSRC_SUBDIR= extension CMDTOOLSRC= ${WRKSRC}/../cmdtool GNU_CONFIGURE= yes -USES= gmake shebangfix tar:tgz -USE_PHP= yes -USE_PHP_BUILD= yes -USE_PHPEXT= yes +USES= gmake php:ext shebangfix tar:tgz IGNORE_WITH_PHP= 70 SHEBANG_FILES= ${CMDTOOLSRC}/phptrace --- devel/pecl-uopz/Makefile +++ devel/pecl-uopz/Makefile @@ -13,9 +13,7 @@ COMMENT= User Operations for PHP Zend engine LICENSE= PHP301 -USE_PHP= yes -USE_PHPEXT= yes -USES= tar:tgz +USES= php:ext tar:tgz IGNORE_WITH_PHP= 70 .include --- devel/pecl-uploadprogress/Makefile +++ devel/pecl-uploadprogress/Makefile @@ -13,9 +13,7 @@ COMMENT= Provides track progress of a file upload LICENSE= PHP301 -USES= tar:tgz -USE_PHP= yes -USE_PHPEXT= yes +USES= php:ext tar:tgz IGNORE_WITH_PHP= 70 CONFIGURE_ARGS= --enable-uploadprogress --- devel/pecl-uri_template/Makefile +++ devel/pecl-uri_template/Makefile @@ -14,8 +14,7 @@ COMMENT= URI Template(RFC6570) library for PHP LICENSE= PHP301 -USE_PHP= yes -USE_PHPEXT= yes +USES= php:ext IGNORE_WITH_PHP= 70 .include --- devel/pecl-uuid/Makefile +++ devel/pecl-uuid/Makefile @@ -15,8 +15,6 @@ LICENSE= LGPL3 LIB_DEPENDS= libuuid.so:misc/e2fsprogs-libuuid -USES= tar:tgz -USE_PHP= yes -USE_PHPEXT= yes +USES= php:ext tar:tgz .include --- devel/pecl-vld/Makefile +++ devel/pecl-vld/Makefile @@ -13,9 +13,7 @@ COMMENT= Dump the internal representation of PHP scripts LICENSE= BSD2CLAUSE -USES= tar:tgz -USE_PHP= yes -USE_PHPEXT= yes +USES= php:ext tar:tgz IGNORE_WITH_PHP= 70 CONFIGURE_ARGS= --enable-vld --- devel/pecl-weakref/Makefile +++ devel/pecl-weakref/Makefile @@ -15,10 +15,7 @@ COMMENT= PECL Weakref extension LICENSE= PHP301 LICENSE_FILE= ${WRKSRC}/LICENSE -USES= tar:tgz -USE_PHP= yes -USE_PHP_BUILD= yes -USE_PHPEXT= yes +USES= php:ext tar:tgz IGNORE_WITH_PHP= 70 CFLAGS+= -I${LOCALBASE}/include --- devel/pecl-xhprof/Makefile +++ devel/pecl-xhprof/Makefile @@ -15,9 +15,7 @@ LICENSE= APACHE20 WRKSRC= ${WRKDIR}/${DISTNAME}/extension -USE_PHP= yes -USE_PHPIZE= yes -USE_PHPEXT= yes +USES= php:ext ONLY_FOR_ARCHS= i386 amd64 IGNORE_WITH_PHP= 70 --- devel/pecl-yac/Makefile +++ devel/pecl-yac/Makefile @@ -14,9 +14,7 @@ COMMENT= Yac is a shared memory user data cache for PHP LICENSE= PHP301 -USE_PHP= yes -USE_PHPEXT= yes -USES= tar:tgz +USES= php:ext tar:tgz IGNORE_WITH_PHP= 70 OPTIONS_DEFINE= MSGPACK --- devel/pecl-zookeeper/Makefile +++ devel/pecl-zookeeper/Makefile @@ -16,10 +16,8 @@ LICENSE= PHP301 LIB_DEPENDS= libzookeeper_mt.so:devel/libzookeeper -USE_PHP= session -USE_PHP_BUILD= session -USE_PHPEXT= yes -USES= tar:tgz +USE_PHP= session:build +USES= php:ext tar:tgz IGNORE_WITH_PHP= 70 post-install: --- devel/php-jq/Makefile +++ devel/php-jq/Makefile @@ -17,11 +17,8 @@ USE_GITHUB= yes GH_ACCOUNT= kjdev GH_PROJECT= php-ext-jq -USE_PHP= yes -USE_PHPIZE= yes -USE_PHPEXT= yes IGNORE_WITH_PHP= 70 -USES= tar:tgz +USES= php:ext tar:tgz JQ_CMD= ${LOCALBASE}/bin/jq --- devel/php-maxminddb/Makefile +++ devel/php-maxminddb/Makefile @@ -23,10 +23,6 @@ GH_PROJECT= MaxMind-DB-Reader-php WRKSRC_SUBDIR= ext -USE_PHP= yes -IGNORE_WITH_PHP=4 -USE_PHPIZE= yes -USE_PHPEXT= yes -USES= tar:tgz +USES= php:ext tar:tgz .include --- devel/php-memoize/Makefile +++ devel/php-memoize/Makefile @@ -13,10 +13,7 @@ COMMENT= PHP extension which transparently caches PHP functions USE_GITHUB= yes GH_ACCOUNT= arraypad -USE_PHP= yes -USE_PHPEXT= yes -USE_PHPIZE= yes -USE_PHP_BUILD= yes +USES= php:ext PHP_MODNAME= memoize IGNORE_WITH_PHP= 70 CONFIGURE_ARGS= --enable-memoize @@ -27,21 +24,13 @@ APC_DESC= Enable memoize APC module MEMCACHED_DESC= Enable memcached storage module MEMORY_DESC= Enable the memoize memory storage module -.include +APC_CONFIGURE_ENABLE= memoize-apc +APC_BUILD_DEPENDS= ${LOCALBASE}/lib/php/${PHP_EXT_DIR}/apc.so:www/pecl-APC -.if ${PORT_OPTIONS:MAPC} -CONFIGURE_ARGS+= --enable-memoize-apc -BUILD_DEPENDS+= ${LOCALBASE}/lib/php/${PHP_EXT_DIR}/apc.so:www/pecl-APC -.endif +MEMCACHED_CONFIGURE_WITH= memoize-memcached +MEMCACHED_BUILD_DEPENDS= libmemcached>0:databases/libmemcached +MEMCACHED_RUN_DEPENDS= libmemcached>0:databases/libmemcached -.if ${PORT_OPTIONS:MMEMCACHED} -CONFIGURE_ARGS+= --with-memoize-memcached -BUILD_DEPENDS+= libmemcached>0:databases/libmemcached -RUN_DEPENDS+= libmemcached>0:databases/libmemcached -.endif +MEMORY_CONFIGURE_OFF= --disable-memoize-memory -.if empty(PORT_OPTIONS:MMEMORY) -CONFIGURE_ARGS+= --disable-memoize-memory -.endif - -.include +.include --- devel/php-scalar_objects/Makefile +++ devel/php-scalar_objects/Makefile @@ -16,10 +16,7 @@ USE_GITHUB= yes GH_ACCOUNT= nikic GH_TAGNAME= baf4985 -USE_PHP= yes -USE_PHPEXT= yes -USE_PHPIZE= yes -USE_PHP_BUILD= yes +USES= php:ext IGNORE_WITH_PHP= 70 .include --- devel/php-uprofiler/Makefile +++ devel/php-uprofiler/Makefile @@ -17,11 +17,8 @@ USE_GITHUB= yes GH_ACCOUNT= FriendsOfPHP GH_TAGNAME= 483c1e5 -WRKSRC= ${WRKDIR}/${GH_PROJECT}-${GH_TAGNAME_EXTRACT}/extension -USE_PHP= yes -USE_PHPIZE= yes -USE_PHPEXT= yes -USES= tar:tgz +WRKSRC_SUBDIR= extension +USES= php:ext tar:tgz IGNORE_WITH_PHP= 70 .include --- devel/php-xdebug/Makefile +++ devel/php-xdebug/Makefile @@ -13,10 +13,7 @@ COMMENT= Xdebug extension for PHP LICENSE= PHP30 CONFIGURE_ARGS= --enable-xdebug -USE_PHP= yes -USE_PHPIZE= yes -USE_ZENDEXT= yes -USES= tar:tgz +USES= php:zend tar:tgz SUB_FILES= pkg-message --- devel/php5-blitz-devel/Makefile +++ devel/php5-blitz-devel/Makefile @@ -13,9 +13,7 @@ COMMENT= PHP templating engine CONFLICTS= php5-blitz-0.6* -USE_PHP= yes -USE_PHP_BUILD= yes -USE_PHPEXT= yes +USES= php:ext PHP_MODNAME= blitz IGNORE_WITH_PHP= 70 --- devel/php5-blitz/Makefile +++ devel/php5-blitz/Makefile @@ -12,9 +12,7 @@ COMMENT= PHP templating engine CONFLICTS= php5-blitz-devel-[0-9]* -USE_PHP= yes -USE_PHP_BUILD= yes -USE_PHPEXT= yes +USES= php:ext IGNORE_WITH_PHP= 70 .include --- devel/php5-dav/Makefile +++ devel/php5-dav/Makefile @@ -16,10 +16,7 @@ LICENSE= ISCL LIB_DEPENDS= libneon.so:www/neon -USE_PHP= yes -USE_PHPIZE= yes -USE_PHPEXT= yes -PHP_MODNAME= dav +USES= php:ext IGNORE_WITH_PHP= 70 --- devel/php5-geshi/Makefile +++ devel/php5-geshi/Makefile @@ -12,12 +12,12 @@ COMMENT= Native PHP syntax highlighting engine LICENSE= GPLv2 +USES= php USE_GITHUB= yes GH_ACCOUNT= GeSHi GH_PROJECT= geshi-1.0 NO_BUILD= yes -USE_PHP= yes OPTIONS_DEFINE= DOCS NO_ARCH= yes --- devel/php5-ice/Makefile +++ devel/php5-ice/Makefile @@ -23,8 +23,7 @@ PLIST= ${.CURDIR}/pkg-plist MAKE_ARGS+= PHP_EXT_DIR=${PHP_EXT_DIR} ICE_HOME=${LOCALBASE} \ PHP_HOME=${LOCALBASE} OPTIMIZE=yes -USE_PHP= yes -USE_PHP_BUILD= yes +USES+= php IGNORE_WITH_PHP=70 BUILD_WRKSRC= ${WRKSRC}/php INSTALL_WRKSRC= ${WRKSRC}/php --- devel/php5-msgpack/Makefile +++ devel/php5-msgpack/Makefile @@ -15,11 +15,8 @@ USE_GITHUB= yes GH_TAGNAME= 980a652 WRKSRC_SUBDIR= php -USE_PHP= session -USE_PHP_BUILD= yes -USE_PHPIZE= yes -USE_PHPEXT= yes -PHP_MODNAME= msgpack +USES= php:ext +USE_PHP= session:build IGNORE_WITH_PHP= 70 --- devel/php5-pinba/Makefile +++ devel/php5-pinba/Makefile @@ -17,9 +17,7 @@ GH_ACCOUNT= tony2001 GH_PROJECT= pinba_extension GH_TAGNAME= f76b673 -USE_PHP= yes -USE_PHPEXT= yes -PHP_MODNAME= pinba +USES= php:ext IGNORE_WITH_PHP= 70 .include --- devel/php5-thrift/Makefile +++ devel/php5-thrift/Makefile @@ -10,10 +10,7 @@ PKGNAMEPREFIX= php5- MAINTAINER= webmaster@kibab.com COMMENT= PHP interface to Thrift -USE_PHP= yes - -USE_PHPIZE= yes -USE_PHPEXT= yes +USES= php:ext PHP_MODNAME= thrift_protocol IGNORE_WITH_PHP= 70 --- dns/pear-Net_DNS/Makefile +++ dns/pear-Net_DNS/Makefile @@ -10,7 +10,7 @@ MAINTAINER= miwi@FreeBSD.org COMMENT= Resolver library used to communicate with a DNS server PORTSCOUT= skipv:1.00b2,1.00b1 -USE_PHP= mhash +USE_PHP= hash USES= pear .include --- finance/myphpmoney/Makefile +++ finance/myphpmoney/Makefile @@ -15,9 +15,7 @@ WEBOWN?= www WEBGRP?= www APACHEDIR= ${PREFIX}/www/data INSTALLDIR= ${APACHEDIR}/myphpmoney -USES= tar:bzip2 -USE_PHP= yes -WANT_PHP_WEB= yes +USES= php:web tar:bzip2 NO_BUILD= yes PLIST_SUB+= INSTALLDIR=${INSTALLDIR:S,^${PREFIX}/,,} WWWOWN="${WEBOWN}" WWWGRP="${WEBGRP}" --- finance/php-tclink/Makefile +++ finance/php-tclink/Makefile @@ -12,8 +12,7 @@ DISTNAME= ${PORTNAME}-${PORTVERSION}-php MAINTAINER= mbowie@buzmo.com COMMENT= PHP extension for TrustCommerce credit card processing -USE_PHP= yes -USE_PHPEXT= yes +USES= php:ext USE_OPENSSL= yes IGNORE_WITH_PHP= 70 --- graphics/geos/Makefile +++ graphics/geos/Makefile @@ -26,7 +26,7 @@ PLIST_SUB= PORTVERSION=${PORTVERSION} PHP_BUILD_DEPENDS= swig3.0:devel/swig30 PHP_CONFIGURE_ENABLE= php -PHP_USE= PHP=yes PHP_BUILD=yes +PHP_USES= php:build PYTHON_BUILD_DEPENDS= swig3.0:devel/swig30 PYTHON_CONFIGURE_ENABLE=python PYTHON_USES= python:2 --- graphics/graphviz/Makefile +++ graphics/graphviz/Makefile @@ -92,7 +92,7 @@ GVEDIT_USE= qt4=qmake_build,moc_build,rcc_build,uic_build \ qt4=linguist_build,corelib,gui GHOSTSCRIPT_USES=ghostscript PERL_USES= perl5 -PHP_USE= PHP=yes PHP_BUILD=yes +PHP_USES= php:build PYTHON_USES= python:2.7,build RUBY_USE= RUBY=yes LUA_USES= lua --- graphics/pear-Image_Graph/Makefile +++ graphics/pear-Image_Graph/Makefile @@ -11,7 +11,6 @@ COMMENT= OO PEAR graph rendering package RUN_DEPENDS= ${PEARDIR}/Log.php:sysutils/pear-Log \ ${PEARDIR}/Image/Canvas.php:graphics/pear-Image_Canvas -USE_PHP= yes USES= dos2unix pear DOS2UNIX_REGEX= .*php$$ --- graphics/pecl-gmagick/Makefile +++ graphics/pecl-gmagick/Makefile @@ -15,10 +15,8 @@ LICENSE= PHP301 LIB_DEPENDS= libGraphicsMagick.so:graphics/GraphicsMagick -USES= tar:tgz +USES= php:ext tar:tgz -USE_PHP= yes -USE_PHPEXT= yes IGNORE_WITH_PHP= 70 CONFIGURE_ARGS= --with-gmagick=${LOCALBASE} --- graphics/pecl-imagick/Makefile +++ graphics/pecl-imagick/Makefile @@ -18,9 +18,7 @@ OPTIONS_DEFINE= X11 X11_LIB_DEPENDS= libMagickWand-6.so:graphics/ImageMagick X11_LIB_DEPENDS_OFF= libMagickWand-6.so:graphics/ImageMagick-nox11 -USES= pkgconfig tar:tgz localbase -USE_PHP= yes -USE_PHPEXT= yes +USES= php:ext pkgconfig tar:tgz localbase CONFIGURE_ARGS= --with-imagick=${LOCALBASE} --- graphics/pecl-imlib2/Makefile +++ graphics/pecl-imlib2/Makefile @@ -16,9 +16,7 @@ LICENSE= PHP202 LIB_DEPENDS= libImlib2.so:graphics/imlib2 -USES= tar:tgz -USE_PHP= yes -USE_PHPEXT= yes +USES= php:ext tar:tgz IGNORE_WITH_PHP= 70 # libImlib2 may or may not depend on X, however, --- graphics/pecl-qrencode/Makefile +++ graphics/pecl-qrencode/Makefile @@ -13,9 +13,7 @@ COMMENT= PECL extension for generate qrcode LIB_DEPENDS= libqrencode.so:graphics/libqrencode -USE_PHP= yes -USE_PHPEXT= yes -USES= tar:bzip2 +USES= php:ext tar:bzip2 IGNORE_WITH_PHP= 70 CONFIGURE_ARGS= --with-qrencode=${LOCALBASE} --- graphics/php-facedetect/Makefile +++ graphics/php-facedetect/Makefile @@ -22,9 +22,7 @@ GH_TAGNAME= 4b1dfe1 CPPFLAGS+= -I${LOCALBASE}/include LIBS+= -L${LOCALBASE}/lib -lopencv_core -USE_PHP= yes -USE_PHPIZE= yes -USE_PHPEXT= yes +USES= php:ext CONFIGURE_ARGS+= --with-facedetect --- graphics/php-gdal/Makefile +++ graphics/php-gdal/Makefile @@ -23,9 +23,7 @@ CFLAGS+= -fPIC IGNORE_WITH_PHP=70 MAKEFILE= GNUmakefile PHP_MOD_NAME= php_${PORTNAME} -USE_PHP= yes -USE_PHP_BUILD= yes -USES= gmake localbase tar:xz +USES= php:build gmake localbase tar:xz WRKSRC_SUBDIR= swig/php --- graphics/php-libpuzzle/Makefile +++ graphics/php-libpuzzle/Makefile @@ -18,11 +18,7 @@ LICENSE_FILE= ${WRKSRC:H:H}/COPYING LIB_DEPENDS= libpuzzle.so:graphics/libpuzzle \ libgd.so:graphics/gd -USES= tar:bzip2 -USE_PHP= yes -USE_PHPIZE= yes -USE_PHPEXT= yes -USE_PHP_BUILD= yes +USES= php:ext tar:bzip2 IGNORE_WITH_PHP= 70 WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}/php/${PORTNAME} --- graphics/php-magickwand/Makefile +++ graphics/php-magickwand/Makefile @@ -14,9 +14,7 @@ COMMENT= PHP extension to manipulate images LIB_DEPENDS= libMagickWand-6.so:graphics/ImageMagick -USES= pkgconfig -USE_PHP= yes -USE_PHPEXT= yes +USES= php:ext pkgconfig IGNORE_WITH_PHP= 70 CONFIGURE_ARGS= --with-magickwand=${LOCALBASE} --- graphics/php5-ffmpeg/Makefile +++ graphics/php5-ffmpeg/Makefile @@ -18,9 +18,6 @@ LIB_DEPENDS= libgd.so:graphics/gd \ libavutil.so:multimedia/ffmpeg IGNORE_WITH_PHP=70 -USE_PHP= yes -USE_PHPEXT= yes -USE_PHPIZE= yes -USES= localbase tar:xz +USES= localbase php:ext tar:xz .include --- graphics/phplot/Makefile +++ graphics/phplot/Makefile @@ -19,8 +19,7 @@ LIB_DEPENDS= libgd.so:graphics/gd NO_ARCH= yes NO_BUILD= yes -USES= zip -USE_PHP= yes +USES= php zip PHPLOT_DIR= ${STAGEDIR}${PREFIX}/include/php/phplot --- japanese/guesswork-classic/Makefile +++ japanese/guesswork-classic/Makefile @@ -17,8 +17,7 @@ EXPIRATION_DATE= 2016-07-04 RUN_DEPENDS= ${LOCALBASE}/share/smarty/Smarty.class.php:www/smarty2 NO_BUILD= yes -USE_PHP= yes -WANT_PHP_WEB= yes +USES= php:web SUB_FILES= pkg-message --- japanese/php5-mecab/Makefile +++ japanese/php5-mecab/Makefile @@ -12,8 +12,7 @@ COMMENT= PHP5 extension for MeCab Morphological Analyzer LIB_DEPENDS= libmecab.so:japanese/mecab -USE_PHP= yes -USE_PHPEXT= yes +USES= php:ext IGNORE_WITH_PHP= 70 CONFIGURE_ARGS= --with-mecab=${LOCALBASE}/bin/mecab-config --- lang/pecl-perl/Makefile +++ lang/pecl-perl/Makefile @@ -13,12 +13,8 @@ COMMENT= Embedded Perl LICENSE= PHP301 -USE_PHP= yes -USE_PHPIZE= yes -USE_PHPEXT= yes -USE_PHP_BUILD= yes IGNORE_WITH_PHP= 70 -USES= perl5 tar:tgz +USES= perl5 php:ext tar:tgz .include --- lang/php55-extensions/Makefile +++ lang/php55-extensions/Makefile @@ -9,11 +9,9 @@ PKGNAMESUFFIX= -extensions MAINTAINER= ale@FreeBSD.org COMMENT= "meta-port" to install PHP extensions -USES= metaport -USE_PHP= yes +USES= metaport php PHP_DEFAULT= 5.5 IGNORE_WITH_PHP=56 70 -USE_PHP_BUILD= yes OPTIONS_DEFINE= BCMATH BZ2 CALENDAR CTYPE CURL DBA \ DOM EXIF FILEINFO FILTER FTP GD GETTEXT \ --- lang/php55/Makefile +++ lang/php55/Makefile @@ -93,7 +93,7 @@ IGNORE= doesn't install the Apache module anymore:\ .endif .if defined(PKGNAMEPREFIX) -USE_PHP= yes +USES+= php PHP_DEFAULT= 5.5 IGNORE_WITH_PHP=53 54 5 USE_APACHE= 22+ --- lang/php55/Makefile.ext +++ lang/php55/Makefile.ext @@ -1,7 +1,6 @@ COMMENT= The ${PHP_MODNAME} shared extension for php -USE_PHP= yes -USE_PHPEXT= yes +USES+= php:ext PHP_MODNAME= ${PKGNAMESUFFIX:S/-//} PHP_DEFAULT= 5.5 IGNORE_WITH_PHP= 56 70 @@ -232,8 +231,7 @@ CONFIGURE_ARGS+=--enable-pdo .if ${PHP_MODNAME} == "pdo_dblib" CONFIGURE_ARGS+=--with-pdo-dblib=${LOCALBASE} -USE_PHP= pdo -USE_PHP_BUILD= yes +USE_PHP= pdo:build OPTIONS_DEFINE= MSSQL @@ -243,8 +241,7 @@ MSSQL_DESC= Enable Microsoft SQL Server support .if ${PHP_MODNAME} == "pdo_firebird" CONFIGURE_ARGS+=--with-pdo-firebird=${LOCALBASE} -USE_PHP= pdo -USE_PHP_BUILD= yes +USE_PHP= pdo:build USES+= firebird .endif @@ -255,16 +252,14 @@ OPTIONS_DEFAULT=MYSQLND MYSQLND_DESC= Use MySQL Native Driver -USE_PHP= pdo -USE_PHP_BUILD= yes +USE_PHP= pdo:build .endif .if ${PHP_MODNAME} == "pdo_odbc" LIB_DEPENDS+= libodbc.so:databases/unixODBC CONFIGURE_ARGS+=--with-pdo-odbc=unixODBC,${LOCALBASE} -USE_PHP= pdo -USE_PHP_BUILD= yes +USE_PHP= pdo:build .endif .if ${PHP_MODNAME} == "pdo_pgsql" @@ -272,16 +267,14 @@ USES+= pgsql CONFIGURE_ARGS+=--with-pdo-pgsql=${LOCALBASE} -USE_PHP= pdo -USE_PHP_BUILD= yes +USE_PHP= pdo:build .endif .if ${PHP_MODNAME} == "pdo_sqlite" USES+= sqlite CONFIGURE_ARGS+=--with-pdo-sqlite=${LOCALBASE} -USE_PHP= pdo -USE_PHP_BUILD= yes +USE_PHP= pdo:build .endif .if ${PHP_MODNAME} == "pgsql" @@ -294,8 +287,7 @@ CONFIGURE_ARGS+=--with-pgsql=${LOCALBASE} CONFIGURE_ARGS+=--enable-phar \ --with-pcre-dir=${LOCALBASE} -USE_PHP= hash -USE_PHP_BUILD= yes +USE_PHP= hash:build .endif .if ${PHP_MODNAME} == "posix" @@ -308,8 +300,7 @@ LIB_DEPENDS+= libaspell.so:textproc/aspell CONFIGURE_ARGS+=--with-pspell=${LOCALBASE} # Ugly hack to load session before psell to avoid crashes -USE_PHP= session -USE_PHP_BUILD= yes +USE_PHP= session:build .endif .if ${PHP_MODNAME} == "readline" @@ -357,8 +348,7 @@ CONFIGURE_ARGS+=--enable-soap \ USE_GNOME= libxml2 -USE_PHP= session -USE_PHP_BUILD= yes +USE_PHP= session:build .endif .if ${PHP_MODNAME} == "sockets" @@ -404,8 +394,7 @@ CONFIGURE_ARGS+=--enable-wddx \ USE_GNOME= libxml2 -USE_PHP= xml session -USE_PHP_BUILD= yes +USE_PHP= xml:build session:build .endif .if ${PHP_MODNAME} == "xml" @@ -421,8 +410,7 @@ CONFIGURE_ARGS+=--enable-xmlreader \ USE_GNOME= libxml2 -USE_PHP= dom -USE_PHP_BUILD= yes +USE_PHP= dom:build .endif .if ${PHP_MODNAME} == "xmlrpc" @@ -435,8 +423,7 @@ USE_GNOME= libxml2 PHP_HEADER_DIRS=libxmlrpc -USE_PHP= xml -USE_PHP_BUILD= yes +USE_PHP= xml:build .endif .if ${PHP_MODNAME} == "xmlwriter" @@ -450,8 +437,7 @@ USE_GNOME= libxml2 CONFIGURE_ARGS+=--with-xsl=${LOCALBASE} USE_GNOME= libxslt -USE_PHP= dom xml -USE_PHP_BUILD= yes +USE_PHP= dom:build xml:build .endif .if ${PHP_MODNAME} == "zip" --- lang/php56-extensions/Makefile +++ lang/php56-extensions/Makefile @@ -9,11 +9,9 @@ PKGNAMESUFFIX= -extensions MAINTAINER= ale@FreeBSD.org COMMENT= "meta-port" to install PHP extensions -USES= metaport -USE_PHP= yes +USES= metaport php PHP_DEFAULT= 5.6 IGNORE_WITH_PHP= 55 70 -USE_PHP_BUILD= yes OPTIONS_DEFINE= BCMATH BZ2 CALENDAR CTYPE CURL DBA \ DOM EXIF FILEINFO FILTER FTP GD GETTEXT \ --- lang/php56/Makefile +++ lang/php56/Makefile @@ -88,7 +88,7 @@ CONFIGURE_ARGS+=--enable-fpm \ .endif .if defined(PKGNAMEPREFIX) -USE_PHP= yes +USES+= php PHP_DEFAULT= 5.6 IGNORE_WITH_PHP=53 54 5 USE_APACHE= 22+ --- lang/php56/Makefile.ext +++ lang/php56/Makefile.ext @@ -1,7 +1,6 @@ COMMENT= The ${PHP_MODNAME} shared extension for php -USE_PHP= yes -USE_PHPEXT= yes +USES+= php:ext PHP_MODNAME= ${PKGNAMESUFFIX:S/-//} PHP_DEFAULT= 5.6 IGNORE_WITH_PHP= 55 70 @@ -232,8 +231,7 @@ CONFIGURE_ARGS+=--enable-pdo .if ${PHP_MODNAME} == "pdo_dblib" CONFIGURE_ARGS+=--with-pdo-dblib=${LOCALBASE} -USE_PHP= pdo -USE_PHP_BUILD= yes +USE_PHP= pdo:build OPTIONS_DEFINE= MSSQL @@ -243,8 +241,7 @@ MSSQL_DESC= Enable Microsoft SQL Server support .if ${PHP_MODNAME} == "pdo_firebird" CONFIGURE_ARGS+=--with-pdo-firebird=${LOCALBASE} -USE_PHP= pdo -USE_PHP_BUILD= yes +USE_PHP= pdo:build USES+= firebird .endif @@ -255,16 +252,14 @@ OPTIONS_DEFAULT=MYSQLND MYSQLND_DESC= Use MySQL Native Driver -USE_PHP= pdo -USE_PHP_BUILD= yes +USE_PHP= pdo:build .endif .if ${PHP_MODNAME} == "pdo_odbc" LIB_DEPENDS+= libodbc.so:databases/unixODBC CONFIGURE_ARGS+=--with-pdo-odbc=unixODBC,${LOCALBASE} -USE_PHP= pdo -USE_PHP_BUILD= yes +USE_PHP= pdo:build .endif .if ${PHP_MODNAME} == "pdo_pgsql" @@ -272,16 +267,14 @@ USES+= pgsql CONFIGURE_ARGS+=--with-pdo-pgsql=${LOCALBASE} -USE_PHP= pdo -USE_PHP_BUILD= yes +USE_PHP= pdo:build .endif .if ${PHP_MODNAME} == "pdo_sqlite" USES+= sqlite CONFIGURE_ARGS+=--with-pdo-sqlite=${LOCALBASE} -USE_PHP= pdo -USE_PHP_BUILD= yes +USE_PHP= pdo:build .endif .if ${PHP_MODNAME} == "pgsql" @@ -294,8 +287,7 @@ CONFIGURE_ARGS+=--with-pgsql=${LOCALBASE} CONFIGURE_ARGS+=--enable-phar \ --with-pcre-dir=${LOCALBASE} -USE_PHP= hash -USE_PHP_BUILD= yes +USE_PHP= hash:build .endif .if ${PHP_MODNAME} == "posix" @@ -308,8 +300,7 @@ LIB_DEPENDS+= libaspell.so:textproc/aspell CONFIGURE_ARGS+=--with-pspell=${LOCALBASE} # Ugly hack to load session before psell to avoid crashes -USE_PHP= session -USE_PHP_BUILD= yes +USE_PHP= session:build .endif .if ${PHP_MODNAME} == "readline" @@ -357,8 +348,7 @@ CONFIGURE_ARGS+=--enable-soap \ USE_GNOME= libxml2 -USE_PHP= session -USE_PHP_BUILD= yes +USE_PHP= session:build .endif .if ${PHP_MODNAME} == "sockets" @@ -404,8 +394,7 @@ CONFIGURE_ARGS+=--enable-wddx \ USE_GNOME= libxml2 -USE_PHP= xml session -USE_PHP_BUILD= yes +USE_PHP= xml:build session:build .endif .if ${PHP_MODNAME} == "xml" @@ -421,8 +410,7 @@ CONFIGURE_ARGS+=--enable-xmlreader \ USE_GNOME= libxml2 -USE_PHP= dom -USE_PHP_BUILD= yes +USE_PHP= dom:build .endif .if ${PHP_MODNAME} == "xmlrpc" @@ -435,8 +423,7 @@ USE_GNOME= libxml2 PHP_HEADER_DIRS=libxmlrpc -USE_PHP= xml -USE_PHP_BUILD= yes +USE_PHP= xml:build .endif .if ${PHP_MODNAME} == "xmlwriter" @@ -450,8 +437,7 @@ USE_GNOME= libxml2 CONFIGURE_ARGS+=--with-xsl=${LOCALBASE} USE_GNOME= libxslt -USE_PHP= dom xml -USE_PHP_BUILD= yes +USE_PHP= dom:build xml:build .endif .if ${PHP_MODNAME} == "zip" --- lang/php70-extensions/Makefile +++ lang/php70-extensions/Makefile @@ -9,11 +9,9 @@ PKGNAMESUFFIX= -extensions MAINTAINER= miwi@FreeBSD.org COMMENT= "meta-port" to install PHP extensions -USES= metaport -USE_PHP= yes +USES= metaport php PHP_DEFAULT= 7.0 IGNORE_WITH_PHP= 55 56 -USE_PHP_BUILD= yes OPTIONS_DEFINE= BCMATH BZ2 CALENDAR CTYPE CURL DBA \ DOM EXIF FILEINFO FILTER FTP GD GETTEXT \ --- lang/php70/Makefile +++ lang/php70/Makefile @@ -83,7 +83,7 @@ CONFIGURE_ARGS+=--enable-fpm \ .endif .if defined(PKGNAMEPREFIX) -USE_PHP= yes +USES+= php PHP_DEFAULT= 7.0 IGNORE_WITH_PHP= 55 56 USE_APACHE= 22+ --- lang/php70/Makefile.ext +++ lang/php70/Makefile.ext @@ -1,7 +1,6 @@ COMMENT= The ${PHP_MODNAME} shared extension for php -USE_PHP= yes -USE_PHPEXT= yes +USES+= php:ext PHP_MODNAME= ${PKGNAMESUFFIX:S/-//} PHP_DEFAULT= 7.0 IGNORE_WITH_PHP= 55 56 @@ -225,8 +224,7 @@ CONFIGURE_ARGS+=--enable-pdo .if ${PHP_MODNAME} == "pdo_dblib" CONFIGURE_ARGS+=--with-pdo-dblib=${LOCALBASE} -USE_PHP= pdo -USE_PHP_BUILD= yes +USE_PHP= pdo:build OPTIONS_DEFINE= MSSQL @@ -237,16 +235,14 @@ MSSQL_DESC= Enable Microsoft SQL Server support CONFIGURE_ARGS+=--with-pdo-firebird=${LOCALBASE} USES+= firebird -USE_PHP= pdo -USE_PHP_BUILD= yes +USE_PHP= pdo:build .endif .if ${PHP_MODNAME} == "pdo_odbc" LIB_DEPENDS+= libodbc.so:databases/unixODBC CONFIGURE_ARGS+=--with-pdo-odbc=unixODBC,${LOCALBASE} -USE_PHP= pdo -USE_PHP_BUILD= yes +USE_PHP= pdo:build .endif .if ${PHP_MODNAME} == "pdo_mysql" @@ -255,8 +251,7 @@ OPTIONS_DEFAULT=MYSQLND MYSQLND_DESC= Use MySQL Native Driver -USE_PHP= pdo -USE_PHP_BUILD= yes +USE_PHP= pdo:build .endif .if ${PHP_MODNAME} == "pdo_pgsql" @@ -264,16 +259,14 @@ USES+= pgsql CONFIGURE_ARGS+=--with-pdo-pgsql=${LOCALBASE} -USE_PHP= pdo -USE_PHP_BUILD= yes +USE_PHP= pdo:build .endif .if ${PHP_MODNAME} == "pdo_sqlite" USES+= sqlite CONFIGURE_ARGS+=--with-pdo-sqlite=${LOCALBASE} -USE_PHP= pdo -USE_PHP_BUILD= yes +USE_PHP= pdo:build .endif .if ${PHP_MODNAME} == "pgsql" @@ -286,8 +279,7 @@ CONFIGURE_ARGS+=--with-pgsql=${LOCALBASE} CONFIGURE_ARGS+=--enable-phar \ --with-pcre-dir=${LOCALBASE} -USE_PHP= hash -USE_PHP_BUILD= yes +USE_PHP= hash:build .endif .if ${PHP_MODNAME} == "posix" @@ -300,8 +292,7 @@ LIB_DEPENDS+= libaspell.so:textproc/aspell CONFIGURE_ARGS+=--with-pspell=${LOCALBASE} # Ugly hack to load session before psell to avoid crashes -USE_PHP= session -USE_PHP_BUILD= yes +USE_PHP= session:build .endif .if ${PHP_MODNAME} == "readline" @@ -349,8 +340,7 @@ CONFIGURE_ARGS+=--enable-soap \ USE_GNOME= libxml2 -USE_PHP= session -USE_PHP_BUILD= yes +USE_PHP= session:build .endif .if ${PHP_MODNAME} == "sockets" @@ -396,8 +386,7 @@ CONFIGURE_ARGS+=--enable-wddx \ USE_GNOME= libxml2 -USE_PHP= xml session -USE_PHP_BUILD= yes +USE_PHP= xml:build session:build .endif .if ${PHP_MODNAME} == "xml" @@ -413,8 +402,7 @@ CONFIGURE_ARGS+=--enable-xmlreader \ USE_GNOME= libxml2 -USE_PHP= dom -USE_PHP_BUILD= yes +USE_PHP= dom:build .endif .if ${PHP_MODNAME} == "xmlrpc" @@ -427,8 +415,7 @@ USE_GNOME= libxml2 PHP_HEADER_DIRS=libxmlrpc -USE_PHP= xml -USE_PHP_BUILD= yes +USE_PHP= xml:build .endif .if ${PHP_MODNAME} == "xmlwriter" @@ -442,8 +429,7 @@ USE_GNOME= libxml2 CONFIGURE_ARGS+=--with-xsl=${LOCALBASE} USE_GNOME= libxslt -USE_PHP= dom xml -USE_PHP_BUILD= yes +USE_PHP= dom:build xml:build .endif .if ${PHP_MODNAME} == "zip" --- lang/php_doc/Makefile +++ lang/php_doc/Makefile @@ -19,7 +19,6 @@ SLAVEDIRS= french/php_doc \ japanese/php_doc \ polish/php_doc -USE_PHPIZE= yes PHP_LANG?= en PHP_LANGS?= ${PHP_HTML_CHUNKED} ${PHP_HTML_NORMAL} PHP_HTML_CHUNKED= br de en fr ja pl ro tr --- mail/mlmmj/Makefile +++ mail/mlmmj/Makefile @@ -25,8 +25,7 @@ OPTIONS_SUB= yes PERL_RUN_DEPENDS= p5-URI>0:net/p5-URI \ p5-CGI-FastTemplate>0:www/p5-CGI-FastTemplate \ p5-HTML-Parser>0:www/p5-HTML-Parser -PHP_USE= php=yes -PHP_VERS= WANT_PHP_WEB=yes +PHP_USES= php:web post-patch: @${REINPLACE_CMD} -e \ --- mail/pecl-esmtp/Makefile +++ mail/pecl-esmtp/Makefile @@ -16,9 +16,7 @@ LICENSE= PHP30 LIB_DEPENDS= libesmtp.so:mail/libesmtp -USES= tar:tgz -USE_PHP= yes -USE_PHPEXT= yes +USES= php:ext tar:tgz IGNORE_WITH_PHP= 56 70 OPTIONS_DEFINE= RE2C --- mail/pecl-mailparse/Makefile +++ mail/pecl-mailparse/Makefile @@ -15,12 +15,8 @@ LICENSE= PHP202 BROKEN_powerpc64= Does not build -USES= tar:tgz -USE_PHP= mbstring -USE_PHPIZE= yes -USE_PHP_BUILD= yes -USE_PHPEXT= yes -PHP_MODNAME= mailparse +USES= php:ext tar:tgz +USE_PHP= mbstring:build IGNORE_WITH_PHP= 70 .include --- mail/pecl-pop3/Makefile +++ mail/pecl-pop3/Makefile @@ -12,11 +12,7 @@ DIST_SUBDIR= PECL MAINTAINER= buganini@gmail.com COMMENT= POP3 Client Library for PHP -USE_PHP= yes -USE_PHPIZE= yes -USE_PHP_BUILD= yes -USE_PHPEXT= yes -PHP_MODNAME= pop3 +USES= php:ext IGNORE_WITH_PHP= 70 .include --- mail/phpmailer/Makefile +++ mail/phpmailer/Makefile @@ -18,8 +18,7 @@ GH_PROJECT= PHPMailer NO_BUILD= yes NO_ARCH= yes -USE_PHP= yes -USES= dos2unix +USES= dos2unix php SUB_FILES= pkg-message --- mail/squirrelmail/Makefile +++ mail/squirrelmail/Makefile @@ -19,7 +19,7 @@ BROKEN_powerpc64= Does not build # patches, but the only guaranteed compatibility is with php 5.3. # If you encounter problems, downgrade to php 5.3. -USE_PHP= session mhash gettext mbstring pcre openssl xml +USE_PHP= session hash gettext mbstring pcre openssl xml WANT_PHP_WEB= yes USES= cpe gettext perl5 tar:bzip2 --- math/pecl-big_int/Makefile +++ math/pecl-big_int/Makefile @@ -11,9 +11,7 @@ DIST_SUBDIR= PECL MAINTAINER= miwi@FreeBSD.org COMMENT= Functions for calculations with arbitrary length integers and bitsets -USES= tar:tgz -USE_PHP= yes -USE_PHPEXT= yes +USES= php:ext tar:tgz IGNORE_WITH_PHP= 70 DOCS= CREDITS INSTALL LICENSE README docs/index.html libbig_int/CREDITS \ --- math/pecl-bitset/Makefile +++ math/pecl-bitset/Makefile @@ -15,8 +15,6 @@ LICENSE= PHP301 LICENSE_FILE= ${WRKSRC}/LICENSE IGNORE_WITH_PHP=55 56 -USE_PHP= yes -USE_PHPEXT= yes -USES= tar:tgz +USES= php:ext tar:tgz .include --- math/pecl-bitset2/Makefile +++ math/pecl-bitset2/Makefile @@ -18,8 +18,6 @@ LICENSE_FILE= ${WRKSRC}/LICENSE PORTSCOUT= limit:^2\. IGNORE_WITH_PHP=70 -USE_PHP= yes -USE_PHPEXT= yes -USES= tar:tgz +USES= php:ext tar:tgz .include --- math/pecl-stats/Makefile +++ math/pecl-stats/Makefile @@ -13,9 +13,7 @@ COMMENT= PECL extension which with routines for statistical computation LICENSE= PHP30 -USES= tar:tgz -USE_PHP= yes -USE_PHPEXT= yes +USES= php:ext tar:tgz IGNORE_WITH_PHP= 70 .include --- math/pecl-trader/Makefile +++ math/pecl-trader/Makefile @@ -14,8 +14,7 @@ COMMENT= Trader extension based on TA-Lib LICENSE= BSD2CLAUSE -USE_PHP= yes -USE_PHPEXT= yes +USES= php:ext IGNORE_WITH_PHP= 70 .include --- math/rkward-kde4/Makefile +++ math/rkward-kde4/Makefile @@ -21,9 +21,7 @@ USE_QT4= corelib dbus gui qmake_build moc_build network phonon rcc_build \ script svg uic_build webkit xml USE_XORG= x11 USE_KDE4= automoc4 kdelibs -USE_PHP= yes -WANT_PHP_CLI= yes -USES= cmake gettext fortran shared-mime-info +USES= cmake gettext fortran php:cli shared-mime-info INSTALLS_ICONS= yes CFLAGS+= -I${LOCALBASE}/include --- misc/achievo/Makefile +++ misc/achievo/Makefile @@ -12,8 +12,7 @@ DISTNAME= ${PORTNAME}-stable-${PORTVERSION} MAINTAINER= kevin@caomhin.demon.co.uk COMMENT= Flexible web-based resource management tool -USE_PHP= yes -WANT_PHP_MOD= yes +USES= php:mod WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} NO_BUILD= YES --- misc/pecl-timezonedb/Makefile +++ misc/pecl-timezonedb/Makefile @@ -15,8 +15,6 @@ LICENSE= PHP301 LICENSE_FILE= ${WRKSRC}/LICENSE CONFIGURE_ARGS= --enable-timezonedb -USE_PHP= yes -USE_PHPEXT= yes -USES= tar:tgz +USES= php:ext tar:tgz .include --- multimedia/php-pHash/Makefile +++ multimedia/php-pHash/Makefile @@ -16,10 +16,7 @@ LICENSE_FILE= ${WRKSRC}/LICENSE LIB_DEPENDS= libpHash.so:multimedia/pHash -USE_PHP= yes -USE_PHPIZE= yes -USE_PHPEXT= yes -USE_PHP_BUILD= yes +USES= php:ext WRKSRC_SUBDIR= bindings/php --- net-im/pecl-stomp/Makefile +++ net-im/pecl-stomp/Makefile @@ -12,10 +12,7 @@ COMMENT= PECL extension of stomp client LICENSE= PHP301 -USES= tar:tgz -USE_PHP= yes -USE_PHPIZE= yes -USE_PHPEXT= yes +USES= php:ext tar:tgz IGNORE_WITH_PHP= 70 .include --- net-mgmt/icingaweb2/Makefile +++ net-mgmt/icingaweb2/Makefile @@ -18,7 +18,7 @@ GH_ACCOUNT= icinga NO_BUILD= yes -USE_PHP_BUILD= yes # Needed for creation of webserver configs during installation +USES= php:build USE_PHP= ctype dom gd gettext hash json openssl session sockets SUB_FILES= pkg-message --- net-mgmt/nagios/Makefile +++ net-mgmt/nagios/Makefile @@ -17,9 +17,8 @@ LIB_DEPENDS= libltdl.so:devel/libltdl \ PORTSCOUT= limit:^3. -USES= cpe perl5 +USES= cpe perl5 php USE_PERL5= build -USE_PHP= yes USE_RC_SUBR= nagios CONFLICTS= nagios-[12].* nagios-devel-* nagios4-* --- net-mgmt/percona-monitoring-plugins/Makefile +++ net-mgmt/percona-monitoring-plugins/Makefile @@ -22,13 +22,11 @@ RUN_DEPENDS= cacti>=0:net-mgmt/cacti \ p5-Time-HiRes>=0:devel/p5-Time-HiRes \ bash:shells/bash -USES= shebangfix perl5 +USES= shebangfix perl5 php:cli USE_PERL5= run SHEBANG_FILES= nagios/bin/pmp-check-pt-table-checksum \ cacti/bin/pmp-cacti-* USE_MYSQL= yes -USE_PHP= yes -WANT_PHP_CLI= yes NO_BUILD= yes NO_ARCH= yes --- net/pear-Net_DNSBL/Makefile +++ net/pear-Net_DNSBL/Makefile @@ -17,7 +17,6 @@ RUN_DEPENDS:= ${PEARDIR}/Cache/Lite.php:sysutils/pear-Cache_Lite \ ${PEARDIR}/Net/DNS/RR/A.php:dns/pear-Net_DNS \ ${PEARDIR}/HTTP/Request2.php:www/pear-HTTP_Request2 -USE_PHP= yes USES= pear PORTSCOUT= skipv:1.3.0a1 --- net/pecl-amqp/Makefile +++ net/pecl-amqp/Makefile @@ -15,9 +15,7 @@ COMMENT= PHP extension for AMQP API LIB_DEPENDS= librabbitmq.so:net/rabbitmq-c-devel -PHP_MODNAME= ${PORTNAME} -USE_PHP= yes -USE_PHPEXT= yes +USES= php:ext IGNORE_WITH_PHP= 70 .include --- net/pecl-apn/Makefile +++ net/pecl-apn/Makefile @@ -17,9 +17,7 @@ LICENSE= PHP301 LIB_DEPENDS= libcapn.so:net/libcapn -USE_PHP= yes -USE_PHPIZE= yes -USE_PHPEXT= yes +USES= php:ext CONFIGURE_ARGS= --with-apn=${LOCALBASE} IGNORE_WITH_PHP= 70 --- net/pecl-cvsclient/Makefile +++ net/pecl-cvsclient/Makefile @@ -13,9 +13,7 @@ COMMENT= PHP extension for CVS pserver client LICENSE= PHP202 -USES= tar:tgz -USE_PHP= yes -USE_PHPEXT= yes +USES= php:ext tar:tgz IGNORE_WITH_PHP= 56 70 .include --- net/pecl-geoip/Makefile +++ net/pecl-geoip/Makefile @@ -15,9 +15,7 @@ LICENSE= PHP301 LIB_DEPENDS= libGeoIP.so:net/GeoIP -USE_PHP= yes -USE_PHPEXT= yes -USES= tar:tgz +USES= php:ext tar:tgz IGNORE_WITH_PHP= 70 post-patch: --- net/pecl-gupnp/Makefile +++ net/pecl-gupnp/Makefile @@ -15,9 +15,7 @@ LICENSE= PHP301 LIB_DEPENDS= libgupnp-1.0.so:net/gupnp -USE_PHP= yes -USE_PHPEXT= yes -USES= pkgconfig tar:tgz +USES= php:ext pkgconfig tar:tgz IGNORE_WITH_PHP= 70 post-patch: --- net/pecl-ip2location/Makefile +++ net/pecl-ip2location/Makefile @@ -15,10 +15,7 @@ LICENSE= PHP301 LIB_DEPENDS= libIP2Location.so:net/ip2location -USES= tar:tgz -USE_PHP= yes -USE_PHPIZE= yes -USE_PHPEXT= yes +USES= php:ext tar:tgz IGNORE_WITH_PHP= 70 .include --- net/pecl-mosquitto/Makefile +++ net/pecl-mosquitto/Makefile @@ -16,9 +16,7 @@ LICENSE= BSD3CLAUSE BUILD_DEPENDS= mosquitto>=0:net/mosquitto -USE_PHP= yes -USE_PHPEXT= yes -USES= tar:tgz +USES= php:ext tar:tgz IGNORE_WITH_PHP= 70 .include --- net/pecl-oauth/Makefile +++ net/pecl-oauth/Makefile @@ -20,9 +20,7 @@ CFLAGS+= -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib CONFIGURE_ARGS+= CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" -USES= tar:tgz -USE_PHP= yes -USE_PHPEXT= yes +USES= php:ext tar:tgz IGNORE_WITH_PHP= 70 .include --- net/pecl-radius/Makefile +++ net/pecl-radius/Makefile @@ -13,9 +13,7 @@ COMMENT= Radius client library for PHP LICENSE= BSD3CLAUSE -USES= tar:tgz -USE_PHP= yes -USE_PHPEXT= yes +USES= php:ext tar:tgz IGNORE_WITH_PHP= 70 CONFIGURE_ARGS= --enable-radius --- net/pecl-smbclient/Makefile +++ net/pecl-smbclient/Makefile @@ -15,10 +15,7 @@ LICENSE_FILE= ${WRKSRC}/LICENSE LIB_DEPENDS= libsmbclient.so:net/samba-libsmbclient -USE_PHP= yes -USE_PHPEXT= yes -USE_PHPIZE= yes -USES= tar:tgz +USES= php:ext tar:tgz CONFIGURE_ARGS= --with-libsmbclient=${LOCALBASE} --- net/pecl-yaz/Makefile +++ net/pecl-yaz/Makefile @@ -16,8 +16,7 @@ LICENSE= PHP301 LIB_DEPENDS= libyaz.so:net/yaz -USE_PHP= yes -USE_PHPEXT= yes +USES= php:ext IGNORE_WITH_PHP= 70 CONFIGURE_ARGS= --with-yaz=${LOCALBASE} --- net/pecl-yp/Makefile +++ net/pecl-yp/Makefile @@ -13,9 +13,7 @@ COMMENT= YP/NIS functions binding for PHP LICENSE= PHP301 -USE_PHP= yes -USE_PHPEXT= yes -USES= tar:tgz +USES= php:ext tar:tgz IGNORE_WITH_PHP= 70 .include --- net/pecl-zmq/Makefile +++ net/pecl-zmq/Makefile @@ -15,9 +15,6 @@ LICENSE= BSD3CLAUSE LIB_DEPENDS= libzmq.so:net/libzmq4 -USES= tar:tgz pkgconfig -USE_PHP= yes -USE_PHPIZE= yes -USE_PHPEXT= yes +USES= php:ext pkgconfig tar:tgz .include --- net/scr_ipfm/Makefile +++ net/scr_ipfm/Makefile @@ -13,7 +13,7 @@ LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/COPYING NO_BUILD= yes -USE_PHP= yes +USES= php MYADMDIR?= www/data/scr_ipfm PLIST_SUB= MYADMDIR=${MYADMDIR} SUB_FILES= pkg-message --- net/self-service-password/Makefile +++ net/self-service-password/Makefile @@ -18,7 +18,7 @@ BROKEN_powerpc64= Does not build NO_BUILD= yes NO_ARCH= yes -USE_PHP= ldap openssl session hash mhash mcrypt mbstring filter +USE_PHP= ldap openssl session hash hash mcrypt mbstring filter WANT_PHP_WEB= yes --- print/pecl-haru/Makefile +++ print/pecl-haru/Makefile @@ -16,9 +16,7 @@ LICENSE_FILE= ${WRKSRC}/LICENSE BUILD_DEPENDS= ${LOCALBASE}/include/hpdf.h:print/libharu RUN_DEPENDS:= ${LOCALBASE}/include/hpdf.h:print/libharu -USES= tar:tgz -USE_PHP= yes -USE_PHPEXT= yes +USES= php:ext tar:tgz IGNORE_WITH_PHP= 70 CONFIGURE_ARGS+= --with-haru=${LOCALBASE} --- print/pecl-pdflib/Makefile +++ print/pecl-pdflib/Makefile @@ -18,9 +18,8 @@ BROKEN_powerpc64= Does not build LIB_DEPENDS= libpdf.so:print/pdflib -USE_PHP= gd -USE_PHP_BUILD= yes -USE_PHPEXT= yes +USES= php:ext +USE_PHP= gd:build PHP_MODNAME= pdf IGNORE_WITH_PHP= 70 --- print/pecl-ps/Makefile +++ print/pecl-ps/Makefile @@ -15,10 +15,7 @@ LICENSE= PHP202 LIB_DEPENDS= libps.so:print/pslib -USES= tar:tgz -USE_PHP= yes -USE_PHPEXT= yes -PHP_MODNAME= ${PORTNAME} +USES= php:ext tar:tgz IGNORE_WITH_PHP= 70 post-patch: --- security/cryptstring/Makefile +++ security/cryptstring/Makefile @@ -16,7 +16,7 @@ EXPIRATION_DATE= 2016-07-04 LICENSE= BSD2CLAUSE NO_BUILD= yes -USE_PHP= mcrypt mhash +USE_PHP= mcrypt hash do-install: ${MKDIR} ${STAGEDIR}${DATADIR} --- security/lasso/Makefile +++ security/lasso/Makefile @@ -43,8 +43,7 @@ CONFIGURE_ARGS+= --enable-php5 \ LDFLAGS+= -L${LOCALBASE}/lib LIB_DEPENDS+= libexpat.so:textproc/expat2 PLIST_SUB+= PHP5="" -USE_PHP= yes -USE_PHP_BUILD= yes +USES+= php:build .else CONFIGURE_ARGS+= --disable-php5 PLIST_SUB+= PHP5="@comment " --- security/pear-Crypt_CHAP/Makefile +++ security/pear-Crypt_CHAP/Makefile @@ -9,6 +9,6 @@ MAINTAINER= miwi@FreeBSD.org COMMENT= PEAR class for generating CHAP packets USES= pear -USE_PHP= mcrypt mhash +USE_PHP= mcrypt hash .include --- security/pear-File_SMBPasswd/Makefile +++ security/pear-File_SMBPasswd/Makefile @@ -12,6 +12,6 @@ BUILD_DEPENDS= ${PEARDIR}/Crypt/CHAP.php:security/pear-Crypt_CHAP RUN_DEPENDS= ${PEARDIR}/Crypt/CHAP.php:security/pear-Crypt_CHAP USES= pear -USE_PHP= mhash +USE_PHP= hash .include --- security/pear-Horde_Crypt_Blowfish/Makefile +++ security/pear-Horde_Crypt_Blowfish/Makefile @@ -17,7 +17,7 @@ MHASH_DESC= Depend on mhash PHP extension OPENSSL_DESC= Depend on OpenSSL PHP extension USES= horde -MHASH_USE= PHP=mhash +MHASH_USE= PHP=hash OPENSSL_USE= PHP=openssl .include --- security/pear-Text_Password/Makefile +++ security/pear-Text_Password/Makefile @@ -8,7 +8,6 @@ CATEGORIES= security www pear MAINTAINER= miwi@FreeBSD.org COMMENT= PEAR random password creator -USE_PHP= yes USES= pear WRKSRC= ${WRKDIR}/Text_Password-${PORTVERSION} --- security/pecl-crack/Makefile +++ security/pecl-crack/Makefile @@ -16,12 +16,7 @@ LICENSE= PHP30 LIB_DEPENDS= libcrack.so:security/cracklib -USES= tar:tgz -USE_PHP= yes -USE_PHPIZE= yes -USE_PHP_BUILD= yes -USE_PHPEXT= yes -PHP_MODNAME= crack +USES= php:ext tar:tgz IGNORE_WITH_PHP= 70 EXTRACT_AFTER_ARGS=--no-same-permissions --no-same-owner --exclude libcrack --- security/pecl-crypto/Makefile +++ security/pecl-crypto/Makefile @@ -13,11 +13,8 @@ COMMENT= Objective wrapper for OpenSSL Crypto Library LICENSE= PHP301 -USES= tar:tgz +USES= php:ext tar:tgz CONFIGURE_ARGS= --with-crypto USE_OPENSSL= yes -USE_PHP= yes -USE_PHPEXT= yes -USE_PHPIZE= yes .include --- security/pecl-gnupg/Makefile +++ security/pecl-gnupg/Makefile @@ -18,9 +18,7 @@ LIB_DEPENDS= libgpgme.so:security/gpgme CONFIGURE_ARGS= --with-gnupg=${LOCALBASE}/include IGNORE_WITH_PHP=70 -USE_PHP= yes -USE_PHPEXT= yes -USES= localbase tar:tgz +USES= localbase php:ext tar:tgz post-patch: @${REINPLACE_CMD} -e 's|$$GNUPG_DIR/lib|${LOCALBASE}/lib|; s| -ldl||g' ${WRKSRC}/config.m4 --- security/pecl-pam/Makefile +++ security/pecl-pam/Makefile @@ -12,10 +12,7 @@ COMMENT= PECL classes for PAM integration LICENSE= PHP202 -USES= tar:tgz -USE_PHP= yes -USE_PHPIZE= yes -USE_PHPEXT= yes +USES= php:ext tar:tgz IGNORE_WITH_PHP= 70 .include --- security/pecl-scrypt/Makefile +++ security/pecl-scrypt/Makefile @@ -15,10 +15,8 @@ LICENSE= BSD2CLAUSE BROKEN_powerpc64= Does not build -USES= compiler tar:tgz -USE_PHP= hash -USE_PHPEXT= yes -USE_PHP_BUILD= yes +USES= compiler php:ext tar:tgz +USE_PHP= hash:build INSTALL_TARGET= install-strip IGNORE_WITH_PHP= 70 --- security/pecl-ssh2/Makefile +++ security/pecl-ssh2/Makefile @@ -14,9 +14,7 @@ LICENSE= PHP301 LIB_DEPENDS= libssh2.so:security/libssh2 -USES= tar:tgz -USE_PHP= yes -USE_PHPEXT= yes +USES= php:ext tar:tgz IGNORE_WITH_PHP= 70 CPPFLAGS+= -I${LOCALBASE}/include --- security/pecl-tcpwrap/Makefile +++ security/pecl-tcpwrap/Makefile @@ -13,9 +13,7 @@ COMMENT= PECL extension which provides tcpwrappers binding LICENSE= PHP202 -USES= tar:tgz -USE_PHP= yes -USE_PHPEXT= yes +USES= php:ext tar:tgz IGNORE_WITH_PHP= 56 70 post-patch: --- security/php-suhosin/Makefile +++ security/php-suhosin/Makefile @@ -16,9 +16,8 @@ BROKEN_powerpc64= Does not build OPTIONS_DEFINE= EXAMPLES -USE_PHP= session -USE_PHPEXT= yes -USE_PHP_BUILD= yes +USES= php:ext +USE_PHP= session:build IGNORE_WITH_PHP= 70 CONFIGURE_ARGS= --enable-suhosin --- security/snortreport/Makefile +++ security/snortreport/Makefile @@ -18,23 +18,16 @@ JPGRAPH_DESC= Graphical charting BARNYARD_RUN_DEPENDS= barnyard2:security/barnyard2 JPGRAPH_RUN_DEPENDS= ${LOCALBASE}/share/jpgraph/jpgraph.php:graphics/jpgraph2 -.include NO_BUILD= yes SUB_FILES= pkg-message PORTDOCS= INSTALL Performance.txt create_indexes.sql FTYPES= css html js php phps png sample -USE_PHP= yes -WANT_PHP_WEB= yes +USES= php:web -.if ${PORT_OPTIONS:MMYSQL} -USE_PHP+= mysql -.endif - -.if ${PORT_OPTIONS:MPGSQL} -USE_PHP+= pgsql -.endif +MYSQL_USE= php=mysql +PGSQL_USE= php=pgsql pre-everything:: @${ECHO} "" @@ -50,10 +43,8 @@ do-install: ${INSTALL} -o ${WWWOWN} -g ${WWWGRP} -m 750 -d ${STAGEDIR}${WWWDIR} ${INSTALL_DATA} ${FTYPES:S|^|${WRKSRC}/*|} ${STAGEDIR}${WWWDIR} -post-install: -.if ${PORT_OPTIONS:MDOCS} +post-install-DOCS-on: ${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR} -.endif .include --- sysutils/gosa/Makefile +++ sysutils/gosa/Makefile @@ -19,7 +19,7 @@ RUN_DEPENDS= p5-Crypt-SmbHash>=0.12:security/p5-Crypt-SmbHash \ pecl-imagick>=2.2.2:graphics/pecl-imagick USES= tar:bzip2 -USE_PHP= gettext iconv imap ldap mbstring mhash mysql pcre posix \ +USE_PHP= gettext iconv imap ldap mbstring hash mysql pcre posix \ session spl xml zlib NO_BUILD= yes --- sysutils/pear-File_Gettext/Makefile +++ sysutils/pear-File_Gettext/Makefile @@ -9,6 +9,5 @@ MAINTAINER= miwi@FreeBSD.org COMMENT= PEAR GNU Gettext file parser USES= pear -USE_PHP= yes .include --- sysutils/pear-Log/Makefile +++ sysutils/pear-Log/Makefile @@ -11,7 +11,6 @@ COMMENT= PEAR logging utilities LICENSE= MIT USES= pear -USE_PHP= yes OPTIONS_DEFINE= PEAR_DB PEAR_MDB2 PEAR_MAIL PEAR_SQLITE PEAR_DB_DESC= PEAR::DB support --- sysutils/pear-Translation2/Makefile +++ sysutils/pear-Translation2/Makefile @@ -12,7 +12,6 @@ COMMENT= PEAR class for multilingual applications management USES= pear shebangfix SHEBANG_FILES= scripts/t2xmlchk.php NO_ARCH= yes -USE_PHP= yes OPTIONS_DEFINE= PEAR_CACHE_LITE PEAR_DB PEAR_DB_DATAOBJECT PEAR_MDB PEAR_MDB2 \ PEAR_FILE_GETTEXT PEAR_I18NV2 PEAR_XML_SERIALIZER --- sysutils/pecl-mogilefs/Makefile +++ sysutils/pecl-mogilefs/Makefile @@ -16,10 +16,7 @@ LICENSE= BSD LIB_DEPENDS= libneon.so:www/neon -USE_PHP= yes -USE_PHP_BUILD= spl -USE_PHPIZE= yes -USE_PHPEXT= yes +USES= php:ext IGNORE_WITH_PHP= 70 post-extract: --- sysutils/pecl-proctitle/Makefile +++ sysutils/pecl-proctitle/Makefile @@ -12,7 +12,6 @@ DIST_SUBDIR= PECL MAINTAINER= flo@FreeBSD.org COMMENT= PECL extension that allows changing the current process' name -USE_PHP= yes -USE_PHPEXT= yes +USES= php:ext .include --- textproc/libmrss-php/Makefile +++ textproc/libmrss-php/Makefile @@ -20,11 +20,9 @@ GNU_CONFIGURE= yes CPPFLAGS+= -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib -USES= libtool +USES= libtool php:ext USE_LDCONFIG= yes -USE_PHP= yes -USE_PHPEXT= yes PHP_MODNAME= mrss IGNORE_WITH_PHP= 70 WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}/phpmrss --- textproc/mysqlviz/Makefile +++ textproc/mysqlviz/Makefile @@ -12,9 +12,7 @@ COMMENT= MySQL and SQLite Database Visualisation Tool LICENSE= GPLv3 NO_BUILD= yes -USES= tar:bzip2 -USE_PHP= yes -WANT_PHP_CLI= yes +USES= php:cli tar:bzip2 PLIST_FILES= bin/${PORTNAME} --- textproc/pecl-cld/Makefile +++ textproc/pecl-cld/Makefile @@ -16,11 +16,7 @@ LICENSE= BSD2CLAUSE LIB_DEPENDS= libcld.so:devel/cld CONFIGURE_ARGS= --enable-cld --with-libcld-dir=${LOCALBASE}/lib -USES= tar:tgz -USE_PHP= yes -USE_PHP_BUILD= yes -USE_PHPIZE= yes -USE_PHPEXT= yes +USES= php:ext tar:tgz IGNORE_WITH_PHP= 70 post-install: --- textproc/pecl-ctemplate/Makefile +++ textproc/pecl-ctemplate/Makefile @@ -13,9 +13,7 @@ COMMENT= PECL extension for ctemplate library LIB_DEPENDS= libctemplate.so:textproc/google-ctemplate -USES= tar:xz -USE_PHP= yes -USE_PHPEXT= yes +USES= php:ext tar:xz USE_GITHUB= yes GH_ACCOUNT= vanillahsu GH_PROJECT= pecl-ctemplate --- textproc/pecl-doublemetaphone/Makefile +++ textproc/pecl-doublemetaphone/Makefile @@ -14,10 +14,7 @@ COMMENT= PECL extension which implements the Double Metaphone algorithm LICENSE= PHP301 LICENSE_FILE= ${WRKSRC}/LICENSE -USES= tar:tgz -USE_PHP= yes -USE_PHP_BUILD= yes -USE_PHPEXT= yes +USES= php:ext tar:tgz IGNORE_WITH_PHP= 70 CONFIGURE_ARGS= --enable-doublemetaphone --- textproc/pecl-enchant/Makefile +++ textproc/pecl-enchant/Makefile @@ -15,10 +15,7 @@ LICENSE= PHP30 LIB_DEPENDS= libenchant.so:textproc/enchant -USES= tar:tgz -USE_PHP= yes -USE_PHPEXT= yes -PHP_MODNAME= ${PORTNAME} +USES= php:ext tar:tgz IGNORE_WITH_PHP= 56 70 CONFIGURE_ARGS+= --with-enchant=${LOCALBASE} --- textproc/pecl-html_parse/Makefile +++ textproc/pecl-html_parse/Makefile @@ -16,10 +16,7 @@ LICENSE= PHP30 BUILD_DEPENDS= ${LOCALBASE}/lib/libekhtml.a:textproc/ekhtml RUN_DEPENDS= ${LOCALBASE}/lib/libekhtml.a:textproc/ekhtml -USES= tar:tgz -USE_PHP= yes -USE_PHP_BUILD= yes -USE_PHPEXT= yes +USES= php:ext tar:tgz IGNORE_WITH_PHP= 56 70 CONFIGURE_ARGS= --enable-html_parse --- textproc/pecl-stem/Makefile +++ textproc/pecl-stem/Makefile @@ -14,9 +14,7 @@ COMMENT= PECL extension which provides word stemming LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/COPYING -USES= tar:tgz -USE_PHP= yes -USE_PHPEXT= yes +USES= php:ext tar:tgz IGNORE_WITH_PHP= 70 post-configure: --- textproc/pecl-syck/Makefile +++ textproc/pecl-syck/Makefile @@ -18,10 +18,8 @@ BROKEN_powerpc64= Does not build BUILD_DEPENDS= ${LOCALBASE}/lib/libsyck.a:textproc/syck -USES= tar:tgz -USE_PHP= spl hash -USE_PHP_BUILD= yes -USE_PHPEXT= yes +USES= php:ext tar:tgz +USE_PHP= spl:build hash:build IGNORE_WITH_PHP= 70 CONFIGURE_ARGS= --enable-syck --- textproc/pecl-wbxml/Makefile +++ textproc/pecl-wbxml/Makefile @@ -14,12 +14,10 @@ COMMENT= PECL extension that provides WBXML conversion capabilities LIB_DEPENDS= libwbxml2.so:textproc/wbxml2 -USES=tar:tgz +USES= php:ext tar:tgz CONFIGURE_ARGS= --with-wbxml=${LOCALBASE} \ --with-libexpat-dir=${LOCALBASE} -USE_PHP= yes -USE_PHPEXT= yes IGNORE_WITH_PHP= 70 post-patch: --- textproc/pecl-xdiff/Makefile +++ textproc/pecl-xdiff/Makefile @@ -15,9 +15,7 @@ LICENSE= PHP301 LIB_DEPENDS= libxdiff.so:textproc/libxdiff -USES= tar:tgz -USE_PHP= yes -USE_PHPEXT= yes +USES= php:ext tar:tgz IGNORE_WITH_PHP= 70 LDFLAGS+= -L${LOCALBASE}/lib --- textproc/pecl-xslcache/Makefile +++ textproc/pecl-xslcache/Makefile @@ -13,10 +13,8 @@ COMMENT= Caches the parsed XSL stylesheet between sessions LICENSE= PHP301 -USES= tar:tgz -USE_PHP= dom xml xsl -USE_PHP_BUILD= yes -USE_PHPEXT= yes +USES= php:ext tar:tgz +USE_PHP= dom:build xml:build xsl:build IGNORE_WITH_PHP= 70 .include --- textproc/pecl-yaml/Makefile +++ textproc/pecl-yaml/Makefile @@ -16,10 +16,7 @@ LICENSE_FILE= ${WRKSRC}/LICENSE LIB_DEPENDS= libyaml.so:textproc/libyaml -USES= tar:tgz -USE_PHP= yes -USE_PHP_BUILD= yes -USE_PHPEXT= yes +USES= php:ext tar:tgz IGNORE_WITH_PHP= 70 .include --- textproc/php-mecab/Makefile +++ textproc/php-mecab/Makefile @@ -1,11 +1,10 @@ # Created by: Gasol Wu # $FreeBSD$ -PORTNAME= mecab +PORTNAME= php-mecab PORTVERSION= 0.6.0 DISTVERSIONPREFIX= v CATEGORIES= textproc -PKGNAMEPREFIX= php- MAINTAINER= gasol.wu@gmail.com COMMENT= PHP bindings of the MeCab @@ -16,13 +15,9 @@ LIB_DEPENDS= libmecab.so:japanese/mecab USE_GITHUB= yes GH_ACCOUNT= rsky -GH_PROJECT= ${PKGNAMEPREFIX}${PORTNAME} -WRKSRC= ${WRKDIR}/${GH_PROJECT}-${GH_TAGNAME_EXTRACT}/mecab +WRKSRC_SUBDIR= mecab CONFIGURE_ARGS+= --with-mecab=${LOCALBASE}/bin/mecab-config -USE_PHP= yes -USE_PHPIZE= yes -USE_PHPEXT= yes -USES= tar:tgz +USES= php:ext tar:tgz .include --- textproc/redland-bindings/Makefile +++ textproc/redland-bindings/Makefile @@ -28,7 +28,7 @@ PERL_CONFIGURE_WITH= perl PERL_USES= perl5 PERL_USE= PERL5=build,run PHP_CONFIGURE_WITH= php -PHP_USE= PHP=yes PHP_BUILD=yes +PHP_USES= php:build PYTHON_CONFIGURE_WITH= python PYTHON_USES= python RUBY_CONFIGURE_WITH= ruby --- textproc/zorba/Makefile +++ textproc/zorba/Makefile @@ -64,7 +64,7 @@ LOC_EXECINFO= ${LOCALBASE}/lib/libexecinfo.so .if ${PORT_OPTIONS:MPHP} USE_PHP= tokenizer -USE_PHP_BUILD= yes +USES+= php:build WITH_SWIG= yes CMAKE_ARGS+= -DPHP5_INSTALL_PATH:FILEPATH="lib/php/${PHP_EXT_DIR}" PLIST_SUB+= PHP_EXTLIBDIR="lib/php/${PHP_EXT_DIR}" --- www/ach/Makefile +++ www/ach/Makefile @@ -13,7 +13,7 @@ COMMENT= Free, open source tool for complex research problems LICENSE= GPLv3 USE_MYSQL= yes -USE_PHP= yes +USES= php USE_GITHUB= yes GH_ACCOUNT= Burton GH_PROJECT= Analysis-of-Competing-Hypotheses --- www/caldavzap/Makefile +++ www/caldavzap/Makefile @@ -14,8 +14,7 @@ COMMENT= CalDAV web client implementation LICENSE= AGPLv3 WRKSRC= ${WRKDIR}/${PORTNAME} -USE_PHP= yes -USES= zip +USES= php zip NO_BUILD= yes do-install: --- www/crp/Makefile +++ www/crp/Makefile @@ -12,8 +12,7 @@ EXTRACT_SUFX= .tgz MAINTAINER= lars.eggert@gmx.net COMMENT= Automates the process of being the program chair of a conference -USE_PHP= yes -WANT_PHP_WEB= yes +USES= php:web NO_BUILD= yes PLIST_SUB= WWWOWN="${WWWOWN}" WWWGRP="${WWWGRP}" --- www/dddbl/Makefile +++ www/dddbl/Makefile @@ -9,13 +9,11 @@ MASTER_SITES= http://www.dddbl.de/dddbl-versions/ MAINTAINER= tz@FreeBSD.org COMMENT= Definition Driven Database Layer for PHP -USES= tar:bzip2 +USES= php tar:bzip2 NO_BUILD= yes NO_ARCH= yes -USE_PHP= yes - WRKSRC= ${WRKDIR}/dddbl2 do-install: --- www/encode-explorer/Makefile +++ www/encode-explorer/Makefile @@ -11,9 +11,7 @@ DISTNAME= ${PORTNAME}${PKGNAMESUFFIX}_${PORTVERSION} MAINTAINER= fw@moov.de COMMENT= PHP script to browse, create folders, upload files etc -USE_PHP= yes -WANT_PHP_WEB= yes -USES= zip +USES= php:web zip NO_BUILD= yes OPTIONS_DEFINE= DOCS --- www/flat-frog/Makefile +++ www/flat-frog/Makefile @@ -13,8 +13,7 @@ LICENSE= LGPL21+ LICENSE_FILE= ${WRKSRC}/COPYING NO_BUILD= yes -USE_PHP= yes -USES= zip +USES= php zip OPTIONS_DEFINE= DOCS EXAMPLES --- www/fluxbb/Makefile +++ www/fluxbb/Makefile @@ -14,10 +14,9 @@ LICENSE_FILE= ${WRKSRC}/COPYING BROKEN_powerpc64= Does not build -USES= cpe +USES= cpe php SUB_FILES= pkg-message NO_BUILD= yes -USE_PHP= yes OPTIONS_DEFINE= MYSQL PGSQL SQLITE OPTIONS_DEFAULT= MYSQL --- www/geeklog/Makefile +++ www/geeklog/Makefile @@ -12,7 +12,7 @@ COMMENT= Web content management system LICENSE= GPLv2+ -USES= cpe +USES= cpe php PLIST_SUB= WWWOWN="${WWWOWN}" WWWGRP="${WWWGRP}" SUB_FILES= pkg-message @@ -20,7 +20,6 @@ SUB_FILES= pkg-message USE_MYSQL= yes NO_BUILD= yes -USE_PHP= yes do-install: @${MKDIR} ${STAGEDIR}${WWWDIR} --- www/iwebcal/Makefile +++ www/iwebcal/Makefile @@ -10,10 +10,9 @@ MASTER_SITES= SF MAINTAINER= ports@FreeBSD.org COMMENT= Webbased iCal calendar viewer -USES= tar:tgz +USES= php tar:tgz NO_BUILD= yes NO_ARCH= yes -USE_PHP= yes WRKSRC= ${WRKDIR}/iWebCal PLIST_SUB= WWWOWN="${WWWOWN}" WWWGRP="${WWWGRP}" --- www/mod_myvhost/Makefile +++ www/mod_myvhost/Makefile @@ -35,8 +35,7 @@ STRIP= # keep debug information .if ${PORT_OPTIONS:MPHP_MODULE} MAKE_ENV+= WITH_PHP=true -USE_PHP= yes -WANT_PHP_MOD= yes +USES+= php:mod .endif pre-patch: --- www/mod_vhs/Makefile +++ www/mod_vhs/Makefile @@ -14,12 +14,9 @@ LICENSE= APACHE11 MANUAL_PACKAGE_BUILD= needs apr with LDAP and DBD options enabled -USES= cpe +USES= php:mod,build cpe CPE_VENDOR= xavier_beaudouin USE_APACHE= 22+ -USE_PHP= yes -USE_PHP_BUILD= yes -WANT_PHP_MOD= yes AP_FAST_BUILD= yes AP_GENPLIST= yes SRC_FILE= *.c --- www/pecl-APC/Makefile +++ www/pecl-APC/Makefile @@ -31,9 +31,7 @@ IGNORE_WITH_PHP=55 56 70 PHP_MODNAME= ${PORTNAME:tl} PKGMESSAGE= ${WRKDIR}/pkg-message SUB_FILES= pkg-message -USE_PHP= yes -USE_PHPEXT= yes -USES= tar:tgz +USES= php:ext tar:tgz PORTDOCS= CHANGELOG INSTALL NOTICE apc.php --- www/pecl-amfext/Makefile +++ www/pecl-amfext/Makefile @@ -14,9 +14,7 @@ COMMENT= Implements encoding and decoding of AMF and AMF3 messages LICENSE= PHP30 -USES= dos2unix libtool tar:tgz -USE_PHP= yes -USE_PHPEXT= yes +USES= dos2unix libtool php:ext tar:tgz PHP_MODNAME= amf IGNORE_WITH_PHP= 70 --- www/pecl-http/Makefile +++ www/pecl-http/Makefile @@ -26,9 +26,7 @@ LIB_DEPENDS= libcurl.so:ftp/curl \ PHP_DEFAULT= 7.0 IGNORE_WITH_PHP= 55 56 -USES= tar:tgz -USE_PHP= yes -USE_PHPEXT= yes +USES= php:ext tar:tgz CONFLICTS= pecl-http[12]* .include --- www/pecl-http1/Makefile +++ www/pecl-http1/Makefile @@ -17,10 +17,7 @@ LICENSE_FILE= ${WRKSRC}/LICENSE LIB_DEPENDS= libcurl.so:ftp/curl -USES= tar:tgz -USE_PHP= yes -USE_PHPEXT= yes -PHP_MODNAME= http +USES= php:ext tar:tgz IGNORE_WITH_PHP= 56 70 CONFLICTS= pecl-http-* --- www/pecl-http2/Makefile +++ www/pecl-http2/Makefile @@ -24,9 +24,7 @@ LIB_DEPENDS= libcurl.so:ftp/curl \ libevent.so:devel/libevent2 IGNORE_WITH_PHP=70 -USES= tar:tgz -USE_PHP= yes -USE_PHPEXT= yes +USES= php:ext tar:tgz CONFLICTS= pecl-http1* pecl-http-* .include --- www/pecl-solr/Makefile +++ www/pecl-solr/Makefile @@ -16,10 +16,8 @@ BROKEN_powerpc64= Does not build LIB_DEPENDS= libcurl.so:ftp/curl \ libxml2.so:textproc/libxml2 -USE_PHP= json -USE_PHPEXT= yes -USE_PHPIZE= yes -USE_PHP_BUILD= yes +USES= php:ext +USE_PHP= json:build IGNORE_WITH_PHP= 70 .include --- www/pecl-sphinx/Makefile +++ www/pecl-sphinx/Makefile @@ -15,9 +15,7 @@ LICENSE= PHP301 LIB_DEPENDS= libsphinxclient.so:textproc/libsphinxclient -USES= tar:tgz -USE_PHP= yes -USE_PHPEXT= yes +USES= php:ext tar:tgz IGNORE_WITH_PHP= 70 SUB_FILES= pkg-message --- www/pecl-swish/Makefile +++ www/pecl-swish/Makefile @@ -16,9 +16,7 @@ LICENSE= PHP301 BUILD_DEPENDS= swish-config:www/swish-e RUN_DEPENDS:= swish-config:www/swish-e -USES= tar:tgz -USE_PHP= yes -USE_PHPEXT= yes +USES= php:ext tar:tgz IGNORE_WITH_PHP= 70 CONFIGURE_ARGS= --enable-swish --with-swish=${LOCALBASE}/bin --- www/pecl-twig/Makefile +++ www/pecl-twig/Makefile @@ -13,10 +13,7 @@ COMMENT= Twig C extension to improve performance of the Twig template language LICENSE= BSD3CLAUSE -USE_PHP= yes -USE_PHPIZE= yes -USE_PHPEXT= yes -USES= tar:tgz +USES= php:ext tar:tgz IGNORE_WITH_PHP= 70 .include --- www/pecl-varnish/Makefile +++ www/pecl-varnish/Makefile @@ -20,10 +20,8 @@ EXPIRATION_DATE= 2016-07-04 BUILD_DEPENDS= varnish4>=0:www/varnish4 -USES= tar:tgz -USE_PHP= hash -USE_PHP_BUILD= yes -USE_PHPEXT= yes +USES= php:ext tar:tgz +USE_PHP= hash:build IGNORE_WITH_PHP= 52 --- www/pecl-yaf/Makefile +++ www/pecl-yaf/Makefile @@ -18,11 +18,7 @@ LIB_DEPENDS= libpcre.so:devel/pcre CFLAGS+= -I${LOCALBASE}/include CONFIGURE_ARGS= --with-php-config=${PREFIX}/bin/php-config -USES= tar:tgz -PHP_MODNAME= ${PORTNAME:tl} -USE_PHP= yes -USE_PHPEXT= yes -USE_PHPIZE= yes +USES= php:ext tar:tgz IGNORE_WITH_PHP= 70 .include --- www/pecl-yar/Makefile +++ www/pecl-yar/Makefile @@ -15,12 +15,8 @@ LICENSE= PHP301 BROKEN_powerpc64= Does not build -USES= tar:tgz -PHP_MODNAME= yar -USE_PHP= json curl -USE_PHPEXT= yes -USE_PHPIZE= yes -USE_PHP_BUILD= yes +USES= php:ext tar:tgz +USE_PHP= json:build curl:build IGNORE_WITH_PHP= 70 CFLAGS+= -I${LOCALBASE}/include --- www/phalcon/Makefile +++ www/phalcon/Makefile @@ -11,10 +11,8 @@ COMMENT= Phalcon PHP Framework written in C-language LICENSE= BSD3CLAUSE -USE_PHP= hash pdo -USE_PHPEXT= yes -USE_PHPIZE= yes -USE_PHP_BUILD= yes +USES= php:ext +USE_PHP= hash:build pdo:build IGNORE_WITH_PHP= 70 ONLY_FOR_ARCHS= amd64 i386 --- www/php-screw/Makefile +++ www/php-screw/Makefile @@ -13,9 +13,8 @@ COMMENT= PHP script encryption tool CRYPTKEY?= 11152, 368, 192, 1281, 62 -USES= libtool +USES= php:phpize libtool USE_PHP= zlib -USE_PHPIZE= yes PLIST_SUB= PHP_EXTDIR="${PHP_EXT_DIR}" SUB_FILES= pkg-message --- www/php-templates/Makefile +++ www/php-templates/Makefile @@ -15,10 +15,8 @@ MAINTAINER= ports@FreeBSD.org COMMENT= Template framework for PHP WRKSRC= ${WRKDIR}/templates -USES= dos2unix +USES= dos2unix php:phpize -USE_PHP= yes -USE_PHPIZE= yes IGNORE_WITH_PHP= 70 CONFIGURE_ARGS= --enable-templates=shared --- www/php55-opcache/Makefile +++ www/php55-opcache/Makefile @@ -7,6 +7,6 @@ MASTERDIR= ${.CURDIR}/../../lang/php55 PKGNAMESUFFIX= -opcache -USE_ZENDEXT= yes +USES= php:zend .include "${MASTERDIR}/Makefile" --- www/php56-opcache/Makefile +++ www/php56-opcache/Makefile @@ -7,6 +7,6 @@ MASTERDIR= ${.CURDIR}/../../lang/php56 PKGNAMESUFFIX= -opcache -USE_ZENDEXT= yes +USES= php:zend .include "${MASTERDIR}/Makefile" --- www/php70-opcache/Makefile +++ www/php70-opcache/Makefile @@ -7,6 +7,6 @@ MASTERDIR= ${.CURDIR}/../../lang/php70 PKGNAMESUFFIX= -opcache -USE_ZENDEXT= yes +USES= php:zend .include "${MASTERDIR}/Makefile" --- www/phpbb3/Makefile +++ www/phpbb3/Makefile @@ -16,8 +16,7 @@ LICENSE= GPLv2 CONFLICTS= phpbb-tw-[0-9]* phpbb-devel-[0-9]* \ phpbb-[0-2]* -USES= tar:bzip2 -USE_PHP= yes +USES= php tar:bzip2 OPTIONS_DEFINE= DOCS --- www/phpgroupware/Makefile +++ www/phpgroupware/Makefile @@ -8,9 +8,7 @@ MASTER_SITES= SF/phpgroupware/phpgroupware/${PORTVERSION} MAINTAINER= olgeni@FreeBSD.org COMMENT= Web based GroupWare system -USES= tar:bzip2 -USE_PHP= yes -WANT_PHP_MOD= yes +USES= php:mod tar:bzip2 IGNORE_WITH_PHP= 70 NO_BUILD= yes --- www/phpmustache/Makefile +++ www/phpmustache/Makefile @@ -16,8 +16,7 @@ USE_GITHUB= yes GH_ACCOUNT= bobthecow GH_PROJECT= mustache.php -USE_PHP= yes -USE_PHP_BUILD= yes +USES= php:build NO_ARCH= yes SUB_FILES= pkg-message --- www/phpwebapp/Makefile +++ www/phpwebapp/Makefile @@ -11,9 +11,7 @@ COMMENT= Web application framework NO_ARCH= yes NO_BUILD= yes -USE_PHP= yes -USES= shebangfix -WANT_PHP_WEB= yes +USES= php:web shebangfix SHEBANG_FILES= web_app/boxes/menu/edit/xsl/test/*.sh \ web_app/boxes/webnotes/db/dump.sh \ --- www/pnews/Makefile +++ www/pnews/Makefile @@ -13,8 +13,7 @@ COMMENT= PHP Web-based News Reader LICENSE= GPLv2+ -USES= tar:tgz -USE_PHP= yes +USES= php tar:tgz NO_BUILD= yes PNEWSDIR?= www/pnews --- www/pserv/Makefile +++ www/pserv/Makefile @@ -21,24 +21,19 @@ OPTIONS_DEFINE= LOG PHP OPTIONS_DEFAULT= LOG PHP LOG_DESC= Enable loggin -.include - -.if ${PORT_OPTIONS:MPHP} -USE_PHP= yes -WANT_PHP_CGI= yes -.endif +PHP_USES= php:cgi post-patch: @${REINPLACE_CMD} "s|%%PREFIX%%|${PREFIX}|g;s|%%LOCALBASE%%|${LOCALBASE}|g" \ ${WRKSRC}/defaults/pserv.conf ${WRKSRC}/sources/main.h -.if ! ${PORT_OPTIONS:MLOG} + +post-patch-LOG-off: @${REINPLACE_CMD} "s|define LOG|undef LOG|" \ ${WRKSRC}/sources/main.h -.endif -.if ! ${PORT_OPTIONS:MPHP} + +post-patch-PHP-off: @${REINPLACE_CMD} "s|define PHP|undef PHP|" \ ${WRKSRC}/sources/main.h -.endif do-install: ${INSTALL_PROGRAM} ${WRKSRC}/sources/pserv ${STAGEDIR}${PREFIX}/sbin/ --- www/punbb/Makefile +++ www/punbb/Makefile @@ -23,8 +23,7 @@ BUILD_DEPENDS+= ${UNZIP_CMD}:archivers/unzip SUB_FILES= pkg-message NO_BUILD= yes -USE_PHP= yes -USES= tar:bzip2 +USES= php tar:bzip2 OPTIONS_DEFINE= LANGUAGE_PACK EXTRAS OPTIONS_DEFAULT= LANGUAGE_PACK EXTRAS --- www/skytemplate/Makefile +++ www/skytemplate/Makefile @@ -11,8 +11,7 @@ DISTNAME= SkyTemplate.v${PORTVERSION:S/.//g} MAINTAINER= munggo@gmail.com COMMENT= Yet another PHP compiling template engine -USE_PHP= yes -WANT_PHP_WEB= yes +USES= php:web NO_BUILD= yes SUB_FILES= pkg-message --- www/suphp/Makefile +++ www/suphp/Makefile @@ -13,14 +13,12 @@ MAINTAINER= bdrewery@FreeBSD.org COMMENT= Securely execute PHP scripts under Apache GNU_CONFIGURE= yes -USES= autoreconf libtool +USES= autoreconf libtool php:cgi SUB_FILES= pkg-message USE_APACHE= 22+ CFLAGS+= -I${LOCALBASE}/include USE_CSTD= gnu89 -USE_PHP= yes -WANT_PHP_CGI= yes MYPORTDOCS= apache/CONFIG \ apache/INSTALL \ --- www/template_/Makefile +++ www/template_/Makefile @@ -15,8 +15,7 @@ LICENSE= LGPL20+ WRKSRC= ${WRKDIR} FETCH_ARGS+= -o ${DISTNAME}.tar.gz -USE_PHP= yes -WANT_PHP_WEB= yes +USES= php:web NO_WRKSUBDIR= yes NO_BUILD= yes --- www/thundercache/Makefile +++ www/thundercache/Makefile @@ -53,7 +53,7 @@ WANT_PGSQL= server .endif .if ${PORT_OPTIONS:MPHP} -USE_PHP+= curl pcre bcmath pdo mcrypt mhash session +USE_PHP+= curl pcre bcmath pdo mcrypt hash session . if ${PORT_OPTIONS:MPGSQL} USE_PHP+= pdo_pgsql pgsql . endif --- www/thundersnarf/Makefile +++ www/thundersnarf/Makefile @@ -36,7 +36,7 @@ WANT_PGSQL= server .endif .if ${PORT_OPTIONS:MPHP} -USE_PHP+= curl pcre bcmath pdo mcrypt mhash session pgsql spl dom xmlrpc ctype openssl simplexml soap json +USE_PHP+= curl pcre bcmath pdo mcrypt hash session pgsql spl dom xmlrpc ctype openssl simplexml soap json . if ${PORT_OPTIONS:MPGSQL} USE_PHP+= pdo_pgsql pgsql . endif --- www/webgrind/Makefile +++ www/webgrind/Makefile @@ -18,7 +18,7 @@ GH_TAGNAME= dc35393 SNAPSHOT= 20140207 -USE_PHP= yes +USES= php NO_BUILD= yes NO_ARCH= yes --- www/xcache/Makefile +++ www/xcache/Makefile @@ -11,9 +11,7 @@ COMMENT= Fast and stable php opcode cacher LICENSE= BSD3CLAUSE -USES= tar:bzip2 -USE_PHP= yes -USE_PHPIZE= yes +USES= php:phpize tar:bzip2 CONFIGURE_ARGS= --enable-xcache=shared --- www/zen-cart/Makefile +++ www/zen-cart/Makefile @@ -15,12 +15,10 @@ COMMENT= PHP-based user-friendly, open source shopping cart LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/license.txt -USES= dos2unix shebangfix zip +USES= dos2unix php:web shebangfix zip SHEBANG_FILES= editors/htmlarea/examples/2-areas.cgi \ editors/htmlarea/examples/test.cgi \ editors/htmlarea/plugins/SpellChecker/spell-check-logic.cgi -USE_PHP= yes -WANT_PHP_WEB= yes DOS2UNIX_REGEX= .*\.php NO_BUILD= yes