aboutsummaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authorMathieu Arnold <mat@FreeBSD.org>2016-06-28 14:00:45 +0000
committerMathieu Arnold <mat@FreeBSD.org>2016-06-28 14:00:45 +0000
commitdca255c3cec21c0c66003eb626763c7fdc2cb59a (patch)
treee6eac391e081f99a997be8b0d8e036d22d5fe2a9 /lang
parent4973e5b396de5fdc84495adcdcb1f40854c8ebcd (diff)
downloadports-dca255c3cec21c0c66003eb626763c7fdc2cb59a.tar.gz
ports-dca255c3cec21c0c66003eb626763c7fdc2cb59a.zip
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
Notes
Notes: svn path=/head/; revision=417719
Diffstat (limited to 'lang')
-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
11 files changed, 49 insertions, 102 deletions
diff --git a/lang/pecl-perl/Makefile b/lang/pecl-perl/Makefile
index a1cf9c481e16..aadb93c29853 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 a5f468c6996c..28612be5a954 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 080bee9d80c8..301a790d6d1e 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 5845e3d41f1a..210c6ec59c53 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 184d2e1590f1..11220cac519e 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 8edf78b1462d..b2de323ab4d7 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 fec5aff98418..609fcbf7bf29 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 5931715602c9..f7313fa36246 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 5ee70db2b5f0..6434fb423259 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 043949cc8cb8..2d1b83128c47 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 0b99abe14c48..57a4cffbb07a 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