2001-12-21 21:23:40 +01:00
|
|
|
# New ports collection makefile for: nhc98
|
|
|
|
# Date created: 04 October 2001
|
|
|
|
# Whom: Oliver Braun <obraun@informatik.unibw-muenchen.de>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= nhc98
|
2003-03-23 23:31:20 +01:00
|
|
|
PORTVERSION= 1.16
|
2004-02-04 06:21:48 +01:00
|
|
|
PORTREVISION= 2
|
2002-11-20 10:10:55 +01:00
|
|
|
CATEGORIES= lang haskell
|
2001-12-21 21:23:40 +01:00
|
|
|
MASTER_SITES= ftp://ftp.cs.york.ac.uk/pub/haskell/${PORTNAME}/
|
|
|
|
DISTNAME= ${PORTNAME}src-${PORTVERSION}
|
2002-01-23 19:14:52 +01:00
|
|
|
DIST_SUBDIR= nhc98
|
2001-12-21 21:23:40 +01:00
|
|
|
|
2003-04-26 13:53:10 +02:00
|
|
|
PATCH_SITES= ${MASTER_SITES}
|
2003-10-11 11:25:56 +02:00
|
|
|
PATCHFILES= patch-1.16-typesyn \
|
|
|
|
patch-1.16-ghc6
|
2003-04-26 13:53:10 +02:00
|
|
|
|
2004-03-06 22:29:59 +01:00
|
|
|
MAINTAINER= haskell@FreeBSD.org
|
2003-02-18 11:50:48 +01:00
|
|
|
COMMENT= A fully-fledged compiler for Haskell 98
|
2001-12-21 21:23:40 +01:00
|
|
|
|
2003-10-11 11:25:56 +02:00
|
|
|
ONLY_FOR_ARCHS= i386
|
|
|
|
|
2002-06-20 07:27:33 +02:00
|
|
|
USE_REINPLACE= yes
|
|
|
|
|
2002-05-08 18:57:56 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2004-02-19 10:59:50 +01:00
|
|
|
.if ${OSVERSION} >= 502102
|
|
|
|
BROKEN= "Does not compile"
|
|
|
|
.endif
|
|
|
|
|
2002-05-08 18:57:56 +02:00
|
|
|
.if ${OSVERSION} >= 500000
|
2004-01-16 11:48:22 +01:00
|
|
|
BUILD_DEPENDS+= ghc-5.04.3:${PORTSDIR}/lang/ghc5
|
2002-05-08 18:57:56 +02:00
|
|
|
.endif
|
|
|
|
|
2001-12-21 21:23:40 +01:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
|
|
|
|
|
|
|
USE_GMAKE= yes
|
|
|
|
HAS_CONFIGURE= yes
|
|
|
|
|
2002-05-08 18:57:56 +02:00
|
|
|
.if ${OSVERSION} >= 500000
|
|
|
|
CONFIGURE_ARGS+= --buildwith=ghc
|
|
|
|
.endif
|
|
|
|
|
2001-12-21 21:23:40 +01:00
|
|
|
.if !defined(NOPORTDOCS)
|
2003-10-11 11:25:56 +02:00
|
|
|
CONFIGURE_ARGS+= --docdir=${DOCSDIR} +docs
|
2001-12-21 21:23:40 +01:00
|
|
|
.endif
|
|
|
|
|
2002-06-19 00:28:45 +02:00
|
|
|
MAN1= harch.1 hmake.1 hp2graph.1 nhc98.1
|
2001-12-21 21:23:40 +01:00
|
|
|
|
2003-10-11 11:25:56 +02:00
|
|
|
CONFLICTS= hs-hmake-*
|
|
|
|
|
2002-01-23 19:14:52 +01:00
|
|
|
post-patch:
|
2002-06-14 09:21:10 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|-O3|${CFLAGS}|' ${WRKSRC}/Makefile.inc
|
2002-07-28 07:32:46 +02:00
|
|
|
.for file in Decl FillIn Process
|
|
|
|
@${REINPLACE_CMD} -e '/^import PrelBase/d' \
|
|
|
|
${WRKSRC}/src/greencard/${file}.lhs
|
|
|
|
.endfor
|
2002-01-23 19:14:52 +01:00
|
|
|
|
2002-06-16 21:13:20 +02:00
|
|
|
post-configure:
|
|
|
|
@${ECHO} "LIBDIR=${PREFIX}/lib/nhc98" \
|
|
|
|
>> ${WRKSRC}/targets/ix86-FreeBSD/config.cache
|
|
|
|
|
2001-12-21 21:23:40 +01:00
|
|
|
post-install:
|
|
|
|
${SED} -e "s#/usr/doc/nhc98#${PREFIX}/share/doc/nhc98#" \
|
|
|
|
< ${WRKSRC}/man/nhc98.1 > ${WRKSRC}/man/nhc98.1.fix
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/man/nhc98.1.fix ${PREFIX}/man/man1/nhc98.1
|
|
|
|
${RM} ${WRKSRC}/man/nhc98.1.fix
|
2002-05-08 18:57:56 +02:00
|
|
|
.if !defined(NOPORTDOCS)
|
2003-03-25 16:06:02 +01:00
|
|
|
.for directory in . bugs examples hmake implementation-notes libs
|
2003-10-11 11:25:56 +02:00
|
|
|
${RM} -r ${DOCSDIR}/${directory}/CVS
|
2002-05-08 18:57:56 +02:00
|
|
|
.endfor
|
|
|
|
.endif
|
2001-12-21 21:23:40 +01:00
|
|
|
|
2002-05-08 18:57:56 +02:00
|
|
|
.include <bsd.port.post.mk>
|