blob: 5bdfda6fa5a73b1eeb8f3a5cb4deb2727528946d (
plain)
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
|
# New ports collection makefile for: alex
# Date created: 29 January 2003
# Whom: Volker Stolz <stolz@i2.informatik.rwth-aachen.de>
#
# $FreeBSD$
PORTNAME= alex
PORTVERSION= 2.0
PORTREVISION= 1
CATEGORIES= devel haskell
MASTER_SITES= http://www.haskell.org/alex/dist/
PKGNAMEPREFIX= hs-
DISTNAME= ${PORTNAME}-${PORTVERSION}-src
MAINTAINER= stolz@i2.informatik.rwth-aachen.de
COMMENT= Alex is a tool for generating lexical analysers in Haskell
BUILD_DEPENDS= ghc:${PORTSDIR}/lang/ghc
.if !defined(NOPORTDOCS)
BUILD_DEPENDS+= jade:${PORTSDIR}/textproc/jade \
jadetex:${PORTSDIR}/print/jadetex \
${LOCALBASE}/share/sgml/docbook/3.1/docbook.dtd:${PORTSDIR}/textproc/docbook-310 \
${LOCALBASE}/share/sgml/docbook/dsssl:${PORTSDIR}/textproc/dsssl-docbook-modular
.endif
USE_BZIP2= yes
USE_GMAKE= yes
GNU_CONFIGURE= yes
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
PLIST_SUB= "PORTVERSION=${PORTVERSION}"
.if !defined(NOPORTDOCS)
post-build:
${GMAKE} -C ${WRKSRC}/alex/doc ps
.endif
post-install:
${MKDIR} ${EXAMPLESDIR}
${FIND} ${WRKSRC}/alex/examples -type f -exec ${INSTALL_DATA} \{\} ${EXAMPLESDIR} \;
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/alex/doc/alex.ps ${DOCSDIR}
.endif
.include <bsd.port.mk>
|