summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorahze <ahze@df743ca5-7f9a-e211-a948-0013205c9059>2005-07-17 15:42:29 +0800
committerahze <ahze@df743ca5-7f9a-e211-a948-0013205c9059>2005-07-17 15:42:29 +0800
commit0a096340fa032405e2405e824db1f3989e533143 (patch)
treec85b1fa8c8fcbe7516f1e758ddd8c188c550de20
parentd6e436497037d7c209ca8df9919bc092662bb28d (diff)
downloadmarcuscom-ports-0a096340fa032405e2405e824db1f3989e533143.tar
marcuscom-ports-0a096340fa032405e2405e824db1f3989e533143.tar.gz
marcuscom-ports-0a096340fa032405e2405e824db1f3989e533143.tar.bz2
marcuscom-ports-0a096340fa032405e2405e824db1f3989e533143.tar.lz
marcuscom-ports-0a096340fa032405e2405e824db1f3989e533143.tar.xz
marcuscom-ports-0a096340fa032405e2405e824db1f3989e533143.tar.zst
marcuscom-ports-0a096340fa032405e2405e824db1f3989e533143.zip
- Add librsvg2 with firefox as default gecko support if WITH_MOZILLA_PLUGIN is defined.
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@4262 df743ca5-7f9a-e211-a948-0013205c9059
-rw-r--r--graphics/librsvg2/Makefile121
-rw-r--r--graphics/librsvg2/distinfo2
-rw-r--r--graphics/librsvg2/files/extra-patch-Makefile.in11
-rw-r--r--graphics/librsvg2/files/patch-configure11
-rw-r--r--graphics/librsvg2/files/patch-librsvg-2.0.pc.in9
-rw-r--r--graphics/librsvg2/files/patch-moz-plugin_Makefile.in27
-rw-r--r--graphics/librsvg2/files/patch-rsvg-paint-server.c14
-rw-r--r--graphics/librsvg2/files/patch-rsvg-shapes.c14
-rw-r--r--graphics/librsvg2/pkg-descr7
-rw-r--r--graphics/librsvg2/pkg-plist36
10 files changed, 252 insertions, 0 deletions
diff --git a/graphics/librsvg2/Makefile b/graphics/librsvg2/Makefile
new file mode 100644
index 000000000..9b4d1bf45
--- /dev/null
+++ b/graphics/librsvg2/Makefile
@@ -0,0 +1,121 @@
+# New ports collection makefile for: librsvg2
+# Date created: 8th May 2001
+# Whom: Ade Lovett <ade@FreeBSD.org>
+#
+# $FreeBSD$
+# $MCom$
+#
+
+PORTNAME= librsvg2
+PORTVERSION= 2.9.5
+PORTREVISION= 3
+CATEGORIES= graphics gnome
+MASTER_SITES= ${MASTER_SITE_GNOME}
+MASTER_SITE_SUBDIR= sources/${PORTNAME:S/2$//}/2.9
+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 \
+ croco-${CROCO_VERSION}.3:${PORTSDIR}/textproc/libcroco
+RUN_DEPENDS= ${X11BASE}/lib/gtk-2.0/${GTK_VERSION}/engines/libmetal.so:${PORTSDIR}/x11-themes/gtk-engines2
+
+USE_BZIP2= yes
+USE_GMAKE= yes
+USE_X_PREFIX= yes
+INSTALLS_SHLIB= yes
+USE_LIBTOOL_VER=15
+USE_REINPLACE= yes
+WANT_GNOME= yes
+USE_GNOME= gnomehack gnomeprefix libartlgpl2 libgsf gtk20
+CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
+ LDFLAGS="-L${LOCALBASE}/lib"
+CONFIGURE_ARGS= --with-svgz \
+ --disable-gtk-doc \
+ --without-gimp \
+ --with-croco \
+ --disable-gnome-vfs
+
+CROCO_VERSION= 0.6
+GTK_VERSION= 2.4.0
+
+PLIST_SUB= GTK_VERSION=${GTK_VERSION}
+
+MAN1= rsvg.1
+
+OPTIONS= MOZILLA_PLUGIN "Enable the RSVG browser plug-in" no
+
+.if defined(PACKAGE_BUILDING) || defined(PARALLEL_PACKAGE_BUILD)
+.undef WITHOUT_GNOME
+WITH_GNOME= yes
+.endif
+
+.include <bsd.port.pre.mk>
+
+.if defined(WITH_MOZILLA_PLUGIN)
+.if defined(WITH_MOZILLA) && ${WITH_MOZILLA}!="firefox"
+BUILD_DEPENDS+= ${X11BASE}/libdata/pkgconfig/mozilla-plugin${HEADERS_SUFX}.pc:${PORTSDIR}/www/mozilla${HEADERS_SUFX}
+RUN_DEPENDS+= ${X11BASE}/libdata/pkgconfig/mozilla-plugin${HEADERS_SUFX}.pc:${PORTSDIR}/www/mozilla${HEADERS_SUFX
+.else
+BUILD_DEPENDS+= ${X11BASE}/libdata/pkgconfig/firefox-plugin.pc:${PORTSDIR}/www/firefox
+RUN_DEPENDS+= ${X11BASE}/libdata/pkgconfig/firefox-plugin.pc:${PORTSDIR}/www/firefox
+.endif
+
+HEADERS_SUFX=
+
+.if !defined(WITH_MOZILLA)
+HEADERS_SUFX=
+.else
+.if ${WITH_MOZILLA}=="mozilla"
+HEADERS_SUFX=
+.else
+.if ${WITH_MOZILLA}=="mozilla-devel"
+HEADERS_SUFX= -devel
+.else
+.if ${WITH_MOZILLA}=="firefox"
+HEADERS_SUFX=
+.endif
+.endif
+.endif
+.endif
+PLIST_SUB+= PLUGIN=""
+.else
+EXTRA_PATCHES+= ${FILESDIR}/extra-patch-Makefile.in
+PLIST_SUB+= PLUGIN="@comment "
+.endif
+
+.if ${OSVERSION} < 500000
+.if defined(WITH_MOZILLA)
+.if ${WITH_MOZILLA}=="mozilla-devel"
+USE_GCC= 3.4
+.endif
+.endif
+.endif
+
+post-patch:
+ @${REINPLACE_CMD} -e 's|%%PTHREAD_LIBS%%|${PTHREAD_LIBS}|' \
+ ${WRKSRC}/librsvg-2.0.pc.in
+.if defined(WITH_MOZILLA_PLUGIN)
+.if defined(WITH_MOZILLA) && ${WITH_MOZILLA}=="firefox"
+ @${REINPLACE_CMD} -e 's|mozilla-|firefox-|g' ${WRKSRC}/configure
+.else
+ @${REINPLACE_CMD} -e 's|mozilla-plugin|mozilla-plugin${HEADERS_SUFX}|g' \
+ ${WRKSRC}/configure
+.endif
+.endif
+
+pre-build:
+ @${REINPLACE_CMD} -E -e 's|O2|O|g' ${WRKSRC}/Makefile
+
+.if defined(WITH_MOZILLA_PLUGIN)
+post-install:
+ ${MKDIR} ${PREFIX}/lib/browser_plugins
+ ${INSTALL_PROGRAM} ${WRKSRC}/moz-plugin/.libs/libmozsvgdec.so \
+ ${PREFIX}/lib/browser_plugins
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/graphics/librsvg2/distinfo b/graphics/librsvg2/distinfo
new file mode 100644
index 000000000..40f8c84a5
--- /dev/null
+++ b/graphics/librsvg2/distinfo
@@ -0,0 +1,2 @@
+MD5 (gnome2/librsvg-2.9.5.tar.bz2) = 44799d75e940eb4150acdae4f63cbe2a
+SIZE (gnome2/librsvg-2.9.5.tar.bz2) = 392785
diff --git a/graphics/librsvg2/files/extra-patch-Makefile.in b/graphics/librsvg2/files/extra-patch-Makefile.in
new file mode 100644
index 000000000..6bcb7ef68
--- /dev/null
+++ b/graphics/librsvg2/files/extra-patch-Makefile.in
@@ -0,0 +1,11 @@
+--- Makefile.in.orig Wed Jan 26 04:47:10 2005
++++ Makefile.in Wed Jan 26 04:47:24 2005
+@@ -199,7 +199,7 @@
+ sharedstatedir = @sharedstatedir@
+ sysconfdir = @sysconfdir@
+ target_alias = @target_alias@
+-SUBDIRS = . gtk-engine gdk-pixbuf-loader moz-plugin doc data
++SUBDIRS = . gtk-engine gdk-pixbuf-loader doc data
+
+ @HAVE_GTK_TRUE@target_rsvg_view = rsvg-view
+ @HAVE_GTK_FALSE@target_rsvg_view =
diff --git a/graphics/librsvg2/files/patch-configure b/graphics/librsvg2/files/patch-configure
new file mode 100644
index 000000000..38c33bc6c
--- /dev/null
+++ b/graphics/librsvg2/files/patch-configure
@@ -0,0 +1,11 @@
+--- configure.orig Wed Jun 9 01:30:07 2004
++++ configure Wed Jun 9 01:30:24 2004
+@@ -22052,7 +22052,7 @@
+ if test "x$with_html_dir" = "x" ; then
+ HTML_DIR='${datadir}/doc/librsvg/html'
+ else
+- HTML_DIR=$with_html_dir
++ HTML_DIR=${with_html_dir}/librsvg/html
+ fi
+
+
diff --git a/graphics/librsvg2/files/patch-librsvg-2.0.pc.in b/graphics/librsvg2/files/patch-librsvg-2.0.pc.in
new file mode 100644
index 000000000..8210a432b
--- /dev/null
+++ b/graphics/librsvg2/files/patch-librsvg-2.0.pc.in
@@ -0,0 +1,9 @@
+--- librsvg-2.0.pc.in.orig Fri Jun 4 20:23:35 2004
++++ librsvg-2.0.pc.in Wed Jun 9 01:58:50 2004
+@@ -7,5 +7,5 @@
+ Description: library that renders svg files
+ Version: @VERSION@
+ Requires: glib-2.0 gdk-pixbuf-2.0
+-Libs: -L${libdir} -lrsvg-2
++Libs: -L${libdir} -lrsvg-2 %%PTHREAD_LIBS%%
+ Cflags: -I${includedir}/librsvg-2
diff --git a/graphics/librsvg2/files/patch-moz-plugin_Makefile.in b/graphics/librsvg2/files/patch-moz-plugin_Makefile.in
new file mode 100644
index 000000000..97a0a3fd2
--- /dev/null
+++ b/graphics/librsvg2/files/patch-moz-plugin_Makefile.in
@@ -0,0 +1,27 @@
+--- moz-plugin/Makefile.in.orig Tue Jan 25 23:31:56 2005
++++ moz-plugin/Makefile.in Tue Jan 25 23:32:32 2005
+@@ -252,15 +252,15 @@
+ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)
+ pluginLTLIBRARIES_INSTALL = $(INSTALL)
+ install-pluginLTLIBRARIES: $(plugin_LTLIBRARIES)
+- @$(NORMAL_INSTALL)
+- $(mkinstalldirs) $(DESTDIR)$(plugindir)
+- @list='$(plugin_LTLIBRARIES)'; for p in $$list; do \
+- if test -f $$p; then \
+- f="`echo $$p | sed -e 's|^.*/||'`"; \
+- echo " $(LIBTOOL) --mode=install $(pluginLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) $$p $(DESTDIR)$(plugindir)/$$f"; \
+- $(LIBTOOL) --mode=install $(pluginLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) $$p $(DESTDIR)$(plugindir)/$$f; \
+- else :; fi; \
+- done
++# @$(NORMAL_INSTALL)
++# $(mkinstalldirs) $(DESTDIR)$(plugindir)
++# @list='$(plugin_LTLIBRARIES)'; for p in $$list; do \
++# if test -f $$p; then \
++# f="`echo $$p | sed -e 's|^.*/||'`"; \
++# echo " $(LIBTOOL) --mode=install $(pluginLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) $$p $(DESTDIR)$(plugindir)/$$f"; \
++# $(LIBTOOL) --mode=install $(pluginLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) $$p $(DESTDIR)$(plugindir)/$$f; \
++# else :; fi; \
++# done
+
+ uninstall-pluginLTLIBRARIES:
+ @$(NORMAL_UNINSTALL)
diff --git a/graphics/librsvg2/files/patch-rsvg-paint-server.c b/graphics/librsvg2/files/patch-rsvg-paint-server.c
new file mode 100644
index 000000000..f6e05c030
--- /dev/null
+++ b/graphics/librsvg2/files/patch-rsvg-paint-server.c
@@ -0,0 +1,14 @@
+--- rsvg-paint-server.c.orig Tue Jan 25 23:39:10 2005
++++ rsvg-paint-server.c Tue Jan 25 23:39:19 2005
+@@ -84,10 +84,10 @@
+ const RsvgPSCtx *ctx)
+ {
+ RsvgPaintServerSolid *z = (RsvgPaintServerSolid *)self;
++ ArtPixMaxDepth color[3];
+ guint32 rgb = z->rgb;
+ if (z->currentcolour)
+ rgb = rsvg_state_current(ctx->ctx)->current_color;
+- ArtPixMaxDepth color[3];
+
+ color[0] = ART_PIX_MAX_FROM_8 (rgb >> 16);
+ color[1] = ART_PIX_MAX_FROM_8 ((rgb >> 8) & 0xff);
diff --git a/graphics/librsvg2/files/patch-rsvg-shapes.c b/graphics/librsvg2/files/patch-rsvg-shapes.c
new file mode 100644
index 000000000..2642a2539
--- /dev/null
+++ b/graphics/librsvg2/files/patch-rsvg-shapes.c
@@ -0,0 +1,14 @@
+--- rsvg-shapes.c.orig Tue Jan 25 23:43:50 2005
++++ rsvg-shapes.c Tue Jan 25 23:44:01 2005
+@@ -2579,10 +2579,10 @@
+ const char * id, *value;
+ double vbox_x = 0, vbox_y = 0, vbox_w = 0, vbox_h = 0;
+ gboolean has_vbox = FALSE, overflow = 0;
+- id = NULL;
+ RsvgDefsDrawableSvg * svg;
+ RsvgDefsDrawableGroup * group;
+ RsvgState state;
++ id = NULL;
+ rsvg_state_init(&state);
+
+ if (rsvg_property_bag_size (atts))
diff --git a/graphics/librsvg2/pkg-descr b/graphics/librsvg2/pkg-descr
new file mode 100644
index 000000000..9e39343a5
--- /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 is used by Nautilus for drawing vector icons and
+anti-aliased text.
+
+WWW: http://librsvg.sourceforge.net/
diff --git a/graphics/librsvg2/pkg-plist b/graphics/librsvg2/pkg-plist
new file mode 100644
index 000000000..5604203a5
--- /dev/null
+++ b/graphics/librsvg2/pkg-plist
@@ -0,0 +1,36 @@
+bin/rsvg
+bin/rsvg-view
+include/librsvg-2/librsvg/librsvg-enum-types.h
+include/librsvg-2/librsvg/librsvg-features.h
+include/librsvg-2/librsvg/rsvg-gz.h
+include/librsvg-2/librsvg/rsvg.h
+%%PLUGIN%%lib/browser_plugins/libmozsvgdec.so
+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.11
+libdata/pkgconfig/librsvg-2.0.pc
+share/doc/librsvg/html/home.png
+share/doc/librsvg/html/index.html
+share/doc/librsvg/html/index.sgml
+share/doc/librsvg/html/ix01.html
+share/doc/librsvg/html/left.png
+share/doc/librsvg/html/right.png
+share/doc/librsvg/html/rn01.html
+share/doc/librsvg/html/rn02.html
+share/doc/librsvg/html/rn03.html
+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.devhelp
+share/doc/librsvg/html/rsvg.html
+share/doc/librsvg/html/up.png
+share/gnome/pixmaps/svg-viewer.svg
+@dirrm share/doc/librsvg/html
+@dirrm share/doc/librsvg
+@dirrm include/librsvg-2/librsvg
+@dirrm include/librsvg-2
+@exec %D/bin/gdk-pixbuf-query-loaders > /dev/null 2>&1 && %D/bin/gdk-pixbuf-query-loaders > %D/etc/gtk-2.0/gdk-pixbuf.loaders 2>/dev/null || /usr/bin/true
+@unexec %D/bin/gdk-pixbuf-query-loaders > /dev/null 2>&1 && %D/bin/gdk-pixbuf-query-loaders > %D/etc/gtk-2.0/gdk-pixbuf.loaders 2>/dev/null || /usr/bin/true
+%%PLUGIN%%@unexec rmdir %D/lib/browser_plugins 2>/dev/null || /usr/bin/true