openbsd-ports/x11/xmonad/Makefile

52 lines
1.2 KiB
Makefile
Raw Normal View History

2007-11-18 15:13:31 -05:00
# $OpenBSD: Makefile,v 1.4 2007/11/18 20:13:31 kili Exp $
COMMENT= tiling window manager
2007-11-18 15:13:31 -05:00
V= 0.4
DISTNAME= xmonad-$V
CATEGORIES= x11
HOMEPAGE= http://www.xmonad.org/
MAINTAINER= Matthias Kilian <kili@openbsd.org>
# BSD
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= http://hackage.haskell.org/packages/archive/xmonad/$V/
WANTLIB= X11 Xext Xinerama c gmp m
MODULES= lang/ghc
LIB_DEPENDS= ::x11/hs-x11-extras
SETUP_CONF_ARGS= configure -g --prefix=${PREFIX}
SETUP_CONF_ENV= HOME=${PORTHOME} PATH=${PATH}
SETUP_PROG= ${WRKSRC}/Setup
SUBST_VARS= V
USE_X11= Yes
do-configure:
@cd ${WRKSRC} && ghc --make -o ${SETUP_PROG} Setup.lhs
@cd ${WRKBUILD} && exec ${SETENV} ${SETUP_CONF_ENV} \
${SETUP_PROG} ${SETUP_CONF_ARGS}
do-build:
@cd ${WRKBUILD} && exec ${SETENV} ${SETUP_CONF_ENV} \
${SETUP_PROG} build
do-install:
@cd ${WRKBUILD} && exec ${SETENV} ${SETUP_CONF_ENV} \
${SETUP_PROG} copy --destdir=${DESTDIR}
@${INSTALL_MAN_DIR} ${PREFIX}/man/man1
@${INSTALL_MAN} ${WRKSRC}/man/xmonad.1 ${PREFIX}/man/man1
do-regress:
@cd ${WRKBUILD} && exec ${SETENV} ${SETUP_CONF_ENV} \
${SETUP_PROG} test
.include <bsd.port.mk>