From vd@datamax.bg  Thu Jun 23 13:27:52 2005
Return-Path: <vd@datamax.bg>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id A578816A41C;
	Thu, 23 Jun 2005 13:27:52 +0000 (GMT)
	(envelope-from vd@datamax.bg)
Received: from jengal.datamax.bg (jengal.datamax.bg [82.103.104.21])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 1A2AF43D49;
	Thu, 23 Jun 2005 13:27:52 +0000 (GMT)
	(envelope-from vd@datamax.bg)
Received: from sinanica.bg.datamax (sinanica.bg.datamax [192.168.10.1])
	by jengal.datamax.bg (Postfix) with QMQP
	id 2247587E3; Thu, 23 Jun 2005 16:27:51 +0300 (EEST)
Received: (nullmailer pid 17153 invoked by uid 1004);
	Thu, 23 Jun 2005 13:27:51 -0000
Message-Id: <20050623132751.GA17064@sinanica.bg.datamax>
Date: Thu, 23 Jun 2005 16:27:51 +0300
From: Vasil Dimov <vd@datamax.bg>
Reply-To: vd@datamax.bg
To: FreeBSD-gnats-submit@freebsd.org
Cc: ale@FreeBSD.org, nmsullivan@gmail.com
Subject: New port: print/php4-cpdf cpdf support for php4
X-Send-Pr-Version: 3.113

>Number:         82574
>Category:       ports
>Synopsis:       New port: print/php4-cpdf cpdf support for php4
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    ale
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jun 23 13:30:16 GMT 2005
>Closed-Date:    Sun Feb 26 15:17:02 GMT 2006
>Last-Modified:  Sun Feb 26 15:17:02 GMT 2006
>Originator:     Vasil Dimov
>Release:        FreeBSD 5.4-STABLE i386
>Organization:
DataMax
>Environment:

>Description:

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.

>How-To-Repeat:

>Fix:

--- print_php4-cpdf.shar begins here ---
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	print/php4-cpdf
#	print/php4-cpdf/Makefile
#
echo c - print/php4-cpdf
mkdir -p print/php4-cpdf > /dev/null 2>&1
echo x - print/php4-cpdf/Makefile
sed 's/^X//' >print/php4-cpdf/Makefile << 'END-of-print/php4-cpdf/Makefile'
X# New ports collection makefile for:	php4-cpdf
X# Date created:			14 Apr 2005
X# Whom:				Vasil Dimov <vd@datamax.bg>
X#
X# $FreeBSD$
X#
X
XCATEGORIES=	print
X
XMASTERDIR=	${.CURDIR}/../../lang/php4
X
XPKGNAMESUFFIX=	-cpdf
X
X.include "${MASTERDIR}/Makefile"
X
X# EOF
END-of-print/php4-cpdf/Makefile
exit
--- print_php4-cpdf.shar ends here ---

--- php4.diff begins here ---
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 ---

--- php4-extensions.diff begins here ---
diff -urN php4-extensions.orig/Makefile php4-extensions/Makefile
--- php4-extensions.orig/Makefile	Wed Jul 28 02:50:04 2004
+++ php4-extensions/Makefile	Thu Apr 14 19:32:15 2005
@@ -34,6 +34,7 @@
 OPTIONS=	BCMATH          "bc style precision math functions" off \
 		BZ2             "bzip2 library support" off \
 		CALENDAR        "calendar conversion support" off \
+		CPDF            "CPDF support" off \
 		CRACK           "crack support" off \
 		CTYPE           "ctype functions" on \
 		CURL            "CURL support" off \
@@ -104,7 +105,7 @@
 .include "${OPTIONSFILE}"
 .endif
 
-ALL_OPTIONS=	BCMATH BZ2 CALENDAR CRACK CTYPE CURL DBA DBASE DBX DIO \
+ALL_OPTIONS=	BCMATH BZ2 CALENDAR CPDF CRACK CTYPE CURL DBA DBASE DBX DIO \
 		DOMXML EXIF FILEINFO FILEPRO FRIBIDI FTP GD GETTEXT \
 		GMP ICONV IMAGICK IMAP INTERBASE LDAP MBSTRING MCAL MCRYPT \
 		MCVE MHASH MIME_MAGIC MING MNOGOSEARCH MSSQL MYSQL NCURSES \
--- php4-extensions.diff ends here ---

--- bsd.php.mk.diff begins here ---
--- Mk/bsd.php.mk.orig	Thu Apr 14 20:01:30 2005
+++ Mk/bsd.php.mk	Thu Apr 14 19:28:27 2005
@@ -251,7 +251,7 @@
 # Extensions
 .if ${USE_PHP:L} != "yes"
 # non-version specific components
-_USE_PHP_ALL=	bcmath bz2 calendar ctype curl dba dbase dbx dio \
+_USE_PHP_ALL=	bcmath bz2 calendar cpdf ctype curl dba dbase dbx dio \
 		exif fileinfo filepro fribidi ftp gd gettext gmp \
 		iconv imagick imap interbase ldap mbstring mcrypt mcve \
 		mhash ming mnogosearch mssql mysql ncurses odbc \
@@ -266,6 +266,7 @@
 bcmath_DEPENDS=	math/php${PHP_VER}-bcmath
 bz2_DEPENDS=	archivers/php${PHP_VER}-bz2
 calendar_DEPENDS=	misc/php${PHP_VER}-calendar
+cpdf_DEPENDS=	print/php${PHP_VER}-cpdf
 crack_DEPENDS=	security/php${PHP_VER}-crack
 ctype_DEPENDS=	textproc/php${PHP_VER}-ctype
 curl_DEPENDS=	ftp/php${PHP_VER}-curl
--- bsd.php.mk.diff ends here ---

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->ale 
Responsible-Changed-By: garga 
Responsible-Changed-When: Fri Sep 30 16:50:39 GMT 2005 
Responsible-Changed-Why:  
Over to php ports maintainer 

http://www.freebsd.org/cgi/query-pr.cgi?pr=82574 

From: Vasil Dimov <vd@datamax.bg>
To: bug-followup@FreeBSD.org
Cc: ale@freebsd.org
Subject: Re: ports/82574: New port: print/php4-cpdf cpdf support for php4
Date: Thu, 5 Jan 2006 18:45:43 +0200

 --H+4ONPRPur6+Ovig
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 Content-Transfer-Encoding: quoted-printable
 
 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>
 
 --=20
 Vasil Dimov
 
 --H+4ONPRPur6+Ovig
 Content-Type: application/pgp-signature
 Content-Disposition: inline
 
 -----BEGIN PGP SIGNATURE-----
 
 iD8DBQFDvU03Fw6SP/bBpCARAieeAKCIlexOE0hExHV0hGRs1819axUEGACffKS3
 ssTfyyoZJjj7LvOv0gdXhGc=
 =1f91
 -----END PGP SIGNATURE-----
 
 --H+4ONPRPur6+Ovig--
State-Changed-From-To: open->closed 
State-Changed-By: linimon 
State-Changed-When: Sun Feb 26 15:16:47 UTC 2006 
State-Changed-Why:  
Closed at submitter's request. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=82574 
>Unformatted:
