summaryrefslogtreecommitdiff
path: root/devel/libstatgrab/options.mk
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2008-04-09 16:18:39 +0000
committerjlam <jlam@pkgsrc.org>2008-04-09 16:18:39 +0000
commit3e57186a2d127d90face5f81cd4997eb874be21b (patch)
treeb7305fb5821f772ec407b4ea392bfc5f0d03ed42 /devel/libstatgrab/options.mk
parent64879822119b2fbe55b3509632e6437e390f207d (diff)
downloadpkgsrc-3e57186a2d127d90face5f81cd4997eb874be21b.tar.gz
+ Convert to use the options framework instead of using WITHOUT_SAIDAR
and WITHOUT_STATGRAB. + Convert to use PLIST_VARS instead of manually passing "@comment " to the plist module. Bump the PKGREVISION to 3 for the options changes.
Diffstat (limited to 'devel/libstatgrab/options.mk')
-rw-r--r--devel/libstatgrab/options.mk27
1 files changed, 27 insertions, 0 deletions
diff --git a/devel/libstatgrab/options.mk b/devel/libstatgrab/options.mk
new file mode 100644
index 00000000000..392e45a63f3
--- /dev/null
+++ b/devel/libstatgrab/options.mk
@@ -0,0 +1,27 @@
+# $NetBSD: options.mk,v 1.1 2008/04/09 16:18:39 jlam Exp $
+
+PKG_OPTIONS_VAR= libstatgrab
+PKG_SUPPORTED_OPTIONS= saidar statgrab
+PKG_DEFAULT_OPTIONS= saidar statgrab
+
+.include "../../mk/bsd.options.mk"
+
+.if defined(WITHOUT_SAIDAR)
+PKG_OPTIONS_DEPRECATED_WARNINGS+="Deprecated variable WITHOUT_SAIDAR used; use \`\`-saidar'' instead."
+.endif
+.if defined(WITHOUT_STATGRAB)
+PKG_OPTIONS_DEPRECATED_WARNINGS+="Deprecated variable WITHOUT_STATGRAB used; use \`\`-statgrab'' instead."
+.endif
+
+.if !empty(PKG_OPTIONS:Mstatgrab)
+PLIST.statgrab= yes
+.else
+CONFIGURE_ARGS+= --disable-statgrab
+.endif
+
+.if !empty(PKG_OPTIONS:Msaidar)
+PLIST.saidar= yes
+. include "../../devel/ncurses/buildlink3.mk"
+.else
+CONFIGURE_ARGS+= --disable-saidar
+.endif