aboutsummaryrefslogtreecommitdiff
path: root/devel/pear-apd
diff options
context:
space:
mode:
authorThierry Thomas <thierry@FreeBSD.org>2005-02-09 22:19:50 +0000
committerThierry Thomas <thierry@FreeBSD.org>2005-02-09 22:19:50 +0000
commitf52c4ef985fc20b70219362e9d1d8e7626204492 (patch)
tree29bf84c9d947643b51bd07d2a6a643cd398ce331 /devel/pear-apd
parent89b73def473c5f8f8667fb66ddfa2e9a65ce065e (diff)
downloadports-f52c4ef985fc20b70219362e9d1d8e7626204492.tar.gz
ports-f52c4ef985fc20b70219362e9d1d8e7626204492.zip
- Use version 0.9.2 if PHP4 is installed (set PORTEPOCH) and remove
IGNORE; - fix $PKGMESSAGE when PHP has been built WITH_DEBUG.
Notes
Notes: svn path=/head/; revision=128424
Diffstat (limited to 'devel/pear-apd')
-rw-r--r--devel/pear-apd/Makefile18
-rw-r--r--devel/pear-apd/distinfo.php42
-rw-r--r--devel/pear-apd/distinfo.php5 (renamed from devel/pear-apd/distinfo)0
-rw-r--r--devel/pear-apd/files/pkg-message.in2
4 files changed, 15 insertions, 7 deletions
diff --git a/devel/pear-apd/Makefile b/devel/pear-apd/Makefile
index 833b2c7d5c54..9795ed7d7cfb 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 000000000000..38b2f1b6af12
--- /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 4636311eec12..4636311eec12 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 19d74fd103e5..62b207bbb571 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".