pkgsrc/x11/lablgtk/options.mk
adrianp 3c9fe51344 Darwin i386 uses stubs as well or else we get PLIST errors on install
gtkspell is not required so split it out as an option but keep it enabled by
 default so there's no change in the package.  Without gtkspell it removes
 a whole slew of dependencies which makes this package a fair bit lighter.
Make a small change to a CONFLICTS statement to keep pkglint happy.
2008-12-28 13:10:29 +00:00

55 lines
1.4 KiB
Makefile

# $NetBSD: options.mk,v 1.4 2008/12/28 13:10:29 adrianp Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.lablgtk
PKG_SUPPORTED_OPTIONS= glade gnomecanvas gtksourceview svg gtkspell
PKG_SUGGESTED_OPTIONS= gnomecanvas svg gtkspell
.include "../../mk/bsd.options.mk"
.if !empty(PKG_OPTIONS:Mglade)
.include "../../devel/libglade/buildlink3.mk"
CONFIGURE_ARGS+= --with-glade
PLIST_SRC+= PLIST.glade
.else
CONFIGURE_ARGS+= --without-glade
.endif
.if !empty(PKG_OPTIONS:Mgtkspell)
.include "../../textproc/gtkspell/buildlink3.mk"
CONFIGURE_ARGS+= --with-gtkspell
PLIST_SRC+= PLIST.gtkspell
.else
CONFIGURE_ARGS+= --without-gtkspell
.endif
.if !empty(PKG_OPTIONS:Mgnomecanvas)
.include "../../devel/libgnomeui/buildlink3.mk"
.include "../../graphics/libgnomecanvas/buildlink3.mk"
.include "../../x11/gnome-panel/buildlink3.mk"
CONFIGURE_ARGS+= --with-gnomecanvas
PLIST_SRC+= PLIST.gnomecanvas
.else
CONFIGURE_ARGS+= --without-gnomecanvas
.endif
.if !empty(PKG_OPTIONS:Mgtksourceview)
.include "../../x11/gtksourceview/buildlink3.mk"
CONFIGURE_ARGS+= --with-gtksourceview
PLIST_SRC+= PLIST.gtksourceview
.else
CONFIGURE_ARGS+= --without-gtksourceview
.endif
.if !empty(PKG_OPTIONS:Msvg)
.include "../../graphics/librsvg/buildlink3.mk"
CONFIGURE_ARGS+= --with-rsvg
PLIST_SRC+= PLIST.svg
.else
CONFIGURE_ARGS+= --without-rsvg
.endif
.if !empty(PKG_OPTIONS:Mgnomecanvas) || !empty(PKG_OPTIONS:Msvg)
PLIST_SRC+= PLIST.gnome
.endif
PLIST_SRC+= PLIST