# Note: you need GHC already installed in order to build this package. # (I bootstrapped it using the Debian packaged version.) GARNAME = ghc GARVERSION = 6.12.1 CATEGORIES = haskell MASTER_SITES = http://www.haskell.org/ghc/dist/$(GARVERSION)/ DISTFILES = $(DISTNAME)-src.tar.bz2 LIBDEPS = sys/libxml2 sys/libxslt math/gmp devel/binutils sys/elfutils BUILDDEPS = perl/perl python/python text/docbook-xml text/docbook-xsl # We can't list these dependencies because they need (or are!) this package. # BUILDDEPS += haskell/ghc haskell/happy haskell/alex haskell/hscolour DESCRIPTION = The Glasgow Haskell Compiler HOME_URL = http://www.haskell.org/ghc/ CONFIGURE_SCRIPTS = xmlpath $(WORKSRC)/configure BUILD_SCRIPTS = $(WORKSRC)/Makefile INSTALL_SCRIPTS = $(WORKSRC)/Makefile-DESTDIR hook include ../../gar.mk BUILD_ARGS += \ $(MAKE_ARGS_PARALLEL) configure-xmlpath: @sed -i 's,/usr/local/share/\(xml\|xsl\),$(prefix)/share/\1,g' $(WORKSRC)/configure $(MAKECOOKIE) install-hook: @$(INSTALL_HOOKS) $(FILEDIR)/50ghc.post-install $(MAKECOOKIE)