summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--print/poppler/DESCR8
-rw-r--r--print/poppler/Makefile47
-rw-r--r--print/poppler/PLIST97
-rw-r--r--print/poppler/buildlink3.mk18
-rw-r--r--print/poppler/distinfo6
-rw-r--r--print/poppler/patches/patch-aa13
6 files changed, 189 insertions, 0 deletions
diff --git a/print/poppler/DESCR b/print/poppler/DESCR
new file mode 100644
index 00000000000..84d6d75035d
--- /dev/null
+++ b/print/poppler/DESCR
@@ -0,0 +1,8 @@
+This is poppler, a PDF rendering library. It is a fork of the xpdf
+3.0 PDF viewer developed by Derek Noonburg of Glyph and Cog, LLC.
+
+Poppler provides PDF rendering functionality as a shared library,
+to centralize the maintenence effort and to reduce duplicated
+effort. And the poppler developers would like to move libpoppler
+forward in a number of areas that doesn't fit within the goals of
+xpdf.
diff --git a/print/poppler/Makefile b/print/poppler/Makefile
new file mode 100644
index 00000000000..af3ecd355e9
--- /dev/null
+++ b/print/poppler/Makefile
@@ -0,0 +1,47 @@
+# $NetBSD: Makefile,v 1.1.1.1 2005/07/08 20:31:34 reed Exp $
+#
+
+DISTNAME= poppler-0.3.3
+PKGREVISION= 1
+CATEGORIES= print
+MASTER_SITES= http://poppler.freedesktop.org/
+
+MAINTAINER= reed@reedmedia.net
+HOMEPAGE= http://poppler.freedesktop.org/
+COMMENT= PDF rendering library
+
+USE_TOOLS= gmake
+USE_LIBTOOL= yes
+LIBTOOL_OVERRIDE= ${WRKSRC}/libtool
+#PKGCONFIG_OVERRIDE+= ${WRKSRC}/poppler-cairo.pc.in
+PKGCONFIG_OVERRIDE+= ${WRKSRC}/poppler-glib.pc.in
+PKGCONFIG_OVERRIDE+= ${WRKSRC}/poppler-splash.pc.in
+PKGCONFIG_OVERRIDE+= ${WRKSRC}/poppler.pc.in
+GNU_CONFIGURE= yes
+
+INSTALLATION_DIRS+= share/doc/poppler
+
+# TODO: Later add an option to choose Splash versus Cairo backend.
+## Don't build the Splash graphics backend.
+#CONFIGURE_ARGS+= --disable-splash-output
+# Don't build the cairo graphics backend.
+CONFIGURE_ARGS+= --disable-cairo-output
+# Don't compile poppler qt wrapper.
+CONFIGURE_ARGS+= --disable-poppler-qt
+# Don't compile GTK+ test program.
+CONFIGURE_ARGS+= --disable-gtk-test
+# TODO: check papersize?
+# --enable-a4-paper use A4 paper size instead of Letter for PostScript output
+# maybe glib wrapper is only part needing gtk??
+# --disable-poppler-glib Don't compile poppler glib wrapper.
+
+post-install:
+ ${INSTALL_MAN} ${WRKSRC}/README ${PREFIX}/share/doc/poppler/
+ ${INSTALL_MAN} ${WRKSRC}/README-XPDF ${PREFIX}/share/doc/poppler/
+
+.include "../../devel/glib2/buildlink3.mk"
+.include "../../fonts/fontconfig/buildlink3.mk"
+.include "../../graphics/jpeg/buildlink3.mk"
+.include "../../x11/gtk2/buildlink3.mk"
+.include "../../mk/pthread.buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/print/poppler/PLIST b/print/poppler/PLIST
new file mode 100644
index 00000000000..e61bf524779
--- /dev/null
+++ b/print/poppler/PLIST
@@ -0,0 +1,97 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2005/07/08 20:31:34 reed Exp $
+include/poppler/Annot.h
+include/poppler/Array.h
+include/poppler/BaseFile.h
+include/poppler/BuiltinFont.h
+include/poppler/BuiltinFontTables.h
+include/poppler/CMap.h
+include/poppler/Catalog.h
+include/poppler/CharCodeToUnicode.h
+include/poppler/CharTypes.h
+include/poppler/CompactFontTables.h
+include/poppler/Decrypt.h
+include/poppler/Dict.h
+include/poppler/Error.h
+include/poppler/ErrorCodes.h
+include/poppler/FontEncodingTables.h
+include/poppler/FontInfo.h
+include/poppler/Function.cc
+include/poppler/Function.h
+include/poppler/Gfx.h
+include/poppler/GfxFont.h
+include/poppler/GfxState.h
+include/poppler/GlobalParams.h
+include/poppler/JArithmeticDecoder.h
+include/poppler/JBIG2Stream.h
+include/poppler/JPXStream.h
+include/poppler/Lexer.h
+include/poppler/Link.h
+include/poppler/NameToCharCode.h
+include/poppler/NameToUnicodeTable.h
+include/poppler/Object.h
+include/poppler/Outline.h
+include/poppler/OutputDev.h
+include/poppler/PDFDoc.h
+include/poppler/PDFDocEncoding.h
+include/poppler/PSOutputDev.h
+include/poppler/PSTokenizer.h
+include/poppler/Page.h
+include/poppler/Parser.h
+include/poppler/SplashOutputDev.h
+include/poppler/Stream-CCITT.h
+include/poppler/Stream.h
+include/poppler/TextOutputDev.h
+include/poppler/UTF8.h
+include/poppler/UnicodeMap.h
+include/poppler/UnicodeMapTables.h
+include/poppler/UnicodeTypeTable.h
+include/poppler/XRef.h
+include/poppler/glib/poppler-action.h
+include/poppler/glib/poppler-document.h
+include/poppler/glib/poppler-enums.h
+include/poppler/glib/poppler-page.h
+include/poppler/glib/poppler.h
+include/poppler/goo/GooHash.h
+include/poppler/goo/GooList.h
+include/poppler/goo/GooMutex.h
+include/poppler/goo/GooString.h
+include/poppler/goo/GooTimer.h
+include/poppler/goo/gfile.h
+include/poppler/goo/gmem.h
+include/poppler/goo/gtypes.h
+include/poppler/poppler-config.h
+include/poppler/splash/Splash.h
+include/poppler/splash/SplashBitmap.h
+include/poppler/splash/SplashClip.h
+include/poppler/splash/SplashErrorCodes.h
+include/poppler/splash/SplashFTFont.h
+include/poppler/splash/SplashFTFontEngine.h
+include/poppler/splash/SplashFTFontFile.h
+include/poppler/splash/SplashFont.h
+include/poppler/splash/SplashFontEngine.h
+include/poppler/splash/SplashFontFile.h
+include/poppler/splash/SplashFontFileID.h
+include/poppler/splash/SplashGlyphBitmap.h
+include/poppler/splash/SplashMath.h
+include/poppler/splash/SplashPath.h
+include/poppler/splash/SplashPattern.h
+include/poppler/splash/SplashScreen.h
+include/poppler/splash/SplashState.h
+include/poppler/splash/SplashT1Font.h
+include/poppler/splash/SplashT1FontEngine.h
+include/poppler/splash/SplashT1FontFile.h
+include/poppler/splash/SplashTypes.h
+include/poppler/splash/SplashXPath.h
+include/poppler/splash/SplashXPathScanner.h
+lib/libpoppler-glib.la
+lib/libpoppler.la
+lib/pkgconfig/poppler-glib.pc
+lib/pkgconfig/poppler-splash.pc
+lib/pkgconfig/poppler.pc
+share/doc/poppler/README
+share/doc/poppler/README-XPDF
+@dirrm share/doc/poppler
+@dirrm include/poppler/splash
+@dirrm include/poppler/goo
+@dirrm include/poppler/glib
+@dirrm include/poppler
diff --git a/print/poppler/buildlink3.mk b/print/poppler/buildlink3.mk
new file mode 100644
index 00000000000..cd81c4d1edc
--- /dev/null
+++ b/print/poppler/buildlink3.mk
@@ -0,0 +1,18 @@
+# $NetBSD: buildlink3.mk,v 1.1.1.1 2005/07/08 20:31:34 reed Exp $
+
+BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
+POPPLER_BUILDLINK3_MK:= ${POPPLER_BUILDLINK3_MK}+
+
+.if !empty(BUILDLINK_DEPTH:M+)
+BUILDLINK_DEPENDS+= poppler
+.endif
+
+BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:Npoppler}
+BUILDLINK_PACKAGES+= poppler
+
+.if !empty(POPPLER_BUILDLINK3_MK:M+)
+BUILDLINK_DEPENDS.poppler+= poppler>=0.3.3
+BUILDLINK_PKGSRCDIR.poppler?= ../../print/poppler
+.endif # POPPLER_BUILDLINK3_MK
+
+BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//}
diff --git a/print/poppler/distinfo b/print/poppler/distinfo
new file mode 100644
index 00000000000..302af0593de
--- /dev/null
+++ b/print/poppler/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1.1.1 2005/07/08 20:31:34 reed Exp $
+
+SHA1 (poppler-0.3.3.tar.gz) = 4dd3e060815a307dfb217dbe7dd7d52c7f688edf
+RMD160 (poppler-0.3.3.tar.gz) = a607766a46a39ae27cbd1bdfd5866c1bc74cf4d3
+Size (poppler-0.3.3.tar.gz) = 742493 bytes
+SHA1 (patch-aa) = be585bf002516f55d98cff5a7902327c41733c09
diff --git a/print/poppler/patches/patch-aa b/print/poppler/patches/patch-aa
new file mode 100644
index 00000000000..031efe75e10
--- /dev/null
+++ b/print/poppler/patches/patch-aa
@@ -0,0 +1,13 @@
+$NetBSD: patch-aa,v 1.1.1.1 2005/07/08 20:31:34 reed Exp $
+
+--- poppler/Error.h.orig 2005-07-08 10:38:26.000000000 -0700
++++ poppler/Error.h 2005-07-08 10:38:41.000000000 -0700
+@@ -13,7 +13,7 @@
+ #pragma interface
+ #endif
+
+-#include <stdio.h>
++#include <stdarg.h>
+ #include "poppler-config.h"
+
+ extern void CDECL error(int pos, char *msg, ...);