openbsd-ports/x11/xmobar/Makefile
2011-06-30 21:30:20 +00:00

52 lines
1.3 KiB
Makefile

# $OpenBSD: Makefile,v 1.11 2011/06/30 21:37:53 kili Exp $
COMMENT = minimalistic text based status bar
DISTNAME = xmobar-0.13
REVISION = 0
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 = c expat fontconfig freetype gmp m pthread pthread-stubs util \
X11 Xau xcb Xdmcp Xext Xft Xinerama Xrender z
MODULES = lang/ghc converters/libiconv
MODGHC_BUILD = cabal hackage nort
MODGHC_SETUP_CONF_ARGS = --flags="with_xft with_mpd with_utf8"
LIB_DEPENDS = devel/gmp
BUILD_DEPENDS = devel/hs-mtl \
devel/hs-parsec \
devel/hs-stm \
x11/hs-X11>=1.3.0 \
x11/hs-X11-xft>=0.2 \
audio/hs-libmpd>=0.5
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>