aboutsummaryrefslogtreecommitdiffstats
path: root/devel/hs-fps/Makefile
blob: aab8f560350cdbd2c5e3c44321fb3e236c855e56 (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
# ex:ts=8
# New ports collection makefile for:    hs-fps
# Date created:                         23 May 2006
# Whom:                                 Maxime Henrion <mux@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   fps
PORTVERSION=    0.6
PORTREVISION=   1
CATEGORIES= devel
MASTER_SITES=   ftp://ftp.cse.unsw.edu.au/pub/users/dons/fps/ \
        ${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR= mux
PKGNAMEPREFIX=  hs-

MAINTAINER= mux@FreeBSD.org
COMMENT=    Fast, packed, strict byte arrays for Haskell

BUILD_DEPENDS=  ghc:${PORTSDIR}/lang/ghc

OPTIONS=    PROFILE "Build libraries for profiling" off

.include <bsd.port.pre.mk>

SETUP=      Setup.hs

.if defined(WITH_PROFILE)
PLIST_SUB+= PROFILE=""
PROFILE=    -p
.else
PLIST_SUB+= PROFILE="@comment "
.endif

PLIST_SUB+= FPS_VERSION=${PORTVERSION}

do-configure:
    @${CHMOD} +x ${WRKSRC}/${SETUP}
    @cd ${WRKSRC}; ./${SETUP} configure ${PROFILE} --prefix=${LOCALBASE}

do-build:
    @cd ${WRKSRC}; ./${SETUP} build

do-install:
    @cd ${WRKSRC}; ./${SETUP} install

post-install:
    @ver=`ghc -V | ${SED} "s/^.*version \(.*\)$$/\1/"`; \
        ${REINPLACE_CMD} -e "s|%%GHC_VERSION%%|$${ver}|g" ${TMPPLIST}

.include <bsd.port.post.mk>