summaryrefslogtreecommitdiffstats
path: root/graphics/libgxps
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/libgxps')
-rw-r--r--graphics/libgxps/Makefile29
-rw-r--r--graphics/libgxps/distinfo2
-rw-r--r--graphics/libgxps/files/patch-configure69
-rw-r--r--graphics/libgxps/files/patch-libgxps.pc.in11
-rw-r--r--graphics/libgxps/pkg-descr3
-rw-r--r--graphics/libgxps/pkg-plist40
6 files changed, 154 insertions, 0 deletions
diff --git a/graphics/libgxps/Makefile b/graphics/libgxps/Makefile
new file mode 100644
index 000000000..cfb43bbbc
--- /dev/null
+++ b/graphics/libgxps/Makefile
@@ -0,0 +1,29 @@
+# Created by: Gustau Perez <gustau.perez@gmail.com>
+# $FreeBSD$
+# $MCom$
+
+PORTNAME= libgxps
+PORTVERSION= 0.2.2
+CATEGORIES= graphics gnome
+MASTER_SITES= GNOME
+DIST_SUBDIR= gnome3
+
+MAINTAINER= gnome@FreeBSD.org
+COMMENT= GObject based library for rendering XPS documents
+
+LIB_DEPENDS= libfreetype.so:${PORTSDIR}/print/freetype2 \
+ libjpeg.so:${PORTSDIR}/graphics/jpeg \
+ libtiff.so:${PORTSDIR}/graphics/tiff \
+ liblcms2.so:${PORTSDIR}/graphics/lcms2
+
+USES= gettext gmake libtool pathfix pkgconfig tar:xz
+USE_LDCONFIG= yes
+USE_GNOME= cairo gnomeprefix glib20 intlhack
+GNU_CONFIGURE= yes
+CPPFLAGS+= -I${LOCALBASE}/include
+LDFLAGS+= -L${LOCALBASE}/lib -larchive
+
+post-install:
+ ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libgxps.so.2.1.1
+
+.include <bsd.port.mk>
diff --git a/graphics/libgxps/distinfo b/graphics/libgxps/distinfo
new file mode 100644
index 000000000..99b7c5332
--- /dev/null
+++ b/graphics/libgxps/distinfo
@@ -0,0 +1,2 @@
+SHA256 (gnome3/libgxps-0.2.2.tar.xz) = 39d104739bf0db43905c315de1d8002460f1a098576f4418f69294013a5820be
+SIZE (gnome3/libgxps-0.2.2.tar.xz) = 302844
diff --git a/graphics/libgxps/files/patch-configure b/graphics/libgxps/files/patch-configure
new file mode 100644
index 000000000..9cd6434c6
--- /dev/null
+++ b/graphics/libgxps/files/patch-configure
@@ -0,0 +1,69 @@
+--- configure.orig 2014-03-24 09:05:21.575540501 +0000
++++ configure 2014-03-24 09:05:37.706538416 +0000
+@@ -13236,13 +13236,11 @@
+ gobject-2.0 >= \$GLIB_REQUIRED
+ gio-2.0 >= \$GLIB_REQUIRED
+ cairo >= \$CAIRO_REQUIRED
+- libarchive >= \$LIBARCHIVE_REQUIRED
+ freetype2\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "glib-2.0 >= $GLIB_REQUIRED
+ gobject-2.0 >= $GLIB_REQUIRED
+ gio-2.0 >= $GLIB_REQUIRED
+ cairo >= $CAIRO_REQUIRED
+- libarchive >= $LIBARCHIVE_REQUIRED
+ freetype2") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+@@ -13251,7 +13249,6 @@
+ gobject-2.0 >= $GLIB_REQUIRED
+ gio-2.0 >= $GLIB_REQUIRED
+ cairo >= $CAIRO_REQUIRED
+- libarchive >= $LIBARCHIVE_REQUIRED
+ freetype2" 2>/dev/null`
+ test "x$?" != "x0" && pkg_failed=yes
+ else
+@@ -13268,13 +13265,11 @@
+ gobject-2.0 >= \$GLIB_REQUIRED
+ gio-2.0 >= \$GLIB_REQUIRED
+ cairo >= \$CAIRO_REQUIRED
+- libarchive >= \$LIBARCHIVE_REQUIRED
+ freetype2\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "glib-2.0 >= $GLIB_REQUIRED
+ gobject-2.0 >= $GLIB_REQUIRED
+ gio-2.0 >= $GLIB_REQUIRED
+ cairo >= $CAIRO_REQUIRED
+- libarchive >= $LIBARCHIVE_REQUIRED
+ freetype2") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+@@ -13283,7 +13278,6 @@
+ gobject-2.0 >= $GLIB_REQUIRED
+ gio-2.0 >= $GLIB_REQUIRED
+ cairo >= $CAIRO_REQUIRED
+- libarchive >= $LIBARCHIVE_REQUIRED
+ freetype2" 2>/dev/null`
+ test "x$?" != "x0" && pkg_failed=yes
+ else
+@@ -13309,14 +13303,12 @@
+ gobject-2.0 >= $GLIB_REQUIRED
+ gio-2.0 >= $GLIB_REQUIRED
+ cairo >= $CAIRO_REQUIRED
+- libarchive >= $LIBARCHIVE_REQUIRED
+ freetype2" 2>&1`
+ else
+ GXPS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= $GLIB_REQUIRED
+ gobject-2.0 >= $GLIB_REQUIRED
+ gio-2.0 >= $GLIB_REQUIRED
+ cairo >= $CAIRO_REQUIRED
+- libarchive >= $LIBARCHIVE_REQUIRED
+ freetype2" 2>&1`
+ fi
+ # Put the nasty error message in config.log where it belongs
+@@ -13326,7 +13318,6 @@
+ gobject-2.0 >= $GLIB_REQUIRED
+ gio-2.0 >= $GLIB_REQUIRED
+ cairo >= $CAIRO_REQUIRED
+- libarchive >= $LIBARCHIVE_REQUIRED
+ freetype2) were not met:
+
+ $GXPS_PKG_ERRORS
diff --git a/graphics/libgxps/files/patch-libgxps.pc.in b/graphics/libgxps/files/patch-libgxps.pc.in
new file mode 100644
index 000000000..74cd92aff
--- /dev/null
+++ b/graphics/libgxps/files/patch-libgxps.pc.in
@@ -0,0 +1,11 @@
+--- libgxps.pc.in.orig 2010-09-05 12:21:14.000000000 +0200
++++ libgxps.pc.in 2014-03-25 17:14:35.000000000 +0100
+@@ -6,6 +6,6 @@
+ Name: libgxps
+ Description: XPS Documents library
+ Version: @VERSION@
+-Requires: gio-2.0 >= @GLIB_REQUIRED@ libarchive >= @LIBARCHIVE_REQUIRED@ cairo >= @CAIRO_REQUIRED@ gobject-2.0 >= @GLIB_REQUIRED@
+-Libs: -L${libdir} -lgxps
++Requires: gio-2.0 >= @GLIB_REQUIRED@ cairo >= @CAIRO_REQUIRED@ gobject-2.0 >= @GLIB_REQUIRED@
++Libs: -L${libdir} -lgxps -larchive
+ Cflags: -I${includedir}
diff --git a/graphics/libgxps/pkg-descr b/graphics/libgxps/pkg-descr
new file mode 100644
index 000000000..2dade173c
--- /dev/null
+++ b/graphics/libgxps/pkg-descr
@@ -0,0 +1,3 @@
+libgxps is a GObject based library for rendering XPS documents.
+
+WWW: https://wiki.gnome.org/action/show/Projects/libgxps
diff --git a/graphics/libgxps/pkg-plist b/graphics/libgxps/pkg-plist
new file mode 100644
index 000000000..bab65c7c6
--- /dev/null
+++ b/graphics/libgxps/pkg-plist
@@ -0,0 +1,40 @@
+bin/xpstojpeg
+bin/xpstopdf
+bin/xpstopng
+bin/xpstops
+bin/xpstosvg
+include/libgxps/gxps-document-structure.h
+include/libgxps/gxps-document.h
+include/libgxps/gxps-error.h
+include/libgxps/gxps-file.h
+include/libgxps/gxps-links.h
+include/libgxps/gxps-page.h
+include/libgxps/gxps-version.h
+include/libgxps/gxps.h
+lib/libgxps.a
+lib/libgxps.la
+lib/libgxps.so
+lib/libgxps.so.2
+lib/libgxps.so.2.1.1
+libdata/pkgconfig/libgxps.pc
+%%DOCSDIR%%/GXPSDocument.html
+%%DOCSDIR%%/GXPSDocumentStructure.html
+%%DOCSDIR%%/GXPSFile.html
+%%DOCSDIR%%/GXPSPage.html
+%%DOCSDIR%%/annotation-glossary.html
+%%DOCSDIR%%/api-index-0-2-1.html
+%%DOCSDIR%%/api-index-full.html
+%%DOCSDIR%%/ch01.html
+%%DOCSDIR%%/home.png
+%%DOCSDIR%%/index.html
+%%DOCSDIR%%/index.sgml
+%%DOCSDIR%%/left.png
+%%DOCSDIR%%/libgxps-GXPS-Links.html
+%%DOCSDIR%%/libgxps-GXPSError.html
+%%DOCSDIR%%/libgxps-Version-Information.html
+%%DOCSDIR%%/libgxps.devhelp2
+%%DOCSDIR%%/right.png
+%%DOCSDIR%%/style.css
+%%DOCSDIR%%/up.png
+@dirrm include/libgxps
+@dirrm %%DOCSDIR%%