1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-29 10:18:30 +00:00

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
This commit is contained in:
Mathieu Arnold 2017-02-07 12:27:02 +00:00
parent 25c794224f
commit ac5a807ae0
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=433544

View File

@ -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}