aboutsummaryrefslogtreecommitdiffstats
path: root/lang/helium/Makefile
blob: bb803e25098ca048a1d240aa699de18525b7441b (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
55
56
57
58
59
60
61
62
63
64
65
66
67
# New ports collection makefile for:    helium
# Date created:             28 January 2003
# Whom:                 Oliver Braun <obraun@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   helium
PORTVERSION=    1.1
PORTREVISION=   1
CATEGORIES= lang haskell
MASTER_SITES=   http://www.cs.uu.nl/helium/distr/
DISTNAME=   ${PORTNAME}-${PORTVERSION}-src

MAINTAINER= obraun@FreeBSD.org
COMMENT=    Functional programming compiler for a subset of Haskell

.if defined(WITH_HINT)
USE_JAVA=   1.4+
DISTFILES+= ${PORTNAME}-${PORTVERSION}-src.tar.gz \
        Hint.jar
EXTRACT_ONLY=   ${PORTNAME}-${PORTVERSION}-src.tar.gz
PLIST_SUB=  HINT=""
.else
PLIST_SUB=  HINT="@comment "
.endif

.include <bsd.port.pre.mk>
.if ${OSVERSION} >= 500035
BROKEN= does not compile
.endif

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

WRKSRC=     ${WRKDIR}/${PORTNAME}-${PORTVERSION}
USE_REINPLACE=  yes
USE_GMAKE=  yes

.if !defined(WITH_HINT)
pre-everything::
    @${ECHO_CMD}
    @${ECHO_CMD} "Define WITH_HINT=yes to install Hint (needs Java >=1.4)."
    @${ECHO_CMD}
.endif

do-configure:
    @(cd ${WRKSRC}/lvm/src/  && ./configure)
    @(cd ${WRKSRC}/heliumNT/ && ./configure)

do-build:
    @(cd ${WRKSRC}/heliumNT/src && ${GMAKE} depend)
    @(cd ${WRKSRC}/heliumNT/src && ${GMAKE})

do-install:
    @(cd ${WRKSRC}/heliumNT/src && ${GMAKE} install)
    @${CAT} ${PKGMESSAGE} | ${SED} -e 's,%%PREFIX%%,${PREFIX},g'
.if defined(WITH_HINT)
    @${MKDIR} ${PREFIX}/share/java/helium
    @${INSTALL_DATA} ${DISTDIR}/Hint.jar ${PREFIX}/share/java/helium
    @${ECHO_CMD} "To use Hint type"
    @${ECHO_CMD}
    @${ECHO_CMD} "java -DLVMPATH=\$$LVMPATH -jar ${PREFIX}/share/java/helium/Hint.jar"
    @${ECHO_CMD}
.endif


.include <bsd.port.post.mk>