diff options
author | mat <mat@FreeBSD.org> | 2016-06-28 13:57:43 +0000 |
---|---|---|
committer | mat <mat@FreeBSD.org> | 2016-06-28 13:57:43 +0000 |
commit | e222bdd8ba1b01105ad89086d2a173595c77d123 (patch) | |
tree | 7e771ff32d7e0f799bdc9bf7b1648b771015847d | |
parent | b529bcf7837c73d4884ecce215abe82167f6e4fd (diff) | |
download | FreeBSD-ports-e222bdd8ba1b01105ad89086d2a173595c77d123.zip FreeBSD-ports-e222bdd8ba1b01105ad89086d2a173595c77d123.tar.gz |
Add support for USE_PHP=ext:build to add a build dependency on the extension.
PR: 210529
Submitted by: mat
Exp-run by: antoine
Sponsored by: Absolight
Differential Revision: https://reviews.freebsd.org/D6936
-rw-r--r-- | Mk/Uses/php.mk | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/Mk/Uses/php.mk b/Mk/Uses/php.mk index 81fdfb8..d7ff150 100644 --- a/Mk/Uses/php.mk +++ b/Mk/Uses/php.mk @@ -385,18 +385,18 @@ zip_DEPENDS= archivers/php${PHP_VER}-zip zlib_DEPENDS= archivers/php${PHP_VER}-zlib . for extension in ${USE_PHP} -. if ${_USE_PHP_VER${PHP_VER}:M${extension}} != "" -. if ${PHP_EXT_INC:M${extension}} == "" -. if ${php_ARGS:Mbuild} -BUILD_DEPENDS+= ${PHPBASE}/lib/php/${PHP_EXT_DIR}/${extension}.so:${${extension}_DEPENDS} +ext= ${extension} +. if ${_USE_PHP_VER${PHP_VER}:M${ext:S/:build//}} != "" +. if ${PHP_EXT_INC:M${extension:S/:build//}} == "" +. if !empty(php_ARGS:Mbuild) || !empty(ext:M*\:build) +BUILD_DEPENDS+= ${PHPBASE}/lib/php/${PHP_EXT_DIR}/${extension:S/:build//}.so:${${extension:S/:build//}_DEPENDS} . endif -RUN_DEPENDS+= ${PHPBASE}/lib/php/${PHP_EXT_DIR}/${extension}.so:${${extension}_DEPENDS} +RUN_DEPENDS+= ${PHPBASE}/lib/php/${PHP_EXT_DIR}/${extension:S/:build//}.so:${${extension:S/:build//}_DEPENDS} . endif . else -ext= ${extension} . if ${ext:tl} != "yes" check-makevars:: - @${ECHO_CMD} "Unknown extension ${extension} for PHP ${PHP_VER}." + @${ECHO_CMD} "Unknown extension ${extension:S/:build//} for PHP ${PHP_VER}." @${FALSE} . endif . endif |