blob: a607b9ca9b6c80b45446ecc9831906fa0c467ded (
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: generic-haskell
# Date created: 05 July 2002
# Whom: Oliver Braun <obraun@informatik.unibw-muenchen.de>
#
# $FreeBSD$
PORTNAME= generic-haskell
PORTVERSION= 1.23
PORTREVISION= 1
CATEGORIES= lang haskell
MASTER_SITES= http://www.cs.uu.nl/research/projects/generic-haskell/compiler/beryl/
DISTNAME= gh-${PORTVERSION}-source
MAINTAINER= haskell@FreeBSD.org
COMMENT= The Generic Haskell compiler
BUILD_DEPENDS= ghc:${PORTSDIR}/lang/ghc
USE_REINPLACE= yes
HAS_CONFIGURE= yes
USE_GMAKE= yes
ALL_TARGET= gh
WRKSRC= ${WRKDIR}/${DISTNAME:S/-source//}
GHLIBDIR= ${PREFIX}/lib/generic-haskell
post-patch:
@${REINPLACE_CMD} -e 's|@prefix@|${PREFIX}|' ${WRKSRC}/src/Makefile.in
do-install:
@${INSTALL_PROGRAM} ${WRKSRC}/src/gh ${PREFIX}/bin
@${MKDIR} ${GHLIBDIR}
@${CP} -R ${WRKSRC}/lib/*.gh[is] ${GHLIBDIR}
@${CP} -R ${WRKSRC}/lib/*.h[is] ${GHLIBDIR}
@${MKDIR} ${GHLIBDIR}/Exts
@${CP} -R ${WRKSRC}/lib/Exts/*.gh[is] ${GHLIBDIR}/Exts
@${MKDIR} ${GHLIBDIR}/Std
@${CP} -R ${WRKSRC}/lib/Std/*.gh[is] ${GHLIBDIR}/Std
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
@${CP} -R ${WRKSRC}/doc/* ${DOCSDIR}
.endif
.include <bsd.port.mk>
|