Unbreak build with new php 4.3.2, and Various fixes.

PR:		ports/52802
Submitted by:	Alex Dupre <sysadmin@alexdupre.com> (maintainer)
This commit is contained in:
Norikatsu Shigemura 2003-06-06 19:08:16 +00:00
parent 6445a656e3
commit f4cd2f7713
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=82392
3 changed files with 10 additions and 28 deletions

View File

@ -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

View File

@ -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"
*****************************************************************************

View File

@ -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