aboutsummaryrefslogtreecommitdiffstats
path: root/lang
diff options
context:
space:
mode:
authorale <ale@FreeBSD.org>2004-03-09 07:12:48 +0800
committerale <ale@FreeBSD.org>2004-03-09 07:12:48 +0800
commita414d27afa9084c0538d229bd588f78182aba6d1 (patch)
tree6c375620e8738667b7361b04418ab994899d3e58 /lang
parent389b04578aec8c39510d343f30bd846c92fc0559 (diff)
downloadfreebsd-ports-graphics-a414d27afa9084c0538d229bd588f78182aba6d1.tar.gz
freebsd-ports-graphics-a414d27afa9084c0538d229bd588f78182aba6d1.tar.zst
freebsd-ports-graphics-a414d27afa9084c0538d229bd588f78182aba6d1.zip
Don't use a fully-qualified path in php.conf.
Submitted by: marcus Reviewed by: pav
Diffstat (limited to 'lang')
-rw-r--r--lang/php4/Makefile4
-rw-r--r--lang/php5/Makefile4
-rw-r--r--lang/php53/Makefile4
3 files changed, 9 insertions, 3 deletions
diff --git a/lang/php4/Makefile b/lang/php4/Makefile
index eaa867f32eb..a35437ba690 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
diff --git a/lang/php5/Makefile b/lang/php5/Makefile
index 3f7c2ae4132..14246da88cf 100644
--- a/lang/php5/Makefile
+++ b/lang/php5/Makefile
@@ -622,6 +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|^/||}
+
pre-patch:
@${SETENV} ${SCRIPTS_ENV} ${SH} ${SCRIPTDIR}/configure.php
@@ -667,7 +669,7 @@ post-build:
@${ECHO_CMD} "PHP_VER=5" > ${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
diff --git a/lang/php53/Makefile b/lang/php53/Makefile
index 3f7c2ae4132..14246da88cf 100644
--- a/lang/php53/Makefile
+++ b/lang/php53/Makefile
@@ -622,6 +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|^/||}
+
pre-patch:
@${SETENV} ${SCRIPTS_ENV} ${SH} ${SCRIPTDIR}/configure.php
@@ -667,7 +669,7 @@ post-build:
@${ECHO_CMD} "PHP_VER=5" > ${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