summaryrefslogtreecommitdiff
path: root/devel/hs-uuagc/Makefile
blob: 66e19294c0a74c2e1ee8186fa4962098d69a3f8f (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
# New ports collection makefile for: hs-uuagc
# Date created:        February 27 2008
# Whom:                Giuseppe Pilichi aka Jacula Modyun <jacula@gmail.com>
#
# $FreeBSD$
#

PORTNAME=	uuagc
PORTVERSION=	0.9.6
CATEGORIES=	devel haskell
MASTER_SITES=	http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/
PKGNAMEPREFIX=	hs-

MAINTAINER=	jacula@gmail.com
COMMENT=	Attribute Grammar System of Universiteit Utrecht

BUILD_DEPENDS+=	ghc:${PORTSDIR}/lang/ghc \
		hs-uulib>=0.9.5:${PORTSDIR}/devel/hs-uulib
LIB_DEPENDS+=	gmp.7:${PORTSDIR}/math/libgmp4

GHC_VERSION=	6.8.2

GHC_CMD=	${LOCALBASE}/bin/ghc
SETUP_CMD=	./setup

DOCSDIR=	${PREFIX}/share/doc/${DISTNAME}

.SILENT:

do-configure:
	cd ${WRKSRC} && ${GHC_CMD} --make Setup.hs -o setup -package Cabal \
		     && ${SETUP_CMD} configure --prefix=${PREFIX}

do-build:
	cd ${WRKSRC} && ${SETUP_CMD} build

do-install:
	cd ${WRKSRC} && ${SETUP_CMD} install

post-install:
	${STRIP_CMD} ${PREFIX}/bin/uuagc
	${CHMOD} ${BINMODE} ${PREFIX}/bin/uuagc

.include <bsd.port.mk>