aboutsummaryrefslogtreecommitdiffstats
path: root/devel/hs-green-card/Makefile
blob: d9e76041876ca3f51db9086864007ff57a5f22d4 (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
# New ports collection makefile for:   green-card
# Date created:        01 June 2002
# Whom:                Oliver Braun <obraun@informatik.unibw-muenchen.de>
#
# $FreeBSD$
#

PORTNAME=   green-card
PORTVERSION=    3.0.1
PORTREVISION=   1
CATEGORIES= devel haskell
MASTER_SITES=   http://haskell.org/greencard/downloads/
PKGNAMEPREFIX=  hs-
DISTNAME=   greencard-${GC_VERSION}-src

MAINTAINER= haskell@FreeBSD.org
COMMENT=    A foreign function interface preprocessor for Haskell

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

WRKSRC=     ${WRKDIR}/greencard-${GC_VERSION}
GC_VERSION= 3.01
GCLIBDIR=   ${PREFIX}/lib/greencard-${GC_VERSION}
PLIST_SUB+= GC_VERSION=${GC_VERSION}

USE_GMAKE=  yes
MAKE_ARGS=  FOR_SYSTEM=GHC

pre-install:
    ${MKDIR} ${GCLIBDIR}/Foreign ${GCLIBDIR}/imports/Foreign

.include <bsd.port.mk>