aboutsummaryrefslogtreecommitdiffstats
path: root/lang/php4
diff options
context:
space:
mode:
authorale <ale@FreeBSD.org>2004-03-14 06:35:17 +0800
committerale <ale@FreeBSD.org>2004-03-14 06:35:17 +0800
commit4e15399069ab951d774fba794397c2370b6e9174 (patch)
tree565db0eda88afb1899dc29299cdb0cf33c7fe0e7 /lang/php4
parentad4c54e3f08b68ed7fd60f7184241a8c505f0d81 (diff)
downloadfreebsd-ports-gnome-4e15399069ab951d774fba794397c2370b6e9174.tar.gz
freebsd-ports-gnome-4e15399069ab951d774fba794397c2370b6e9174.tar.zst
freebsd-ports-gnome-4e15399069ab951d774fba794397c2370b6e9174.zip
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