summaryrefslogtreecommitdiffstats
path: root/x11/hs-xmobar/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'x11/hs-xmobar/Makefile')
-rw-r--r--x11/hs-xmobar/Makefile40
1 files changed, 31 insertions, 9 deletions
diff --git a/x11/hs-xmobar/Makefile b/x11/hs-xmobar/Makefile
index a658438..4985ab3 100644
--- a/x11/hs-xmobar/Makefile
+++ b/x11/hs-xmobar/Makefile
@@ -2,34 +2,36 @@
# $FreeBSD$
PORTNAME= xmobar
-PORTVERSION= 0.14
-PORTREVISION= 3
+PORTVERSION= 0.16
CATEGORIES= x11 haskell
MAINTAINER= haskell@FreeBSD.org
-COMMENT= A minimalistic text based status bar
+COMMENT= Minimalistic text-based status bar
LICENSE= BSD
-USE_CABAL= mtl parsec stm X11>=1.3.0
-USE_XORG= x11 xrandr
+USE_CABAL= mtl parsec stm>=2.3 X11
+USE_XORG= xrandr
EXECUTABLE= xmobar
STANDALONE= yes
INSTALL_PORTDATA= ${INSTALL_DATA} ${WRKSRC}/samples/xmobar.config ${DATADIR}
-OPTIONS_DEFINE= XFT UTF8 MPD
-OPTIONS_DEFAULT= UFT8
+OPTIONS_DEFINE= XFT UTF8 MPD INOTIFY DATEZONE THREADED
+OPTIONS_DEFAULT= UTF8
XFT_DESC= Use Xft to render text (UTF-8 support included)
UTF8_DESC= UTF-8 support
MPD_DESC= mpd support
+INOTIFY_DESC= inotify support
+DATEZONE_DESC= Localized date support
+THREADED_DESC= Use threaded runtime
.include "${.CURDIR}/../../lang/ghc/bsd.cabal.options.mk"
-# Disable Linux-only options
-CONFIGURE_ARGS+= --flags="-with_inotify -with_iwlib"
+# Disable unsupported options
+CONFIGURE_ARGS+= --flags="-with_iwlib -with_dbus -with_mpris"
.if ${PORT_OPTIONS:MXFT}
CONFIGURE_ARGS+= --flags="with_xft"
@@ -54,5 +56,25 @@ USE_CABAL+= libmpd
CONFIGURE_ARGS+= --flags="-with_mpd"
.endif
+.if ${PORT_OPTIONS:MINOTIFY}
+CONFIGURE_ARGS+= --flags="with_inotify"
+USE_CABAL+= hinotify>=0.3
+.else
+CONFIGURE_ARGS+= --flags="-with_inotify"
+.endif
+
+.if ${PORT_OPTIONS:MDATEZONE}
+CONFIGURE_ARGS+= --flags="with_datezone"
+USE_CABAL+= timezone-olson>=0.1 timezone-series>=0.1
+.else
+CONFIGURE_ARGS+= --flags="-with_datezone"
+.endif
+
+.if ${PORT_OPTIONS:MTHREADED}
+CONFIGURE_ARGS+= --flags="with_threaded"
+.else
+CONFIGURE_ARGS+= --flags="-with_threaded"
+.endif
+
.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
.include <bsd.port.mk>
OpenPOWER on IntegriCloud