diff options
author | thierry <thierry@FreeBSD.org> | 2005-02-09 22:19:50 +0000 |
---|---|---|
committer | thierry <thierry@FreeBSD.org> | 2005-02-09 22:19:50 +0000 |
commit | d858afacdf0134e22afb8c25b2fece4b3ac91a22 (patch) | |
tree | 23144930dae75285ce0f04a3eae0e3189de4aa29 | |
parent | da4f8612eee1f4465d559f9aa277c4708abeba16 (diff) | |
download | FreeBSD-ports-d858afacdf0134e22afb8c25b2fece4b3ac91a22.zip FreeBSD-ports-d858afacdf0134e22afb8c25b2fece4b3ac91a22.tar.gz |
- Use version 0.9.2 if PHP4 is installed (set PORTEPOCH) and remove
IGNORE;
- fix $PKGMESSAGE when PHP has been built WITH_DEBUG.
-rw-r--r-- | devel/pear-apd/Makefile | 18 | ||||
-rw-r--r-- | devel/pear-apd/distinfo.php4 | 2 | ||||
-rw-r--r-- | devel/pear-apd/distinfo.php5 (renamed from devel/pear-apd/distinfo) | 0 | ||||
-rw-r--r-- | devel/pear-apd/files/pkg-message.in | 2 |
4 files changed, 15 insertions, 7 deletions
diff --git a/devel/pear-apd/Makefile b/devel/pear-apd/Makefile index 833b2c7..9795ed7 100644 --- a/devel/pear-apd/Makefile +++ b/devel/pear-apd/Makefile @@ -6,7 +6,8 @@ # PORTNAME= apd -PORTVERSION= 1.0.1 +PORTVERSION= ${APD_VER} +PORTEPOCH= 1 CATEGORIES= devel pear MAINTAINER= ports@FreeBSD.org @@ -17,10 +18,6 @@ RUN_DEPENDS= ${BUILD_DEPENDS} USE_PHP= yes USE_PHPIZE= yes -DEFAULT_PHP_VER=5 -BROKEN_WITH_PHP=4 - -IGNORE= "cannot build package if pear-* have been built with PHP4" CONFIGURE_ARGS= --enable-apd @@ -31,10 +28,19 @@ PORTDOCS= README .include <bsd.port.pre.mk> .include "${PORTSDIR}/devel/pear-PEAR/Makefile.common" +.if ${PHP_VER} == 4 +APD_VER= 0.9.2 +MD5_FILE= ${MASTERDIR}/distinfo.php4 +.else +APD_VER= 1.0.1 +MD5_FILE= ${MASTERDIR}/distinfo.php5 +.endif + PLIST_SUB+= EXTDIR=lib/php/${PHP_EXT_DIR} +PHP_DEBUG= ${PHP_EXT_DIR:C/[0-9]*//} SUB_FILES= pkg-message -SUB_LIST= PHP_EXT_DIR=${PHP_EXT_DIR} DUMP_DIR=${DUMP_DIR} +SUB_LIST= PHP_EXT_DIR=${PHP_EXT_DIR} DUMP_DIR=${DUMP_DIR} DEBUG=${PHP_DEBUG:S/-/_/} post-extract: @${CHMOD} -R u+w ${WRKSRC} diff --git a/devel/pear-apd/distinfo.php4 b/devel/pear-apd/distinfo.php4 new file mode 100644 index 0000000..38b2f1b --- /dev/null +++ b/devel/pear-apd/distinfo.php4 @@ -0,0 +1,2 @@ +MD5 (PEAR/apd-0.9.2.tgz) = 8e22148a642a9eb8c8b4c062c8d50ef0 +SIZE (PEAR/apd-0.9.2.tgz) = 36989 diff --git a/devel/pear-apd/distinfo b/devel/pear-apd/distinfo.php5 index 4636311..4636311 100644 --- a/devel/pear-apd/distinfo +++ b/devel/pear-apd/distinfo.php5 diff --git a/devel/pear-apd/files/pkg-message.in b/devel/pear-apd/files/pkg-message.in index 19d74fd..62b207b 100644 --- a/devel/pear-apd/files/pkg-message.in +++ b/devel/pear-apd/files/pkg-message.in @@ -3,7 +3,7 @@ Do not forget to configure your %%LOCALBASE%%/etc/php.ini file: add the line: -zend_extension = %%LOCALBASE%%/lib/php/%%PHP_EXT_DIR%%/apd.so +zend_extension%%DEBUG%% = %%LOCALBASE%%/lib/php/%%PHP_EXT_DIR%%/apd.so apd.dumpdir = %%DUMP_DIR%% in the section "Dynamic Extensions". |