diff options
author | edwin <edwin@FreeBSD.org> | 2003-04-02 20:06:03 +0800 |
---|---|---|
committer | edwin <edwin@FreeBSD.org> | 2003-04-02 20:06:03 +0800 |
commit | 0a1d350016788cf2efded45bf318c85ce926fda4 (patch) | |
tree | a95b8b76e1175c0bda0c1f4e8c6233755330b42f /www/php-dyn/Makefile | |
parent | 192e27ca86344dae90bdd9c89dd69a5cd748d81e (diff) | |
download | freebsd-ports-gnome-0a1d350016788cf2efded45bf318c85ce926fda4.tar.gz freebsd-ports-gnome-0a1d350016788cf2efded45bf318c85ce926fda4.tar.zst freebsd-ports-gnome-0a1d350016788cf2efded45bf318c85ce926fda4.zip |
[Maintainer Update] Port: www/php-dyn
Update from 1.2 to 1.2.1 release. Use WANT_ variables.
Work with Apache 2.
PR: ports/50265
Submitted by: Alex Dupre <sysadmin@alexdupre.com>
Diffstat (limited to 'www/php-dyn/Makefile')
-rw-r--r-- | www/php-dyn/Makefile | 32 |
1 files changed, 22 insertions, 10 deletions
diff --git a/www/php-dyn/Makefile b/www/php-dyn/Makefile index 40ea24a86808..9abb53cac072 100644 --- a/www/php-dyn/Makefile +++ b/www/php-dyn/Makefile @@ -6,7 +6,7 @@ # PORTNAME= php-dyn -PORTVERSION= 1.2 +PORTVERSION= 1.2.1 CATEGORIES= www MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= ${PORTNAME} @@ -16,30 +16,42 @@ EXTRACT_SUFX= .tgz MAINTAINER= sysadmin@alexdupre.com COMMENT= A PHP Extension to help debugging a PHP script -BUILD_DEPENDS= aclocal:${PORTSDIR}/devel/automake \ - autoconf:${PORTSDIR}/devel/autoconf \ - phpize:${PORTSDIR}/www/mod_php4 -RUN_DEPENDS= ${LOCALBASE}/sbin/httpd:${PORTSDIR}/www/apache13 \ - ${LOCALBASE}/libexec/apache/libphp4.so:${PORTSDIR}/www/mod_php4 +BUILD_DEPENDS= phpize:${PORTSDIR}/www/mod_php4 +RUN_DEPENDS= ${LOCALBASE}/sbin/httpd:${APACHE_PORT} \ + ${LOCALBASE}/bin/php:${PORTSDIR}/www/mod_php4 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} + 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) post-build: - @${SED} "s|%%LOCALBASE%%|${LOCALBASE}|g;s|%%PREFIX%%|${PREFIX}|g" \ + @${SED} "s|%%LOCALBASE%%|${LOCALBASE}|g;s|%%PREFIX%%|${PREFIX}|g;s|%%EXT_DIR%%|${EXT_DIR}|g" \ ${FILESDIR}/pkg-message.in > ${PKGMESSAGE} do-install: - @${MKDIR} ${PREFIX}/lib/php/extensions + @${MKDIR} ${PREFIX}/lib/php/${EXT_DIR} @${INSTALL_DATA} ${WRKSRC}/modules/php_dyn.so \ - ${PREFIX}/lib/php/extensions + ${PREFIX}/lib/php/${EXT_DIR} .if !defined(NOPORTDOCS) @${MKDIR} ${DOCSDIR} @${INSTALL_DATA} ${WRKSRC}/README.en ${DOCSDIR}/README @@ -48,4 +60,4 @@ do-install: post-install: @${CAT} ${PKGMESSAGE} -.include <bsd.port.mk> +.include <bsd.port.post.mk> |