summaryrefslogtreecommitdiffstats
path: root/graphics/librsvg2/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/librsvg2/Makefile')
-rw-r--r--graphics/librsvg2/Makefile110
1 files changed, 110 insertions, 0 deletions
diff --git a/graphics/librsvg2/Makefile b/graphics/librsvg2/Makefile
new file mode 100644
index 000000000..b3b22f029
--- /dev/null
+++ b/graphics/librsvg2/Makefile
@@ -0,0 +1,110 @@
+# New ports collection makefile for: librsvg2
+# Date created: 8th May 2001
+# Whom: Ade Lovett <ade@FreeBSD.org>
+#
+# $FreeBSD: ports/graphics/librsvg2/Makefile,v 1.44 2004/11/13 08:23:15 ahze Exp $
+#
+
+PORTNAME= librsvg2
+PORTVERSION= 2.9.5
+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
+USE_GNOME= gnomehack gnomeprefix libartlgpl2 libgsf gnomevfs2
+CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
+ LDFLAGS="-L${LOCALBASE}/lib"
+CONFIGURE_ARGS= --with-svgz \
+ --disable-gtk-doc \
+ --without-gimp \
+ --enable-gnome-vfs \
+ --with-croco
+
+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
+
+.include <bsd.port.pre.mk>
+
+.if defined(WITH_MOZILLA_PLUGIN)
+.if defined(WITH_MOZILLA) && ${WITH_MOZILLA}=="firefox"
+BUILD_DEPENDS+= ${X11BASE}/libdata/pkgconfig/firefox-plugin.pc:${PORTSDIR}/www/firefox
+RUN_DEPENDS+= ${X11BASE}/libdata/pkgconfig/firefox-plugin.pc:${PORTSDIR}/www/firefox
+.else
+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}
+.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
+
+.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>