aboutsummaryrefslogtreecommitdiffstats
path: root/lang/php4
diff options
context:
space:
mode:
Diffstat (limited to 'lang/php4')
-rw-r--r--lang/php4/Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/lang/php4/Makefile b/lang/php4/Makefile
index eaa867f32eb4..a35437ba6900 100644
--- a/lang/php4/Makefile
+++ b/lang/php4/Makefile
@@ -627,6 +627,8 @@ LIB_DEPENDS+= netsnmp.6:${PORTSDIR}/net-mgmt/net-snmp
CONFIGURE_ARGS+=--with-snmp=${LOCALBASE} --enable-ucd-snmp-hack
.endif
+PHP_PORT= ${.CURDIR:S|^${PORTSDIR}||:S|^/||}
+
pre-patch:
@${SETENV} ${SCRIPTS_ENV} ${SH} ${SCRIPTDIR}/configure.php
@@ -672,7 +674,7 @@ post-build:
@${ECHO_CMD} "PHP_VER=4" > ${WRKDIR}/php.conf
@${ECHO_CMD} "PHP_VERSION=${PORTVERSION}" >> ${WRKDIR}/php.conf
@${ECHO_CMD} "PHP_EXT_DIR=${EXT_DIR}" >> ${WRKDIR}/php.conf
- @${ECHO_CMD} "PHP_PORT=${.CURDIR}" >> ${WRKDIR}/php.conf
+ @${ECHO_CMD} "PHP_PORT=\$${PORTSDIR}/${PHP_PORT}" >> ${WRKDIR}/php.conf
.if !defined(WITHOUT_CLI) && !defined(WITHOUT_PEAR)
@${ECHO_CMD} "PHP_PEAR=yes" >> ${WRKDIR}/php.conf
.else