Fixes the dependecies for ports that have pcre and spl listed in USE_PHP for

the case when php 5 is already installed. This version of php includes them.
This commit is contained in:
Ion-Mihai Tetcu 2010-04-10 00:26:04 +00:00
parent b53cea3abd
commit 84c86c0f61
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=252504

View file

@ -41,6 +41,10 @@ PHPBASE?= ${LOCALBASE}
.if exists(${PHPBASE}/etc/php.conf)
.include "${PHPBASE}/etc/php.conf"
PHP_EXT_DIR!= ${PHPBASE}/bin/php-config --extension-dir | ${SED} -ne 's,^${PHPBASE}/lib/php/\(.*\),\1,p'
.if ${PHP_VER} == 5
PHP_EXT_INC= pcre spl
.endif
.else
DEFAULT_PHP_VER?= 5
@ -73,7 +77,7 @@ PHP_EXT_DIR:= ${PHP_EXT_DIR}-zts
PHP_EXT_DIR:= ${PHP_EXT_DIR}-debug
.endif
PHP_SAPI?= ""
.endif
.endif # .if exists(${PHPBASE}/etc/php.conf)
PHP_EXT_INC?= ""
# compatability shim