2004-02-04 02:39:18 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.14 2004/02/04 07:39:18 sturm Exp $
|
initial import of ghc-5.04.3, which takes the "longest compilation
time" award from mozilla and gcc3
From Don Stewart <dons@cse.unsw.edu.au> with tweaks from me
(i386 only for the moment)
--
The Glasgow Haskell Compiler is a robust, fully-featured, optimising
compiler for the functional programming language Haskell 98.
GHC compiles Haskell to either native code or C. It implements
numerous experimental language extensions to Haskell, including
concurrency, a foreign language interface, several type-system
extensions, exceptions, and so on. GHC comes with a generational
garbage collector, a space and time profiler, and a comprehensive
set of libraries.
2003-05-29 12:38:31 -04:00
|
|
|
# Based on Simon Marlow's port script for FreeBSD:
|
|
|
|
# $FreeBSD: ports/lang/ghc/Makefile,v 1.13 2002/08/22 12:53:38 obraun Exp $
|
2003-09-01 16:32:14 -04:00
|
|
|
# And on NetBSD's 5.04.3 .hc boot script
|
initial import of ghc-5.04.3, which takes the "longest compilation
time" award from mozilla and gcc3
From Don Stewart <dons@cse.unsw.edu.au> with tweaks from me
(i386 only for the moment)
--
The Glasgow Haskell Compiler is a robust, fully-featured, optimising
compiler for the functional programming language Haskell 98.
GHC compiles Haskell to either native code or C. It implements
numerous experimental language extensions to Haskell, including
concurrency, a foreign language interface, several type-system
extensions, exceptions, and so on. GHC comes with a generational
garbage collector, a space and time profiler, and a comprehensive
set of libraries.
2003-05-29 12:38:31 -04:00
|
|
|
#
|
|
|
|
# The build process:
|
2003-09-01 16:32:14 -04:00
|
|
|
# 1) build a full ghc6 from pre-generated 6.0.1 C files
|
initial import of ghc-5.04.3, which takes the "longest compilation
time" award from mozilla and gcc3
From Don Stewart <dons@cse.unsw.edu.au> with tweaks from me
(i386 only for the moment)
--
The Glasgow Haskell Compiler is a robust, fully-featured, optimising
compiler for the functional programming language Haskell 98.
GHC compiles Haskell to either native code or C. It implements
numerous experimental language extensions to Haskell, including
concurrency, a foreign language interface, several type-system
extensions, exceptions, and so on. GHC comes with a generational
garbage collector, a space and time profiler, and a comprehensive
set of libraries.
2003-05-29 12:38:31 -04:00
|
|
|
|
2004-01-08 15:33:23 -05:00
|
|
|
ONLY_FOR_ARCHS= i386 sparc
|
|
|
|
# The general solution for other architectures will be to boot
|
|
|
|
# via unregisterised .hc files generated on openbsd-*-i386. See:
|
initial import of ghc-5.04.3, which takes the "longest compilation
time" award from mozilla and gcc3
From Don Stewart <dons@cse.unsw.edu.au> with tweaks from me
(i386 only for the moment)
--
The Glasgow Haskell Compiler is a robust, fully-featured, optimising
compiler for the functional programming language Haskell 98.
GHC compiles Haskell to either native code or C. It implements
numerous experimental language extensions to Haskell, including
concurrency, a foreign language interface, several type-system
extensions, exceptions, and so on. GHC comes with a generational
garbage collector, a space and time profiler, and a comprehensive
set of libraries.
2003-05-29 12:38:31 -04:00
|
|
|
#
|
2003-09-01 16:32:14 -04:00
|
|
|
# http://haskell.org/ghc/docs/latest/html/building/sec-porting-ghc.html
|
|
|
|
# http://cvs.haskell.org/cgi-bin/cvsweb.cgi/fptools/distrib/cross-port
|
|
|
|
#
|
2004-01-08 15:33:23 -05:00
|
|
|
# The best bets are powerpc and alpha. sparc64 and amd64 should
|
|
|
|
# work. hppa and mips have recently worked. m68k hasn't worked
|
|
|
|
# for a long time now, and on mac68k at least _ld_ dies with a
|
|
|
|
# malloc error when linking the ghc binary.
|
initial import of ghc-5.04.3, which takes the "longest compilation
time" award from mozilla and gcc3
From Don Stewart <dons@cse.unsw.edu.au> with tweaks from me
(i386 only for the moment)
--
The Glasgow Haskell Compiler is a robust, fully-featured, optimising
compiler for the functional programming language Haskell 98.
GHC compiles Haskell to either native code or C. It implements
numerous experimental language extensions to Haskell, including
concurrency, a foreign language interface, several type-system
extensions, exceptions, and so on. GHC comes with a generational
garbage collector, a space and time profiler, and a comprehensive
set of libraries.
2003-05-29 12:38:31 -04:00
|
|
|
|
|
|
|
COMMENT= "compiler for the functional language Haskell"
|
2003-06-29 23:45:34 -04:00
|
|
|
COMMENT-doc= "documentation for the functional language Haskell"
|
initial import of ghc-5.04.3, which takes the "longest compilation
time" award from mozilla and gcc3
From Don Stewart <dons@cse.unsw.edu.au> with tweaks from me
(i386 only for the moment)
--
The Glasgow Haskell Compiler is a robust, fully-featured, optimising
compiler for the functional programming language Haskell 98.
GHC compiles Haskell to either native code or C. It implements
numerous experimental language extensions to Haskell, including
concurrency, a foreign language interface, several type-system
extensions, exceptions, and so on. GHC comes with a generational
garbage collector, a space and time profiler, and a comprehensive
set of libraries.
2003-05-29 12:38:31 -04:00
|
|
|
|
2003-09-01 16:32:14 -04:00
|
|
|
V= 6.0.1
|
initial import of ghc-5.04.3, which takes the "longest compilation
time" award from mozilla and gcc3
From Don Stewart <dons@cse.unsw.edu.au> with tweaks from me
(i386 only for the moment)
--
The Glasgow Haskell Compiler is a robust, fully-featured, optimising
compiler for the functional programming language Haskell 98.
GHC compiles Haskell to either native code or C. It implements
numerous experimental language extensions to Haskell, including
concurrency, a foreign language interface, several type-system
extensions, exceptions, and so on. GHC comes with a generational
garbage collector, a space and time profiler, and a comprehensive
set of libraries.
2003-05-29 12:38:31 -04:00
|
|
|
|
2003-09-01 16:32:14 -04:00
|
|
|
DISTNAME= ghc-${V}
|
initial import of ghc-5.04.3, which takes the "longest compilation
time" award from mozilla and gcc3
From Don Stewart <dons@cse.unsw.edu.au> with tweaks from me
(i386 only for the moment)
--
The Glasgow Haskell Compiler is a robust, fully-featured, optimising
compiler for the functional programming language Haskell 98.
GHC compiles Haskell to either native code or C. It implements
numerous experimental language extensions to Haskell, including
concurrency, a foreign language interface, several type-system
extensions, exceptions, and so on. GHC comes with a generational
garbage collector, a space and time profiler, and a comprehensive
set of libraries.
2003-05-29 12:38:31 -04:00
|
|
|
CATEGORIES= lang
|
|
|
|
HOMEPAGE= http://www.haskell.org/ghc/
|
|
|
|
MAINTAINER= Don Stewart <dons@cse.unsw.edu.au>
|
|
|
|
|
2003-08-13 21:01:16 -04:00
|
|
|
LIB_DEPENDS= gmp::devel/gmp
|
2003-08-12 09:25:18 -04:00
|
|
|
|
2003-06-29 23:45:34 -04:00
|
|
|
MULTI_PACKAGES= -doc
|
|
|
|
SUBPACKAGE?=
|
2003-09-01 16:32:14 -04:00
|
|
|
FULLPKGNAME-doc=ghc-doc-${V}
|
2004-02-04 02:39:18 -05:00
|
|
|
.if defined(PACKAGING) && ${SUBPACKAGE} == "-doc"
|
|
|
|
PKG_ARCH= *
|
|
|
|
.endif
|
initial import of ghc-5.04.3, which takes the "longest compilation
time" award from mozilla and gcc3
From Don Stewart <dons@cse.unsw.edu.au> with tweaks from me
(i386 only for the moment)
--
The Glasgow Haskell Compiler is a robust, fully-featured, optimising
compiler for the functional programming language Haskell 98.
GHC compiles Haskell to either native code or C. It implements
numerous experimental language extensions to Haskell, including
concurrency, a foreign language interface, several type-system
extensions, exceptions, and so on. GHC comes with a generational
garbage collector, a space and time profiler, and a comprehensive
set of libraries.
2003-05-29 12:38:31 -04:00
|
|
|
|
2003-09-01 16:32:14 -04:00
|
|
|
HASKELL= http://www.haskell.org
|
|
|
|
MASTER_SITES= ${HASKELL}/ghc/dist/${V}/
|
|
|
|
MASTER_SITES0= ${HASKELL}/ghc/docs/${V}/
|
|
|
|
MASTER_SITES1= ${HASKELL}/definition/
|
|
|
|
MASTER_SITES2= ftp://ftp.cse.unsw.edu.au/pub/users/dons/ghc/${V}/
|
2003-06-29 23:45:34 -04:00
|
|
|
|
2003-09-01 16:32:14 -04:00
|
|
|
DIST_SUBDIR= ghc-${V}
|
2003-06-29 23:45:34 -04:00
|
|
|
DOC_FILES= users_guide hslibs building libraries
|
2003-09-01 16:32:14 -04:00
|
|
|
DOC_FILES1= haskell98-report
|
2003-06-29 23:45:34 -04:00
|
|
|
DOC_DIR= ${PREFIX}/share/doc/ghc
|
initial import of ghc-5.04.3, which takes the "longest compilation
time" award from mozilla and gcc3
From Don Stewart <dons@cse.unsw.edu.au> with tweaks from me
(i386 only for the moment)
--
The Glasgow Haskell Compiler is a robust, fully-featured, optimising
compiler for the functional programming language Haskell 98.
GHC compiles Haskell to either native code or C. It implements
numerous experimental language extensions to Haskell, including
concurrency, a foreign language interface, several type-system
extensions, exceptions, and so on. GHC comes with a generational
garbage collector, a space and time profiler, and a comprehensive
set of libraries.
2003-05-29 12:38:31 -04:00
|
|
|
|
2003-09-01 16:32:14 -04:00
|
|
|
DISTFILES= ghc-${V}-src.tar.bz2 \
|
|
|
|
${DOC_FILES:C/(.+)/\1.html.tar.gz:0/g} \
|
|
|
|
${DOC_FILES1:C/(.+)/\1-html.tar.gz:1/g} \
|
2004-01-08 15:33:23 -05:00
|
|
|
ghc-regress-${V}.1.tar.bz2:2 \
|
2003-09-01 16:32:14 -04:00
|
|
|
ghc-${V}-${ARCH}-hc.tar.gz:2
|
2003-07-20 17:57:10 -04:00
|
|
|
|
2004-01-08 15:33:23 -05:00
|
|
|
# only i386 and sparc .hc src exist at the moment. generating
|
|
|
|
# this tarball is the first step in porting to a new architecture
|
2003-09-01 16:32:14 -04:00
|
|
|
SUPDISTFILES= ghc-${V}-${ARCH}-hc.tar.gz:2
|
initial import of ghc-5.04.3, which takes the "longest compilation
time" award from mozilla and gcc3
From Don Stewart <dons@cse.unsw.edu.au> with tweaks from me
(i386 only for the moment)
--
The Glasgow Haskell Compiler is a robust, fully-featured, optimising
compiler for the functional programming language Haskell 98.
GHC compiles Haskell to either native code or C. It implements
numerous experimental language extensions to Haskell, including
concurrency, a foreign language interface, several type-system
extensions, exceptions, and so on. GHC comes with a generational
garbage collector, a space and time profiler, and a comprehensive
set of libraries.
2003-05-29 12:38:31 -04:00
|
|
|
|
|
|
|
USE_GMAKE= Yes
|
|
|
|
CONFIGURE_STYLE=gnu dest
|
2003-09-01 16:32:14 -04:00
|
|
|
CONFIGURE_ENV+= LOCALBASE="${LOCALBASE}"
|
2003-08-12 09:25:18 -04:00
|
|
|
|
2003-09-01 16:32:14 -04:00
|
|
|
# distrib/hc-build is a wrapper around configure and the
|
|
|
|
# bootstrap make, with magic flags, vars and control flow
|
|
|
|
do-configure:
|
|
|
|
: nothing here
|
2003-08-21 15:51:23 -04:00
|
|
|
|
2003-09-01 16:32:14 -04:00
|
|
|
do-build:
|
|
|
|
@(cd ${WRKSRC} ;\
|
|
|
|
${CONFIGURE_ENV} distrib/hc-build ${CONFIGURE_ARGS})
|
initial import of ghc-5.04.3, which takes the "longest compilation
time" award from mozilla and gcc3
From Don Stewart <dons@cse.unsw.edu.au> with tweaks from me
(i386 only for the moment)
--
The Glasgow Haskell Compiler is a robust, fully-featured, optimising
compiler for the functional programming language Haskell 98.
GHC compiles Haskell to either native code or C. It implements
numerous experimental language extensions to Haskell, including
concurrency, a foreign language interface, several type-system
extensions, exceptions, and so on. GHC comes with a generational
garbage collector, a space and time profiler, and a comprehensive
set of libraries.
2003-05-29 12:38:31 -04:00
|
|
|
|
|
|
|
# note: ghci not in PLIST since it doesnt work yet
|
|
|
|
|
2003-09-01 16:32:14 -04:00
|
|
|
FAKE_FLAGS+="stage=1"
|
|
|
|
|
2003-06-29 23:45:34 -04:00
|
|
|
post-install:
|
|
|
|
${INSTALL_DATA_DIR} ${DOC_DIR}
|
2003-09-01 16:32:14 -04:00
|
|
|
.for i in ${DOC_FILES:C/(.+)/\1.html.tar.gz/g} \
|
|
|
|
${DOC_FILES1:C/(.+)/\1-html.tar.gz/g}
|
2003-06-29 23:45:34 -04:00
|
|
|
@tar zxf ${FULLDISTDIR}/${i} -C ${DOC_DIR}
|
|
|
|
.endfor
|
|
|
|
|
2003-09-01 16:32:14 -04:00
|
|
|
REGRESS_DEPENDS=::lang/python/2.2
|
|
|
|
REGRESS_RESULT= ${WRKSRC}/actual.result
|
|
|
|
REGRESS_FLAGS= TEST_HC="${WRKSRC}/ghc/compiler/stage1/ghc-inplace"
|
2003-09-01 18:46:28 -04:00
|
|
|
REGRESS_FLAGS+= EXTRA_RUNTEST_OPTS="--output-summary=${REGRESS_RESULT}" \
|
|
|
|
PYTHON="${LOCALBASE}/bin/python"
|
2003-09-01 16:32:14 -04:00
|
|
|
|
2003-08-12 09:25:18 -04:00
|
|
|
# BSD w/o advertising clause
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
initial import of ghc-5.04.3, which takes the "longest compilation
time" award from mozilla and gcc3
From Don Stewart <dons@cse.unsw.edu.au> with tweaks from me
(i386 only for the moment)
--
The Glasgow Haskell Compiler is a robust, fully-featured, optimising
compiler for the functional programming language Haskell 98.
GHC compiles Haskell to either native code or C. It implements
numerous experimental language extensions to Haskell, including
concurrency, a foreign language interface, several type-system
extensions, exceptions, and so on. GHC comes with a generational
garbage collector, a space and time profiler, and a comprehensive
set of libraries.
2003-05-29 12:38:31 -04:00
|
|
|
.include <bsd.port.mk>
|