Date: Thu, 23 Jun 2005 16:32:00 +0300 From: Vasil Dimov <vd@datamax.bg> To: FreeBSD-gnats-submit@FreeBSD.org Cc: nmsullivan@gmail.com, ale@FreeBSD.org Subject: ports/82575: New port: print/php5-cpdf cpdf support for php5 Message-ID: <20050623133200.GA17187@sinanica.bg.datamax> Resent-Message-ID: <200506231340.j5NDeJqL084164@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 82575 >Category: ports >Synopsis: New port: print/php5-cpdf cpdf support for 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: Thu Jun 23 13:40:19 GMT 2005 >Closed-Date: >Last-Modified: >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/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. >How-To-Repeat: >Fix: --- print_php5-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/php5-cpdf # print/php5-cpdf/Makefile # echo c - print/php5-cpdf mkdir -p print/php5-cpdf > /dev/null 2>&1 echo x - print/php5-cpdf/Makefile sed 's/^X//' >print/php5-cpdf/Makefile << 'END-of-print/php5-cpdf/Makefile' X# New ports collection makefile for: php5-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/php5 X XPKGNAMESUFFIX= -cpdf X X.include "${MASTERDIR}/Makefile" X X# EOF END-of-print/php5-cpdf/Makefile exit --- print_php5-cpdf.shar ends here --- --- php5.diff begins here --- 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 --- --- php5-extensions.diff begins here --- diff -urN php5-extensions.orig/Makefile php5-extensions/Makefile --- php5-extensions.orig/Makefile Wed Jul 28 02:50:04 2004 +++ php5-extensions/Makefile Thu Apr 14 19:24:52 2005 @@ -35,6 +35,7 @@ OPTIONS= BCMATH "bc style precision math functions" off \ BZ2 "bzip2 library support" off \ CALENDAR "calendar conversion support" off \ + CPDF "CPDF support" off \ CTYPE "ctype functions" on \ CURL "CURL support" off \ DBA "dba support" off \ @@ -107,7 +108,7 @@ .include "${OPTIONSFILE}" .endif -ALL_OPTIONS= BCMATH BZ2 CALENDAR CTYPE CURL DBA DBASE DBX DIO \ +ALL_OPTIONS= BCMATH BZ2 CALENDAR CPDF CTYPE CURL DBA DBASE DBX DIO \ DOM EXIF FILEINFO FILEPRO FRIBIDI FTP GD GETTEXT \ GMP ICONV IMAGICK IMAP INTERBASE LDAP MBSTRING MCRYPT \ MCVE MHASH MIME_MAGIC MING MNOGOSEARCH MSSQL MYSQL MYSQLI \ --- php5-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: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050623133200.GA17187>