aboutsummaryrefslogtreecommitdiff
path: root/lang/php70/Makefile
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/php70/Makefile
parentd911a04f66e99d3f6d32c6f935925eb1e4ab4a1e (diff)
downloadports-11ca07f4fcf2a494e34f69fa036808af4df23217.tar.gz
ports-11ca07f4fcf2a494e34f69fa036808af4df23217.zip
Notes
Diffstat (limited to 'lang/php70/Makefile')
-rw-r--r--lang/php70/Makefile4
1 files changed, 3 insertions, 1 deletions
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)