summaryrefslogtreecommitdiffhomepage
path: root/xmobar.cabal
diff options
context:
space:
mode:
Diffstat (limited to 'xmobar.cabal')
-rw-r--r--xmobar.cabal10
1 files changed, 9 insertions, 1 deletions
diff --git a/xmobar.cabal b/xmobar.cabal
index e4d0cb5..bad2b9a 100644
--- a/xmobar.cabal
+++ b/xmobar.cabal
@@ -35,6 +35,10 @@ flag with_iwlib
description: wireless info support. Required for the Wireless plugin, needs iwlib installed.
default: False
+flag with_mpd
+ description: mpd support. Needs libmpd installed.
+ default: False
+
executable xmobar
main-is: Main.hs
other-modules: Xmobar, Config, Parsers, Commands, XUtil, StatFS, Runnable, Plugins
@@ -72,4 +76,8 @@ executable xmobar
if flag(with_iwlib)
extra-libraries: iw
other-modules: IWlib
- cpp-options: -DIWLIB \ No newline at end of file
+ cpp-options: -DIWLIB
+
+ if flag(with_mpd)
+ build-depends: libmpd > 0.4
+ cpp-options: -DLIBMPD