summaryrefslogtreecommitdiff
path: root/lang/php4
diff options
context:
space:
mode:
authorAlex Dupre <ale@FreeBSD.org>2004-03-13 22:35:17 +0000
committerAlex Dupre <ale@FreeBSD.org>2004-03-13 22:35:17 +0000
commit629fc51df0280bb8c30ed1499e2a27b59d068370 (patch)
tree9f930c3e91b2b99d9d025ec1a2dc0fefd7ebea24 /lang/php4
parent- Update to version 2.2.1 (diff)
Fix PHP_PORT when PORTSDIR is a symlink.
Submitted by: marcus Reviewed by: pav
Diffstat (limited to 'lang/php4')
-rw-r--r--lang/php4/Makefile3
1 files changed, 2 insertions, 1 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