diff options
author | Mathieu Arnold <mat@FreeBSD.org> | 2016-06-28 14:00:45 +0000 |
---|---|---|
committer | Mathieu Arnold <mat@FreeBSD.org> | 2016-06-28 14:00:45 +0000 |
commit | dca255c3cec21c0c66003eb626763c7fdc2cb59a (patch) | |
tree | e6eac391e081f99a997be8b0d8e036d22d5fe2a9 /lang/php55 | |
parent | Add support for USE_PHP=ext:build to add a build dependency on the extension. (diff) |
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/php55')
-rw-r--r-- | lang/php55/Makefile | 2 | ||||
-rw-r--r-- | lang/php55/Makefile.ext | 42 |
2 files changed, 15 insertions, 29 deletions
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" |