summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lang/php4/Makefile3
-rw-r--r--lang/php5/Makefile3
-rw-r--r--lang/php53/Makefile3
3 files changed, 6 insertions, 3 deletions
diff --git a/lang/php4/Makefile b/lang/php4/Makefile
index a35437ba6900..33d97675b490 100644
--- a/lang/php4/Makefile
+++ b/lang/php4/Makefile
@@ -627,7 +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|^/||}
+_PORTSDIR!= ${REALPATH} ${PORTSDIR}
+PHP_PORT= ${.CURDIR:S|^${_PORTSDIR}||:S|^/||}
pre-patch:
@${SETENV} ${SCRIPTS_ENV} ${SH} ${SCRIPTDIR}/configure.php
diff --git a/lang/php5/Makefile b/lang/php5/Makefile
index 14246da88cf2..b2f8a256b1e6 100644
--- a/lang/php5/Makefile
+++ b/lang/php5/Makefile
@@ -622,7 +622,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|^/||}
+_PORTSDIR!= ${REALPATH} ${PORTSDIR}
+PHP_PORT= ${.CURDIR:S|^${_PORTSDIR}||:S|^/||}
pre-patch:
@${SETENV} ${SCRIPTS_ENV} ${SH} ${SCRIPTDIR}/configure.php
diff --git a/lang/php53/Makefile b/lang/php53/Makefile
index 14246da88cf2..b2f8a256b1e6 100644
--- a/lang/php53/Makefile
+++ b/lang/php53/Makefile
@@ -622,7 +622,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|^/||}
+_PORTSDIR!= ${REALPATH} ${PORTSDIR}
+PHP_PORT= ${.CURDIR:S|^${_PORTSDIR}||:S|^/||}
pre-patch:
@${SETENV} ${SCRIPTS_ENV} ${SH} ${SCRIPTDIR}/configure.php