2013-09-20 21:53:09 +02:00
|
|
|
# Created by: Oliver Braun <obraun@informatik.unibw-muenchen.de>
|
2001-12-21 21:23:40 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= nhc98
|
2014-07-01 16:14:03 +02:00
|
|
|
PORTVERSION= 1.22
|
2014-09-10 22:50:31 +02:00
|
|
|
PORTREVISION= 1
|
2002-11-20 10:10:55 +01:00
|
|
|
CATEGORIES= lang haskell
|
2014-07-01 16:14:03 +02:00
|
|
|
MASTER_SITES= http://haskell.org/${PORTNAME}/
|
|
|
|
DISTFILES= ${PORTNAME}src-${PORTVERSION}${EXTRACT_SUFX}
|
2002-01-23 19:14:52 +01:00
|
|
|
DIST_SUBDIR= nhc98
|
2001-12-21 21:23:40 +01:00
|
|
|
|
2004-03-06 22:29:59 +01:00
|
|
|
MAINTAINER= haskell@FreeBSD.org
|
2014-07-01 16:14:03 +02:00
|
|
|
COMMENT= 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}
|
|
|
|
|
2014-05-26 16:47:56 +02:00
|
|
|
USES= gmake
|
2015-01-20 01:13:22 +01:00
|
|
|
# Fails to build with GCC 4.9, cf. PR 196857.
|
|
|
|
USE_GCC= 4.8
|
2014-07-01 16:14:03 +02:00
|
|
|
|
|
|
|
HAS_CONFIGURE= yes
|
|
|
|
CONFIGURE_ARGS+= --prefix=${PREFIX} --heap=4M
|
|
|
|
MAKE_ARGS+= ARCH=
|
|
|
|
MAKE_JOBS_UNSAFE= yes
|
2002-05-08 18:57:56 +02:00
|
|
|
|
2012-08-03 05:44:20 +02:00
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
OPTIONS_DEFAULT= DOCS
|
|
|
|
|
2014-07-01 16:14:03 +02:00
|
|
|
DOCS_CONFIGURE_ON= --docdir=${DOCSDIR} +docs
|
|
|
|
DOCS_CONFIGURE_OFF= -docs
|
2001-12-21 21:23:40 +01:00
|
|
|
|
2014-07-01 16:14:03 +02:00
|
|
|
PORTDOCS= *
|
|
|
|
CONFLICTS= 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
|
|
|
|
|
2005-03-17 23:01:46 +01:00
|
|
|
.include <bsd.port.mk>
|