summaryrefslogtreecommitdiff
path: root/graphics/graphviz/options.mk
diff options
context:
space:
mode:
authorjlam <jlam>2008-04-12 22:42:57 +0000
committerjlam <jlam>2008-04-12 22:42:57 +0000
commit9ff693053b2b42cd6a29b886e071ad01acdeefe2 (patch)
treefdd67c81079412bf94013749a954125434a9baca /graphics/graphviz/options.mk
parent4a580ef74536ed1f7c6a7ecd5a26e46a93aec9b3 (diff)
downloadpkgsrc-9ff693053b2b42cd6a29b886e071ad01acdeefe2.tar.gz
Convert to use PLIST_VARS instead of manually passing "@comment "
through PLIST_SUBST to the plist module.
Diffstat (limited to 'graphics/graphviz/options.mk')
-rw-r--r--graphics/graphviz/options.mk16
1 files changed, 7 insertions, 9 deletions
diff --git a/graphics/graphviz/options.mk b/graphics/graphviz/options.mk
index 7aa7e47b457..a4142f31326 100644
--- a/graphics/graphviz/options.mk
+++ b/graphics/graphviz/options.mk
@@ -1,4 +1,4 @@
-# $NetBSD: options.mk,v 1.2 2008/03/11 15:46:57 joerg Exp $
+# $NetBSD: options.mk,v 1.3 2008/04/12 22:43:01 jlam Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.graphviz
PKG_SUPPORTED_OPTIONS= guile lua ocaml swig tcl gtk
@@ -6,21 +6,21 @@ PKG_SUGGESTED_OPTIONS= lua swig tcl
.include "../../mk/bsd.options.mk"
+PLIST_VARS+= guile gtk lua tcl
+
.if !empty(PKG_OPTIONS:Mguile)
.include "../../lang/guile/buildlink3.mk"
CONFIGURE_ARGS+= --enable-guile
-PLIST_SUBST+= GUILE=""
+PLIST.guile= yes
.else
CONFIGURE_ARGS+= --disable-guile
-PLIST_SUBST+= GUILE="@comment "
.endif
.if !empty(PKG_OPTIONS:Mlua)
.include "../../lang/lua/buildlink3.mk"
-PLIST_SUBST+= LUA=
+PLIST.lua= yes
.else
CONFIGURE_ARGS+= --disable-lua
-PLIST_SUBST+= LUA="@comment "
.endif
.if !empty(PKG_OPTIONS:Mocaml)
@@ -39,17 +39,15 @@ CONFIGURE_ARGS+= --disable-swig
.include "../../x11/tk/buildlink3.mk"
CONFIGURE_ENV+= TCLCONFIG=${TCLCONFIG_SH:Q}
CONFIGURE_ENV+= TKCONFIG=${TKCONFIG_SH:Q}
-PLIST_SUBST+= TCL=
+PLIST.tcl= yes
.else
CONFIGURE_ARGS+= --disable-tcl
-PLIST_SUBST+= TCL="@comment "
.endif
.if !empty(PKG_OPTIONS:Mgtk)
.include "../../x11/gtk2/buildlink3.mk"
-PLIST_SUBST+= GTK=
+PLIST.gtk= yes
.else
CONFIGURE_ARGS+= --without-gdk-pixbuf
CONFIGURE_ARGS+= --without-gtk
-PLIST_SUBST+= GTK="@comment "
.endif