diff options
author | marcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059> | 2005-03-03 17:03:40 +0800 |
---|---|---|
committer | marcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059> | 2005-03-03 17:03:40 +0800 |
commit | 868033d5725610becdb83ba281628e73fd8ec58c (patch) | |
tree | dae5b6b317a892cd88955a5e5b7731316d00017a /graphics | |
parent | deec54184d7945c01ce1619777e93a3a3a6e24df (diff) | |
download | marcuscom-ports-868033d5725610becdb83ba281628e73fd8ec58c.tar marcuscom-ports-868033d5725610becdb83ba281628e73fd8ec58c.tar.gz marcuscom-ports-868033d5725610becdb83ba281628e73fd8ec58c.tar.bz2 marcuscom-ports-868033d5725610becdb83ba281628e73fd8ec58c.tar.lz marcuscom-ports-868033d5725610becdb83ba281628e73fd8ec58c.tar.xz marcuscom-ports-868033d5725610becdb83ba281628e73fd8ec58c.tar.zst marcuscom-ports-868033d5725610becdb83ba281628e73fd8ec58c.zip |
Add poppler, an xpdf fork providing a PDF library with cairo backend.
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@3796 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/poppler/Makefile | 26 | ||||
-rw-r--r-- | graphics/poppler/distinfo | 2 | ||||
-rw-r--r-- | graphics/poppler/files/patch-poppler_CairoOutputDev.cc | 33 | ||||
-rw-r--r-- | graphics/poppler/pkg-descr | 4 | ||||
-rw-r--r-- | graphics/poppler/pkg-plist | 90 |
5 files changed, 155 insertions, 0 deletions
diff --git a/graphics/poppler/Makefile b/graphics/poppler/Makefile new file mode 100644 index 000000000..7cca4a97b --- /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 000000000..6eb4cc616 --- /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 000000000..67ad67848 --- /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 000000000..e5d390b7e --- /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 000000000..00b14c9c4 --- /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 |