aboutsummaryrefslogtreecommitdiffstats
path: root/graphics
diff options
context:
space:
mode:
authormarcus <marcus@FreeBSD.org>2005-03-12 19:05:38 +0800
committermarcus <marcus@FreeBSD.org>2005-03-12 19:05:38 +0800
commitc03de73b337900a080607da8dbdb95296b8f055b (patch)
tree70947e798e94c1df750075a0e0630509ffbe3fd4 /graphics
parentd518f80dc208ca5cfc3977ffcd7b9980df98eacf (diff)
downloadfreebsd-ports-gnome-c03de73b337900a080607da8dbdb95296b8f055b.tar.gz
freebsd-ports-gnome-c03de73b337900a080607da8dbdb95296b8f055b.tar.zst
freebsd-ports-gnome-c03de73b337900a080607da8dbdb95296b8f055b.zip
Add poppler, a PDF rendering library using cairo as its backend. This
is a fork of the xpdf 3.0 code for use by Freedesktop.org.
Diffstat (limited to 'graphics')
-rw-r--r--graphics/Makefile1
-rw-r--r--graphics/poppler/Makefile26
-rw-r--r--graphics/poppler/distinfo2
-rw-r--r--graphics/poppler/files/patch-poppler_CairoOutputDev.cc33
-rw-r--r--graphics/poppler/pkg-descr4
-rw-r--r--graphics/poppler/pkg-plist90
6 files changed, 156 insertions, 0 deletions
diff --git a/graphics/Makefile b/graphics/Makefile
index 7987e89f9fda..95d74816eb1a 100644
--- a/graphics/Makefile
+++ b/graphics/Makefile
@@ -406,6 +406,7 @@
SUBDIR += pngquant
SUBDIR += pngrewrite
SUBDIR += pngwriter
+ SUBDIR += poppler
SUBDIR += pornview
SUBDIR += potrace
SUBDIR += potracegui
diff --git a/graphics/poppler/Makefile b/graphics/poppler/Makefile
new file mode 100644
index 000000000000..7cca4a97b0b9
--- /dev/null
+++ b/graphics/poppler/Makefile
@@ -0,0 +1,26 @@
+# New ports collection makefile for: poppler
+# Date created: 03 March 2005
+# Whom: marcus@FreeBSD.org
+#
+# $FreeBSD$
+#
+
+PORTNAME= poppler
+PORTVERSION= 0.1.1
+CATEGORIES= graphics print
+MASTER_SITES= http://freedesktop.org/~krh/
+
+MAINTAINER= gnome@FreeBSD.org
+COMMENT= A PDF rendering library
+
+LIB_DEPENDS= cairo.1:${PORTSDIR}/graphics/cairo
+
+USE_X_PREFIX= yes
+USE_GMAKE= yes
+USE_LIBTOOL_VER=15
+USE_GNOME= gnomeprefix gnomehack gtk20
+INSTALLS_SHLIB= yes
+CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
+ LDFLAGS="-L${LOCALBASE}/lib"
+
+.include <bsd.port.mk>
diff --git a/graphics/poppler/distinfo b/graphics/poppler/distinfo
new file mode 100644
index 000000000000..6eb4cc616890
--- /dev/null
+++ b/graphics/poppler/distinfo
@@ -0,0 +1,2 @@
+MD5 (poppler-0.1.1.tar.gz) = d10982c93a1ccee79a14bb277f94990a
+SIZE (poppler-0.1.1.tar.gz) = 682586
diff --git a/graphics/poppler/files/patch-poppler_CairoOutputDev.cc b/graphics/poppler/files/patch-poppler_CairoOutputDev.cc
new file mode 100644
index 000000000000..67ad678484ad
--- /dev/null
+++ b/graphics/poppler/files/patch-poppler_CairoOutputDev.cc
@@ -0,0 +1,33 @@
+--- poppler/CairoOutputDev.cc.orig Thu Mar 3 03:10:24 2005
++++ poppler/CairoOutputDev.cc Thu Mar 3 03:10:58 2005
+@@ -240,7 +240,7 @@
+ if (subpath->getNumPoints() > 0) {
+ state->transform(subpath->getX(0), subpath->getY(0), &x1, &y1);
+ if (snapToGrid) {
+- x1 = round (x1); y1 = round (y1);
++ x1 = rint (x1); y1 = rint (y1);
+ }
+ cairo_move_to (cairo, x1, y1);
+ LOG (printf ("move_to %f, %f\n", x1, y1));
+@@ -248,9 +248,9 @@
+ while (j < subpath->getNumPoints()) {
+ if (subpath->getCurve(j)) {
+ if (snapToGrid) {
+- x1 = round (x1); y1 = round (y1);
+- x2 = round (x2); y2 = round (y2);
+- x3 = round (x3); y3 = round (y3);
++ x1 = rint (x1); y1 = rint (y1);
++ x2 = rint (x2); y2 = rint (y2);
++ x3 = rint (x3); y3 = rint (y3);
+ }
+ state->transform(subpath->getX(j), subpath->getY(j), &x1, &y1);
+ state->transform(subpath->getX(j+1), subpath->getY(j+1), &x2, &y2);
+@@ -264,7 +264,7 @@
+ } else {
+ state->transform(subpath->getX(j), subpath->getY(j), &x1, &y1);
+ if (snapToGrid) {
+- x1 = round (x1); y1 = round (y1);
++ x1 = rint (x1); y1 = rint (y1);
+ }
+ cairo_line_to (cairo, x1, y1);
+ LOG(printf ("line_to %f, %f\n", x1, y1));
diff --git a/graphics/poppler/pkg-descr b/graphics/poppler/pkg-descr
new file mode 100644
index 000000000000..e5d390b7ed66
--- /dev/null
+++ b/graphics/poppler/pkg-descr
@@ -0,0 +1,4 @@
+Poppler is a fork of the xpdf PDF viewer developed by Derek Noonburg
+of Glyph and Cog, LLC. It provides PDF rendering functionality as a
+shared library, and uses modern components from Freedesktop.org such as
+fontconfig and cairo to take advantage of modern UNIX desktops.
diff --git a/graphics/poppler/pkg-plist b/graphics/poppler/pkg-plist
new file mode 100644
index 000000000000..00b14c9c480e
--- /dev/null
+++ b/graphics/poppler/pkg-plist
@@ -0,0 +1,90 @@
+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/CairoFontEngine.h
+include/poppler/CairoOutputDev.h
+include/poppler/CairoOutputDevImage.h
+include/poppler/CairoOutputDevX.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/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/goo/GooHash.h
+include/poppler/goo/GooList.h
+include/poppler/goo/GooMutex.h
+include/poppler/goo/GooString.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.a
+lib/libpoppler.so
+lib/libpoppler.so.0
+libdata/pkgconfig/poppler-cairo.pc
+libdata/pkgconfig/poppler-splash.pc
+libdata/pkgconfig/poppler.pc
+@dirrm include/poppler/splash
+@dirrm include/poppler/goo
+@dirrm include/poppler