aboutsummaryrefslogtreecommitdiffstats
path: root/lang/ghc/Makefile
diff options
context:
space:
mode:
authornectar <nectar@FreeBSD.org>1999-11-11 01:25:29 +0800
committernectar <nectar@FreeBSD.org>1999-11-11 01:25:29 +0800
commit51468910f3c8639406839983d4994bc6ab6c54d8 (patch)
treefdf87fa2947ebf89d142df05f45a9cba00dabae1 /lang/ghc/Makefile
parenta0da868fb711a735cae1ffd4a37e1fd44fb552a7 (diff)
downloadfreebsd-ports-gnome-51468910f3c8639406839983d4994bc6ab6c54d8.tar.gz
freebsd-ports-gnome-51468910f3c8639406839983d4994bc6ab6c54d8.tar.zst
freebsd-ports-gnome-51468910f3c8639406839983d4994bc6ab6c54d8.zip
GHC: The Glasgow Haskell Compiler.
The Glasgow Haskell Compiler is a robust, fully-featured, optimising compiler for the functional programming language Haskell 98 (http://www.haskell.org). 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. PR: ports/13786 Submitted by: Simon Marlow <simonm@dcs.gla.ac.uk>
Diffstat (limited to 'lang/ghc/Makefile')
-rw-r--r--lang/ghc/Makefile41
1 files changed, 41 insertions, 0 deletions
diff --git a/lang/ghc/Makefile b/lang/ghc/Makefile
new file mode 100644
index 000000000000..9bce4706491d
--- /dev/null
+++ b/lang/ghc/Makefile
@@ -0,0 +1,41 @@
+# New ports collection makefile for: ghc
+# Version required: 4.04
+# Date created: 28 August 1999
+# Whom: Simon Marlow <simonmar@microsoft.com>
+#
+# $FreeBSD$
+
+DISTNAME= ghc-4.04
+CATEGORIES= lang
+MASTER_SITES= http://www.haskell.org/ghc/dist/4.04/
+DISTFILES= ghc-4.04-src${EXTRACT_SUFX} ghc-4.04-x86-hc${EXTRACT_SUFX}
+
+MAINTAINER= simonmar@microsoft.com
+
+USE_PERL5= yes
+USE_GMAKE= yes
+GNU_CONFIGURE= yes
+
+CONFIGURE_ARGS= --enable-hc-boot --libdir=${PREFIX}/lib/ghc
+
+WRKSRC= ${WRKDIR}/fptools
+
+# Note:
+# - This port will bootstrap from pre-compiled C files.
+# - ToDo: bootstrap using existing compiler, if one is installed.
+
+# XXX: we touch the happy-generated files to ensure that when we
+# switch to non-bootstrapping mode for installation, the build system
+# won't try to create them.
+#
+pre-build:
+ @${CP} ${FILESDIR}/build.mk ${WRKSRC}/mk
+ @${TOUCH} ${TOUCH_FLAGS} ${WRKSRC}/ghc/compiler/rename/ParseIface.hs
+ @${TOUCH} ${TOUCH_FLAGS} ${WRKSRC}/ghc/compiler/parser/Parser.hs
+ @(cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} boot)
+
+post-build:
+ @echo "GhcWithHscBuiltViaC=NO" >>${WRKSRC}/mk/build.mk
+ @(cd ${WRKSRC}/ghc/lib; ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} clean boot all)
+
+.include <bsd.port.mk>