557cb83210
Note to xmonad junkies: this doesn't include XMonadContrib and related stuff; there's a lot of activity on the xmonad list, so adding knobs to the port *now* may be a bad idea.
52 lines
1.2 KiB
Makefile
52 lines
1.2 KiB
Makefile
# $OpenBSD: Makefile,v 1.3 2007/10/01 20:46:30 kili Exp $
|
|
|
|
COMMENT= tiling window manager
|
|
|
|
V= 0.3
|
|
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>
|