summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormat <mat@FreeBSD.org>2016-06-28 14:00:45 +0000
committermat <mat@FreeBSD.org>2016-06-28 14:00:45 +0000
commit520ec6f0d6cb09598449735b914a72775ef47ed2 (patch)
treee6eac391e081f99a997be8b0d8e036d22d5fe2a9
parente222bdd8ba1b01105ad89086d2a173595c77d123 (diff)
downloadFreeBSD-ports-520ec6f0d6cb09598449735b914a72775ef47ed2.zip
FreeBSD-ports-520ec6f0d6cb09598449735b914a72775ef47ed2.tar.gz
Convert USE_PHP*=yes into USES=php*
PR: 210529 Submitted by: mat Exp-run by: antoine Sponsored by: Absolight Differential Revision: https://reviews.freebsd.org/D6936
-rw-r--r--archivers/pecl-lzf/Makefile4
-rw-r--r--archivers/pecl-phk/Makefile6
-rw-r--r--archivers/pecl-rar/Makefile6
-rw-r--r--archivers/php-horde_lz4/Makefile3
-rw-r--r--archivers/php5-snappy/Makefile3
-rw-r--r--benchmarks/phoronix-test-suite/Makefile3
-rw-r--r--chinese/php-cconv/Makefile3
-rw-r--r--converters/pecl-fribidi/Makefile4
-rw-r--r--converters/pecl-igbinary/Makefile7
-rw-r--r--converters/php5-bsdconv/Makefile6
-rw-r--r--databases/pecl-chdb/Makefile6
-rw-r--r--databases/pecl-dbase/Makefile3
-rw-r--r--databases/pecl-drizzle/Makefile4
-rw-r--r--databases/pecl-leveldb/Makefile6
-rw-r--r--databases/pecl-mdbtools/Makefile5
-rw-r--r--databases/pecl-memcache/Makefile7
-rw-r--r--databases/pecl-memcached/Makefile7
-rw-r--r--databases/pecl-mongo/Makefile6
-rw-r--r--databases/pecl-mongodb/Makefile6
-rw-r--r--databases/pecl-mysqlnd_ms/Makefile6
-rw-r--r--databases/pecl-mysqlnd_qc/Makefile4
-rw-r--r--databases/pecl-pdo_user/Makefile7
-rw-r--r--databases/pecl-rrd/Makefile3
-rw-r--r--databases/pecl-tokyo_tyrant/Makefile7
-rw-r--r--databases/php-adodb-ext/Makefile7
-rw-r--r--databases/php-mdcached/Makefile5
-rw-r--r--databases/php5-pdo_cassandra/Makefile6
-rw-r--r--databases/php5-tarantool/Makefile5
-rw-r--r--databases/php55-redis/Makefile9
-rw-r--r--databases/php56-redis/Makefile7
-rw-r--r--databases/php70-redis/Makefile5
-rw-r--r--databases/vfront/Makefile2
-rw-r--r--databases/xapian-bindings/Makefile2
-rw-r--r--devel/ioncube/Makefile2
-rw-r--r--devel/pear-Horde_Nls/Makefile2
-rw-r--r--devel/pear-VersionControl_SVN/Makefile1
-rw-r--r--devel/pear/Makefile6
-rw-r--r--devel/pecl-APCu/Makefile7
-rw-r--r--devel/pecl-automap/Makefile7
-rw-r--r--devel/pecl-bbcode/Makefile5
-rw-r--r--devel/pecl-bcompiler/Makefile5
-rw-r--r--devel/pecl-dio/Makefile3
-rw-r--r--devel/pecl-eio/Makefile3
-rw-r--r--devel/pecl-ev/Makefile6
-rw-r--r--devel/pecl-event/Makefile6
-rw-r--r--devel/pecl-expect/Makefile4
-rw-r--r--devel/pecl-gearman/Makefile5
-rw-r--r--devel/pecl-hidef/Makefile4
-rw-r--r--devel/pecl-hrtime/Makefile4
-rw-r--r--devel/pecl-htscanner/Makefile4
-rw-r--r--devel/pecl-inotify/Makefile5
-rw-r--r--devel/pecl-intl/Makefile4
-rw-r--r--devel/pecl-jsmin/Makefile4
-rw-r--r--devel/pecl-json_post/Makefile6
-rw-r--r--devel/pecl-jsonc/Makefile4
-rw-r--r--devel/pecl-jsond/Makefile4
-rw-r--r--devel/pecl-jsonnet/Makefile6
-rw-r--r--devel/pecl-judy/Makefile3
-rw-r--r--devel/pecl-libevent/Makefile7
-rw-r--r--devel/pecl-mcve/Makefile4
-rw-r--r--devel/pecl-memoize/Makefile4
-rw-r--r--devel/pecl-msgpack/Makefile6
-rw-r--r--devel/pecl-ncurses/Makefile6
-rw-r--r--devel/pecl-newt/Makefile7
-rw-r--r--devel/pecl-operator/Makefile5
-rw-r--r--devel/pecl-params/Makefile5
-rw-r--r--devel/pecl-parsekit/Makefile4
-rw-r--r--devel/pecl-propro/Makefile4
-rw-r--r--devel/pecl-propro2/Makefile4
-rw-r--r--devel/pecl-pthreads/Makefile7
-rw-r--r--devel/pecl-qb/Makefile4
-rw-r--r--devel/pecl-raphf/Makefile4
-rw-r--r--devel/pecl-raphf2/Makefile4
-rw-r--r--devel/pecl-runkit/Makefile5
-rw-r--r--devel/pecl-scream/Makefile3
-rw-r--r--devel/pecl-shape/Makefile5
-rw-r--r--devel/pecl-spl_types/Makefile4
-rw-r--r--devel/pecl-spread/Makefile4
-rw-r--r--devel/pecl-statgrab/Makefile3
-rw-r--r--devel/pecl-strict/Makefile4
-rw-r--r--devel/pecl-svn/Makefile4
-rw-r--r--devel/pecl-swoole/Makefile4
-rw-r--r--devel/pecl-sync/Makefile3
-rw-r--r--devel/pecl-test_helpers/Makefile7
-rw-r--r--devel/pecl-trace/Makefile7
-rw-r--r--devel/pecl-uopz/Makefile4
-rw-r--r--devel/pecl-uploadprogress/Makefile4
-rw-r--r--devel/pecl-uri_template/Makefile3
-rw-r--r--devel/pecl-uuid/Makefile4
-rw-r--r--devel/pecl-vld/Makefile4
-rw-r--r--devel/pecl-weakref/Makefile5
-rw-r--r--devel/pecl-xhprof/Makefile4
-rw-r--r--devel/pecl-yac/Makefile4
-rw-r--r--devel/pecl-zookeeper/Makefile6
-rw-r--r--devel/php-jq/Makefile5
-rw-r--r--devel/php-maxminddb/Makefile6
-rw-r--r--devel/php-memoize/Makefile27
-rw-r--r--devel/php-scalar_objects/Makefile5
-rw-r--r--devel/php-uprofiler/Makefile7
-rw-r--r--devel/php-xdebug/Makefile5
-rw-r--r--devel/php5-blitz-devel/Makefile4
-rw-r--r--devel/php5-blitz/Makefile4
-rw-r--r--devel/php5-dav/Makefile5
-rw-r--r--devel/php5-geshi/Makefile2
-rw-r--r--devel/php5-ice/Makefile3
-rw-r--r--devel/php5-msgpack/Makefile7
-rw-r--r--devel/php5-pinba/Makefile4
-rw-r--r--devel/php5-thrift/Makefile5
-rw-r--r--finance/myphpmoney/Makefile4
-rw-r--r--finance/php-tclink/Makefile3
-rw-r--r--graphics/geos/Makefile2
-rw-r--r--graphics/graphviz/Makefile2
-rw-r--r--graphics/pear-Image_Graph/Makefile1
-rw-r--r--graphics/pecl-gmagick/Makefile4
-rw-r--r--graphics/pecl-imagick/Makefile4
-rw-r--r--graphics/pecl-imlib2/Makefile4
-rw-r--r--graphics/pecl-qrencode/Makefile4
-rw-r--r--graphics/php-facedetect/Makefile4
-rw-r--r--graphics/php-gdal/Makefile4
-rw-r--r--graphics/php-libpuzzle/Makefile6
-rw-r--r--graphics/php-magickwand/Makefile4
-rw-r--r--graphics/php5-ffmpeg/Makefile5
-rw-r--r--graphics/phplot/Makefile3
-rw-r--r--japanese/guesswork-classic/Makefile3
-rw-r--r--japanese/php5-mecab/Makefile3
-rw-r--r--lang/pecl-perl/Makefile6
-rw-r--r--lang/php55-extensions/Makefile4
-rw-r--r--lang/php55/Makefile2
-rw-r--r--lang/php55/Makefile.ext42
-rw-r--r--lang/php56-extensions/Makefile4
-rw-r--r--lang/php56/Makefile2
-rw-r--r--lang/php56/Makefile.ext42
-rw-r--r--lang/php70-extensions/Makefile4
-rw-r--r--lang/php70/Makefile2
-rw-r--r--lang/php70/Makefile.ext42
-rw-r--r--lang/php_doc/Makefile1
-rw-r--r--mail/mlmmj/Makefile3
-rw-r--r--mail/pecl-esmtp/Makefile4
-rw-r--r--mail/pecl-mailparse/Makefile8
-rw-r--r--mail/pecl-pop3/Makefile6
-rw-r--r--mail/phpmailer/Makefile3
-rw-r--r--math/pecl-big_int/Makefile4
-rw-r--r--math/pecl-bitset/Makefile4
-rw-r--r--math/pecl-bitset2/Makefile4
-rw-r--r--math/pecl-stats/Makefile4
-rw-r--r--math/pecl-trader/Makefile3
-rw-r--r--math/rkward-kde4/Makefile4
-rw-r--r--misc/achievo/Makefile3
-rw-r--r--misc/pecl-timezonedb/Makefile4
-rw-r--r--multimedia/php-pHash/Makefile5
-rw-r--r--net-im/pecl-stomp/Makefile5
-rw-r--r--net-mgmt/icingaweb2/Makefile2
-rw-r--r--net-mgmt/nagios/Makefile3
-rw-r--r--net-mgmt/percona-monitoring-plugins/Makefile4
-rw-r--r--net/pear-Net_DNSBL/Makefile1
-rw-r--r--net/pecl-amqp/Makefile4
-rw-r--r--net/pecl-apn/Makefile4
-rw-r--r--net/pecl-cvsclient/Makefile4
-rw-r--r--net/pecl-geoip/Makefile4
-rw-r--r--net/pecl-gupnp/Makefile4
-rw-r--r--net/pecl-ip2location/Makefile5
-rw-r--r--net/pecl-mosquitto/Makefile4
-rw-r--r--net/pecl-oauth/Makefile4
-rw-r--r--net/pecl-radius/Makefile4
-rw-r--r--net/pecl-smbclient/Makefile5
-rw-r--r--net/pecl-yaz/Makefile3
-rw-r--r--net/pecl-yp/Makefile4
-rw-r--r--net/pecl-zmq/Makefile5
-rw-r--r--net/scr_ipfm/Makefile2
-rw-r--r--print/pecl-haru/Makefile4
-rw-r--r--print/pecl-pdflib/Makefile5
-rw-r--r--print/pecl-ps/Makefile5
-rw-r--r--security/lasso/Makefile3
-rw-r--r--security/pear-Text_Password/Makefile1
-rw-r--r--security/pecl-crack/Makefile7
-rw-r--r--security/pecl-crypto/Makefile5
-rw-r--r--security/pecl-gnupg/Makefile4
-rw-r--r--security/pecl-pam/Makefile5
-rw-r--r--security/pecl-scrypt/Makefile6
-rw-r--r--security/pecl-ssh2/Makefile4
-rw-r--r--security/pecl-tcpwrap/Makefile4
-rw-r--r--security/php-suhosin/Makefile5
-rw-r--r--security/snortreport/Makefile17
-rw-r--r--sysutils/pear-File_Gettext/Makefile1
-rw-r--r--sysutils/pear-Log/Makefile1
-rw-r--r--sysutils/pear-Translation2/Makefile1
-rw-r--r--sysutils/pecl-mogilefs/Makefile5
-rw-r--r--sysutils/pecl-proctitle/Makefile3
-rw-r--r--textproc/libmrss-php/Makefile4
-rw-r--r--textproc/mysqlviz/Makefile4
-rw-r--r--textproc/pecl-cld/Makefile6
-rw-r--r--textproc/pecl-ctemplate/Makefile4
-rw-r--r--textproc/pecl-doublemetaphone/Makefile5
-rw-r--r--textproc/pecl-enchant/Makefile5
-rw-r--r--textproc/pecl-html_parse/Makefile5
-rw-r--r--textproc/pecl-stem/Makefile4
-rw-r--r--textproc/pecl-syck/Makefile6
-rw-r--r--textproc/pecl-wbxml/Makefile4
-rw-r--r--textproc/pecl-xdiff/Makefile4
-rw-r--r--textproc/pecl-xslcache/Makefile6
-rw-r--r--textproc/pecl-yaml/Makefile5
-rw-r--r--textproc/php-mecab/Makefile12
-rw-r--r--textproc/redland-bindings/Makefile2
-rw-r--r--textproc/zorba/Makefile2
-rw-r--r--www/ach/Makefile2
-rw-r--r--www/caldavzap/Makefile3
-rw-r--r--www/crp/Makefile3
-rw-r--r--www/dddbl/Makefile4
-rw-r--r--www/encode-explorer/Makefile4
-rw-r--r--www/flat-frog/Makefile3
-rw-r--r--www/fluxbb/Makefile3
-rw-r--r--www/geeklog/Makefile3
-rw-r--r--www/iwebcal/Makefile3
-rw-r--r--www/mod_myvhost/Makefile3
-rw-r--r--www/mod_vhs/Makefile5
-rw-r--r--www/pecl-APC/Makefile4
-rw-r--r--www/pecl-amfext/Makefile4
-rw-r--r--www/pecl-http/Makefile4
-rw-r--r--www/pecl-http1/Makefile5
-rw-r--r--www/pecl-http2/Makefile4
-rw-r--r--www/pecl-solr/Makefile6
-rw-r--r--www/pecl-sphinx/Makefile4
-rw-r--r--www/pecl-swish/Makefile4
-rw-r--r--www/pecl-twig/Makefile5
-rw-r--r--www/pecl-varnish/Makefile6
-rw-r--r--www/pecl-yaf/Makefile6
-rw-r--r--www/pecl-yar/Makefile8
-rw-r--r--www/phalcon/Makefile6
-rw-r--r--www/php-screw/Makefile3
-rw-r--r--www/php-templates/Makefile4
-rw-r--r--www/php55-opcache/Makefile2
-rw-r--r--www/php56-opcache/Makefile2
-rw-r--r--www/php70-opcache/Makefile2
-rw-r--r--www/phpbb3/Makefile3
-rw-r--r--www/phpgroupware/Makefile4
-rw-r--r--www/phpmustache/Makefile3
-rw-r--r--www/phpwebapp/Makefile4
-rw-r--r--www/pnews/Makefile3
-rw-r--r--www/pserv/Makefile15
-rw-r--r--www/punbb/Makefile3
-rw-r--r--www/skytemplate/Makefile3
-rw-r--r--www/suphp/Makefile4
-rw-r--r--www/template_/Makefile3
-rw-r--r--www/webgrind/Makefile2
-rw-r--r--www/xcache/Makefile4
-rw-r--r--www/zen-cart/Makefile4
246 files changed, 332 insertions, 878 deletions
diff --git a/archivers/pecl-lzf/Makefile b/archivers/pecl-lzf/Makefile
index 8a5b813..e6c3a8d 100644
--- a/archivers/pecl-lzf/Makefile
+++ b/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 a/archivers/pecl-phk/Makefile b/archivers/pecl-phk/Makefile
index b70b5bf..8498798 100644
--- a/archivers/pecl-phk/Makefile
+++ b/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 a/archivers/pecl-rar/Makefile b/archivers/pecl-rar/Makefile
index 1b4bca0..2796da8 100644
--- a/archivers/pecl-rar/Makefile
+++ b/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 a/archivers/php-horde_lz4/Makefile b/archivers/php-horde_lz4/Makefile
index 6ee37dc..fae9e9e 100644
--- a/archivers/php-horde_lz4/Makefile
+++ b/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 a/archivers/php5-snappy/Makefile b/archivers/php5-snappy/Makefile
index 1597799..a3ccdca 100644
--- a/archivers/php5-snappy/Makefile
+++ b/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 a/benchmarks/phoronix-test-suite/Makefile b/benchmarks/phoronix-test-suite/Makefile
index e77ca05..0eea631 100644
--- a/benchmarks/phoronix-test-suite/Makefile
+++ b/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 a/chinese/php-cconv/Makefile b/chinese/php-cconv/Makefile
index 5f9b1d6..5f2ed23 100644
--- a/chinese/php-cconv/Makefile
+++ b/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 a/converters/pecl-fribidi/Makefile b/converters/pecl-fribidi/Makefile
index 5f2e2e4..0e5b0f6 100644
--- a/converters/pecl-fribidi/Makefile
+++ b/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 a/converters/pecl-igbinary/Makefile b/converters/pecl-igbinary/Makefile
index 3d215f0..de7f81c 100644
--- a/converters/pecl-igbinary/Makefile
+++ b/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 <bsd.port.mk>
diff --git a/converters/php5-bsdconv/Makefile b/converters/php5-bsdconv/Makefile
index 3059074..567693f 100644
--- a/converters/php5-bsdconv/Makefile
+++ b/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 a/databases/pecl-chdb/Makefile b/databases/pecl-chdb/Makefile
index 1aa08e5..7e310de 100644
--- a/databases/pecl-chdb/Makefile
+++ b/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 a/databases/pecl-dbase/Makefile b/databases/pecl-dbase/Makefile
index ecf37df..62c04e1 100644
--- a/databases/pecl-dbase/Makefile
+++ b/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 <bsd.port.mk>
diff --git a/databases/pecl-drizzle/Makefile b/databases/pecl-drizzle/Makefile
index 07a3aab..08d7b58 100644
--- a/databases/pecl-drizzle/Makefile
+++ b/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 a/databases/pecl-leveldb/Makefile b/databases/pecl-leveldb/Makefile
index aa57b2e..bb0b737 100644
--- a/databases/pecl-leveldb/Makefile
+++ b/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 <bsd.port.mk>
diff --git a/databases/pecl-mdbtools/Makefile b/databases/pecl-mdbtools/Makefile
index ce81311..575467f 100644
--- a/databases/pecl-mdbtools/Makefile
+++ b/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 a/databases/pecl-memcache/Makefile b/databases/pecl-memcache/Makefile
index e990391..e8e4975 100644
--- a/databases/pecl-memcache/Makefile
+++ b/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 a/databases/pecl-memcached/Makefile b/databases/pecl-memcached/Makefile
index 64c7b00..0d01343 100644
--- a/databases/pecl-memcached/Makefile
+++ b/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 a/databases/pecl-mongo/Makefile b/databases/pecl-mongo/Makefile
index 27343b5..8ce20e2 100644
--- a/databases/pecl-mongo/Makefile
+++ b/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 a/databases/pecl-mongodb/Makefile b/databases/pecl-mongodb/Makefile
index d1f9189..683d095 100644
--- a/databases/pecl-mongodb/Makefile
+++ b/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 <bsd.port.mk>
diff --git a/databases/pecl-mysqlnd_ms/Makefile b/databases/pecl-mysqlnd_ms/Makefile
index acd50e8..30bf645 100644
--- a/databases/pecl-mysqlnd_ms/Makefile
+++ b/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 <bsd.port.mk>
diff --git a/databases/pecl-mysqlnd_qc/Makefile b/databases/pecl-mysqlnd_qc/Makefile
index ada9828..8d1aca9 100644
--- a/databases/pecl-mysqlnd_qc/Makefile
+++ b/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 <bsd.port.mk>
diff --git a/databases/pecl-pdo_user/Makefile b/databases/pecl-pdo_user/Makefile
index 6e083af..7d35dc5 100644
--- a/databases/pecl-pdo_user/Makefile
+++ b/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 <bsd.port.mk>
diff --git a/databases/pecl-rrd/Makefile b/databases/pecl-rrd/Makefile
index 250b7b1..6c5c997 100644
--- a/databases/pecl-rrd/Makefile
+++ b/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 <bsd.port.mk>
diff --git a/databases/pecl-tokyo_tyrant/Makefile b/databases/pecl-tokyo_tyrant/Makefile
index fdfdc67..a63fecc 100644
--- a/databases/pecl-tokyo_tyrant/Makefile
+++ b/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 <bsd.port.mk>
diff --git a/databases/php-adodb-ext/Makefile b/databases/php-adodb-ext/Makefile
index b4a6ec9..f39940a 100644
--- a/databases/php-adodb-ext/Makefile
+++ b/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 <bsd.port.pre.mk>
-.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 a/databases/php-mdcached/Makefile b/databases/php-mdcached/Makefile
index f3f62c4d..e755fa7 100644
--- a/databases/php-mdcached/Makefile
+++ b/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 <bsd.port.mk>
diff --git a/databases/php5-pdo_cassandra/Makefile b/databases/php5-pdo_cassandra/Makefile
index 10bfb7e..74b99bd 100644
--- a/databases/php5-pdo_cassandra/Makefile
+++ b/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 a/databases/php5-tarantool/Makefile b/databases/php5-tarantool/Makefile
index b442778..078a314 100644
--- a/databases/php5-tarantool/Makefile
+++ b/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 a/databases/php55-redis/Makefile b/databases/php55-redis/Makefile
index 1bdb20d..9acaee4 100644
--- a/databases/php55-redis/Makefile
+++ b/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 <bsd.port.options.mk>
.if ${PORT_OPTIONS:MIGBINARY}
-USE_PHP+= igbinary
+USE_PHP+= igbinary:build
CONFIGURE_ARGS+=--enable-redis-igbinary
.else
CONFIGURE_ARGS+=--disable-redis-igbinary
diff --git a/databases/php56-redis/Makefile b/databases/php56-redis/Makefile
index 6291383..c45e806 100644
--- a/databases/php56-redis/Makefile
+++ b/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 a/databases/php70-redis/Makefile b/databases/php70-redis/Makefile
index f025a68..e78e5b3 100644
--- a/databases/php70-redis/Makefile
+++ b/databases/php70-redis/Makefile
@@ -10,9 +10,8 @@ COMMENT= PHP7 extension for Redis
LICENSE= PHP301
-USE_PHP= session
-USE_PHP_BUILD= yes
-USE_PHPEXT= yes
+USES= php:ext
+USE_PHP= session:build
PHP_DEFAULT= 7.0
IGNORE_WITH_PHP= 55 56
diff --git a/databases/vfront/Makefile b/databases/vfront/Makefile
index d9f3106..a8d6573 100644
--- a/databases/vfront/Makefile
+++ b/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 a/databases/xapian-bindings/Makefile b/databases/xapian-bindings/Makefile
index ac006b8..86367c1 100644
--- a/databases/xapian-bindings/Makefile
+++ b/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 a/devel/ioncube/Makefile b/devel/ioncube/Makefile
index 487dac9..175e4b2 100644
--- a/devel/ioncube/Makefile
+++ b/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 a/devel/pear-Horde_Nls/Makefile b/devel/pear-Horde_Nls/Makefile
index 99ae26f..e24d5bb 100644
--- a/devel/pear-Horde_Nls/Makefile
+++ b/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 <bsd.port.mk>
diff --git a/devel/pear-VersionControl_SVN/Makefile b/devel/pear-VersionControl_SVN/Makefile
index 5b7fda8..41df934 100644
--- a/devel/pear-VersionControl_SVN/Makefile
+++ b/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 <bsd.port.mk>
diff --git a/devel/pear/Makefile b/devel/pear/Makefile
index 62cd1c9..9e3b8e1 100644
--- a/devel/pear/Makefile
+++ b/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 a/devel/pecl-APCu/Makefile b/devel/pecl-APCu/Makefile
index 515c2cb..6e42c3d 100644
--- a/devel/pecl-APCu/Makefile
+++ b/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 <bsd.port.mk>
diff --git a/devel/pecl-automap/Makefile b/devel/pecl-automap/Makefile
index a6f0814..7155142 100644
--- a/devel/pecl-automap/Makefile
+++ b/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 a/devel/pecl-bbcode/Makefile b/devel/pecl-bbcode/Makefile
index 67e8c93..fd83f92 100644
--- a/devel/pecl-bbcode/Makefile
+++ b/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 a/devel/pecl-bcompiler/Makefile b/devel/pecl-bcompiler/Makefile
index 2d3b294..f8bfc77 100644
--- a/devel/pecl-bcompiler/Makefile
+++ b/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 a/devel/pecl-dio/Makefile b/devel/pecl-dio/Makefile
index eb53d25..55dad2c 100644
--- a/devel/pecl-dio/Makefile
+++ b/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 <bsd.port.mk>
diff --git a/devel/pecl-eio/Makefile b/devel/pecl-eio/Makefile
index 9524ed5..804633f 100644
--- a/devel/pecl-eio/Makefile
+++ b/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 <bsd.port.mk>
diff --git a/devel/pecl-ev/Makefile b/devel/pecl-ev/Makefile
index 8bf7b3e9..edee682 100644
--- a/devel/pecl-ev/Makefile
+++ b/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 <bsd.port.mk>
diff --git a/devel/pecl-event/Makefile b/devel/pecl-event/Makefile
index aa72192..e97ae45 100644
--- a/devel/pecl-event/Makefile
+++ b/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 <bsd.port.mk>
diff --git a/devel/pecl-expect/Makefile b/devel/pecl-expect/Makefile
index c6ac27f..53a53f5 100644
--- a/devel/pecl-expect/Makefile
+++ b/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 a/devel/pecl-gearman/Makefile b/devel/pecl-gearman/Makefile
index ec6d899..63312f8 100644
--- a/devel/pecl-gearman/Makefile
+++ b/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 <bsd.port.mk>
diff --git a/devel/pecl-hidef/Makefile b/devel/pecl-hidef/Makefile
index eeaf51d..22fc32b 100644
--- a/devel/pecl-hidef/Makefile
+++ b/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 a/devel/pecl-hrtime/Makefile b/devel/pecl-hrtime/Makefile
index fe7f913..6bc030f 100644
--- a/devel/pecl-hrtime/Makefile
+++ b/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 <bsd.port.mk>
diff --git a/devel/pecl-htscanner/Makefile b/devel/pecl-htscanner/Makefile
index 0074d0a..4353483 100644
--- a/devel/pecl-htscanner/Makefile
+++ b/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 a/devel/pecl-inotify/Makefile b/devel/pecl-inotify/Makefile
index 7d06434..d254daa 100644
--- a/devel/pecl-inotify/Makefile
+++ b/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 <bsd.port.mk>
diff --git a/devel/pecl-intl/Makefile b/devel/pecl-intl/Makefile
index c31809b..927211e 100644
--- a/devel/pecl-intl/Makefile
+++ b/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 <bsd.port.mk>
diff --git a/devel/pecl-jsmin/Makefile b/devel/pecl-jsmin/Makefile
index df4c0f6..cee8df6 100644
--- a/devel/pecl-jsmin/Makefile
+++ b/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 <bsd.port.mk>
diff --git a/devel/pecl-json_post/Makefile b/devel/pecl-json_post/Makefile
index 36cf079..c2bfe63 100644
--- a/devel/pecl-json_post/Makefile
+++ b/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 <bsd.port.mk>
diff --git a/devel/pecl-jsonc/Makefile b/devel/pecl-jsonc/Makefile
index 5255ad3..b3c1cb4 100644
--- a/devel/pecl-jsonc/Makefile
+++ b/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 a/devel/pecl-jsond/Makefile b/devel/pecl-jsond/Makefile
index 9d6fb0b..435b3a4 100644
--- a/devel/pecl-jsond/Makefile
+++ b/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 <bsd.port.mk>
diff --git a/devel/pecl-jsonnet/Makefile b/devel/pecl-jsonnet/Makefile
index ab51552..fb7967f 100644
--- a/devel/pecl-jsonnet/Makefile
+++ b/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 a/devel/pecl-judy/Makefile b/devel/pecl-judy/Makefile
index 055a55a..3ee7450 100644
--- a/devel/pecl-judy/Makefile
+++ b/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 <bsd.port.mk>
diff --git a/devel/pecl-libevent/Makefile b/devel/pecl-libevent/Makefile
index aa6f989..adacde3 100644
--- a/devel/pecl-libevent/Makefile
+++ b/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 <bsd.port.mk>
diff --git a/devel/pecl-mcve/Makefile b/devel/pecl-mcve/Makefile
index 4e2f472..d1ec18e 100644
--- a/devel/pecl-mcve/Makefile
+++ b/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 a/devel/pecl-memoize/Makefile b/devel/pecl-memoize/Makefile
index d8af275..a36a4b6 100644
--- a/devel/pecl-memoize/Makefile
+++ b/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 a/devel/pecl-msgpack/Makefile b/devel/pecl-msgpack/Makefile
index e825db5..d36c5cf 100644
--- a/devel/pecl-msgpack/Makefile
+++ b/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 <bsd.port.mk>
diff --git a/devel/pecl-ncurses/Makefile b/devel/pecl-ncurses/Makefile
index 7b0a83b..cfa0ce8 100644
--- a/devel/pecl-ncurses/Makefile
+++ b/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 <bsd.port.mk>
diff --git a/devel/pecl-newt/Makefile b/devel/pecl-newt/Makefile
index e378caa..2e79704 100644
--- a/devel/pecl-newt/Makefile
+++ b/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 a/devel/pecl-operator/Makefile b/devel/pecl-operator/Makefile
index 091d3e4..b4518ff 100644
--- a/devel/pecl-operator/Makefile
+++ b/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 a/devel/pecl-params/Makefile b/devel/pecl-params/Makefile
index 349d385..b3ce714 100644
--- a/devel/pecl-params/Makefile
+++ b/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 a/devel/pecl-parsekit/Makefile b/devel/pecl-parsekit/Makefile
index a8da99f..bc1f9f5 100644
--- a/devel/pecl-parsekit/Makefile
+++ b/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 a/devel/pecl-propro/Makefile b/devel/pecl-propro/Makefile
index 94f7f7c..e2de5b1 100644
--- a/devel/pecl-propro/Makefile
+++ b/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 <bsd.port.mk>
diff --git a/devel/pecl-propro2/Makefile b/devel/pecl-propro2/Makefile
index 1519fd6..0b361d0 100644
--- a/devel/pecl-propro2/Makefile
+++ b/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 a/devel/pecl-pthreads/Makefile b/devel/pecl-pthreads/Makefile
index ea306f4..4ad8dcb 100644
--- a/devel/pecl-pthreads/Makefile
+++ b/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 <bsd.port.options.mk>
diff --git a/devel/pecl-qb/Makefile b/devel/pecl-qb/Makefile
index a12032c..9b591c7 100644
--- a/devel/pecl-qb/Makefile
+++ b/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 a/devel/pecl-raphf/Makefile b/devel/pecl-raphf/Makefile
index a8c53e2..8ef2b62 100644
--- a/devel/pecl-raphf/Makefile
+++ b/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 <bsd.port.mk>
diff --git a/devel/pecl-raphf2/Makefile b/devel/pecl-raphf2/Makefile
index c684c37..74c0779 100644
--- a/devel/pecl-raphf2/Makefile
+++ b/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 a/devel/pecl-runkit/Makefile b/devel/pecl-runkit/Makefile
index ab2ce81..2f1e2ad 100644
--- a/devel/pecl-runkit/Makefile
+++ b/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 a/devel/pecl-scream/Makefile b/devel/pecl-scream/Makefile
index 84bb951..df839a8 100644
--- a/devel/pecl-scream/Makefile
+++ b/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 a/devel/pecl-shape/Makefile b/devel/pecl-shape/Makefile
index 56978e7..8e2b88a 100644
--- a/devel/pecl-shape/Makefile
+++ b/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 a/devel/pecl-spl_types/Makefile b/devel/pecl-spl_types/Makefile
index 00e414e..4cdae41 100644
--- a/devel/pecl-spl_types/Makefile
+++ b/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 a/devel/pecl-spread/Makefile b/devel/pecl-spread/Makefile
index a087b3f..ddf31c8 100644
--- a/devel/pecl-spread/Makefile
+++ b/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 a/devel/pecl-statgrab/Makefile b/devel/pecl-statgrab/Makefile
index 7da435e..68439ff 100644
--- a/devel/pecl-statgrab/Makefile
+++ b/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 a/devel/pecl-strict/Makefile b/devel/pecl-strict/Makefile
index a093823..ecd1e07 100644
--- a/devel/pecl-strict/Makefile
+++ b/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 <bsd.port.mk>
diff --git a/devel/pecl-svn/Makefile b/devel/pecl-svn/Makefile
index 0782282..76d331a 100644
--- a/devel/pecl-svn/Makefile
+++ b/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 <bsd.port.mk>
diff --git a/devel/pecl-swoole/Makefile b/devel/pecl-swoole/Makefile
index f873f49..d341d96 100644
--- a/devel/pecl-swoole/Makefile
+++ b/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 <bsd.port.mk>
diff --git a/devel/pecl-sync/Makefile b/devel/pecl-sync/Makefile
index 59775a9..dcb84648 100644
--- a/devel/pecl-sync/Makefile
+++ b/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 <bsd.port.mk>
diff --git a/devel/pecl-test_helpers/Makefile b/devel/pecl-test_helpers/Makefile
index 2a27e5b..d5c8b09 100644
--- a/devel/pecl-test_helpers/Makefile
+++ b/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 <bsd.port.mk>
diff --git a/devel/pecl-trace/Makefile b/devel/pecl-trace/Makefile
index 9a37f2c..bd1df83 100644
--- a/devel/pecl-trace/Makefile
+++ b/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 a/devel/pecl-uopz/Makefile b/devel/pecl-uopz/Makefile
index c65c3d3..6b6c2bb 100644
--- a/devel/pecl-uopz/Makefile
+++ b/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 <bsd.port.mk>
diff --git a/devel/pecl-uploadprogress/Makefile b/devel/pecl-uploadprogress/Makefile
index 2e92513..3b1e60a 100644
--- a/devel/pecl-uploadprogress/Makefile
+++ b/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 a/devel/pecl-uri_template/Makefile b/devel/pecl-uri_template/Makefile
index 7c52254..4044982 100644
--- a/devel/pecl-uri_template/Makefile
+++ b/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 <bsd.port.mk>
diff --git a/devel/pecl-uuid/Makefile b/devel/pecl-uuid/Makefile
index 803680e..00858d5 100644
--- a/devel/pecl-uuid/Makefile
+++ b/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 <bsd.port.mk>
diff --git a/devel/pecl-vld/Makefile b/devel/pecl-vld/Makefile
index 7d941c7..ead350d 100644
--- a/devel/pecl-vld/Makefile
+++ b/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 a/devel/pecl-weakref/Makefile b/devel/pecl-weakref/Makefile
index 1c3373c..ce229c1 100644
--- a/devel/pecl-weakref/Makefile
+++ b/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 a/devel/pecl-xhprof/Makefile b/devel/pecl-xhprof/Makefile
index 3d008ac..ff78060 100644
--- a/devel/pecl-xhprof/Makefile
+++ b/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 a/devel/pecl-yac/Makefile b/devel/pecl-yac/Makefile
index db0be3a..21b7d57 100644
--- a/devel/pecl-yac/Makefile
+++ b/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 a/devel/pecl-zookeeper/Makefile b/devel/pecl-zookeeper/Makefile
index c20d3de..37a6a63 100644
--- a/devel/pecl-zookeeper/Makefile
+++ b/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 a/devel/php-jq/Makefile b/devel/php-jq/Makefile
index f3085a9..a5f8ff3 100644
--- a/devel/php-jq/Makefile
+++ b/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 a/devel/php-maxminddb/Makefile b/devel/php-maxminddb/Makefile
index 789e4b7..e4f703c 100644
--- a/devel/php-maxminddb/Makefile
+++ b/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 <bsd.port.mk>
diff --git a/devel/php-memoize/Makefile b/devel/php-memoize/Makefile
index 469ca75..c5a0968 100644
--- a/devel/php-memoize/Makefile
+++ b/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 <bsd.port.pre.mk>
+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 <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/devel/php-scalar_objects/Makefile b/devel/php-scalar_objects/Makefile
index 1707be5..efd5474 100644
--- a/devel/php-scalar_objects/Makefile
+++ b/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 <bsd.port.mk>
diff --git a/devel/php-uprofiler/Makefile b/devel/php-uprofiler/Makefile
index 0edb67f..e3e3987 100644
--- a/devel/php-uprofiler/Makefile
+++ b/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 <bsd.port.mk>
diff --git a/devel/php-xdebug/Makefile b/devel/php-xdebug/Makefile
index 2319ea4..c6a29af 100644
--- a/devel/php-xdebug/Makefile
+++ b/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 a/devel/php5-blitz-devel/Makefile b/devel/php5-blitz-devel/Makefile
index 7af9713..a6df473 100644
--- a/devel/php5-blitz-devel/Makefile
+++ b/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 a/devel/php5-blitz/Makefile b/devel/php5-blitz/Makefile
index 2c2c967..c9c5bc4 100644
--- a/devel/php5-blitz/Makefile
+++ b/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 <bsd.port.mk>
diff --git a/devel/php5-dav/Makefile b/devel/php5-dav/Makefile
index 2ab6405..86a2b58 100644
--- a/devel/php5-dav/Makefile
+++ b/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 a/devel/php5-geshi/Makefile b/devel/php5-geshi/Makefile
index 4ccc6c0..2b7dfd0 100644
--- a/devel/php5-geshi/Makefile
+++ b/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 a/devel/php5-ice/Makefile b/devel/php5-ice/Makefile
index 89cc6d9..77640f0 100644
--- a/devel/php5-ice/Makefile
+++ b/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:build
IGNORE_WITH_PHP=70
BUILD_WRKSRC= ${WRKSRC}/php
INSTALL_WRKSRC= ${WRKSRC}/php
diff --git a/devel/php5-msgpack/Makefile b/devel/php5-msgpack/Makefile
index 11eafce..2819ac5 100644
--- a/devel/php5-msgpack/Makefile
+++ b/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 a/devel/php5-pinba/Makefile b/devel/php5-pinba/Makefile
index cb2fd56..4965dcf 100644
--- a/devel/php5-pinba/Makefile
+++ b/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 <bsd.port.mk>
diff --git a/devel/php5-thrift/Makefile b/devel/php5-thrift/Makefile
index d6ebfa9..83e3e09 100644
--- a/devel/php5-thrift/Makefile
+++ b/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 a/finance/myphpmoney/Makefile b/finance/myphpmoney/Makefile
index 829995e..e82007d 100644
--- a/finance/myphpmoney/Makefile
+++ b/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 a/finance/php-tclink/Makefile b/finance/php-tclink/Makefile
index d3798c8..7417dce 100644
--- a/finance/php-tclink/Makefile
+++ b/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 a/graphics/geos/Makefile b/graphics/geos/Makefile
index cdafe78..8a4c89f4 100644
--- a/graphics/geos/Makefile
+++ b/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 a/graphics/graphviz/Makefile b/graphics/graphviz/Makefile
index 0cc5ee8..e7cea29 100644
--- a/graphics/graphviz/Makefile
+++ b/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 a/graphics/pear-Image_Graph/Makefile b/graphics/pear-Image_Graph/Makefile
index 44bf47a..08f354e 100644
--- a/graphics/pear-Image_Graph/Makefile
+++ b/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 a/graphics/pecl-gmagick/Makefile b/graphics/pecl-gmagick/Makefile
index d07c00d..8f3e82b 100644
--- a/graphics/pecl-gmagick/Makefile
+++ b/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 a/graphics/pecl-imagick/Makefile b/graphics/pecl-imagick/Makefile
index b0346cc..5d4f8b5 100644
--- a/graphics/pecl-imagick/Makefile
+++ b/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 a/graphics/pecl-imlib2/Makefile b/graphics/pecl-imlib2/Makefile
index 84a4fc3..d9e09ba 100644
--- a/graphics/pecl-imlib2/Makefile
+++ b/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 a/graphics/pecl-qrencode/Makefile b/graphics/pecl-qrencode/Makefile
index e4e77e5..43ccb3f 100644
--- a/graphics/pecl-qrencode/Makefile
+++ b/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 a/graphics/php-facedetect/Makefile b/graphics/php-facedetect/Makefile
index df99c77..94e4192 100644
--- a/graphics/php-facedetect/Makefile
+++ b/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 a/graphics/php-gdal/Makefile b/graphics/php-gdal/Makefile
index 9c56033..59d24ab 100644
--- a/graphics/php-gdal/Makefile
+++ b/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 a/graphics/php-libpuzzle/Makefile b/graphics/php-libpuzzle/Makefile
index 5b8d280..f5c1c3c 100644
--- a/graphics/php-libpuzzle/Makefile
+++ b/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 a/graphics/php-magickwand/Makefile b/graphics/php-magickwand/Makefile
index e65e475..9ce390d 100644
--- a/graphics/php-magickwand/Makefile
+++ b/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 a/graphics/php5-ffmpeg/Makefile b/graphics/php5-ffmpeg/Makefile
index eb5630d..a5513b7 100644
--- a/graphics/php5-ffmpeg/Makefile
+++ b/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 <bsd.port.mk>
diff --git a/graphics/phplot/Makefile b/graphics/phplot/Makefile
index b970961..8f7f3fd 100644
--- a/graphics/phplot/Makefile
+++ b/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 a/japanese/guesswork-classic/Makefile b/japanese/guesswork-classic/Makefile
index db4ef6f..9f70d1f 100644
--- a/japanese/guesswork-classic/Makefile
+++ b/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 a/japanese/php5-mecab/Makefile b/japanese/php5-mecab/Makefile
index e861b41..45ba21d 100644
--- a/japanese/php5-mecab/Makefile
+++ b/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 a/lang/pecl-perl/Makefile b/lang/pecl-perl/Makefile
index a1cf9c4..aadb93c 100644
--- a/lang/pecl-perl/Makefile
+++ b/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 <bsd.port.mk>
diff --git a/lang/php55-extensions/Makefile b/lang/php55-extensions/Makefile
index a5f468c..28612be 100644
--- a/lang/php55-extensions/Makefile
+++ b/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 a/lang/php55/Makefile b/lang/php55/Makefile
index 080bee9..301a790 100644
--- a/lang/php55/Makefile
+++ b/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 a/lang/php55/Makefile.ext b/lang/php55/Makefile.ext
index 5845e3d..210c6ec 100644
--- a/lang/php55/Makefile.ext
+++ b/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 a/lang/php56-extensions/Makefile b/lang/php56-extensions/Makefile
index 184d2e1..11220ca 100644
--- a/lang/php56-extensions/Makefile
+++ b/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 a/lang/php56/Makefile b/lang/php56/Makefile
index 8edf78b..b2de323 100644
--- a/lang/php56/Makefile
+++ b/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 a/lang/php56/Makefile.ext b/lang/php56/Makefile.ext
index fec5aff..609fcbf 100644
--- a/lang/php56/Makefile.ext
+++ b/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 a/lang/php70-extensions/Makefile b/lang/php70-extensions/Makefile
index 5931715..f7313fa 100644
--- a/lang/php70-extensions/Makefile
+++ b/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 a/lang/php70/Makefile b/lang/php70/Makefile
index 5ee70db..6434fb4 100644
--- a/lang/php70/Makefile
+++ b/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 a/lang/php70/Makefile.ext b/lang/php70/Makefile.ext
index 043949c..2d1b831 100644
--- a/lang/php70/Makefile.ext
+++ b/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 a/lang/php_doc/Makefile b/lang/php_doc/Makefile
index 0b99abe..57a4cff 100644
--- a/lang/php_doc/Makefile
+++ b/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 a/mail/mlmmj/Makefile b/mail/mlmmj/Makefile
index dedbe41..d7de167 100644
--- a/mail/mlmmj/Makefile
+++ b/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 a/mail/pecl-esmtp/Makefile b/mail/pecl-esmtp/Makefile
index d8ba6b03..237b415 100644
--- a/mail/pecl-esmtp/Makefile
+++ b/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 a/mail/pecl-mailparse/Makefile b/mail/pecl-mailparse/Makefile
index c22db6f..fc514a4 100644
--- a/mail/pecl-mailparse/Makefile
+++ b/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 <bsd.port.mk>
diff --git a/mail/pecl-pop3/Makefile b/mail/pecl-pop3/Makefile
index b5f7d77..e9f6a2b 100644
--- a/mail/pecl-pop3/Makefile
+++ b/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 <bsd.port.mk>
diff --git a/mail/phpmailer/Makefile b/mail/phpmailer/Makefile
index f52f7dd..1f242b5 100644
--- a/mail/phpmailer/Makefile
+++ b/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 a/math/pecl-big_int/Makefile b/math/pecl-big_int/Makefile
index 505e45b..64ef898 100644
--- a/math/pecl-big_int/Makefile
+++ b/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 a/math/pecl-bitset/Makefile b/math/pecl-bitset/Makefile
index 33aee62..276400b 100644
--- a/math/pecl-bitset/Makefile
+++ b/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 <bsd.port.mk>
diff --git a/math/pecl-bitset2/Makefile b/math/pecl-bitset2/Makefile
index 52b3cd1..3b39178 100644
--- a/math/pecl-bitset2/Makefile
+++ b/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 <bsd.port.mk>
diff --git a/math/pecl-stats/Makefile b/math/pecl-stats/Makefile
index 0b753e3..e7ea635 100644
--- a/math/pecl-stats/Makefile
+++ b/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 <bsd.port.mk>
diff --git a/math/pecl-trader/Makefile b/math/pecl-trader/Makefile
index 6c42c39..40d97071 100644
--- a/math/pecl-trader/Makefile
+++ b/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 <bsd.port.mk>
diff --git a/math/rkward-kde4/Makefile b/math/rkward-kde4/Makefile
index 518b64d..f8d3864 100644
--- a/math/rkward-kde4/Makefile
+++ b/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 a/misc/achievo/Makefile b/misc/achievo/Makefile
index b07f57c..a0b1e57 100644
--- a/misc/achievo/Makefile
+++ b/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 a/misc/pecl-timezonedb/Makefile b/misc/pecl-timezonedb/Makefile
index a30e932..0b5bec1 100644
--- a/misc/pecl-timezonedb/Makefile
+++ b/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 <bsd.port.mk>
diff --git a/multimedia/php-pHash/Makefile b/multimedia/php-pHash/Makefile
index 4079f92..4540c37 100644
--- a/multimedia/php-pHash/Makefile
+++ b/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 a/net-im/pecl-stomp/Makefile b/net-im/pecl-stomp/Makefile
index 26c1e82..16302b1 100644
--- a/net-im/pecl-stomp/Makefile
+++ b/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 <bsd.port.mk>
diff --git a/net-mgmt/icingaweb2/Makefile b/net-mgmt/icingaweb2/Makefile
index 3cb591b..27fd7ac 100644
--- a/net-mgmt/icingaweb2/Makefile
+++ b/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 a/net-mgmt/nagios/Makefile b/net-mgmt/nagios/Makefile
index 62eb162..166ffed 100644
--- a/net-mgmt/nagios/Makefile
+++ b/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 a/net-mgmt/percona-monitoring-plugins/Makefile b/net-mgmt/percona-monitoring-plugins/Makefile
index a2dfdcb..c3a99dc 100644
--- a/net-mgmt/percona-monitoring-plugins/Makefile
+++ b/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 a/net/pear-Net_DNSBL/Makefile b/net/pear-Net_DNSBL/Makefile
index 6cb73c6..5997a6c 100644
--- a/net/pear-Net_DNSBL/Makefile
+++ b/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 a/net/pecl-amqp/Makefile b/net/pecl-amqp/Makefile
index 9c97015..9409e50 100644
--- a/net/pecl-amqp/Makefile
+++ b/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 <bsd.port.mk>
diff --git a/net/pecl-apn/Makefile b/net/pecl-apn/Makefile
index 9f3cbac..de4291f 100644
--- a/net/pecl-apn/Makefile
+++ b/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 a/net/pecl-cvsclient/Makefile b/net/pecl-cvsclient/Makefile
index 0ce7a46a..75af09c 100644
--- a/net/pecl-cvsclient/Makefile
+++ b/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 <bsd.port.mk>
diff --git a/net/pecl-geoip/Makefile b/net/pecl-geoip/Makefile
index 30a5589..53c0d6d 100644
--- a/net/pecl-geoip/Makefile
+++ b/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
post-patch:
@${REINPLACE_CMD} -e 's|-ldl||g' ${WRKSRC}/config.m4
diff --git a/net/pecl-gupnp/Makefile b/net/pecl-gupnp/Makefile
index 76a8994..2991627 100644
--- a/net/pecl-gupnp/Makefile
+++ b/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 a/net/pecl-ip2location/Makefile b/net/pecl-ip2location/Makefile
index 4aa3b01..4d6af9c 100644
--- a/net/pecl-ip2location/Makefile
+++ b/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 <bsd.port.mk>
diff --git a/net/pecl-mosquitto/Makefile b/net/pecl-mosquitto/Makefile
index 8b4ec46..6f35570 100644
--- a/net/pecl-mosquitto/Makefile
+++ b/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 <bsd.port.mk>
diff --git a/net/pecl-oauth/Makefile b/net/pecl-oauth/Makefile
index 15b9b9d..7ab4b20 100644
--- a/net/pecl-oauth/Makefile
+++ b/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 <bsd.port.mk>
diff --git a/net/pecl-radius/Makefile b/net/pecl-radius/Makefile
index 3418c23..6790e9a 100644
--- a/net/pecl-radius/Makefile
+++ b/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 a/net/pecl-smbclient/Makefile b/net/pecl-smbclient/Makefile
index 90a1acb..05783dc 100644
--- a/net/pecl-smbclient/Makefile
+++ b/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 a/net/pecl-yaz/Makefile b/net/pecl-yaz/Makefile
index 73bd410..92f8433 100644
--- a/net/pecl-yaz/Makefile
+++ b/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 a/net/pecl-yp/Makefile b/net/pecl-yp/Makefile
index eabd0ce..db620b1 100644
--- a/net/pecl-yp/Makefile
+++ b/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 <bsd.port.mk>
diff --git a/net/pecl-zmq/Makefile b/net/pecl-zmq/Makefile
index d6f7886..d48f80a 100644
--- a/net/pecl-zmq/Makefile
+++ b/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 <bsd.port.mk>
diff --git a/net/scr_ipfm/Makefile b/net/scr_ipfm/Makefile
index 766105d..51680fb 100644
--- a/net/scr_ipfm/Makefile
+++ b/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 a/print/pecl-haru/Makefile b/print/pecl-haru/Makefile
index fdb6b92..392352f 100644
--- a/print/pecl-haru/Makefile
+++ b/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 a/print/pecl-pdflib/Makefile b/print/pecl-pdflib/Makefile
index 653b953..c5dfd02 100644
--- a/print/pecl-pdflib/Makefile
+++ b/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 a/print/pecl-ps/Makefile b/print/pecl-ps/Makefile
index 3155a69..1a7257a 100644
--- a/print/pecl-ps/Makefile
+++ b/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 a/security/lasso/Makefile b/security/lasso/Makefile
index 328b312..97cb079 100644
--- a/security/lasso/Makefile
+++ b/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 a/security/pear-Text_Password/Makefile b/security/pear-Text_Password/Makefile
index a2ba4e68..1dcf355 100644
--- a/security/pear-Text_Password/Makefile
+++ b/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 a/security/pecl-crack/Makefile b/security/pecl-crack/Makefile
index a9081c98..2d65c20 100644
--- a/security/pecl-crack/Makefile
+++ b/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 a/security/pecl-crypto/Makefile b/security/pecl-crypto/Makefile
index 2d9d8b7..af467bf 100644
--- a/security/pecl-crypto/Makefile
+++ b/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 <bsd.port.mk>
diff --git a/security/pecl-gnupg/Makefile b/security/pecl-gnupg/Makefile
index 761a816..14118f4 100644
--- a/security/pecl-gnupg/Makefile
+++ b/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 a/security/pecl-pam/Makefile b/security/pecl-pam/Makefile
index cb2a62e..86fad0a 100644
--- a/security/pecl-pam/Makefile
+++ b/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 <bsd.port.mk>
diff --git a/security/pecl-scrypt/Makefile b/security/pecl-scrypt/Makefile
index d502606..5ce1319 100644
--- a/security/pecl-scrypt/Makefile
+++ b/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 a/security/pecl-ssh2/Makefile b/security/pecl-ssh2/Makefile
index e7371db..ae9ae9c 100644
--- a/security/pecl-ssh2/Makefile
+++ b/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 a/security/pecl-tcpwrap/Makefile b/security/pecl-tcpwrap/Makefile
index 6f7b11c..63fe13f 100644
--- a/security/pecl-tcpwrap/Makefile
+++ b/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 a/security/php-suhosin/Makefile b/security/php-suhosin/Makefile
index 48dad7d..b5a9522 100644
--- a/security/php-suhosin/Makefile
+++ b/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 a/security/snortreport/Makefile b/security/snortreport/Makefile
index e212725..7827b63 100644
--- a/security/snortreport/Makefile
+++ b/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 <bsd.port.options.mk>
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 <bsd.port.mk>
diff --git a/sysutils/pear-File_Gettext/Makefile b/sysutils/pear-File_Gettext/Makefile
index 5ff1890..8da4c2c 100644
--- a/sysutils/pear-File_Gettext/Makefile
+++ b/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 <bsd.port.mk>
diff --git a/sysutils/pear-Log/Makefile b/sysutils/pear-Log/Makefile
index 6ae9770..563a471 100644
--- a/sysutils/pear-Log/Makefile
+++ b/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 a/sysutils/pear-Translation2/Makefile b/sysutils/pear-Translation2/Makefile
index bedd809..75ffa71 100644
--- a/sysutils/pear-Translation2/Makefile
+++ b/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 a/sysutils/pecl-mogilefs/Makefile b/sysutils/pecl-mogilefs/Makefile
index 6a68364..abd075b 100644
--- a/sysutils/pecl-mogilefs/Makefile
+++ b/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 a/sysutils/pecl-proctitle/Makefile b/sysutils/pecl-proctitle/Makefile
index fa55484..02ab2d7 100644
--- a/sysutils/pecl-proctitle/Makefile
+++ b/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 <bsd.port.mk>
diff --git a/textproc/libmrss-php/Makefile b/textproc/libmrss-php/Makefile
index 2bf364d..e7c6ccf 100644
--- a/textproc/libmrss-php/Makefile
+++ b/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 a/textproc/mysqlviz/Makefile b/textproc/mysqlviz/Makefile
index 89154a7..b8fd949 100644
--- a/textproc/mysqlviz/Makefile
+++ b/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 a/textproc/pecl-cld/Makefile b/textproc/pecl-cld/Makefile
index 505689e..833b54b 100644
--- a/textproc/pecl-cld/Makefile
+++ b/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 a/textproc/pecl-ctemplate/Makefile b/textproc/pecl-ctemplate/Makefile
index d783285..fce74cb 100644
--- a/textproc/pecl-ctemplate/Makefile
+++ b/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 a/textproc/pecl-doublemetaphone/Makefile b/textproc/pecl-doublemetaphone/Makefile
index 7206f8f..02b8e90 100644
--- a/textproc/pecl-doublemetaphone/Makefile
+++ b/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 a/textproc/pecl-enchant/Makefile b/textproc/pecl-enchant/Makefile
index b0dd2fc..206b2db 100644
--- a/textproc/pecl-enchant/Makefile
+++ b/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 a/textproc/pecl-html_parse/Makefile b/textproc/pecl-html_parse/Makefile
index 54f3e28..d90723b 100644
--- a/textproc/pecl-html_parse/Makefile
+++ b/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 a/textproc/pecl-stem/Makefile b/textproc/pecl-stem/Makefile
index a39bba7..9927f55 100644
--- a/textproc/pecl-stem/Makefile
+++ b/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 a/textproc/pecl-syck/Makefile b/textproc/pecl-syck/Makefile
index e76506b..53b715f 100644
--- a/textproc/pecl-syck/Makefile
+++ b/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 a/textproc/pecl-wbxml/Makefile b/textproc/pecl-wbxml/Makefile
index 3509541..d91c736 100644
--- a/textproc/pecl-wbxml/Makefile
+++ b/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 a/textproc/pecl-xdiff/Makefile b/textproc/pecl-xdiff/Makefile
index 83eb101..800bcf6 100644
--- a/textproc/pecl-xdiff/Makefile
+++ b/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 a/textproc/pecl-xslcache/Makefile b/textproc/pecl-xslcache/Makefile
index 82e2c36..450565f 100644
--- a/textproc/pecl-xslcache/Makefile
+++ b/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 <bsd.port.mk>
diff --git a/textproc/pecl-yaml/Makefile b/textproc/pecl-yaml/Makefile
index c9a4589..0e71956 100644
--- a/textproc/pecl-yaml/Makefile
+++ b/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 <bsd.port.mk>
diff --git a/textproc/php-mecab/Makefile b/textproc/php-mecab/Makefile
index 65bf0af..3abcd6c 100644
--- a/textproc/php-mecab/Makefile
+++ b/textproc/php-mecab/Makefile
@@ -1,11 +1,10 @@
# Created by: Gasol Wu <gasol.wu@gmail.com>
# $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,10 @@ 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
+PHP_MODNAME= mecab
.include <bsd.port.mk>
diff --git a/textproc/redland-bindings/Makefile b/textproc/redland-bindings/Makefile
index 14e7bdd..9c7ecab 100644
--- a/textproc/redland-bindings/Makefile
+++ b/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 a/textproc/zorba/Makefile b/textproc/zorba/Makefile
index 4189de4..b2462a5 100644
--- a/textproc/zorba/Makefile
+++ b/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 a/www/ach/Makefile b/www/ach/Makefile
index 5823f17..e56941d 100644
--- a/www/ach/Makefile
+++ b/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 a/www/caldavzap/Makefile b/www/caldavzap/Makefile
index 84ca4d5..87bdf5f 100644
--- a/www/caldavzap/Makefile
+++ b/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 a/www/crp/Makefile b/www/crp/Makefile
index 09b67b3..dc33dc5 100644
--- a/www/crp/Makefile
+++ b/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 a/www/dddbl/Makefile b/www/dddbl/Makefile
index 1d19ab9..6b67c64 100644
--- a/www/dddbl/Makefile
+++ b/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 a/www/encode-explorer/Makefile b/www/encode-explorer/Makefile
index 8a0969e..9bf24a5 100644
--- a/www/encode-explorer/Makefile
+++ b/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 a/www/flat-frog/Makefile b/www/flat-frog/Makefile
index 408b07c..d658dc8 100644
--- a/www/flat-frog/Makefile
+++ b/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 a/www/fluxbb/Makefile b/www/fluxbb/Makefile
index 80bb6fd..c638712 100644
--- a/www/fluxbb/Makefile
+++ b/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 a/www/geeklog/Makefile b/www/geeklog/Makefile
index b832c45..296c623 100644
--- a/www/geeklog/Makefile
+++ b/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 a/www/iwebcal/Makefile b/www/iwebcal/Makefile
index aa0523c..17cdce3 100644
--- a/www/iwebcal/Makefile
+++ b/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 a/www/mod_myvhost/Makefile b/www/mod_myvhost/Makefile
index f2418cd..ebfc945 100644
--- a/www/mod_myvhost/Makefile
+++ b/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 a/www/mod_vhs/Makefile b/www/mod_vhs/Makefile
index eba6b5d..0194315 100644
--- a/www/mod_vhs/Makefile
+++ b/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 a/www/pecl-APC/Makefile b/www/pecl-APC/Makefile
index 609acc9..b9160a4 100644
--- a/www/pecl-APC/Makefile
+++ b/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 a/www/pecl-amfext/Makefile b/www/pecl-amfext/Makefile
index d314255..2a3ea16 100644
--- a/www/pecl-amfext/Makefile
+++ b/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 a/www/pecl-http/Makefile b/www/pecl-http/Makefile
index ce5a29c..b0d1573 100644
--- a/www/pecl-http/Makefile
+++ b/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 <bsd.port.mk>
diff --git a/www/pecl-http1/Makefile b/www/pecl-http1/Makefile
index 02c243d..8219055 100644
--- a/www/pecl-http1/Makefile
+++ b/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 a/www/pecl-http2/Makefile b/www/pecl-http2/Makefile
index ea0a436..f19c0db 100644
--- a/www/pecl-http2/Makefile
+++ b/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 <bsd.port.mk>
diff --git a/www/pecl-solr/Makefile b/www/pecl-solr/Makefile
index 1bbc201..3b7a03a 100644
--- a/www/pecl-solr/Makefile
+++ b/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 <bsd.port.mk>
diff --git a/www/pecl-sphinx/Makefile b/www/pecl-sphinx/Makefile
index 29244f9..03a3b22 100644
--- a/www/pecl-sphinx/Makefile
+++ b/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 a/www/pecl-swish/Makefile b/www/pecl-swish/Makefile
index 5741cb8..708218b 100644
--- a/www/pecl-swish/Makefile
+++ b/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 a/www/pecl-twig/Makefile b/www/pecl-twig/Makefile
index 97d4f6c..5372eab 100644
--- a/www/pecl-twig/Makefile
+++ b/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 <bsd.port.mk>
diff --git a/www/pecl-varnish/Makefile b/www/pecl-varnish/Makefile
index 3fb3773..3225ac2 100644
--- a/www/pecl-varnish/Makefile
+++ b/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 a/www/pecl-yaf/Makefile b/www/pecl-yaf/Makefile
index 657b9fc..446e6a0 100644
--- a/www/pecl-yaf/Makefile
+++ b/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 <bsd.port.mk>
diff --git a/www/pecl-yar/Makefile b/www/pecl-yar/Makefile
index b72b541..111054a 100644
--- a/www/pecl-yar/Makefile
+++ b/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 a/www/phalcon/Makefile b/www/phalcon/Makefile
index 5d77ac0..709432e 100644
--- a/www/phalcon/Makefile
+++ b/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 a/www/php-screw/Makefile b/www/php-screw/Makefile
index 2b83190..1fa740c 100644
--- a/www/php-screw/Makefile
+++ b/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 a/www/php-templates/Makefile b/www/php-templates/Makefile
index 7fb1794..15b43ae 100644
--- a/www/php-templates/Makefile
+++ b/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 a/www/php55-opcache/Makefile b/www/php55-opcache/Makefile
index 409d5cc..1dc5c1f 100644
--- a/www/php55-opcache/Makefile
+++ b/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 a/www/php56-opcache/Makefile b/www/php56-opcache/Makefile
index 563247f..2c4265a 100644
--- a/www/php56-opcache/Makefile
+++ b/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 a/www/php70-opcache/Makefile b/www/php70-opcache/Makefile
index 4a743d8..db9930b 100644
--- a/www/php70-opcache/Makefile
+++ b/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 a/www/phpbb3/Makefile b/www/phpbb3/Makefile
index a02d145..1aa69cb 100644
--- a/www/phpbb3/Makefile
+++ b/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 a/www/phpgroupware/Makefile b/www/phpgroupware/Makefile
index a33f0e9..f311ff6 100644
--- a/www/phpgroupware/Makefile
+++ b/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 a/www/phpmustache/Makefile b/www/phpmustache/Makefile
index c928f04..dac185c 100644
--- a/www/phpmustache/Makefile
+++ b/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 a/www/phpwebapp/Makefile b/www/phpwebapp/Makefile
index 887f4b8..3f1d8eb 100644
--- a/www/phpwebapp/Makefile
+++ b/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 a/www/pnews/Makefile b/www/pnews/Makefile
index ad0950f..95c9903 100644
--- a/www/pnews/Makefile
+++ b/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 a/www/pserv/Makefile b/www/pserv/Makefile
index 1631c71..9deae74 100644
--- a/www/pserv/Makefile
+++ b/www/pserv/Makefile
@@ -21,24 +21,19 @@ OPTIONS_DEFINE= LOG PHP
OPTIONS_DEFAULT= LOG PHP
LOG_DESC= Enable loggin
-.include <bsd.port.options.mk>
-
-.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 a/www/punbb/Makefile b/www/punbb/Makefile
index 1bd6dcb..7fa4cec 100644
--- a/www/punbb/Makefile
+++ b/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 a/www/skytemplate/Makefile b/www/skytemplate/Makefile
index d97a410..41b69e4 100644
--- a/www/skytemplate/Makefile
+++ b/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 a/www/suphp/Makefile b/www/suphp/Makefile
index a8bb1ee..32b4937 100644
--- a/www/suphp/Makefile
+++ b/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 a/www/template_/Makefile b/www/template_/Makefile
index 34d27c9..6ec7366 100644
--- a/www/template_/Makefile
+++ b/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 a/www/webgrind/Makefile b/www/webgrind/Makefile
index 3df5d74..46c4bf0 100644
--- a/www/webgrind/Makefile
+++ b/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 a/www/xcache/Makefile b/www/xcache/Makefile
index 89a9cfc..93bf7ca 100644
--- a/www/xcache/Makefile
+++ b/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 a/www/zen-cart/Makefile b/www/zen-cart/Makefile
index 6a5f8b9..2264221 100644
--- a/www/zen-cart/Makefile
+++ b/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
OpenPOWER on IntegriCloud