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
|
2005-03-17 23:01:46 +01:00
|
|
|
PORTVERSION= 1.18
|
2005-05-20 13:10:07 +02:00
|
|
|
PORTREVISION= 1
|
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}/
|
2005-05-20 13:10:07 +02:00
|
|
|
DISTFILES= ${PORTNAME}src-${PORTVERSION}${EXTRACT_SUFX} ${PORTNAME}-${PORTVERSION}-library-interfaces${EXTRACT_SUFX}
|
2002-01-23 19:14:52 +01:00
|
|
|
DIST_SUBDIR= nhc98
|
2005-05-20 13:10:07 +02:00
|
|
|
PATCH_SITES= ${MASTER_SITES}
|
|
|
|
PATCHFILES= patch-1.18-newtype
|
2001-12-21 21:23:40 +01: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
|
|
|
|
|
2001-12-21 21:23:40 +01:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
|
|
|
|
|
|
|
USE_GMAKE= yes
|
|
|
|
HAS_CONFIGURE= yes
|
2005-10-17 11:26:38 +02:00
|
|
|
CONFIGURE_ARGS+=--prefix=${PREFIX} --buildwith=gcc
|
2002-05-08 18:57:56 +02:00
|
|
|
|
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
|
|
|
|
|
2005-03-17 23:01:46 +01:00
|
|
|
MAN1= harch.1 hmake.1 hp2graph.1 nhc98.1 hi.1
|
2001-12-21 21:23:40 +01:00
|
|
|
|
2005-03-17 23:01:46 +01:00
|
|
|
CONFLICTS= hs-hmake-[0-9]* hs-cpphs-[0-9]*
|
2003-10-11 11:25:56 +02:00
|
|
|
|
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
|
2005-03-17 23:01:46 +01:00
|
|
|
@${REINPLACE_CMD} -e 's|$$(CC)|gcc|g' ${WRKSRC}/Makefile
|
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
|
|
|
|
2005-03-17 23:01:46 +01:00
|
|
|
.include <bsd.port.mk>
|