aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrafan <rafan@FreeBSD.org>2007-01-15 22:47:46 +0800
committerrafan <rafan@FreeBSD.org>2007-01-15 22:47:46 +0800
commit647cc4ead43d173c3d71140f246a321905bd9859 (patch)
tree1f973ab5cee1ae61354fd767169f1676ba8853b8
parente92c58bb9606def40ffd5922f4b52fa04d443785 (diff)
downloadfreebsd-ports-gnome-647cc4ead43d173c3d71140f246a321905bd9859.tar.gz
freebsd-ports-gnome-647cc4ead43d173c3d71140f246a321905bd9859.tar.zst
freebsd-ports-gnome-647cc4ead43d173c3d71140f246a321905bd9859.zip
- Unbreak with PHP 5
PR: ports/107878 Submitted by: chinsan
-rw-r--r--devel/pear-apd/Makefile9
1 files changed, 6 insertions, 3 deletions
diff --git a/devel/pear-apd/Makefile b/devel/pear-apd/Makefile
index d451a59b9039..5530ef9730a6 100644
--- a/devel/pear-apd/Makefile
+++ b/devel/pear-apd/Makefile
@@ -16,12 +16,10 @@ COMMENT= A full-featured engine-level PHP profiler/debugger
BUILD_DEPENDS= ${PEARDIR}/PEAR.php:${PORTSDIR}/devel/pear
RUN_DEPENDS= ${BUILD_DEPENDS}
-BROKEN= Does not compile
-
USE_PHP= yes
USE_PHPIZE= yes
-CONFIGURE_ARGS= --enable-apd
+CONFIGURE_ARGS= --enable-apd --with-apd
DUMP_DIR?= /var/tmp/apd
@@ -47,6 +45,11 @@ SUB_LIST= PHP_EXT_DIR=${PHP_EXT_DIR} DUMP_DIR=${DUMP_DIR} DEBUG=${PHP_DEBUG:S/-/
post-extract:
@${CHMOD} -R u+w ${WRKSRC}
+post-patch:
+.if ${PHP_VER} == 5
+ @${REINPLACE_CMD} -e '396,398 d' ${WRKSRC}/php_apd.c
+.endif
+
post-install-script:
@${STRIP_CMD} ${PHP_BASE}/lib/php/${PHP_EXT_DIR}/apd.so
@${MKDIR} ${DUMP_DIR}