aboutsummaryrefslogtreecommitdiff
path: root/lang/generic-haskell/Makefile
blob: f9f51de86d4d009b81e536604b563d6c28263ce7 (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
# 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
CATEGORIES=	lang
MASTER_SITES=	http://www.cs.uu.nl/research/projects/generic-haskell/compiler/beryl/
DISTNAME=	gh-${PORTVERSION}-source

MAINTAINER=	obraun@FreeBSD.org

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>