summaryrefslogtreecommitdiff
path: root/print/poppler-utils
diff options
context:
space:
mode:
authorreed <reed@pkgsrc.org>2006-04-01 19:11:39 +0000
committerreed <reed@pkgsrc.org>2006-04-01 19:11:39 +0000
commit7c97528731644c5fff5a9c89f4456d57064e79c8 (patch)
treee2a61c4c47598364a8e4375e83ab65082d81ddad /print/poppler-utils
parentaa16e32d838594a9f7f49fa7a66c4c65068b2101 (diff)
downloadpkgsrc-7c97528731644c5fff5a9c89f4456d57064e79c8.tar.gz
Split out the tools from the poppler package.
This provides PDF (Portable Document Format) utilities from the poppler project. Some of these are based on the versions from xpdf. This poppler-utils package provides: pdffonts - lists fonts used in PDF files with details pdfimages - saves images from a PDF file as PPM, PBM or JPEG pdfinfo - prints document information from 'Info' dictionary pdftohtml - convert PDF files into HTML, XML and PNG images pdftoppm - converts PDF files to PPM, PGM, or PBM image files pdftops - converts a PDF file to PostScript pdftotext - converts a PDF file to plain text
Diffstat (limited to 'print/poppler-utils')
-rw-r--r--print/poppler-utils/DESCR12
-rw-r--r--print/poppler-utils/Makefile35
-rw-r--r--print/poppler-utils/PLIST15
3 files changed, 62 insertions, 0 deletions
diff --git a/print/poppler-utils/DESCR b/print/poppler-utils/DESCR
new file mode 100644
index 00000000000..1965d69d5d7
--- /dev/null
+++ b/print/poppler-utils/DESCR
@@ -0,0 +1,12 @@
+This provides PDF (Portable Document Format) utilities from the
+poppler project. Some of these are based on the versions from xpdf.
+
+This poppler-utils package provides:
+
+pdffonts - lists fonts used in PDF files with details
+pdfimages - saves images from a PDF file as PPM, PBM or JPEG
+pdfinfo - prints document information from 'Info' dictionary
+pdftohtml - convert PDF files into HTML, XML and PNG images
+pdftoppm - converts PDF files to PPM, PGM, or PBM image files
+pdftops - converts a PDF file to PostScript
+pdftotext - converts a PDF file to plain text
diff --git a/print/poppler-utils/Makefile b/print/poppler-utils/Makefile
new file mode 100644
index 00000000000..d0277e8a547
--- /dev/null
+++ b/print/poppler-utils/Makefile
@@ -0,0 +1,35 @@
+# $NetBSD: Makefile,v 1.1.1.1 2006/04/01 19:11:39 reed Exp $
+#
+
+.include "../../print/poppler/Makefile.common"
+
+PKGNAME= poppler-utils-${POPPLER_VERS}
+
+COMMENT= PDF utilities (from poppler)
+
+CONFLICTS+= poppler-0.5.1 poppler-0.5.1nb1 poppler-0.5.1nb2
+CONFLICTS+= xpdf-[0-9]*
+
+GNU_CONFIGURE= yes
+USE_TOOLS+= gmake
+
+CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR:Q}
+# Don't build the cairo graphics backend.
+CONFIGURE_ARGS+= --disable-cairo-output
+# Don't build the splash graphics backend.
+CONFIGURE_ARGS+= --disable-splash-output
+# Don't compile poppler qt wrapper.
+CONFIGURE_ARGS+= --disable-poppler-qt
+# Don't compile GTK+ test program.
+CONFIGURE_ARGS+= --disable-gtk-test
+# Don't compile GLib wrapper which also needs gtk2
+CONFIGURE_ARGS+= --disable-poppler-glib
+# Enable build and install of the tools
+CONFIGURE_ARGS+= --enable-utils # the default
+
+BUILD_DIRS= utils # implies INSTALL_DIRS too
+
+BUILDLINK_DEPENDS.poppler+= poppler>=${POPPLER_VERS}nb3
+.include "../../print/poppler/buildlink3.mk"
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/print/poppler-utils/PLIST b/print/poppler-utils/PLIST
new file mode 100644
index 00000000000..8438f987cd4
--- /dev/null
+++ b/print/poppler-utils/PLIST
@@ -0,0 +1,15 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2006/04/01 19:11:39 reed Exp $
+bin/pdffonts
+bin/pdfimages
+bin/pdfinfo
+bin/pdftohtml
+bin/pdftoppm
+bin/pdftops
+bin/pdftotext
+man/man1/pdffonts.1
+man/man1/pdfimages.1
+man/man1/pdfinfo.1
+man/man1/pdftohtml.1
+man/man1/pdftoppm.1
+man/man1/pdftops.1
+man/man1/pdftotext.1