summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2005-03-06 06:44:23 +0800
committermarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2005-03-06 06:44:23 +0800
commitfe0c8f180121443b142eb354331ca049dc50dd5f (patch)
treef2ba3a62e8eac8a2a87d5b607276252d8976f4e2
parent3a27d626bf556e82d6c995f0de469932b78c51c6 (diff)
downloadmarcuscom-ports-fe0c8f180121443b142eb354331ca049dc50dd5f.tar
marcuscom-ports-fe0c8f180121443b142eb354331ca049dc50dd5f.tar.gz
marcuscom-ports-fe0c8f180121443b142eb354331ca049dc50dd5f.tar.bz2
marcuscom-ports-fe0c8f180121443b142eb354331ca049dc50dd5f.tar.lz
marcuscom-ports-fe0c8f180121443b142eb354331ca049dc50dd5f.tar.xz
marcuscom-ports-fe0c8f180121443b142eb354331ca049dc50dd5f.tar.zst
marcuscom-ports-fe0c8f180121443b142eb354331ca049dc50dd5f.zip
Disable gnome-vfs support by default, and only enable it if package building
or if gnome-vfs support is desired. git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@3814 df743ca5-7f9a-e211-a948-0013205c9059
-rw-r--r--graphics/librsvg2/Makefile17
1 files changed, 15 insertions, 2 deletions
diff --git a/graphics/librsvg2/Makefile b/graphics/librsvg2/Makefile
index e4c28ee76..d13ef9beb 100644
--- a/graphics/librsvg2/Makefile
+++ b/graphics/librsvg2/Makefile
@@ -7,6 +7,7 @@
PORTNAME= librsvg2
PORTVERSION= 2.9.5
+PORTREVISION= 1
CATEGORIES= graphics gnome
MASTER_SITES= ${MASTER_SITE_GNOME}
MASTER_SITE_SUBDIR= sources/${PORTNAME:S/2$//}/2.9
@@ -28,13 +29,13 @@ USE_X_PREFIX= yes
INSTALLS_SHLIB= yes
USE_LIBTOOL_VER=15
USE_REINPLACE= yes
-USE_GNOME= gnomehack gnomeprefix libartlgpl2 libgsf gnomevfs2
+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 \
- --enable-gnome-vfs \
--with-croco
CROCO_VERSION= 0.6
@@ -46,8 +47,20 @@ 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 ${HAVE_GNOME:Mgnomevfs2}!=""
+USE_GNOME+= gnomevfs2
+CONFIGURE_ARGS+=--enable-gnome-vfs
+.else
+CONFIGURE_ARGS+=--disable-gnome-vfs
+.endif
+
.if defined(WITH_MOZILLA_PLUGIN)
.if defined(WITH_MOZILLA) && ${WITH_MOZILLA}=="firefox"
BUILD_DEPENDS+= ${X11BASE}/libdata/pkgconfig/firefox-plugin.pc:${PORTSDIR}/www/firefox