summaryrefslogtreecommitdiff
path: root/devel/hs-alex/Makefile
blob: c2b7a077a1e25d7cf710128df08f31fcc9ebf69b (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
# New ports collection makefile for:	alex
# Date created:				29 January 2003
# Whom:					Volker Stolz <stolz@i2.informatik.rwth-aachen.de>
#
# $FreeBSD$

PORTNAME=	alex
PORTVERSION=	1.1
CATEGORIES=	devel haskell
MASTER_SITES=	http://www.syntaxpolice.org/~ijones/alex/
DISTNAME=	${PORTNAME}
DIST_SUBDIR=	${PORTNAME}-${PORTVERSION}

PKGNAMEPREFIX=	hs-

MAINTAINER=	ports@FreeBSD.org

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

USE_GMAKE=	yes

BUILD_WRKSRC=	${WRKSRC}/src
MAKEFILE=	makefile
ALL_TARGET=	alex

do-install:
	${INSTALL_PROGRAM} ${BUILD_WRKSRC}/alex ${PREFIX}/bin
	${MKDIR} ${EXAMPLESDIR}
.for i in Alex.hs ctx.x lit.lx pp.x tiny.y xscan.x Tokens.x examples.x makefile state.x tkns.hs
	${INSTALL_DATA} ${WRKSRC}/examples/$i ${EXAMPLESDIR}
.endfor
.if !defined(NOPORTDOCS)
	${MKDIR} ${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/doc/alex.ps ${WRKSRC}/doc/alex.pdf ${DOCSDIR}
.endif

.include <bsd.port.mk>