ports/82574: New port: print/php4-cpdf cpdf support for php4
Vasil Dimov
vd at datamax.bg
Thu Jun 23 13:30:17 UTC 2005
>Number: 82574
>Category: ports
>Synopsis: New port: print/php4-cpdf cpdf support for php4
>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:30:16 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/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 at 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:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list