name:               xmobar
version:            0.10
homepage:           http://code.haskell.org/~arossato/xmobar
synopsis:           A Minimalistic Text Based Status Bar
description: 	    Xmobar is a minimalistic text based status bar.
		    .
                    Inspired by the Ion3 status bar, it supports similar features,
		    like dynamic color management, output templates, and extensibility
                    through plugins.
category:           System
license:            BSD3
license-file:       LICENSE
author:             Andrea Rossato
maintainer:         andrea.rossato@unitn.it
cabal-version:      >= 1.6
build-type:         Simple

data-files:         xmobar.config-sample

flag small_base
  description: Choose the new smaller, split-up base package.

flag with_xft
  description: Use Xft to render text. UTF-8 support included.
  default: False

flag with_utf8
  description: With UTF-8 support.

flag with_inotify
  description: inotify support (modern Linux only).  Required for the Mail plugin.
  default: False

flag with_iwlib
  description: wireless info support. Required for the Wireless plugin, needs iwlib installed.
  default: False

executable xmobar
    main-is:            Main.hs
    other-modules:      Xmobar, Config, Parsers, Commands, XUtil, StatFS, Runnable, Plugins
    ghc-prof-options:   -prof -auto-all

    if true
       ghc-options: -funbox-strict-fields -Wall

    if impl (ghc == 6.10.1) && arch (x86_64)
       ghc-options: -O0

    if impl (ghc >= 6.12.1)
       ghc-options: -fno-warn-unused-do-bind

    build-depends: X11>=1.3.0, mtl, unix, parsec, filepath, stm

    if flag(small_base)
       build-depends: base == 4.*, containers, process, old-time, old-locale, bytestring, directory

    else
       build-depends: base < 3

    if flag(with_xft)
       build-depends: utf8-string, X11-xft >= 0.2
       cpp-options: -DXFT

    if flag(with_utf8) && impl (ghc < 6.12.1)
       build-depends: utf8-string
       cpp-options: -DUTF8

    if flag(with_inotify)
       build-depends: hinotify
       cpp-options: -DINOTIFY

    if flag(with_iwlib)
       extra-libraries: iw
       other-modules: IWlib
       cpp-options: -DIWLIB