openbsd-ports/lang/nhc98/Makefile

53 lines
1.4 KiB
Makefile
Raw Normal View History

2005-05-22 05:45:06 -04:00
# $OpenBSD: Makefile,v 1.6 2005/05/22 09:45:06 alek Exp $
# $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}
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"
2004-08-10 04:23:36 -04:00
MODULES= lang/ghc
CONFIGURE_ARGS+=--buildwith=ghc
.else
CONFIGURE_ARGS+=--buildwith=gcc
.endif
2005-05-22 05:45:06 -04:00
REGRESS_DEPENDS=::lang/python/2.3
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}" \
2005-05-22 05:45:06 -04:00
PYTHON="${LOCALBASE}/bin/python2.3"
# BSDish
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
2005-02-24 08:20:41 -05:00
WANTLIB= gmp c m ncurses readline
.include <bsd.port.mk>