Bug 82575

Summary: New port: print/php5-cpdf cpdf support for php5
Product: Ports & Packages Reporter: Vasil Dimov <vd>
Component: Individual Port(s)Assignee: Alex Dupre <ale>
Status: Closed FIXED    
Severity: Affects Only Me CC: ale
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
print_php5-cpdf.shar
none
php5-extensions.diff
none
file.diff none

Description Vasil Dimov 2005-06-23 14:40:19 UTC
Give this a chance to live. It has been forgotten in
http://www.FreeBSD.org/cgi/query-pr.cgi?pr=78337
for more than 2 months.

In addition to adding this port lang/php5, lang/php5-extensions and
bsd.php.mk must be modified. The relevant changes are included as
unified diff.

Note that the patch to bsd.php.mk is the same as those included in
PR 82574.

Fix: diff -urN php5.orig/Makefile.ext php5/Makefile.ext
--- php5.orig/Makefile.ext	Tue Apr 12 02:21:51 2005
+++ php5/Makefile.ext	Thu Apr 14 20:09:23 2005
@@ -30,6 +30,18 @@
 CONFIGURE_ARGS+=--enable-calendar
 .endif
 
+.if ${PHP_MODNAME} == "cpdf"
+LIB_DEPENDS+=	cpdf.0:${PORTSDIR}/print/clibpdf
+
+CONFIGURE_ARGS+=--with-cpdflib=${LOCALBASE} LDFLAGS=-lm
+
+# print/clibpdf installs libcpdf instead of the default libcpdfm
+# which PHP knows about.
+USE_REINPLACE=yes
+post-patch:
+	${REINPLACE_CMD} -e 's|cpdfm|cpdf|g' ${WRKSRC}/config.m4
+.endif
+
 .if ${PHP_MODNAME} == "ctype"
 CONFIGURE_ARGS+=--enable-ctype
 .endif
--- php5.diff ends here ---
Comment 1 Renato Botelho freebsd_committer freebsd_triage 2005-09-30 17:50:44 UTC
Responsible Changed
From-To: freebsd-ports-bugs->ale

Over to php ports maintainer
Comment 2 Alex Dupre freebsd_committer freebsd_triage 2006-01-17 07:00:24 UTC
State Changed
From-To: open->closed

cpdf has been removed from php5 tarball.