openbsd-ports/x11/xmobar/Makefile
2013-03-11 11:35:43 +00:00

48 lines
1.2 KiB
Makefile

# $OpenBSD: Makefile,v 1.20 2013/03/11 11:46:19 espie 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
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_TEST = Yes
.include <bsd.port.mk>