- add a no_gnome FLAVOR so that people can use librsvg without

installing the whole GNOME desktop

"please commit" jasper@
This commit is contained in:
ajacoutot 2007-10-26 15:41:19 +00:00
parent d337831ad5
commit ecf19d5057
5 changed files with 44 additions and 25 deletions

View File

@ -1,37 +1,52 @@
# $OpenBSD: Makefile,v 1.29 2007/09/19 13:09:54 martynas Exp $
# $OpenBSD: Makefile,v 1.30 2007/10/26 15:41:19 ajacoutot Exp $
COMMENT= SAX-based render library for SVG files
COMMENT= SAX-based render library for SVG files
GNOME_PROJECT= librsvg
GNOME_VERSION= 2.18.1
GNOME_PROJECT= librsvg
GNOME_VERSION= 2.18.1
PKGNAME= ${DISTNAME}p0
SHARED_LIBS += rsvg-2 19.0 # .20.1
CATEGORIES= devel
CATEGORIES= devel
# LGPL
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
WANTLIB= ORBit-2 X11 Xau Xcursor Xdmcp Xext Xfixes Xi Xinerama \
Xrandr Xrender art_lgpl_2 atk-1.0 bz2 c cairo crypto \
dbus-1 dbus-glib-1 expat fontconfig freetype gconf-2 \
gdk-x11-2.0 gdk_pixbuf-2.0 glib-2.0 glitz gmodule-2.0 \
gnomecanvas-2 gnomeprint-2-2 gobject-2.0 gthread-2.0 \
gtk-x11-2.0 m pango-1.0 pangocairo-1.0 pangoft2-1.0 \
png pthread ssl util xml2 z
MODULES= devel/gettext \
x11/gnome
WANTLIB= X11 Xau Xcomposite Xcursor Xdamage Xdmcp Xext Xfixes \
Xi Xinerama Xrandr Xrender atk-1.0 bz2 c cairo expat \
fontconfig freetype glib-2.0 glitz gmodule-2.0 \
gobject-2.0 gthread-2.0 m pango-1.0 pangocairo-1.0 \
pangoft2-1.0 png pthread xml2 z pcre
LIB_DEPENDS= gsf-1::devel/libgsf \
croco-0.6.>=3::www/libcroco \
gnomeprintui-2-2.>=1::x11/gnome/libgnomeprintui \
gnomevfs-2.>=1799.1::x11/gnome/vfs2
MODULES= devel/gettext x11/gnome
LIB_DEPENDS= gdk-x11-2.0.>=1200,gdk_pixbuf-2.0.>=1200,gtk-x11-2.0.>=1200::x11/gtk+2 \
gsf-1::devel/libgsf,-main \
croco-0.6.>=3::www/libcroco
USE_X11= Yes
CONFIGURE_ARGS+= --with-svgz \
CONFIGURE_ARGS+= --with-svgz \
--with-croco \
--enable-gtk-theme \
--disable-gtk-doc \
--disable-mozilla-plugin
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
FLAVORS= no_gnome
FLAVOR?=
.if ${FLAVOR:L:Mno_gnome}
CONFIGURE_ARGS+=--disable-pixbuf-loader \
--disable-gnome-print \
--disable-gnome-vfs
.else
LIB_DEPENDS+= gnomevfs-2.>=1800::x11/gnome/vfs2 \
gnomeprintui-2-2.>=2::x11/gnome/libgnomeprintui
WANTLIB+= crypto ssl util ORBit-2 art_lgpl_2 dbus-1 dbus-glib-1 \
gconf-2 gnomecanvas-2 gnomeprint-2-2
.endif
.include <bsd.port.mk>

View File

@ -0,0 +1,5 @@
@comment $OpenBSD: PFRAG.no-no_gnome,v 1.1 2007/10/26 15:41:20 ajacoutot Exp $
%%SHARED%%
lib/gtk-2.0/2.10.0/loaders/
lib/gtk-2.0/2.10.0/loaders/svg_loader.a
lib/gtk-2.0/2.10.0/loaders/svg_loader.la

View File

@ -1,4 +1,3 @@
@comment $OpenBSD: PFRAG.shared,v 1.14 2007/05/06 15:24:49 jasper Exp $
@comment $OpenBSD: PFRAG.shared,v 1.15 2007/10/26 15:41:20 ajacoutot Exp $
lib/gtk-2.0/2.10.0/engines/libsvg.so
lib/gtk-2.0/2.10.0/loaders/svg_loader.so
@lib lib/librsvg-2.so.${LIBrsvg-2_VERSION}

View File

@ -0,0 +1,2 @@
@comment $OpenBSD: PFRAG.shared-no-no_gnome,v 1.1 2007/10/26 15:41:20 ajacoutot Exp $
lib/gtk-2.0/2.10.0/loaders/svg_loader.so

View File

@ -1,4 +1,4 @@
@comment $OpenBSD: PLIST,v 1.15 2007/05/06 15:24:49 jasper Exp $
@comment $OpenBSD: PLIST,v 1.16 2007/10/26 15:41:20 ajacoutot Exp $
%%SHARED%%
bin/rsvg
bin/rsvg-convert
@ -14,9 +14,6 @@ lib/gtk-2.0/2.10.0/
lib/gtk-2.0/2.10.0/engines/
lib/gtk-2.0/2.10.0/engines/libsvg.a
lib/gtk-2.0/2.10.0/engines/libsvg.la
lib/gtk-2.0/2.10.0/loaders/
lib/gtk-2.0/2.10.0/loaders/svg_loader.a
lib/gtk-2.0/2.10.0/loaders/svg_loader.la
lib/librsvg-2.a
lib/librsvg-2.la
@comment lib/mozilla/
@ -46,5 +43,6 @@ share/gtk-doc/html/rsvg/style.css
share/gtk-doc/html/rsvg/up.png
share/pixmaps/
share/pixmaps/svg-viewer.svg
!%%no_gnome%%
@exec %D/bin/gdk-pixbuf-query-loaders > /var/db/gtk-2.0/gdk-pixbuf.loaders
@unexec %D/bin/gdk-pixbuf-query-loaders > /var/db/gtk-2.0/gdk-pixbuf.loaders