Bug 82574

Summary: New port: print/php4-cpdf cpdf support for php4
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_php4-cpdf.shar
none
php4-extensions.diff
none
file.diff none

Description Vasil Dimov 2005-06-23 14:30:16 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/php4, lang/php4-extensions and
bsd.php.mk must be modified. The relevant changes are included as
unified diff.

Fix: diff -urN php4.orig/Makefile.ext php4/Makefile.ext
--- php4.orig/Makefile.ext	Thu Apr 14 19:59:14 2005
+++ php4/Makefile.ext	Thu Apr 14 19:33:45 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} == "crack"
 BUILD_DEPENDS+=	${LOCALBASE}/lib/libcrack.a:${PORTSDIR}/security/cracklib
 RUN_DEPENDS+=	${LOCALBASE}/lib/libcrack.a:${PORTSDIR}/security/cracklib
--- php4.diff ends here ---
Comment 1 Renato Botelho freebsd_committer freebsd_triage 2005-09-30 17:50:39 UTC
Responsible Changed
From-To: freebsd-ports-bugs->ale

Over to php ports maintainer
Comment 2 Vasil Dimov 2006-01-05 16:45:43 UTC
According to http://www.php.net/ChangeLog-5.php cpdf was moved to PECL
with 5.1.0, e.g. it is no longer distributed with the PHP core.
Therefore the port I submitted becomes outdated and unusable.

Noticed by: Dan Cojocar <dan.cojocar@gmail.com>

-- 
Vasil Dimov
Comment 3 Mark Linimon freebsd_committer freebsd_triage 2006-02-26 15:16:47 UTC
State Changed
From-To: open->closed

Closed at submitter's request.