diff options
author | Norikatsu Shigemura <nork@FreeBSD.org> | 2003-06-07 02:15:08 +0000 |
---|---|---|
committer | Norikatsu Shigemura <nork@FreeBSD.org> | 2003-06-07 02:15:08 +0000 |
commit | cbeb35b4f0db1d66beb7da62d9c1196dc9065080 (patch) | |
tree | 35f144b23d07765e808ee3f0e58887377d1185b0 /www/abcache | |
parent | Update to 2.3.13. (diff) |
Unbreak build with new php 4.3.2, and Various fixes.
PR: ports/52799
Submitted by: Alex Dupre <sysadmin@alexdupre.com> (maintainer)
Notes
Notes:
svn path=/head/; revision=82417
Diffstat (limited to 'www/abcache')
-rw-r--r-- | www/abcache/Makefile | 33 | ||||
-rw-r--r-- | www/abcache/pkg-message | 2 | ||||
-rw-r--r-- | www/abcache/pkg-plist | 4 |
3 files changed, 18 insertions, 21 deletions
diff --git a/www/abcache/Makefile b/www/abcache/Makefile index 075f66abcb48..bb07161b8ac6 100644 --- a/www/abcache/Makefile +++ b/www/abcache/Makefile @@ -14,31 +14,28 @@ EXTRACT_SUFX= .tgz MAINTAINER= sysadmin@alexdupre.com COMMENT= A tool to cache applications written in PHP -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 +WRKSRC= ${WRKDIR}/bware_cache-${PORTVERSION} -USE_LIBTOOL= yes -LIBTOOLFILES= aclocal.m4 +USE_PHPIZE= yes +WITH_PHP_MOD= yes -WRKSRC= ${WRKDIR}/bware_cache-${PORTVERSION} +CONFIGURE_ARGS+=--enable-bware_cache=shared + +PKGMESSAGE= ${WRKDIR}/pkg-message -CONFIGURE_ARGS+=--enable-bware_cache=shared \ - --with-php-config=${LOCALBASE}/bin/php-config +.include <bsd.port.pre.mk> +.include "${.CURDIR}/../../lang/php4/bsd.php.mk" -post-extract: - @${ECHO_MSG} "===> PHPizing for ${DISTNAME}" - @cd ${WRKSRC} && ${LOCALBASE}/bin/phpize +post-build: + @${SED} "s|%%LOCALBASE%%|${LOCALBASE}|g;s|%%PREFIX%%|${PREFIX}|g;s|%%PHP_EXT_DIR%%|${PHP_EXT_DIR}|g" \ + ${.CURDIR}/pkg-message > ${PKGMESSAGE} do-install: - @${MKDIR} ${PREFIX}/lib/php/20010901 + @${MKDIR} ${PREFIX}/lib/php/${PHP_EXT_DIR} @${INSTALL_DATA} ${WRKSRC}/modules/bware_cache.so \ - ${PREFIX}/lib/php/20010901 + ${PREFIX}/lib/php/${PHP_EXT_DIR} post-install: - @${SED} "s!%%LOCALBASE%%!${LOCALBASE}!g;s!%%PREFIX%%!${PREFIX}!g" \ - ${PKGMESSAGE} + @${CAT} ${PKGMESSAGE} -.include <bsd.port.mk> +.include <bsd.port.post.mk> diff --git a/www/abcache/pkg-message b/www/abcache/pkg-message index 8de6365e59ff..121cdbd62e7d 100644 --- a/www/abcache/pkg-message +++ b/www/abcache/pkg-message @@ -5,7 +5,7 @@ You have installed the abcache package. Edit %%LOCALBASE%%/etc/php.ini and add: [abcache] -zend_extension="%%PREFIX%%/lib/php/20010901/bware_cache.so" +zend_extension="%%PREFIX%%/lib/php/%%PHP_EXT_DIR%%/bware_cache.so" bware_cache_enable="1" bware_cache_check_stamp="1" bware_cache_log_level="1" diff --git a/www/abcache/pkg-plist b/www/abcache/pkg-plist index 3c6afc4564f1..eb9cb91fd308 100644 --- a/www/abcache/pkg-plist +++ b/www/abcache/pkg-plist @@ -1,2 +1,2 @@ -lib/php/20010901/bware_cache.so -@unexec rmdir %D/lib/php/20010901 2>/dev/null || true +lib/php/%%PHP_EXT_DIR%%/bware_cache.so +@unexec rmdir %D/lib/php/%%PHP_EXT_DIR%% 2>/dev/null || true |