diff --git Mk/Uses/php.mk Mk/Uses/php.mk index 9376194..794b954 100644 --- 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 diff --git Mk/bsd.sanity.mk Mk/bsd.sanity.mk index dddeea7..9dd82c0 100644 --- 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}) diff --git archivers/pecl-lzf/Makefile archivers/pecl-lzf/Makefile index 8a5b813..e6c3a8d 100644 --- 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} diff --git archivers/pecl-phk/Makefile archivers/pecl-phk/Makefile index b70b5bf..8498798 100644 --- 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 diff --git archivers/pecl-rar/Makefile archivers/pecl-rar/Makefile index 1b4bca0..2796da8 100644 --- 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 diff --git archivers/php-horde_lz4/Makefile archivers/php-horde_lz4/Makefile index 6ee37dc..fae9e9e 100644 --- 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 diff --git archivers/php5-snappy/Makefile archivers/php5-snappy/Makefile index 1597799..a3ccdca 100644 --- 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 diff --git benchmarks/phoronix-test-suite/Makefile benchmarks/phoronix-test-suite/Makefile index e77ca05..0eea631 100644 --- 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 diff --git chinese/php-cconv/Makefile chinese/php-cconv/Makefile index 5f9b1d6..5f2ed23 100644 --- 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: diff --git converters/pecl-fribidi/Makefile converters/pecl-fribidi/Makefile index 5f2e2e4..0e5b0f6 100644 --- 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} diff --git converters/pecl-igbinary/Makefile converters/pecl-igbinary/Makefile index 3d215f0..de7f81c 100644 --- 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 diff --git converters/php5-bsdconv/Makefile converters/php5-bsdconv/Makefile index 3059074..567693f 100644 --- 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} diff --git databases/pecl-chdb/Makefile databases/pecl-chdb/Makefile index 1aa08e5..7e310de 100644 --- 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 diff --git databases/pecl-dbase/Makefile databases/pecl-dbase/Makefile index ecf37df..62c04e1 100644 --- 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 diff --git databases/pecl-drizzle/Makefile databases/pecl-drizzle/Makefile index 07a3aab..08d7b58 100644 --- 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 diff --git databases/pecl-leveldb/Makefile databases/pecl-leveldb/Makefile index aa57b2e..bb0b737 100644 --- 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 diff --git databases/pecl-mdbtools/Makefile databases/pecl-mdbtools/Makefile index ce81311..575467f 100644 --- 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} diff --git databases/pecl-memcache/Makefile databases/pecl-memcache/Makefile index e990391..e8e4975 100644 --- 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}/ diff --git databases/pecl-memcached/Makefile databases/pecl-memcached/Makefile index 64c7b00..0d01343 100644 --- 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 diff --git databases/pecl-mongo/Makefile databases/pecl-mongo/Makefile index 27343b5..8ce20e2 100644 --- 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 diff --git databases/pecl-mongodb/Makefile databases/pecl-mongodb/Makefile index d1f9189..683d095 100644 --- 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 diff --git databases/pecl-mysqlnd_ms/Makefile databases/pecl-mysqlnd_ms/Makefile index acd50e8..30bf645 100644 --- 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 diff --git databases/pecl-mysqlnd_qc/Makefile databases/pecl-mysqlnd_qc/Makefile index ada9828..8d1aca9 100644 --- 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 diff --git databases/pecl-pdo_user/Makefile databases/pecl-pdo_user/Makefile index 6e083af..7d35dc5 100644 --- 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 diff --git databases/pecl-rrd/Makefile databases/pecl-rrd/Makefile index 250b7b1..6c5c997 100644 --- 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 diff --git databases/pecl-tokyo_tyrant/Makefile databases/pecl-tokyo_tyrant/Makefile index fdfdc67..a63fecc 100644 --- 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 diff --git databases/php-adodb-ext/Makefile databases/php-adodb-ext/Makefile index b4a6ec9..f39940a 100644 --- 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 diff --git databases/php-mdcached/Makefile databases/php-mdcached/Makefile index f3f62c4..e755fa7 100644 --- 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 diff --git databases/php5-pdo_cassandra/Makefile databases/php5-pdo_cassandra/Makefile index 10bfb7e..74b99bd 100644 --- 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 diff --git databases/php5-tarantool/Makefile databases/php5-tarantool/Makefile index b442778..078a314 100644 --- 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 diff --git databases/php55-redis/Makefile databases/php55-redis/Makefile index 1bdb20d..9acaee4 100644 --- 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 diff --git databases/php56-redis/Makefile databases/php56-redis/Makefile index d7cf690..a7fa73e 100644 --- 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 diff --git databases/vfront/Makefile databases/vfront/Makefile index d9f3106..a8d6573 100644 --- 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 diff --git databases/xapian-bindings/Makefile databases/xapian-bindings/Makefile index ac006b8..86367c1 100644 --- 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 diff --git devel/ioncube/Makefile devel/ioncube/Makefile index 487dac9..175e4b2 100644 --- 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} diff --git devel/pear-Horde_Nls/Makefile devel/pear-Horde_Nls/Makefile index 99ae26f..e24d5bb 100644 --- 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 diff --git devel/pear-VersionControl_SVN/Makefile devel/pear-VersionControl_SVN/Makefile index 5b7fda8..41df934 100644 --- 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 diff --git devel/pear/Makefile devel/pear/Makefile index 62cd1c9..9e3b8e1 100644 --- 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 diff --git devel/pecl-APCu/Makefile devel/pecl-APCu/Makefile index 515c2cb..6e42c3d 100644 --- 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 diff --git devel/pecl-automap/Makefile devel/pecl-automap/Makefile index a6f0814..7155142 100644 --- 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 diff --git devel/pecl-bbcode/Makefile devel/pecl-bbcode/Makefile index 67e8c93..fd83f92 100644 --- 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 diff --git devel/pecl-bcompiler/Makefile devel/pecl-bcompiler/Makefile index 2d3b294..f8bfc77 100644 --- 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 diff --git devel/pecl-dio/Makefile devel/pecl-dio/Makefile index eb53d25..55dad2c 100644 --- 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 diff --git devel/pecl-eio/Makefile devel/pecl-eio/Makefile index 9524ed5..804633f 100644 --- 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 diff --git devel/pecl-ev/Makefile devel/pecl-ev/Makefile index 8bf7b3e9..edee682 100644 --- 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 diff --git devel/pecl-event/Makefile devel/pecl-event/Makefile index aa72192..e97ae45 100644 --- 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 diff --git devel/pecl-expect/Makefile devel/pecl-expect/Makefile index c6ac27f..53a53f5 100644 --- 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} diff --git devel/pecl-gearman/Makefile devel/pecl-gearman/Makefile index ec6d899..63312f8 100644 --- 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 diff --git devel/pecl-hidef/Makefile devel/pecl-hidef/Makefile index eeaf51d..22fc32b 100644 --- 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 diff --git devel/pecl-hrtime/Makefile devel/pecl-hrtime/Makefile index fe7f913..6bc030f 100644 --- 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 diff --git devel/pecl-htscanner/Makefile devel/pecl-htscanner/Makefile index 0074d0a..4353483 100644 --- 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 diff --git devel/pecl-inotify/Makefile devel/pecl-inotify/Makefile index 7d06434..d254daa 100644 --- 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 diff --git devel/pecl-intl/Makefile devel/pecl-intl/Makefile index c31809b..927211e 100644 --- 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 diff --git devel/pecl-jsmin/Makefile devel/pecl-jsmin/Makefile index df4c0f6..cee8df6 100644 --- 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 diff --git devel/pecl-json_post/Makefile devel/pecl-json_post/Makefile index 36cf079..c2bfe63 100644 --- 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 diff --git devel/pecl-jsonc/Makefile devel/pecl-jsonc/Makefile index 5255ad3..b3c1cb4 100644 --- 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* diff --git devel/pecl-jsond/Makefile devel/pecl-jsond/Makefile index 9d6fb0b..435b3a4 100644 --- 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 diff --git devel/pecl-jsonnet/Makefile devel/pecl-jsonnet/Makefile index ab51552f..fb7967f 100644 --- 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 diff --git devel/pecl-judy/Makefile devel/pecl-judy/Makefile index 055a55a..3ee7450 100644 --- 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 diff --git devel/pecl-libevent/Makefile devel/pecl-libevent/Makefile index aa6f989..adacde3 100644 --- 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 diff --git devel/pecl-mcve/Makefile devel/pecl-mcve/Makefile index 4e2f472..d1ec18e 100644 --- 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}" diff --git devel/pecl-memoize/Makefile devel/pecl-memoize/Makefile index d8af275..a36a4b6 100644 --- 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 diff --git devel/pecl-msgpack/Makefile devel/pecl-msgpack/Makefile index e825db5..d36c5cf 100644 --- 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 diff --git devel/pecl-ncurses/Makefile devel/pecl-ncurses/Makefile index 7b0a83b..cfa0ce8 100644 --- 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 diff --git devel/pecl-newt/Makefile devel/pecl-newt/Makefile index e378caa..2e79704 100644 --- 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: diff --git devel/pecl-operator/Makefile devel/pecl-operator/Makefile index 091d3e4..b4518ff 100644 --- 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:: diff --git devel/pecl-params/Makefile devel/pecl-params/Makefile index 349d385..b3ce714 100644 --- 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 diff --git devel/pecl-parsekit/Makefile devel/pecl-parsekit/Makefile index a8da99f..bc1f9f5 100644 --- 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 diff --git devel/pecl-propro/Makefile devel/pecl-propro/Makefile index 94f7f7c..e2de5b1 100644 --- 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 diff --git devel/pecl-propro2/Makefile devel/pecl-propro2/Makefile index 1519fd6..0b361d0 100644 --- 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* diff --git devel/pecl-pthreads/Makefile devel/pecl-pthreads/Makefile index ea306f4..4ad8dcb 100644 --- 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 diff --git devel/pecl-qb/Makefile devel/pecl-qb/Makefile index a12032c..9b591c7 100644 --- 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 diff --git devel/pecl-raphf/Makefile devel/pecl-raphf/Makefile index a8c53e2..8ef2b62 100644 --- 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 diff --git devel/pecl-raphf2/Makefile devel/pecl-raphf2/Makefile index c684c37..74c0779 100644 --- 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* diff --git devel/pecl-runkit/Makefile devel/pecl-runkit/Makefile index ab2ce81..2f1e2ad 100644 --- 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 diff --git devel/pecl-scream/Makefile devel/pecl-scream/Makefile index 84bb951..df839a8 100644 --- 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 diff --git devel/pecl-shape/Makefile devel/pecl-shape/Makefile index 56978e7..8e2b88a 100644 --- 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 diff --git devel/pecl-spl_types/Makefile devel/pecl-spl_types/Makefile index 00e414e..4cdae41 100644 --- 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 diff --git devel/pecl-spread/Makefile devel/pecl-spread/Makefile index a087b3f..ddf31c8 100644 --- 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} diff --git devel/pecl-statgrab/Makefile devel/pecl-statgrab/Makefile index 7da435e..68439ff 100644 --- 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} diff --git devel/pecl-strict/Makefile devel/pecl-strict/Makefile index a093823..ecd1e07 100644 --- 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 diff --git devel/pecl-svn/Makefile devel/pecl-svn/Makefile index 0782282..76d331a 100644 --- 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 diff --git devel/pecl-swoole/Makefile devel/pecl-swoole/Makefile index f873f49..d341d96 100644 --- 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 diff --git devel/pecl-sync/Makefile devel/pecl-sync/Makefile index 59775a9..dcb84648 100644 --- 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 diff --git devel/pecl-test_helpers/Makefile devel/pecl-test_helpers/Makefile index 2a27e5b..d5c8b09 100644 --- 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 diff --git devel/pecl-trace/Makefile devel/pecl-trace/Makefile index 9a37f2c..bd1df83 100644 --- 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 diff --git devel/pecl-uopz/Makefile devel/pecl-uopz/Makefile index c65c3d3..6b6c2bb 100644 --- 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 diff --git devel/pecl-uploadprogress/Makefile devel/pecl-uploadprogress/Makefile index 2e92513..3b1e60a 100644 --- 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 diff --git devel/pecl-uri_template/Makefile devel/pecl-uri_template/Makefile index 7c52254..4044982 100644 --- 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 diff --git devel/pecl-uuid/Makefile devel/pecl-uuid/Makefile index 803680e..00858d5 100644 --- 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 diff --git devel/pecl-vld/Makefile devel/pecl-vld/Makefile index 7d941c7..ead350d 100644 --- 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 diff --git devel/pecl-weakref/Makefile devel/pecl-weakref/Makefile index 1c3373c..ce229c1 100644 --- 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 diff --git devel/pecl-xhprof/Makefile devel/pecl-xhprof/Makefile index 3d008ac..ff78060 100644 --- 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 diff --git devel/pecl-yac/Makefile devel/pecl-yac/Makefile index db0be3a..21b7d57 100644 --- 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 diff --git devel/pecl-zookeeper/Makefile devel/pecl-zookeeper/Makefile index c20d3de..37a6a63 100644 --- 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: diff --git devel/php-jq/Makefile devel/php-jq/Makefile index f3085a9..a5f8ff3 100644 --- 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 diff --git devel/php-maxminddb/Makefile devel/php-maxminddb/Makefile index 789e4b7..e4f703c 100644 --- 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 diff --git devel/php-memoize/Makefile devel/php-memoize/Makefile index 469ca75..c5a0968 100644 --- 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 diff --git devel/php-scalar_objects/Makefile devel/php-scalar_objects/Makefile index 1707be59..efd5474 100644 --- 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 diff --git devel/php-uprofiler/Makefile devel/php-uprofiler/Makefile index 0edb67f..e3e3987 100644 --- 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 diff --git devel/php-xdebug/Makefile devel/php-xdebug/Makefile index 2319ea4..c6a29af 100644 --- 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 diff --git devel/php5-blitz-devel/Makefile devel/php5-blitz-devel/Makefile index 7af9713..a6df473 100644 --- 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 diff --git devel/php5-blitz/Makefile devel/php5-blitz/Makefile index 2c2c9679..c9c5bc4 100644 --- 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 diff --git devel/php5-dav/Makefile devel/php5-dav/Makefile index 2ab6405..86a2b58 100644 --- 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 diff --git devel/php5-geshi/Makefile devel/php5-geshi/Makefile index 4ccc6c0..2b7dfd0 100644 --- 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 diff --git devel/php5-ice/Makefile devel/php5-ice/Makefile index 89cc6d9..a030b34 100644 --- 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 diff --git devel/php5-msgpack/Makefile devel/php5-msgpack/Makefile index 11eafce..2819ac5 100644 --- 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 diff --git devel/php5-pinba/Makefile devel/php5-pinba/Makefile index cb2fd56..4965dcf 100644 --- 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 diff --git devel/php5-thrift/Makefile devel/php5-thrift/Makefile index d6ebfa9..83e3e09 100644 --- 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 diff --git dns/pear-Net_DNS/Makefile dns/pear-Net_DNS/Makefile index 4a76fb7..83b520e 100644 --- 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 diff --git finance/myphpmoney/Makefile finance/myphpmoney/Makefile index 829995e..e82007d 100644 --- 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}" diff --git finance/php-tclink/Makefile finance/php-tclink/Makefile index d3798c8..7417dce 100644 --- 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 diff --git graphics/geos/Makefile graphics/geos/Makefile index cdafe78..8a4c89f4 100644 --- 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 diff --git graphics/graphviz/Makefile graphics/graphviz/Makefile index 0cc5ee8..e7cea29 100644 --- 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 diff --git graphics/pear-Image_Graph/Makefile graphics/pear-Image_Graph/Makefile index 44bf47a..08f354e 100644 --- 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$$ diff --git graphics/pecl-gmagick/Makefile graphics/pecl-gmagick/Makefile index d07c00d..8f3e82b 100644 --- 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} diff --git graphics/pecl-imagick/Makefile graphics/pecl-imagick/Makefile index b0346cc..5d4f8b5 100644 --- 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} diff --git graphics/pecl-imlib2/Makefile graphics/pecl-imlib2/Makefile index 84a4fc3..d9e09ba 100644 --- 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, diff --git graphics/pecl-qrencode/Makefile graphics/pecl-qrencode/Makefile index e4e77e5..43ccb3f 100644 --- 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} diff --git graphics/php-facedetect/Makefile graphics/php-facedetect/Makefile index df99c77..94e4192 100644 --- 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 diff --git graphics/php-gdal/Makefile graphics/php-gdal/Makefile index 9c56033..59d24ab 100644 --- 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 diff --git graphics/php-libpuzzle/Makefile graphics/php-libpuzzle/Makefile index 5b8d280..f5c1c3c 100644 --- 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} diff --git graphics/php-magickwand/Makefile graphics/php-magickwand/Makefile index e65e475..9ce390d 100644 --- 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} diff --git graphics/php5-ffmpeg/Makefile graphics/php5-ffmpeg/Makefile index eb5630d..a5513b7 100644 --- 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 diff --git graphics/phplot/Makefile graphics/phplot/Makefile index b970961..8f7f3fd 100644 --- 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 diff --git japanese/guesswork-classic/Makefile japanese/guesswork-classic/Makefile index db4ef6f..9f70d1f 100644 --- 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 diff --git japanese/php5-mecab/Makefile japanese/php5-mecab/Makefile index e861b41..45ba21d 100644 --- 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 diff --git lang/pecl-perl/Makefile lang/pecl-perl/Makefile index a1cf9c4..aadb93c 100644 --- 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 diff --git lang/php55-extensions/Makefile lang/php55-extensions/Makefile index a5f468c..28612be 100644 --- 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 \ diff --git lang/php55/Makefile lang/php55/Makefile index 3a6d922..2280eb1 100644 --- 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+ diff --git lang/php55/Makefile.ext lang/php55/Makefile.ext index 5845e3d..210c6ec 100644 --- 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" diff --git lang/php56-extensions/Makefile lang/php56-extensions/Makefile index 184d2e1..11220ca 100644 --- 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 \ diff --git lang/php56/Makefile lang/php56/Makefile index 41705c1..1629e73 100644 --- 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+ diff --git lang/php56/Makefile.ext lang/php56/Makefile.ext index fec5aff..609fcbf 100644 --- 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" diff --git lang/php70-extensions/Makefile lang/php70-extensions/Makefile index 5931715..f7313fa 100644 --- 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 \ diff --git lang/php70/Makefile lang/php70/Makefile index f0c01f8..e7f204f 100644 --- 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+ diff --git lang/php70/Makefile.ext lang/php70/Makefile.ext index 043949c..2d1b831 100644 --- 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" diff --git lang/php_doc/Makefile lang/php_doc/Makefile index 0b99abe..57a4cff 100644 --- 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 diff --git mail/mlmmj/Makefile mail/mlmmj/Makefile index dedbe41..d7de167 100644 --- 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 \ diff --git mail/pecl-esmtp/Makefile mail/pecl-esmtp/Makefile index d8ba6b03..237b415 100644 --- 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 diff --git mail/pecl-mailparse/Makefile mail/pecl-mailparse/Makefile index c22db6f..fc514a4 100644 --- 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 diff --git mail/pecl-pop3/Makefile mail/pecl-pop3/Makefile index b5f7d779..e9f6a2b 100644 --- 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 diff --git mail/phpmailer/Makefile mail/phpmailer/Makefile index f52f7dd..1f242b5 100644 --- 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 diff --git mail/squirrelmail/Makefile mail/squirrelmail/Makefile index 1965b35..d8503e7 100644 --- 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 diff --git math/pecl-big_int/Makefile math/pecl-big_int/Makefile index 505e45b..64ef898 100644 --- 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 \ diff --git math/pecl-bitset/Makefile math/pecl-bitset/Makefile index 33aee62..276400b 100644 --- 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 diff --git math/pecl-bitset2/Makefile math/pecl-bitset2/Makefile index 52b3cd1..3b39178 100644 --- 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 diff --git math/pecl-stats/Makefile math/pecl-stats/Makefile index 0b753e3..e7ea635 100644 --- 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 diff --git math/pecl-trader/Makefile math/pecl-trader/Makefile index 6c42c39..40d97071 100644 --- 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 diff --git math/rkward-kde4/Makefile math/rkward-kde4/Makefile index 518b64d..f8d3864 100644 --- 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 diff --git misc/achievo/Makefile misc/achievo/Makefile index b07f57c..a0b1e57 100644 --- 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 diff --git misc/pecl-timezonedb/Makefile misc/pecl-timezonedb/Makefile index 9ace111..3097a81 100644 --- 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 diff --git multimedia/php-pHash/Makefile multimedia/php-pHash/Makefile index 4079f92..4540c37 100644 --- 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 diff --git net-im/pecl-stomp/Makefile net-im/pecl-stomp/Makefile index 26c1e82..16302b1 100644 --- 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 diff --git net-mgmt/icingaweb2/Makefile net-mgmt/icingaweb2/Makefile index 3cb591b..27fd7ac 100644 --- 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 diff --git net-mgmt/nagios/Makefile net-mgmt/nagios/Makefile index 62eb162..166ffed 100644 --- 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-* diff --git net-mgmt/percona-monitoring-plugins/Makefile net-mgmt/percona-monitoring-plugins/Makefile index a2dfdcb..c3a99dc 100644 --- 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 diff --git net/pear-Net_DNSBL/Makefile net/pear-Net_DNSBL/Makefile index 6cb73c6..5997a6c 100644 --- 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 diff --git net/pecl-amqp/Makefile net/pecl-amqp/Makefile index 9c97015..9409e50 100644 --- 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 diff --git net/pecl-apn/Makefile net/pecl-apn/Makefile index 9f3cbac..de4291f 100644 --- 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 diff --git net/pecl-cvsclient/Makefile net/pecl-cvsclient/Makefile index 0ce7a46..75af09c 100644 --- 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 diff --git net/pecl-geoip/Makefile net/pecl-geoip/Makefile index c0e326d..e95cbc1 100644 --- 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: diff --git net/pecl-gupnp/Makefile net/pecl-gupnp/Makefile index 76a8994..2991627 100644 --- 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: diff --git net/pecl-ip2location/Makefile net/pecl-ip2location/Makefile index 4aa3b01..4d6af9c 100644 --- 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 diff --git net/pecl-mosquitto/Makefile net/pecl-mosquitto/Makefile index 8b4ec46..6f35570 100644 --- 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 diff --git net/pecl-oauth/Makefile net/pecl-oauth/Makefile index 15b9b9d..7ab4b20 100644 --- 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 diff --git net/pecl-radius/Makefile net/pecl-radius/Makefile index 3418c23..6790e9a 100644 --- 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 diff --git net/pecl-smbclient/Makefile net/pecl-smbclient/Makefile index 90a1acb..05783dc 100644 --- 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} diff --git net/pecl-yaz/Makefile net/pecl-yaz/Makefile index 73bd410..92f8433 100644 --- 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} diff --git net/pecl-yp/Makefile net/pecl-yp/Makefile index eabd0ce..db620b1 100644 --- 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 diff --git net/pecl-zmq/Makefile net/pecl-zmq/Makefile index d6f7886..d48f80a 100644 --- 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 diff --git net/scr_ipfm/Makefile net/scr_ipfm/Makefile index 766105d..51680fb 100644 --- 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 diff --git net/self-service-password/Makefile net/self-service-password/Makefile index a391460..5215a6c 100644 --- 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 diff --git print/pecl-haru/Makefile print/pecl-haru/Makefile index fdb6b92..392352f 100644 --- 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} diff --git print/pecl-pdflib/Makefile print/pecl-pdflib/Makefile index 653b953..c5dfd02 100644 --- 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 diff --git print/pecl-ps/Makefile print/pecl-ps/Makefile index 3155a69..1a7257a 100644 --- 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: diff --git security/cryptstring/Makefile security/cryptstring/Makefile index 77ccd73..ac03704 100644 --- 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} diff --git security/lasso/Makefile security/lasso/Makefile index 328b312..97cb079 100644 --- 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 " diff --git security/pear-Crypt_CHAP/Makefile security/pear-Crypt_CHAP/Makefile index a810aaec..fb6253e 100644 --- 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 diff --git security/pear-File_SMBPasswd/Makefile security/pear-File_SMBPasswd/Makefile index cf257f7..8d1b868 100644 --- 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 diff --git security/pear-Horde_Crypt_Blowfish/Makefile security/pear-Horde_Crypt_Blowfish/Makefile index 49587ea..52be1dd 100644 --- 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 diff --git security/pear-Text_Password/Makefile security/pear-Text_Password/Makefile index a2ba4e68..1dcf355 100644 --- 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} diff --git security/pecl-crack/Makefile security/pecl-crack/Makefile index a9081c98..2d65c20 100644 --- 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 diff --git security/pecl-crypto/Makefile security/pecl-crypto/Makefile index 2d9d8b7..af467bf 100644 --- 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 diff --git security/pecl-gnupg/Makefile security/pecl-gnupg/Makefile index 761a816..14118f4 100644 --- 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 diff --git security/pecl-pam/Makefile security/pecl-pam/Makefile index cb2a62e..86fad0a 100644 --- 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 diff --git security/pecl-scrypt/Makefile security/pecl-scrypt/Makefile index dbb3aae..ce03b17 100644 --- 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 diff --git security/pecl-ssh2/Makefile security/pecl-ssh2/Makefile index e7371db..ae9ae9c 100644 --- 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 diff --git security/pecl-tcpwrap/Makefile security/pecl-tcpwrap/Makefile index 6f7b11c..63fe13f 100644 --- 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: diff --git security/php-suhosin/Makefile security/php-suhosin/Makefile index 48dad7d..b5a9522 100644 --- 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 diff --git security/snortreport/Makefile security/snortreport/Makefile index e212725..7827b63 100644 --- 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 diff --git sysutils/gosa/Makefile sysutils/gosa/Makefile index 6244ec0..163e324 100644 --- 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 diff --git sysutils/pear-File_Gettext/Makefile sysutils/pear-File_Gettext/Makefile index 5ff1890..8da4c2c 100644 --- 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 diff --git sysutils/pear-Log/Makefile sysutils/pear-Log/Makefile index 6ae9770..563a471 100644 --- 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 diff --git sysutils/pear-Translation2/Makefile sysutils/pear-Translation2/Makefile index bedd809..75ffa71 100644 --- 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 diff --git sysutils/pecl-mogilefs/Makefile sysutils/pecl-mogilefs/Makefile index 6a68364..abd075b 100644 --- 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: diff --git sysutils/pecl-proctitle/Makefile sysutils/pecl-proctitle/Makefile index fa55484..02ab2d7 100644 --- 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 diff --git textproc/libmrss-php/Makefile textproc/libmrss-php/Makefile index 2bf364d..e7c6ccf 100644 --- 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 diff --git textproc/mysqlviz/Makefile textproc/mysqlviz/Makefile index 89154a7..b8fd949 100644 --- 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} diff --git textproc/pecl-cld/Makefile textproc/pecl-cld/Makefile index 505689e..833b54b 100644 --- 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: diff --git textproc/pecl-ctemplate/Makefile textproc/pecl-ctemplate/Makefile index d783285..fce74cb 100644 --- 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 diff --git textproc/pecl-doublemetaphone/Makefile textproc/pecl-doublemetaphone/Makefile index 7206f8f..02b8e90 100644 --- 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 diff --git textproc/pecl-enchant/Makefile textproc/pecl-enchant/Makefile index b0dd2fc..206b2db 100644 --- 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} diff --git textproc/pecl-html_parse/Makefile textproc/pecl-html_parse/Makefile index 54f3e28..d90723b 100644 --- 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 diff --git textproc/pecl-stem/Makefile textproc/pecl-stem/Makefile index a39bba7..9927f55 100644 --- 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: diff --git textproc/pecl-syck/Makefile textproc/pecl-syck/Makefile index e76506b..53b715f 100644 --- 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 diff --git textproc/pecl-wbxml/Makefile textproc/pecl-wbxml/Makefile index 3509541..d91c736 100644 --- 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: diff --git textproc/pecl-xdiff/Makefile textproc/pecl-xdiff/Makefile index 83eb101..800bcf6 100644 --- 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 diff --git textproc/pecl-xslcache/Makefile textproc/pecl-xslcache/Makefile index 82e2c36..450565f 100644 --- 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 diff --git textproc/pecl-yaml/Makefile textproc/pecl-yaml/Makefile index c9a4589..0e71956 100644 --- 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 diff --git textproc/php-mecab/Makefile textproc/php-mecab/Makefile index 65bf0af..3f5ba6d 100644 --- 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 diff --git textproc/redland-bindings/Makefile textproc/redland-bindings/Makefile index 14e7bdd..9c7ecab 100644 --- 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 diff --git textproc/zorba/Makefile textproc/zorba/Makefile index 4189de4..b2462a5 100644 --- 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}" diff --git www/ach/Makefile www/ach/Makefile index 5823f17..e56941d 100644 --- 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 diff --git www/caldavzap/Makefile www/caldavzap/Makefile index 84ca4d5..87bdf5f 100644 --- 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: diff --git www/crp/Makefile www/crp/Makefile index 09b67b3..dc33dc5 100644 --- 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}" diff --git www/dddbl/Makefile www/dddbl/Makefile index 1d19ab9..6b67c64 100644 --- 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: diff --git www/encode-explorer/Makefile www/encode-explorer/Makefile index 8a0969e..9bf24a5 100644 --- 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 diff --git www/flat-frog/Makefile www/flat-frog/Makefile index 408b07c..d658dc8 100644 --- 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 diff --git www/fluxbb/Makefile www/fluxbb/Makefile index 80bb6fd..c638712 100644 --- 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 diff --git www/geeklog/Makefile www/geeklog/Makefile index b832c45..296c623 100644 --- 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} diff --git www/iwebcal/Makefile www/iwebcal/Makefile index aa0523c..17cdce3 100644 --- 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}" diff --git www/mod_myvhost/Makefile www/mod_myvhost/Makefile index f2418cd..ebfc945 100644 --- 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: diff --git www/mod_vhs/Makefile www/mod_vhs/Makefile index eba6b5d..0194315 100644 --- 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 diff --git www/pecl-APC/Makefile www/pecl-APC/Makefile index 609acc9..b9160a4 100644 --- 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 diff --git www/pecl-amfext/Makefile www/pecl-amfext/Makefile index d314255..2a3ea16 100644 --- 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 diff --git www/pecl-http/Makefile www/pecl-http/Makefile index ce5a29c..b0d1573 100644 --- 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 diff --git www/pecl-http1/Makefile www/pecl-http1/Makefile index 02c243d..8219055 100644 --- 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-* diff --git www/pecl-http2/Makefile www/pecl-http2/Makefile index ea0a436..f19c0db 100644 --- 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 diff --git www/pecl-solr/Makefile www/pecl-solr/Makefile index 1bbc201..3b7a03a 100644 --- 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 diff --git www/pecl-sphinx/Makefile www/pecl-sphinx/Makefile index 29244f9..03a3b22 100644 --- 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 diff --git www/pecl-swish/Makefile www/pecl-swish/Makefile index 5741cb8..708218b 100644 --- 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 diff --git www/pecl-twig/Makefile www/pecl-twig/Makefile index 97d4f6c..5372eab 100644 --- 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 diff --git www/pecl-varnish/Makefile www/pecl-varnish/Makefile index 3fb3773..3225ac2 100644 --- 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 diff --git www/pecl-yaf/Makefile www/pecl-yaf/Makefile index 657b9fc..446e6a0 100644 --- 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 diff --git www/pecl-yar/Makefile www/pecl-yar/Makefile index b72b541..111054a 100644 --- 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 diff --git www/phalcon/Makefile www/phalcon/Makefile index 5d77ac0..709432e 100644 --- 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 diff --git www/php-screw/Makefile www/php-screw/Makefile index 2b83190..1fa740c 100644 --- 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 diff --git www/php-templates/Makefile www/php-templates/Makefile index 7fb1794..15b43ae 100644 --- 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 diff --git www/php55-opcache/Makefile www/php55-opcache/Makefile index 409d5cc..1dc5c1f 100644 --- 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" diff --git www/php56-opcache/Makefile www/php56-opcache/Makefile index 563247f..2c4265a 100644 --- 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" diff --git www/php70-opcache/Makefile www/php70-opcache/Makefile index 4a743d8..db9930b 100644 --- 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" diff --git www/phpbb3/Makefile www/phpbb3/Makefile index a02d145..1aa69cb 100644 --- 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 diff --git www/phpgroupware/Makefile www/phpgroupware/Makefile index a33f0e9..f311ff6 100644 --- 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 diff --git www/phpmustache/Makefile www/phpmustache/Makefile index c928f04..dac185c 100644 --- 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 diff --git www/phpwebapp/Makefile www/phpwebapp/Makefile index 887f4b8..3f1d8eb 100644 --- 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 \ diff --git www/pnews/Makefile www/pnews/Makefile index ad0950f..95c9903 100644 --- 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 diff --git www/pserv/Makefile www/pserv/Makefile index 1631c71..9deae74 100644 --- 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/ diff --git www/punbb/Makefile www/punbb/Makefile index 1bd6dcb..7fa4cec 100644 --- 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 diff --git www/skytemplate/Makefile www/skytemplate/Makefile index d97a410..41b69e4 100644 --- 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 diff --git www/suphp/Makefile www/suphp/Makefile index a8bb1ee..32b4937 100644 --- 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 \ diff --git www/template_/Makefile www/template_/Makefile index 34d27c9..6ec7366 100644 --- 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 diff --git www/thundercache/Makefile www/thundercache/Makefile index ae9bf73..d946319 100644 --- 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 diff --git www/thundersnarf/Makefile www/thundersnarf/Makefile index 0faac271..14a2629 100644 --- 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 diff --git www/webgrind/Makefile www/webgrind/Makefile index 3df5d74..46c4bf0 100644 --- 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 diff --git www/xcache/Makefile www/xcache/Makefile index 89a9cfc..93bf7ca 100644 --- 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 diff --git www/zen-cart/Makefile www/zen-cart/Makefile index 6a5f8b9..2264221 100644 --- 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