diff options
Diffstat (limited to '')
-rw-r--r-- | print/Makefile | 1 | ||||
-rw-r--r-- | print/pdftk/Makefile | 41 | ||||
-rw-r--r-- | print/pdftk/distinfo | 2 | ||||
-rw-r--r-- | print/pdftk/pkg-descr | 19 |
4 files changed, 63 insertions, 0 deletions
diff --git a/print/Makefile b/print/Makefile index 25c5606c16ef..ba8f7af3d324 100644 --- a/print/Makefile +++ b/print/Makefile @@ -152,6 +152,7 @@ SUBDIR += pclprint SUBDIR += pdflib SUBDIR += pdflib-perl + SUBDIR += pdftk SUBDIR += pdq SUBDIR += perlftlib SUBDIR += pfaedit diff --git a/print/pdftk/Makefile b/print/pdftk/Makefile new file mode 100644 index 000000000000..6d9c98fb4588 --- /dev/null +++ b/print/pdftk/Makefile @@ -0,0 +1,41 @@ +# Ports collection makefile for: pdftk +# Date created: 18 March, 2004 +# Whom: Patrick Dung (patrick_dkt@yahoo.com.hk) +# +# $FreeBSD$ +# + +PORTNAME= pdftk +PORTVERSION= 0.94 +CATEGORIES= print +MASTER_SITES= http://www.accesspdf.com/pdftk/ + +MAINTAINER= patrick_dkt@yahoo.com.hk +COMMENT= A simple tool for doing everyday things with PDF documents + +# needs gcj +BUILD_DEPENDS= gcj33:${PORTSDIR}/lang/gcc33 + +USE_GCC= 3.3 +USE_GMAKE= yes +USE_ICONV= yes +USE_REINPLACE= yes + +WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}/${PORTNAME} + +MAKEFILE= Makefile.Generic +MAKE_ENV= CXX=g++33 GCJ=gcj33 GCJH=gcjh33 + +MAN1= ${PORTNAME}.1 +PLIST_FILES= bin/pdftk + +post-extract: + @${REINPLACE_CMD} -e "s|CC_OPTS \+\=|CC_OPTS \+\= ${PTHREAD_CFLAGS} ${PTHREAD_LIBS} -liconv -lz|g" ${WRKSRC}/Makefile.Base + @${REINPLACE_CMD} -e "s|g\+\+|g\+\+33|g" ${WRKSRC}/Makefile.Generic + @${REINPLACE_CMD} -e "s|MAKE)|MAKE) GXX=g++33 GCJ=gcj33 GCJH=gcjh33| " ${WRKSRC}/Makefile.Base + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin + ${INSTALL_MAN} ${WRKSRC}/../debian/${PORTNAME}.1 ${PREFIX}/man/man1 + +.include <bsd.port.mk> diff --git a/print/pdftk/distinfo b/print/pdftk/distinfo new file mode 100644 index 000000000000..74ee6327aca4 --- /dev/null +++ b/print/pdftk/distinfo @@ -0,0 +1,2 @@ +MD5 (pdftk-0.94.tar.gz) = 3b4d8c3d9e1f95d0194bc393465bd24a +SIZE (pdftk-0.94.tar.gz) = 688728 diff --git a/print/pdftk/pkg-descr b/print/pdftk/pkg-descr new file mode 100644 index 000000000000..7d3a01ec4b2e --- /dev/null +++ b/print/pdftk/pkg-descr @@ -0,0 +1,19 @@ +If PDF is electronic paper, then pdftk is an electronic staple-remover, +hole-punch, binder, secret-decoder-ring, and X-Ray-glasses. +Pdftk is a simple tool for doing everyday things with PDF documents. +Keep one in the top drawer of your desktop and use it to: + +Merge PDF Documents +Split PDF Pages into a New Document +Decrypt Input as Necessary (Password Required) +Encrypt Output as Desired +Burst a PDF Document into Single Pages +Report on PDF Metrics, including Metadata and Bookmarks +Uncompress and Re-Compress Page Streams +Repair Corrupted PDF (Where Possible) + +Pdftk is also an example of how to use a library of Java classes +in a stand-alone C++ program. Specifically, it demonstrates how GCJ and CNI +allow C++ code to use iText's (itext-paulo) Java classes. + +WWW: http://www.accesspdf.com/pdftk/ |