summaryrefslogtreecommitdiff
path: root/sysutils/wmbattery/options.mk
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils/wmbattery/options.mk')
-rw-r--r--sysutils/wmbattery/options.mk26
1 files changed, 26 insertions, 0 deletions
diff --git a/sysutils/wmbattery/options.mk b/sysutils/wmbattery/options.mk
new file mode 100644
index 00000000000..8aa5eae8174
--- /dev/null
+++ b/sysutils/wmbattery/options.mk
@@ -0,0 +1,26 @@
+# $NetBSD: options.mk,v 1.1 2020/09/10 11:26:01 nia Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.wmbattery
+PKG_SUPPORTED_OPTIONS= hal upower
+
+.include "../../mk/bsd.options.mk"
+
+#
+# hal support
+#
+.if !empty(PKG_OPTIONS:Mhal)
+CONFIGURE_ARGS+= --enable-hal
+.include "../../sysutils/hal/buildlink3.mk"
+.else
+CONFIGURE_ARGS+= --disable-hal
+.endif
+
+#
+# upower support
+#
+.if !empty(PKG_OPTIONS:Mupower)
+CONFIGURE_ARGS+= --enable-upower
+.include "../../sysutils/hal/buildlink3.mk"
+.else
+CONFIGURE_ARGS+= --disable-upower
+.endif