ports/107878: [PATCH] devel/pear-apd: unbreak on php5

chinsan chinsan at FreeBSD.org
Sat Jan 13 18:00:30 UTC 2007


>Number:         107878
>Category:       ports
>Synopsis:       [PATCH] devel/pear-apd: unbreak on php5
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jan 13 18:00:28 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator:     chinsan
>Release:        FreeBSD 6.2-PRERELEASE i386
>Organization:
Taiwan
>Environment:
System: FreeBSD chinsan.twbbs.org 6.2-PRERELEASE FreeBSD 6.2-PRERELEASE #3: Mon Dec  4 02:04:40 CST
>Description:
- Unbreak on php5

Generated with FreeBSD Port Tools 0.77
>How-To-Repeat:
>Fix:

--- pear-apd-1.0.1,1.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/devel/pear-apd/Makefile /usr/home/chinsan/project/pear-apd/Makefile
--- /usr/ports/devel/pear-apd/Makefile	Sun Nov 19 09:57:37 2006
+++ /usr/home/chinsan/project/pear-apd/Makefile	Sun Jan 14 01:52:26 2007
@@ -16,12 +16,10 @@
 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
 
@@ -46,6 +44,11 @@
 
 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
--- pear-apd-1.0.1,1.patch ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list