summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorthierry <thierry@FreeBSD.org>2005-04-05 20:45:00 +0000
committerthierry <thierry@FreeBSD.org>2005-04-05 20:45:00 +0000
commit1b2b420e725c44c1cc54dea5b06843437bf5adc0 (patch)
tree5160008aec49c6d1fb2c834cb82534958dfb0295
parent212c0b4b38cff7969be6f870d173132f3bb95514 (diff)
downloadFreeBSD-ports-1b2b420e725c44c1cc54dea5b06843437bf5adc0.zip
FreeBSD-ports-1b2b420e725c44c1cc54dea5b06843437bf5adc0.tar.gz
Add fpdf 1.53, a free PHP class to generate PDF files with pure PHP.
-rw-r--r--print/Makefile1
-rw-r--r--print/fpdf/Makefile58
-rw-r--r--print/fpdf/distinfo2
-rw-r--r--print/fpdf/files/pkg-message.in2
-rw-r--r--print/fpdf/pkg-descr23
-rw-r--r--print/fpdf/pkg-plist114
6 files changed, 200 insertions, 0 deletions
diff --git a/print/Makefile b/print/Makefile
index 38a87f6..6680e7d 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 0000000..863b345
--- /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 0000000..1f4aac9
--- /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 0000000..f104876
--- /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 0000000..0f895bc
--- /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 0000000..4ac5fbd
--- /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%%
OpenPOWER on IntegriCloud