2003-08-03 14:07:27 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.6 2003/08/03 18:07:27 avsm 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-07-20 17:57:10 -04:00
|
|
|
# Last update : updated to 6.0: Fri Jul 4 10:16:53 EST 2003
|
|
|
|
# ported to ELF : Wed Apr 23 12:38:42 EST 2003
|
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:
|
|
|
|
# 1) build a bootstrap ghc4 from C source
|
2003-07-20 17:57:10 -04:00
|
|
|
# 2) use this to do an in-tree ghc6 bootstrap and build
|
|
|
|
#
|
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
|
|
|
|
|
|
|
ONLY_FOR_ARCHS= i386
|
2003-07-20 17:57:10 -04:00
|
|
|
# sparc : needs to handle the asm format in ghc/driver/mangler/*.lprl
|
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-07-20 17:57:10 -04:00
|
|
|
# alpha and powerpc have the problem that we don't have .hc src
|
|
|
|
# to bootstrap from. We would need an "unregisterised" build...
|
|
|
|
# More work. m68k needs to have its asm format set in the
|
|
|
|
# mangler, before we can do any kind of build at all.
|
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-08-03 14:07:27 -04:00
|
|
|
FULLVER= 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
|
|
|
BOOTVER= 4.08.2
|
|
|
|
|
|
|
|
DISTNAME= ghc-${FULLVER}
|
|
|
|
CATEGORIES= lang
|
|
|
|
HOMEPAGE= http://www.haskell.org/ghc/
|
|
|
|
MAINTAINER= Don Stewart <dons@cse.unsw.edu.au>
|
|
|
|
|
2003-06-29 23:45:34 -04:00
|
|
|
MULTI_PACKAGES= -doc
|
|
|
|
SUBPACKAGE?=
|
|
|
|
FULLPKGNAME-doc= ghc-doc-${FULLVER}
|
|
|
|
|
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
|
|
|
# BSD w/o advertising clause
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
|
|
|
HASKELL= http://www.haskell.org/
|
|
|
|
MASTER_SITES= ${HASKELL}ghc/dist/${FULLVER}/
|
|
|
|
MASTER_SITES0= ${HASKELL}ghc/dist/${BOOTVER}/
|
2003-06-29 23:45:34 -04:00
|
|
|
MASTER_SITES1= ${HASKELL}ghc/docs/${FULLVER}/
|
2003-07-20 17:57:10 -04:00
|
|
|
MASTER_SITES2= ftp://ftp.cse.unsw.edu.au/pub/users/dons/ghc/${FULLVER}/
|
2003-06-29 23:45:34 -04:00
|
|
|
|
|
|
|
DIST_SUBDIR= ghc-${FULLVER}
|
|
|
|
DOC_FILES= users_guide hslibs building libraries
|
|
|
|
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-06-29 23:45:34 -04:00
|
|
|
DISTFILES= ghc-${FULLVER}-src.tar.bz2 ghc-${BOOTVER}-src.tar.bz2:0 \
|
2003-07-20 17:57:10 -04:00
|
|
|
${DOC_FILES:C/(.+)/\1.html.tar.gz:1/g} \
|
2003-08-03 14:07:27 -04:00
|
|
|
ghc-regress-${FULLVER}.tar.bz2: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
|
|
|
|
|
|
|
.if ${MACHINE_ARCH} == "i386"
|
|
|
|
HCSRC=ghc-${BOOTVER}-x86-hc.tar.bz2:0
|
|
|
|
.elif ${MACHINE_ARCH} == "sparc"
|
|
|
|
HCSRC=ghc-${BOOTVER}-sparc-hc.tar.bz2:0
|
|
|
|
.endif
|
|
|
|
|
|
|
|
DISTFILES+= ${HCSRC}
|
|
|
|
|
2003-07-20 17:57:10 -04:00
|
|
|
REGRESS_DEPENDS=::lang/python/2.2
|
2003-08-03 14:07:27 -04:00
|
|
|
REGRESS_RESULT=${WRKSRC}/actual.result
|
2003-07-20 17:57:10 -04:00
|
|
|
REGRESS_FLAGS=TEST_HC="${WRKSRC}/ghc/compiler/stage2/ghc-inplace"
|
|
|
|
REGRESS_FLAGS+=EXTRA_RUNTEST_OPTS="--output-summary=${REGRESS_RESULT}"
|
|
|
|
|
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
|
|
|
# where the first compilers will be built
|
|
|
|
STAGE0= ${WRKDIR}/ghc-${BOOTVER}
|
|
|
|
|
|
|
|
USE_GMAKE= Yes
|
|
|
|
CONFIGURE_STYLE=gnu dest
|
2003-07-20 17:57:10 -04:00
|
|
|
CONFIGURE_ARGS=--with-ghc=${STAGE0}/ghc/driver/ghc-inplace
|
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-07-20 17:57:10 -04:00
|
|
|
# Build the GHC-4 bootstrap compiler from C source
|
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
|
|
|
pre-configure:
|
|
|
|
@(cd ${STAGE0} ; distrib/hc-build --prefix=${STAGE0})
|
|
|
|
|
|
|
|
# note: ghci not in PLIST since it doesnt work yet
|
|
|
|
|
2003-06-29 23:45:34 -04:00
|
|
|
post-install:
|
|
|
|
${INSTALL_DATA_DIR} ${DOC_DIR}
|
|
|
|
.for i in ${DOC_FILES:C/(.+)/\1.html.tar.gz/g}
|
|
|
|
@tar zxf ${FULLDISTDIR}/${i} -C ${DOC_DIR}
|
|
|
|
.endfor
|
|
|
|
|
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>
|