diff options
author | nork <nork@FreeBSD.org> | 2003-06-07 10:15:08 +0800 |
---|---|---|
committer | nork <nork@FreeBSD.org> | 2003-06-07 10:15:08 +0800 |
commit | 5a70e1747131c735371def352f42c86c1ba1d8e5 (patch) | |
tree | c30abd011c5fbc742387d310e347609fd5c4a593 /www/abcache | |
parent | 4c794146673b955785bb65a587b4fca89a658a6b (diff) | |
download | freebsd-ports-graphics-5a70e1747131c735371def352f42c86c1ba1d8e5.tar.gz freebsd-ports-graphics-5a70e1747131c735371def352f42c86c1ba1d8e5.tar.zst freebsd-ports-graphics-5a70e1747131c735371def352f42c86c1ba1d8e5.zip |
Unbreak build with new php 4.3.2, and Various fixes.
PR: ports/52799
Submitted by: Alex Dupre <sysadmin@alexdupre.com> (maintainer)
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 075f66abcb4..bb07161b8ac 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 8de6365e59f..121cdbd62e7 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 3c6afc4564f..eb9cb91fd30 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 |