diff options
author | Thierry Thomas <thierry@FreeBSD.org> | 2005-04-05 20:45:00 +0000 |
---|---|---|
committer | Thierry Thomas <thierry@FreeBSD.org> | 2005-04-05 20:45:00 +0000 |
commit | 44eea979c10196a398d4c460f2d0573ff792d791 (patch) | |
tree | d676d08ed96010260d1c367832b7cfa78e63d128 /print | |
parent | PHP Surveyor is a set of PHP scripts that interact with MySQL to develop (diff) |
Add fpdf 1.53, a free PHP class to generate PDF files with pure PHP.
Notes
Notes:
svn path=/head/; revision=132589
Diffstat (limited to 'print')
-rw-r--r-- | print/Makefile | 1 | ||||
-rw-r--r-- | print/fpdf/Makefile | 58 | ||||
-rw-r--r-- | print/fpdf/distinfo | 2 | ||||
-rw-r--r-- | print/fpdf/files/pkg-message.in | 2 | ||||
-rw-r--r-- | print/fpdf/pkg-descr | 23 | ||||
-rw-r--r-- | print/fpdf/pkg-plist | 114 |
6 files changed, 200 insertions, 0 deletions
diff --git a/print/Makefile b/print/Makefile index 38a87f6d623e..6680e7d298bd 100644 --- a/print/Makefile +++ b/print/Makefile @@ -67,6 +67,7 @@ SUBDIR += foomatic-db SUBDIR += foomatic-db-engine SUBDIR += foomatic-filters + SUBDIR += fpdf SUBDIR += freetype SUBDIR += freetype2 SUBDIR += ft2demos diff --git a/print/fpdf/Makefile b/print/fpdf/Makefile new file mode 100644 index 000000000000..863b345d9d4f --- /dev/null +++ b/print/fpdf/Makefile @@ -0,0 +1,58 @@ +# New ports collection makefile for: fpdf +# Date created: 21 March 2005 +# Whom: Thierry Thomas <thierry@pompo.net> +# +# $FreeBSD$ +# + +PORTNAME= fpdf +PORTVERSION= 1.53 +CATEGORIES= print www +MASTER_SITES= http://www.fpdf.org/fr/ +DISTNAME= ${PORTNAME}${PORTVERSION:S|.||} +EXTRACT_SUFX= .tgz + +MAINTAINER= thierry@FreeBSD.org +COMMENT= A free PHP class to generate PDF files with pure PHP + +USE_PHP= zlib + +FETCH_CMD= /usr/bin/fetch -ARr -o ${DISTDIR}/${DISTFILES} +NO_BUILD= yes + +FPDF_DIR?= share/fpdf + +SUB_FILES= pkg-message +SUB_LIST= FPDF_DIR=${FPDF_DIR} +PLIST_SUB= FPDF_DIR=${FPDF_DIR} + +EXT2CNV= afm htm php txt +DOCS= FAQ.htm doc/* fpdf.css histo.htm install.txt tutoriel + +do-fetch: + @${FETCH_CMD} ${FETCH_BEFORE_ARGS} \ + '${MASTER_SITES}dl.php?v=${PORTVERSION:S|.||}&f=${EXTRACT_SUFX:S|.||}' + +pre-patch: +.for ext in ${EXT2CNV} + @for f in `${FIND} ${WRKSRC} -type f -name "*.${ext}"` ; do \ + ${TR} -d '\r' < $$f > $$f.dos && \ + ${MV} $$f.dos $$f ; done +.endfor + @${FIND} ${WRKSRC} -type f | ${XARGS} ${CHMOD} ${SHAREMODE} + +do-install: + ${MKDIR} ${PREFIX}/${FPDF_DIR} + ${INSTALL_DATA} ${WRKSRC}/fpdf.php ${PREFIX}/${FPDF_DIR} + ${CP} -R ${WRKSRC}/font ${PREFIX}/${FPDF_DIR} +.if !defined(NOPORTDOCS) + ${MKDIR} ${DOCSDIR} + ${CP} -R ${DOCS:S|^|${WRKSRC}/|} ${DOCSDIR} +.endif + +post-install: + @${ECHO_MSG} + @${CAT} ${PKGMESSAGE} + @${ECHO_MSG} + +.include <bsd.port.mk> diff --git a/print/fpdf/distinfo b/print/fpdf/distinfo new file mode 100644 index 000000000000..1f4aac9e4b34 --- /dev/null +++ b/print/fpdf/distinfo @@ -0,0 +1,2 @@ +MD5 (fpdf153.tgz) = 9f36b76ee2da4598064d6dd2e53e467c +SIZE (fpdf153.tgz) = 134418 diff --git a/print/fpdf/files/pkg-message.in b/print/fpdf/files/pkg-message.in new file mode 100644 index 000000000000..f104876c6c59 --- /dev/null +++ b/print/fpdf/files/pkg-message.in @@ -0,0 +1,2 @@ +You should add the FPDF path %%PREFIX%%/%%FPDF_DIR%% +to the "include_path=" directive in your php.ini. diff --git a/print/fpdf/pkg-descr b/print/fpdf/pkg-descr new file mode 100644 index 000000000000..0f895bcf205f --- /dev/null +++ b/print/fpdf/pkg-descr @@ -0,0 +1,23 @@ +FPDF is a PHP class which allows to generate PDF files with pure PHP, that is +to say without using the PDFlib library. The advantage is that PDFlib requires +a fee for a commercial usage. F from FPDF stands for Free: you may use it for +any kind of usage and modify it to suit your needs. + +FPDF has other advantages: high level functions. +Here is a list of its main features: + + * Choice of measure unit, page format and margins + * Page header and footer management + * Automatic page break + * Automatic line break and text justification + * Image support (JPEG and PNG) + * Colors + * Links + * TrueType, Type1 and encoding support + * Page compression + +Of course, the generation speed of the document is less than with PDFlib. +However, the performance penalty keeps very reasonable and suits in most +cases, unless your documents are particularly complex or heavy. + +WWW: http://www.fpdf.org/ diff --git a/print/fpdf/pkg-plist b/print/fpdf/pkg-plist new file mode 100644 index 000000000000..4ac5fbd3754f --- /dev/null +++ b/print/fpdf/pkg-plist @@ -0,0 +1,114 @@ +%%PORTDOCS%%%%DOCSDIR%%/FAQ.htm +%%PORTDOCS%%%%DOCSDIR%%/acceptpagebreak.htm +%%PORTDOCS%%%%DOCSDIR%%/addfont.htm +%%PORTDOCS%%%%DOCSDIR%%/addlink.htm +%%PORTDOCS%%%%DOCSDIR%%/addpage.htm +%%PORTDOCS%%%%DOCSDIR%%/aliasnbpages.htm +%%PORTDOCS%%%%DOCSDIR%%/cell.htm +%%PORTDOCS%%%%DOCSDIR%%/close.htm +%%PORTDOCS%%%%DOCSDIR%%/error.htm +%%PORTDOCS%%%%DOCSDIR%%/footer.htm +%%PORTDOCS%%%%DOCSDIR%%/fpdf.htm +%%PORTDOCS%%%%DOCSDIR%%/getstringwidth.htm +%%PORTDOCS%%%%DOCSDIR%%/getx.htm +%%PORTDOCS%%%%DOCSDIR%%/gety.htm +%%PORTDOCS%%%%DOCSDIR%%/header.htm +%%PORTDOCS%%%%DOCSDIR%%/image.htm +%%PORTDOCS%%%%DOCSDIR%%/index.htm +%%PORTDOCS%%%%DOCSDIR%%/line.htm +%%PORTDOCS%%%%DOCSDIR%%/link.htm +%%PORTDOCS%%%%DOCSDIR%%/ln.htm +%%PORTDOCS%%%%DOCSDIR%%/multicell.htm +%%PORTDOCS%%%%DOCSDIR%%/output.htm +%%PORTDOCS%%%%DOCSDIR%%/pageno.htm +%%PORTDOCS%%%%DOCSDIR%%/rect.htm +%%PORTDOCS%%%%DOCSDIR%%/setauthor.htm +%%PORTDOCS%%%%DOCSDIR%%/setautopagebreak.htm +%%PORTDOCS%%%%DOCSDIR%%/setcompression.htm +%%PORTDOCS%%%%DOCSDIR%%/setcreator.htm +%%PORTDOCS%%%%DOCSDIR%%/setdisplaymode.htm +%%PORTDOCS%%%%DOCSDIR%%/setdrawcolor.htm +%%PORTDOCS%%%%DOCSDIR%%/setfillcolor.htm +%%PORTDOCS%%%%DOCSDIR%%/setfont.htm +%%PORTDOCS%%%%DOCSDIR%%/setfontsize.htm +%%PORTDOCS%%%%DOCSDIR%%/setkeywords.htm +%%PORTDOCS%%%%DOCSDIR%%/setleftmargin.htm +%%PORTDOCS%%%%DOCSDIR%%/setlinewidth.htm +%%PORTDOCS%%%%DOCSDIR%%/setlink.htm +%%PORTDOCS%%%%DOCSDIR%%/setmargins.htm +%%PORTDOCS%%%%DOCSDIR%%/setrightmargin.htm +%%PORTDOCS%%%%DOCSDIR%%/setsubject.htm +%%PORTDOCS%%%%DOCSDIR%%/settextcolor.htm +%%PORTDOCS%%%%DOCSDIR%%/settitle.htm +%%PORTDOCS%%%%DOCSDIR%%/settopmargin.htm +%%PORTDOCS%%%%DOCSDIR%%/setx.htm +%%PORTDOCS%%%%DOCSDIR%%/setxy.htm +%%PORTDOCS%%%%DOCSDIR%%/sety.htm +%%PORTDOCS%%%%DOCSDIR%%/text.htm +%%PORTDOCS%%%%DOCSDIR%%/write.htm +%%PORTDOCS%%%%DOCSDIR%%/fpdf.css +%%PORTDOCS%%%%DOCSDIR%%/histo.htm +%%PORTDOCS%%%%DOCSDIR%%/install.txt +%%PORTDOCS%%%%DOCSDIR%%/tutoriel/20k_c1.txt +%%PORTDOCS%%%%DOCSDIR%%/tutoriel/20k_c2.txt +%%PORTDOCS%%%%DOCSDIR%%/tutoriel/calligra.afm +%%PORTDOCS%%%%DOCSDIR%%/tutoriel/calligra.php +%%PORTDOCS%%%%DOCSDIR%%/tutoriel/calligra.ttf +%%PORTDOCS%%%%DOCSDIR%%/tutoriel/calligra.z +%%PORTDOCS%%%%DOCSDIR%%/tutoriel/index.htm +%%PORTDOCS%%%%DOCSDIR%%/tutoriel/logo.png +%%PORTDOCS%%%%DOCSDIR%%/tutoriel/logo_pb.png +%%PORTDOCS%%%%DOCSDIR%%/tutoriel/makefont.php +%%PORTDOCS%%%%DOCSDIR%%/tutoriel/pays.txt +%%PORTDOCS%%%%DOCSDIR%%/tutoriel/tuto1.htm +%%PORTDOCS%%%%DOCSDIR%%/tutoriel/tuto1.php +%%PORTDOCS%%%%DOCSDIR%%/tutoriel/tuto2.htm +%%PORTDOCS%%%%DOCSDIR%%/tutoriel/tuto2.php +%%PORTDOCS%%%%DOCSDIR%%/tutoriel/tuto3.htm +%%PORTDOCS%%%%DOCSDIR%%/tutoriel/tuto3.php +%%PORTDOCS%%%%DOCSDIR%%/tutoriel/tuto4.htm +%%PORTDOCS%%%%DOCSDIR%%/tutoriel/tuto4.php +%%PORTDOCS%%%%DOCSDIR%%/tutoriel/tuto5.htm +%%PORTDOCS%%%%DOCSDIR%%/tutoriel/tuto5.php +%%PORTDOCS%%%%DOCSDIR%%/tutoriel/tuto6.htm +%%PORTDOCS%%%%DOCSDIR%%/tutoriel/tuto6.php +%%PORTDOCS%%%%DOCSDIR%%/tutoriel/tuto7.htm +%%PORTDOCS%%%%DOCSDIR%%/tutoriel/tuto7.php +%%FPDF_DIR%%/font/courier.php +%%FPDF_DIR%%/font/helvetica.php +%%FPDF_DIR%%/font/helveticab.php +%%FPDF_DIR%%/font/helveticabi.php +%%FPDF_DIR%%/font/helveticai.php +%%FPDF_DIR%%/font/makefont/cp1250.map +%%FPDF_DIR%%/font/makefont/cp1251.map +%%FPDF_DIR%%/font/makefont/cp1252.map +%%FPDF_DIR%%/font/makefont/cp1253.map +%%FPDF_DIR%%/font/makefont/cp1254.map +%%FPDF_DIR%%/font/makefont/cp1255.map +%%FPDF_DIR%%/font/makefont/cp1257.map +%%FPDF_DIR%%/font/makefont/cp1258.map +%%FPDF_DIR%%/font/makefont/cp874.map +%%FPDF_DIR%%/font/makefont/iso-8859-1.map +%%FPDF_DIR%%/font/makefont/iso-8859-11.map +%%FPDF_DIR%%/font/makefont/iso-8859-15.map +%%FPDF_DIR%%/font/makefont/iso-8859-16.map +%%FPDF_DIR%%/font/makefont/iso-8859-2.map +%%FPDF_DIR%%/font/makefont/iso-8859-4.map +%%FPDF_DIR%%/font/makefont/iso-8859-5.map +%%FPDF_DIR%%/font/makefont/iso-8859-7.map +%%FPDF_DIR%%/font/makefont/iso-8859-9.map +%%FPDF_DIR%%/font/makefont/koi8-r.map +%%FPDF_DIR%%/font/makefont/koi8-u.map +%%FPDF_DIR%%/font/makefont/makefont.php +%%FPDF_DIR%%/font/symbol.php +%%FPDF_DIR%%/font/times.php +%%FPDF_DIR%%/font/timesb.php +%%FPDF_DIR%%/font/timesbi.php +%%FPDF_DIR%%/font/timesi.php +%%FPDF_DIR%%/font/zapfdingbats.php +%%FPDF_DIR%%/fpdf.php +@dirrm %%FPDF_DIR%%/font/makefont +@dirrm %%FPDF_DIR%%/font +@dirrm %%FPDF_DIR%% +%%PORTDOCS%%@dirrm %%DOCSDIR%%/tutoriel +%%PORTDOCS%%@dirrm %%DOCSDIR%% |