aboutsummaryrefslogtreecommitdiffstats
path: root/x11-wm/xmonad-contrib/Makefile
blob: d3b53b11673232e412bd7f027a381ac6cc7a233c (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
# New ports collection makefile for:    xmonad-contrib
# Date created:     2008-01-23
# Whom:     Matthieu Guegan <matt.guegan@free.fr>
#
# $FreeBSD$
#

PORTNAME=   xmonad-contrib
PORTVERSION=    0.8
CATEGORIES= x11-wm haskell
MASTER_SITES=   http://hackage.haskell.org/packages/archive/xmonad-contrib/${PORTVERSION}/

MAINTAINER= matt.guegan@free.fr
COMMENT=    Third party tiling algorithms, configurations and scripts to xmonad

BUILD_DEPENDS=  ghc:${PORTSDIR}/lang/ghc \
        hs-x11-ghc>=1.4.1:${PORTSDIR}/x11/hs-x11-ghc \
        xmonad:${PORTSDIR}/x11-wm/xmonad
RUN_DEPENDS=    xmonad:${PORTSDIR}/x11-wm/xmonad
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}
PLIST_SUB=  GHC_VERSION=${GHC_VERSION} \
        PORTVERSION=${PORTVERSION} \
        SUBDIR=${SUBDIR}

do-configure:
    cd ${WRKSRC} && ${CABALCMD} configure --ghc --prefix=${PREFIX}

do-build:
    cd ${WRKSRC} && ${CABALCMD} build && ${CABALCMD} register --gen-script

do-install:
    cd ${WRKSRC} && ${CABALCMD} install
    ${INSTALL_SCRIPT} ${WRKSRC}/register.sh ${PREFIX}/${SUBDIR}/register.sh

.include <bsd.port.mk>