From 16e0b187bd28c3273b4ff5d78e38c395abebe5e1 Mon Sep 17 00:00:00 2001 From: Alex Dupre Date: Mon, 8 Mar 2004 23:12:48 +0000 Subject: Don't use a fully-qualified path in php.conf. Submitted by: marcus Reviewed by: pav --- lang/php5/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lang/php5') diff --git a/lang/php5/Makefile b/lang/php5/Makefile index 3f7c2ae41322..14246da88cf2 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 -- cgit v1.2.3