aboutsummaryrefslogtreecommitdiff
path: root/www/php-dyn/Makefile
diff options
context:
space:
mode:
authorNorikatsu Shigemura <nork@FreeBSD.org>2003-06-06 19:08:16 +0000
committerNorikatsu Shigemura <nork@FreeBSD.org>2003-06-06 19:08:16 +0000
commitf4cd2f7713ee99b0b5450ace6e698d4ee7c16d9a (patch)
tree20cab8fab2c3e0e77d6999b0ad4f2cce800ecdf9 /www/php-dyn/Makefile
parent6445a656e320ae1f735c0aa362f0bb50064c0799 (diff)
downloadports-f4cd2f7713ee99b0b5450ace6e698d4ee7c16d9a.tar.gz
ports-f4cd2f7713ee99b0b5450ace6e698d4ee7c16d9a.zip
Unbreak build with new php 4.3.2, and Various fixes.
PR: ports/52802 Submitted by: Alex Dupre <sysadmin@alexdupre.com> (maintainer)
Notes
Notes: svn path=/head/; revision=82392
Diffstat (limited to 'www/php-dyn/Makefile')
-rw-r--r--www/php-dyn/Makefile32
1 files changed, 7 insertions, 25 deletions
diff --git a/www/php-dyn/Makefile b/www/php-dyn/Makefile
index 9abb53cac072..8921017873b5 100644
--- a/www/php-dyn/Makefile
+++ b/www/php-dyn/Makefile
@@ -16,42 +16,24 @@ EXTRACT_SUFX= .tgz
MAINTAINER= sysadmin@alexdupre.com
COMMENT= A PHP Extension to help debugging a PHP script
-BUILD_DEPENDS= phpize:${PORTSDIR}/www/mod_php4
-RUN_DEPENDS= ${LOCALBASE}/sbin/httpd:${APACHE_PORT} \
- ${LOCALBASE}/bin/php:${PORTSDIR}/www/mod_php4
+USE_PHPIZE= yes
+WITH_PHP_MOD= yes
-USE_LIBTOOL= yes
-WANT_AUTOMAKE_VER= 15
-WANT_AUTOCONF_VER= 253
-
-CONFIGURE_ARGS= --enable-php_dyn=shared \
- --with-php-config=${LOCALBASE}/bin/php-config
-
-EXT_DIR= 20020429
-PLIST_SUB= EXT_DIR=${EXT_DIR}
+CONFIGURE_ARGS= --enable-php_dyn=shared
PKGMESSAGE= ${WRKDIR}/pkg-message
.include <bsd.port.pre.mk>
-
-.if defined(WITH_APACHE2) || exists(${LOCALBASE}/include/apache2/apr.h)
-APACHE_PORT?= ${PORTSDIR}/www/apache2
-.else
-APACHE_PORT?= ${PORTSDIR}/www/apache13
-.endif
-
-post-extract:
- @${ECHO_MSG} "===> PHPizing for ${PORTNAME}-${PORTVERSION}"
- @(cd ${WRKSRC}; ${LOCALBASE}/bin/phpize)
+.include "${.CURDIR}/../../lang/php4/bsd.php.mk"
post-build:
- @${SED} "s|%%LOCALBASE%%|${LOCALBASE}|g;s|%%PREFIX%%|${PREFIX}|g;s|%%EXT_DIR%%|${EXT_DIR}|g" \
+ @${SED} "s|%%LOCALBASE%%|${LOCALBASE}|g;s|%%PREFIX%%|${PREFIX}|g;s|%%PHP_EXT_DIR%%|${PHP_EXT_DIR}|g" \
${FILESDIR}/pkg-message.in > ${PKGMESSAGE}
do-install:
- @${MKDIR} ${PREFIX}/lib/php/${EXT_DIR}
+ @${MKDIR} ${PREFIX}/lib/php/${PHP_EXT_DIR}
@${INSTALL_DATA} ${WRKSRC}/modules/php_dyn.so \
- ${PREFIX}/lib/php/${EXT_DIR}
+ ${PREFIX}/lib/php/${PHP_EXT_DIR}
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
@${INSTALL_DATA} ${WRKSRC}/README.en ${DOCSDIR}/README