2012-12-20 03:23:04 +01:00
|
|
|
# Created by: Samy Al Bahra <sbahra@kerneled.org>
|
2008-11-29 22:03:12 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= xmobar
|
2013-02-05 23:26:31 +01:00
|
|
|
PORTVERSION= 0.16
|
2008-11-29 22:03:12 +01:00
|
|
|
CATEGORIES= x11 haskell
|
|
|
|
|
2009-08-19 21:50:32 +02:00
|
|
|
MAINTAINER= haskell@FreeBSD.org
|
2013-02-05 23:26:31 +01:00
|
|
|
COMMENT= Minimalistic text-based status bar
|
2008-11-29 22:03:12 +01:00
|
|
|
|
2011-05-09 07:28:57 +02:00
|
|
|
LICENSE= BSD
|
|
|
|
|
2013-02-05 23:26:31 +01:00
|
|
|
USE_CABAL= mtl parsec stm>=2.3 X11
|
|
|
|
USE_XORG= xrandr
|
2008-11-29 22:03:12 +01:00
|
|
|
|
2010-05-12 18:33:59 +02:00
|
|
|
EXECUTABLE= xmobar
|
|
|
|
STANDALONE= yes
|
2009-03-21 17:46:54 +01:00
|
|
|
|
2011-05-09 07:28:57 +02:00
|
|
|
INSTALL_PORTDATA= ${INSTALL_DATA} ${WRKSRC}/samples/xmobar.config ${DATADIR}
|
2008-11-29 22:03:12 +01:00
|
|
|
|
2013-02-05 23:26:31 +01:00
|
|
|
OPTIONS_DEFINE= XFT UTF8 MPD INOTIFY DATEZONE THREADED
|
|
|
|
OPTIONS_DEFAULT= UTF8
|
2012-08-03 04:30:07 +02:00
|
|
|
|
|
|
|
XFT_DESC= Use Xft to render text (UTF-8 support included)
|
|
|
|
UTF8_DESC= UTF-8 support
|
|
|
|
MPD_DESC= mpd support
|
2013-02-05 23:26:31 +01:00
|
|
|
INOTIFY_DESC= inotify support
|
|
|
|
DATEZONE_DESC= Localized date support
|
|
|
|
THREADED_DESC= Use threaded runtime
|
2009-03-21 17:46:54 +01:00
|
|
|
|
2012-12-20 03:23:04 +01:00
|
|
|
.include "${.CURDIR}/../../lang/ghc/bsd.cabal.options.mk"
|
2010-05-16 20:07:54 +02:00
|
|
|
|
2013-02-05 23:26:31 +01:00
|
|
|
# Disable unsupported options
|
|
|
|
CONFIGURE_ARGS+= --flags="-with_iwlib -with_dbus -with_mpris"
|
2009-03-21 17:46:54 +01:00
|
|
|
|
2012-08-03 04:30:07 +02:00
|
|
|
.if ${PORT_OPTIONS:MXFT}
|
2009-03-21 17:46:54 +01:00
|
|
|
CONFIGURE_ARGS+= --flags="with_xft"
|
2011-05-09 07:28:57 +02:00
|
|
|
USE_CABAL+= utf8-string X11-xft>=0.2
|
2010-05-16 20:07:54 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --flags="-with_xft"
|
|
|
|
.endif
|
|
|
|
|
2012-08-03 04:30:07 +02:00
|
|
|
.if ${PORT_OPTIONS:MUTF8}
|
2009-03-21 17:46:54 +01:00
|
|
|
CONFIGURE_ARGS+= --flags="with_utf8"
|
2012-08-03 04:30:07 +02:00
|
|
|
.if empty(PORT_OPTIONS:MXFT)
|
2011-05-09 07:28:57 +02:00
|
|
|
USE_CABAL+= utf8-string
|
2009-03-21 17:46:54 +01:00
|
|
|
.endif
|
2010-05-16 20:07:54 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --flags="-with_utf8"
|
|
|
|
.endif
|
|
|
|
|
2012-08-03 04:30:07 +02:00
|
|
|
.if ${PORT_OPTIONS:MMPD}
|
2010-05-16 20:07:54 +02:00
|
|
|
CONFIGURE_ARGS+= --flags="with_mpd"
|
2011-05-09 07:28:57 +02:00
|
|
|
USE_CABAL+= libmpd
|
2010-05-16 20:07:54 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --flags="-with_mpd"
|
|
|
|
.endif
|
2008-11-29 22:03:12 +01:00
|
|
|
|
2013-02-05 23:26:31 +01:00
|
|
|
.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
|
|
|
|
|
2010-05-12 18:33:59 +02:00
|
|
|
.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
|
2010-05-16 20:07:54 +02:00
|
|
|
.include <bsd.port.mk>
|