blob: 62531ecc8d18852d262194ebdeb1ffcdf4515d62 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
# New ports collection makefile for: xmonad
# Date created: 2007-10-25
# Whom: Matthieu Guegan <matt.guegan@free.fr>
#
# $FreeBSD$
#
PORTNAME= xmonad
PORTVERSION= 0.8.1
CATEGORIES= x11-wm haskell
MASTER_SITES= http://hackage.haskell.org/packages/archive/xmonad/${PORTVERSION}/
MAINTAINER= matt.guegan@free.fr
COMMENT= Xmonad is a minimalist and tiling window manager for X
BUILD_DEPENDS= ghc:${PORTSDIR}/lang/ghc \
hs-x11-ghc>=1.4.1:${PORTSDIR}/x11/hs-x11-ghc
LIB_DEPENDS= gmp.7:${PORTSDIR}/math/libgmp4
USE_XORG= x11
CABALCMD= ${LOCALBASE}/bin/runghc Setup.lhs
GHC_VERSION= 6.8.3
SUBDIR= lib/${PORTNAME}-${PORTVERSION}
DOCSDIR= ${PREFIX}/share/doc/${PORTNAME}-${PORTVERSION}
PORTDOCS= LICENSE html
PLIST_SUB= GHC_VERSION=${GHC_VERSION} \
PORTVERSION=${PORTVERSION} \
SUBDIR=${SUBDIR}
MAN1= xmonad.1
.if !defined(NOPORTDOCS)
BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock
.else
PLIST_DIRS+= %%DOCSDIR%%
PLIST_FILES+= %%DOCSDIR%%/LICENSE
.endif
do-configure:
cd ${WRKSRC} && ${CABALCMD} configure --ghc --prefix=${PREFIX}
do-build:
cd ${WRKSRC} && ${CABALCMD} build && ${CABALCMD} register --gen-script
.if !defined(NOPORTDOCS)
cd ${WRKSRC} && ${CABALCMD} haddock
.endif
do-install:
cd ${WRKSRC} && ${CABALCMD} install
${INSTALL_MAN} ${WRKSRC}/man/xmonad.1 ${MAN1PREFIX}/man/man1
${INSTALL_SCRIPT} ${WRKSRC}/register.sh ${PREFIX}/${SUBDIR}/register.sh
.include <bsd.port.mk>
|