Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 7 Feb 2017 12:27:02 +0000 (UTC)
From:      Mathieu Arnold <mat@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r433544 - head/Mk/Uses
Message-ID:  <201702071227.v17CR23T055974@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mat
Date: Tue Feb  7 12:27:02 2017
New Revision: 433544
URL: https://svnweb.freebsd.org/changeset/ports/433544

Log:
  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

Modified:
  head/Mk/Uses/php.mk

Modified: head/Mk/Uses/php.mk
==============================================================================
--- head/Mk/Uses/php.mk	Tue Feb  7 12:14:34 2017	(r433543)
+++ head/Mk/Uses/php.mk	Tue Feb  7 12:27:02 2017	(r433544)
@@ -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
 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}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201702071227.v17CR23T055974>