summaryrefslogtreecommitdiff
path: root/www/php-dyn
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
parentUnbreak build with new php 4.3.2, and Various fixes. (diff)
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')
-rw-r--r--www/php-dyn/Makefile32
-rw-r--r--www/php-dyn/files/pkg-message.in2
-rw-r--r--www/php-dyn/pkg-plist4
3 files changed, 10 insertions, 28 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
diff --git a/www/php-dyn/files/pkg-message.in b/www/php-dyn/files/pkg-message.in
index 8adc8ec7f0de..5e6a942c22af 100644
--- a/www/php-dyn/files/pkg-message.in
+++ b/www/php-dyn/files/pkg-message.in
@@ -4,6 +4,6 @@ You have installed the php-dyn package.
Edit %%LOCALBASE%%/etc/php.ini and add:
-zend_extension="%%PREFIX%%/lib/php/%%EXT_DIR%%/php_dyn.so"
+zend_extension="%%PREFIX%%/lib/php/%%PHP_EXT_DIR%%/php_dyn.so"
*****************************************************************************
diff --git a/www/php-dyn/pkg-plist b/www/php-dyn/pkg-plist
index b42d091dbe2d..e91d40926b0b 100644
--- a/www/php-dyn/pkg-plist
+++ b/www/php-dyn/pkg-plist
@@ -1,4 +1,4 @@
-lib/php/%%EXT_DIR%%/php_dyn.so
+lib/php/%%PHP_EXT_DIR%%/php_dyn.so
%%PORTDOCS%%share/doc/php-dyn/README
-@unexec rmdir %D/lib/php/%%EXT_DIR%% 2> /dev/null || true
+@unexec rmdir %D/lib/php/%%PHP_EXT_DIR%% 2> /dev/null || true
%%PORTDOCS%%@dirrm share/doc/php-dyn