summaryrefslogtreecommitdiffstats
path: root/graphics
diff options
context:
space:
mode:
authormarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2003-04-12 10:30:29 +0800
committermarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2003-04-12 10:30:29 +0800
commit8919a5a734489d40c97f4f8673dce900ddc93537 (patch)
tree21f9cd2dc5a2d01a678fabb80034a667a4511adf /graphics
parent18be46bddd94b13b8d1ee0394fff9a1bf8967f20 (diff)
downloadmarcuscom-ports-8919a5a734489d40c97f4f8673dce900ddc93537.tar
marcuscom-ports-8919a5a734489d40c97f4f8673dce900ddc93537.tar.gz
marcuscom-ports-8919a5a734489d40c97f4f8673dce900ddc93537.tar.bz2
marcuscom-ports-8919a5a734489d40c97f4f8673dce900ddc93537.tar.lz
marcuscom-ports-8919a5a734489d40c97f4f8673dce900ddc93537.tar.xz
marcuscom-ports-8919a5a734489d40c97f4f8673dce900ddc93537.tar.zst
marcuscom-ports-8919a5a734489d40c97f4f8673dce900ddc93537.zip
Add librsvg2-2.3.x.
TODO: Add LibCroco support. git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@579 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'graphics')
-rw-r--r--graphics/librsvg2/Makefile61
-rw-r--r--graphics/librsvg2/distinfo1
-rw-r--r--graphics/librsvg2/files/patch-configure13
-rw-r--r--graphics/librsvg2/files/patch-gimp-plugin_Makefile.in11
-rw-r--r--graphics/librsvg2/pkg-descr7
-rw-r--r--graphics/librsvg2/pkg-plist31
6 files changed, 124 insertions, 0 deletions
diff --git a/graphics/librsvg2/Makefile b/graphics/librsvg2/Makefile
new file mode 100644
index 000000000..329260c90
--- /dev/null
+++ b/graphics/librsvg2/Makefile
@@ -0,0 +1,61 @@
+# New ports collection makefile for: librsvg2
+# Date created: 8th May 2001
+# Whom: Ade Lovett <ade@FreeBSD.org>
+#
+# $FreeBSD: ports/graphics/librsvg2/Makefile,v 1.25 2003/04/06 19:23:31 marcus Exp $
+#
+
+PORTNAME= librsvg2
+PORTVERSION= 2.3.0
+CATEGORIES= graphics gnome
+MASTER_SITES= ${MASTER_SITE_GNOME}
+MASTER_SITE_SUBDIR= sources/${PORTNAME:S/2$//}/2.3
+DISTNAME= librsvg-${PORTVERSION}
+DIST_SUBDIR= gnome2
+
+MAINTAINER= gnome@FreeBSD.org
+COMMENT= Library for parsing and rendering SVG vector-graphic files
+
+BUILD_DEPENDS= freetype-config:${PORTSDIR}/print/freetype2
+LIB_DEPENDS= freetype.9:${PORTSDIR}/print/freetype2 \
+ popt.0:${PORTSDIR}/devel/popt \
+ gsf-1.8:${PORTSDIR}/devel/libgsf
+RUN_DEPENDS= ${X11BASE}/lib/gtk-2.0/2.2.0/engines/libmetal.so:${PORTSDIR}/x11-toolkits/gtk-engines2
+
+USE_BZIP2= yes
+USE_GMAKE= yes
+USE_X_PREFIX= yes
+INSTALLS_SHLIB= yes
+USE_LIBTOOL= yes
+USE_REINPLACE= yes
+USE_GNOME= gnomehack gtk20 libartlgpl2 libxml2
+CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
+ LIBS="-L${LOCALBASE}/lib"
+CONFIGURE_ARGS= --with-svgz \
+ --disable-gtk-doc
+PLIST_SUB= GTK_VERSION="2.2.0"
+
+MAN1= rsvg.1
+
+.include <bsd.port.pre.mk>
+
+.if defined(WITH_GIMP) || exists (${X11BASE}/libexec/gimp/1.3/plug-ins/AlienMap)
+LIB_DEPENDS+= gimp-1.3:${PORTSDIR}/graphics/gimp-devel
+CONFIGURE_ARGS+= --with-gimp
+PLIST_SUB+= GIMP:=""
+.else
+CONFIGURE_ARGS= --without-gimp
+PLIST_SUB+= GIMP:="@comment "
+.endif
+
+pre-everything::
+ @${ECHO_MSG} ""
+ @${ECHO_MSG} "Librsvg2 has the following tunable option(s):"
+ @${ECHO_MSG} " WITH_GIMP=yes Build an svg plugin for gimp-devel (default: auto)"
+ @${ECHO_MSG} ""
+
+post-patch:
+ @${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g ; \
+ s|DATADIRNAME=lib|DATADIRNAME=share|g' ${WRKSRC}/configure
+
+.include <bsd.port.post.mk>
diff --git a/graphics/librsvg2/distinfo b/graphics/librsvg2/distinfo
new file mode 100644
index 000000000..f9b539ac3
--- /dev/null
+++ b/graphics/librsvg2/distinfo
@@ -0,0 +1 @@
+MD5 (gnome2/librsvg-2.3.0.tar.bz2) = 31139e949850f79fa44e089ef10543c2
diff --git a/graphics/librsvg2/files/patch-configure b/graphics/librsvg2/files/patch-configure
new file mode 100644
index 000000000..4f0422e96
--- /dev/null
+++ b/graphics/librsvg2/files/patch-configure
@@ -0,0 +1,13 @@
+
+$FreeBSD: ports/graphics/librsvg2/files/patch-configure,v 1.3 2003/02/07 18:42:08 marcus Exp $
+
+--- configure 2002/04/25 19:16:30 1.1
++++ configure 2002/04/25 19:16:42
+@@ -5397,6 +5397,7 @@
+
+ # This can be used to rebuild libtool when needed
+ LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
++$ac_aux_dir/ltconfig $LIBTOOL_DEPS
+
+ # Always use our own libtool.
+ LIBTOOL='$(SHELL) $(top_builddir)/libtool'
diff --git a/graphics/librsvg2/files/patch-gimp-plugin_Makefile.in b/graphics/librsvg2/files/patch-gimp-plugin_Makefile.in
new file mode 100644
index 000000000..b8d240267
--- /dev/null
+++ b/graphics/librsvg2/files/patch-gimp-plugin_Makefile.in
@@ -0,0 +1,11 @@
+--- gimp-plugin/Makefile.in.orig Sun Mar 23 19:17:25 2003
++++ gimp-plugin/Makefile.in Sun Mar 23 19:17:41 2003
+@@ -103,7 +103,7 @@
+ VERSION = @VERSION@
+ VERSION_INFO = @VERSION_INFO@
+
+-gimpdir = $(libdir)/gimp/1.3/plug-ins
++gimpdir = $(libexecdir)/gimp/1.3/plug-ins
+
+ INCLUDES = \
+ $(LIBRSVG_CFLAGS) \
diff --git a/graphics/librsvg2/pkg-descr b/graphics/librsvg2/pkg-descr
new file mode 100644
index 000000000..b3f050b65
--- /dev/null
+++ b/graphics/librsvg2/pkg-descr
@@ -0,0 +1,7 @@
+The librsvg library is a lightweight library for parsing and rendering
+vector-graphic files in SVG format (like the ones made by sodipodi). It also
+includes functions that render anti-aliased fonts using freetype, including
+caching of glyphs. It's used by Nautilus for drawing vector icons and
+anti-aliased type.
+
+WWW: http://www.gnome.org/
diff --git a/graphics/librsvg2/pkg-plist b/graphics/librsvg2/pkg-plist
new file mode 100644
index 000000000..5772b4d87
--- /dev/null
+++ b/graphics/librsvg2/pkg-plist
@@ -0,0 +1,31 @@
+bin/rsvg
+include/librsvg-2/librsvg/librsvg-features.h
+include/librsvg-2/librsvg/rsvg-gz.h
+include/librsvg-2/librsvg/rsvg.h
+lib/gtk-2.0/%%GTK_VERSION%%/engines/libsvg.so
+lib/gtk-2.0/%%GTK_VERSION%%/loaders/svg_loader.so
+lib/librsvg-2.a
+lib/librsvg-2.so
+lib/librsvg-2.so.5
+libdata/pkgconfig/librsvg-2.0.pc
+%%GIMP:%%libexec/gimp/1.3/plug-ins/svg
+share/doc/librsvg/html/home.png
+share/doc/librsvg/html/i912.html
+share/doc/librsvg/html/index.html
+share/doc/librsvg/html/index.sgml
+share/doc/librsvg/html/left.png
+share/doc/librsvg/html/r22.html
+share/doc/librsvg/html/r323.html
+share/doc/librsvg/html/r357.html
+share/doc/librsvg/html/right.png
+share/doc/librsvg/html/rsvg-convenience-functions.html
+share/doc/librsvg/html/rsvg-core-api.html
+share/doc/librsvg/html/rsvg-creating-a-svgz-reader.html
+share/doc/librsvg/html/rsvg.html
+share/doc/librsvg/html/up.png
+@dirrm share/doc/librsvg/html
+@dirrm share/doc/librsvg
+@dirrm include/librsvg-2/librsvg
+@dirrm include/librsvg-2
+@exec gdk-pixbuf-query-loaders > %D/etc/gtk-2.0/gdk-pixbuf.loaders 2>/dev/null || /usr/bin/true
+@unexec gdk-pixbuf-query-loaders > %D/etc/gtk-2.0/gdk-pixbuf.loaders 2>/dev/null || /usr/bin/true