2004-08-10 04:23:36 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.3 2004/08/10 08:23:37 xsa Exp $
|
Import nhc98-1.16, a portable Haskell compiler:
nhc98 is a small, easy to install, standards-compliant
compiler for Haskell 98, the lazy functional programming
language. It is very portable, and aims to produce small
executables that run in small amounts of memory. It
produces medium-fast code, and compilation is itself quite
fast. It also comes with extensive tool support for
automatic compilation, foreign language interfacing,
heap and time profiling, tracing, and debugging. (Some of
its advanced kinds of heap profiles are not found in any
other Haskell compiler.)
testing, tweaks xsa@; ok pvalchev@
2004-05-10 00:39:03 -04:00
|
|
|
# $NetBSD: Makefile,v 1.29 2004/03/26 21:19:53 wiz Exp $
|
|
|
|
|
|
|
|
COMMENT= "portable Haskell compiler"
|
|
|
|
|
|
|
|
# not for 64 bits
|
2004-05-16 19:37:58 -04:00
|
|
|
NOT_FOR_ARCHS= ${LP64_ARCHS}
|
Import nhc98-1.16, a portable Haskell compiler:
nhc98 is a small, easy to install, standards-compliant
compiler for Haskell 98, the lazy functional programming
language. It is very portable, and aims to produce small
executables that run in small amounts of memory. It
produces medium-fast code, and compilation is itself quite
fast. It also comes with extensive tool support for
automatic compilation, foreign language interfacing,
heap and time profiling, tracing, and debugging. (Some of
its advanced kinds of heap profiles are not found in any
other Haskell compiler.)
testing, tweaks xsa@; ok pvalchev@
2004-05-10 00:39:03 -04:00
|
|
|
|
|
|
|
V= 1.16
|
|
|
|
DISTNAME= nhc98-${V}
|
|
|
|
CATEGORIES= lang
|
|
|
|
HOMEPAGE= http://www.haskell.org/nhc98/
|
|
|
|
MAINTAINER= Don Stewart <dons@openbsd.org>
|
|
|
|
|
|
|
|
MASTER_SITES= http://www.cs.york.ac.uk/fp/nhc98/
|
|
|
|
MASTER_SITES0= ftp://ftp.cse.unsw.edu.au/pub/users/dons/nhc98/${V}/
|
|
|
|
|
|
|
|
DIST_SUBDIR= ${DISTNAME}
|
|
|
|
DISTFILES= nhc98src-${V}.tar.gz nhc98-${V}-regress.tar.bz2:0
|
|
|
|
|
|
|
|
# these are vendor patches
|
|
|
|
PATCHFILES= patch-${V}-typesyn:0 patch-${V}-ghc6:0
|
|
|
|
|
|
|
|
CC= gcc
|
|
|
|
|
|
|
|
USE_GMAKE= Yes
|
|
|
|
CONFIGURE_STYLE=simple
|
|
|
|
CONFIGURE_ARGS=--installdir=${PREFIX}
|
|
|
|
|
|
|
|
# if you use ghc to build nhc98, it will run 2.5x faster than with gcc
|
|
|
|
# so we relegate the gcc path to archs with no ghc
|
|
|
|
.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "sparc"
|
2004-08-10 04:23:36 -04:00
|
|
|
MODULES= lang/ghc
|
Import nhc98-1.16, a portable Haskell compiler:
nhc98 is a small, easy to install, standards-compliant
compiler for Haskell 98, the lazy functional programming
language. It is very portable, and aims to produce small
executables that run in small amounts of memory. It
produces medium-fast code, and compilation is itself quite
fast. It also comes with extensive tool support for
automatic compilation, foreign language interfacing,
heap and time profiling, tracing, and debugging. (Some of
its advanced kinds of heap profiles are not found in any
other Haskell compiler.)
testing, tweaks xsa@; ok pvalchev@
2004-05-10 00:39:03 -04:00
|
|
|
CONFIGURE_ARGS+=--buildwith=ghc
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--buildwith=gcc
|
|
|
|
.endif
|
|
|
|
|
|
|
|
REGRESS_DEPENDS=::lang/python/2.2
|
|
|
|
REGRESS_RESULT= ${WRKSRC}/../${DISTNAME}-regress/actual.result
|
|
|
|
REGRESS_FLAGS= TEST_HC="${WRKSRC}/script/nhc98" WAY="normal"
|
|
|
|
REGRESS_FLAGS+= EXTRA_RUNTEST_OPTS="--output-summary=${REGRESS_RESULT}" \
|
|
|
|
PYTHON="${LOCALBASE}/bin/python2.2"
|
|
|
|
|
|
|
|
# BSDish
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|