aboutsummaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authorMathieu Arnold <mat@FreeBSD.org>2016-06-23 13:19:17 +0000
committerMathieu Arnold <mat@FreeBSD.org>2016-06-23 13:19:17 +0000
commit11ca07f4fcf2a494e34f69fa036808af4df23217 (patch)
treed7078cd69433e0e735b7b9eebd96aa16fdbd9c94 /lang
parentd911a04f66e99d3f6d32c6f935925eb1e4ab4a1e (diff)
downloadports-11ca07f4fcf2a494e34f69fa036808af4df23217.tar.gz
ports-11ca07f4fcf2a494e34f69fa036808af4df23217.zip
Move bsd.php.mk to Uses/php.mk
PR: 210323 Submitted by: mat Exp-run by: antoine Sponsored by: Absolight Differential Revision: https://reviews.freebsd.org/D6867
Notes
Notes: svn path=/head/; revision=417374
Diffstat (limited to 'lang')
-rw-r--r--lang/php55/Makefile2
-rw-r--r--lang/php56/Makefile2
-rw-r--r--lang/php70/Makefile4
3 files changed, 7 insertions, 1 deletions
diff --git a/lang/php55/Makefile b/lang/php55/Makefile
index 1f23b4f7839d..3a6d92241113 100644
--- a/lang/php55/Makefile
+++ b/lang/php55/Makefile
@@ -185,6 +185,8 @@ post-build:
@${ECHO_CMD} "PHP_VERSION=${PORTVERSION}" >> ${WRKDIR}/php.conf
@${ECHO_CMD} "PHP_SAPI=${PHP_SAPI}" >> ${WRKDIR}/php.conf
@${ECHO_CMD} "PHP_EXT_INC=pcre spl" >> ${WRKDIR}/php.conf
+ @${ECHO_CMD} -n "PHP_EXT_DIR=" >> ${WRKDIR}/php.conf
+ @${SH} ${WRKSRC}/scripts/php-config --extension-dir | sed -ne 's,^${PREFIX}/lib/php/,,p' >> ${WRKDIR}/php.conf
test: build
@(cd ${WRKSRC} && ${MAKE} test)
diff --git a/lang/php56/Makefile b/lang/php56/Makefile
index dce16584b92d..41705c1004a7 100644
--- a/lang/php56/Makefile
+++ b/lang/php56/Makefile
@@ -188,6 +188,8 @@ post-build:
@${ECHO_CMD} "PHP_VERSION=${PORTVERSION}" >> ${WRKDIR}/php.conf
@${ECHO_CMD} "PHP_SAPI=${PHP_SAPI}" >> ${WRKDIR}/php.conf
@${ECHO_CMD} "PHP_EXT_INC=pcre spl" >> ${WRKDIR}/php.conf
+ @${ECHO_CMD} -n "PHP_EXT_DIR=" >> ${WRKDIR}/php.conf
+ @${SH} ${WRKSRC}/scripts/php-config --extension-dir | sed -ne 's,^${PREFIX}/lib/php/,,p' >> ${WRKDIR}/php.conf
test: build
@(cd ${WRKSRC} && ${MAKE} test)
diff --git a/lang/php70/Makefile b/lang/php70/Makefile
index 5b2684c23208..f0c01f8419f4 100644
--- a/lang/php70/Makefile
+++ b/lang/php70/Makefile
@@ -169,19 +169,21 @@ post-patch:
${WRKSRC}/sapi/fpm/php-fpm.conf.in
.endif
+# Work around issues with newer (>=2.64) autoconf
pre-configure:
@${REINPLACE_CMD} -E 's:^((m4_)?divert)[(]([0-9]*)[)]:\1(600\3):' \
${WRKSRC}/configure.in `${FIND} ${WRKSRC} -name '*.m4'`
@${RM} ${WRKSRC}/configure
@${CAT} ${WRKSRC}/acinclude.m4 ${WRKSRC}/build/libtool.m4 > ${WRKSRC}/aclocal.m4
-
.if !defined(PKGNAMEPREFIX)
post-build:
@${ECHO_CMD} "PHP_VER=70" > ${WRKDIR}/php.conf
@${ECHO_CMD} "PHP_VERSION=${PORTVERSION}" >> ${WRKDIR}/php.conf
@${ECHO_CMD} "PHP_SAPI=${PHP_SAPI}" >> ${WRKDIR}/php.conf
@${ECHO_CMD} "PHP_EXT_INC=pcre spl" >> ${WRKDIR}/php.conf
+ @${ECHO_CMD} -n "PHP_EXT_DIR=" >> ${WRKDIR}/php.conf
+ @${SH} ${WRKSRC}/scripts/php-config --extension-dir | sed -ne 's,^${PREFIX}/lib/php/,,p' >> ${WRKDIR}/php.conf
test: build
@(cd ${WRKSRC} && ${MAKE} test)