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
|
Bump PORTREVISION for ports depending on the canonical version of GCC
(via Mk/bsd.default-versions.mk and lang/gcc) which has moved from
GCC 5.4 to GCC 6.4 under most circumstances.
This includes ports
- with USE_GCC=yes or USE_GCC=any,
- with USES=fortran,
- using Mk/bsd.octave.mk which in turn features USES=fortran, and
- with USES=compiler specifying openmp, nestedfct, c++11-lib, c++11-lang,
c++14-lang, c++0x, c11, or gcc-c++11-lib.
PR: 219275
2017-09-10 22:55:38 +02:00
|
|
|
PORTREVISION= 3
|
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
|
|
|
|
|
2014-05-26 16:47:56 +02:00
|
|
|
USES= gmake
|
2017-07-25 16:40:20 +02:00
|
|
|
USE_GCC= yes
|
2014-07-01 16:14:03 +02:00
|
|
|
|
|
|
|
HAS_CONFIGURE= yes
|
2017-07-25 16:40:20 +02:00
|
|
|
CONFIGURE_ARGS+= --prefix=${PREFIX} --heap=4M --buildwith=gcc
|
2014-07-01 16:14:03 +02:00
|
|
|
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
|
|
|
|
|
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
|
2017-07-25 16:40:20 +02:00
|
|
|
# The Makefile defines target names based on $(CC) which is
|
|
|
|
# problematic when CC=gcc5. The following patch does not affect the
|
|
|
|
# compiler used during the build, but makes sure that targets have
|
|
|
|
# the correct suffix e.g. 'basic-gcc' instead of 'basic-gcc5':
|
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>
|