openbsd-ports/x11/xmobar/Makefile
dcoppa 0cd24ad65c Update to xmobar-0.16
Including a patch by Alexander Polakov

OK kili@
2013-01-25 08:37:16 +00:00

51 lines
1.3 KiB
Makefile

# $OpenBSD: Makefile,v 1.19 2013/01/25 08:37:16 dcoppa Exp $
COMMENT = minimalistic text based status bar
DISTNAME = xmobar-0.16
CATEGORIES = x11
HOMEPAGE = http://projects.haskell.org/xmobar
MAINTAINER = Jona Joachim <jaj@hcl-club.lu>
# BSD3
PERMIT_PACKAGE_CDROM = Yes
PERMIT_PACKAGE_FTP = Yes
PERMIT_DISTFILES_CDROM =Yes
PERMIT_DISTFILES_FTP = Yes
WANTLIB = X11 Xext Xft Xinerama Xrandr c m pthread \
util xml2
MODULES = lang/ghc converters/libiconv
MODGHC_BUILD = cabal hackage nort
MODGHC_SETUP_CONF_ARGS = --flags="with_xft with_mpd with_mpris"
BUILD_DEPENDS = devel/hs-mtl \
devel/hs-parsec \
devel/hs-stm \
x11/hs-X11>=1.3.0 \
x11/hs-X11-xft>=0.2 \
x11/hs-dbus>=0.10 \
audio/hs-libmpd>=0.8
LIB_DEPENDS = textproc/libxml
EXAMPLEDIR = ${PREFIX}/share/examples/xmobar
post-patch:
@cp ${FILESDIR}/Batt.hs ${WRKBUILD}/src/Plugins/Monitors
@mkdir ${WRKBUILD}/src/Plugins/Monitors/Batt
@cp ${FILESDIR}/Binding.hsc ${WRKBUILD}/src/Plugins/Monitors/Batt
@cp ${FILESDIR}/apm.c ${WRKBUILD}/src/Plugins/Monitors/Batt
@cp ${FILESDIR}/apm.h ${WRKBUILD}/src/Plugins/Monitors/Batt
post-install:
${INSTALL_DATA_DIR} ${EXAMPLEDIR}
${INSTALL_DATA} ${WRKSRC}/samples/xmobar.config ${EXAMPLEDIR}/xmobarrc
NO_REGRESS = Yes
.include <bsd.port.mk>