diff options
author | mat <mat@FreeBSD.org> | 2017-02-07 20:27:02 +0800 |
---|---|---|
committer | mat <mat@FreeBSD.org> | 2017-02-07 20:27:02 +0800 |
commit | fe17d9a16b6995f7ec816159ebeab6349f8dc66c (patch) | |
tree | f72a575660c6838222bb729eda96d386948cde11 /Mk | |
parent | 443a8a28b3bcbcb6163d5e590206070badda7501 (diff) | |
download | freebsd-ports-gnome-fe17d9a16b6995f7ec816159ebeab6349f8dc66c.tar.gz freebsd-ports-gnome-fe17d9a16b6995f7ec816159ebeab6349f8dc66c.tar.zst freebsd-ports-gnome-fe17d9a16b6995f7ec816159ebeab6349f8dc66c.zip |
Make USES=php behaves a bit more nicely with PHP 7.0 and 7.1 for ports
where USE_PHP includes modules that are 5.6 only (like mysql).
Sponsored by: Absolight
Diffstat (limited to 'Mk')
-rw-r--r-- | Mk/Uses/php.mk | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Mk/Uses/php.mk b/Mk/Uses/php.mk index a9a734b8e7da..bacef1e61b00 100644 --- a/Mk/Uses/php.mk +++ b/Mk/Uses/php.mk @@ -139,6 +139,7 @@ PHP_EXT_INC?= "" . if defined(IGNORE_WITH_PHP) . for VER in ${IGNORE_WITH_PHP} . if ${PHP_VER} == "${VER}" +_IGNORE_PHP_SET= IGNORE= cannot be installed: doesn't work with lang/php${PHP_VER} port\ (doesn't support PHP ${IGNORE_WITH_PHP:C/^([57])/\1./}) . endif @@ -402,7 +403,7 @@ BUILD_DEPENDS+= ${PHPBASE}/lib/php/${PHP_EXT_DIR}/${extension:S/:build//}.so:${$ RUN_DEPENDS+= ${PHPBASE}/lib/php/${PHP_EXT_DIR}/${extension:S/:build//}.so:${${extension:S/:build//}_DEPENDS} . endif . else -. if ${ext:tl} != "yes" +. if ${ext:tl} != "yes" && !defined(_IGNORE_PHP_SET) check-makevars:: @${ECHO_CMD} "Unknown extension ${extension:S/:build//} for PHP ${PHP_VER}." @${FALSE} |