summaryrefslogtreecommitdiff
path: root/x11/lablgtk/options.mk
diff options
context:
space:
mode:
Diffstat (limited to 'x11/lablgtk/options.mk')
-rw-r--r--x11/lablgtk/options.mk39
1 files changed, 39 insertions, 0 deletions
diff --git a/x11/lablgtk/options.mk b/x11/lablgtk/options.mk
new file mode 100644
index 00000000000..476a2f84432
--- /dev/null
+++ b/x11/lablgtk/options.mk
@@ -0,0 +1,39 @@
+# $NetBSD: options.mk,v 1.1 2007/09/21 13:00:53 wiz Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.lablgtk
+PKG_SUPPORTED_OPTIONS= glade gnomecanvas svg
+PKG_SUGGESTED_OPTIONS= gnomecanvas svg
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mglade)
+.include "../../devel/libglade2/buildlink3.mk"
+CONFIGURE_ARGS+= --with-glade
+PLIST_SRC+= PLIST.glade
+.else
+CONFIGURE_ARGS+= --without-glade
+.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: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