summaryrefslogtreecommitdiffhomepage
path: root/xmobar.cabal
diff options
context:
space:
mode:
authorJose Antonio Ortega Ruiz <jao@gnu.org>2011-01-15 00:04:07 +0100
committerJose Antonio Ortega Ruiz <jao@gnu.org>2011-01-15 00:04:07 +0100
commitd1675af6f9749e12113d6bf957f920682e7fd91d (patch)
tree4c71d49ebb1c0260d6b127475a35622e1f3c9f66 /xmobar.cabal
parent3c9b2b38bd216e2d308f3b00cf7baee52266b1be (diff)
parentce23b849f7aff963a1e6a84da5281b6a4aaff241 (diff)
downloadxmobar-d1675af6f9749e12113d6bf957f920682e7fd91d.tar.gz
xmobar-d1675af6f9749e12113d6bf957f920682e7fd91d.tar.bz2
Merge branch 'ttuegel-master'
Diffstat (limited to 'xmobar.cabal')
-rw-r--r--xmobar.cabal9
1 files changed, 9 insertions, 0 deletions
diff --git a/xmobar.cabal b/xmobar.cabal
index e5ee507..343570d 100644
--- a/xmobar.cabal
+++ b/xmobar.cabal
@@ -53,6 +53,10 @@ flag all_extensions
description: Includes all optional extensions.
default: False
+flag with_alsa
+ description: Use alsa-mixer to get the volume from soundcards.
+ default: False
+
executable xmobar
hs-source-dirs: src
main-is: Main.hs
@@ -109,3 +113,8 @@ executable xmobar
build-depends: libmpd >= 0.5
other-modules: Plugins.Monitors.MPD
cpp-options: -DLIBMPD
+
+ if flag(with_alsa) || flag(all_extensions)
+ build-depends: alsa-mixer == 0.1.*
+ other-modules: Plugins.Monitors.Volume
+ cpp-options: -DALSA