diff options
author | kristerw <kristerw@pkgsrc.org> | 2005-05-21 20:22:21 +0000 |
---|---|---|
committer | kristerw <kristerw@pkgsrc.org> | 2005-05-21 20:22:21 +0000 |
commit | 82368669358a15c58ba814b6c84a9258053ba87b (patch) | |
tree | 42cdc51c0ef47404307ca3bd3f0acecab39369ab /lang/ghc/Makefile | |
parent | 9a1829f2043411d9390beb0069f8b400d470ae35 (diff) | |
download | pkgsrc-82368669358a15c58ba814b6c84a9258053ba87b.tar.gz |
Update ghc to 6.4.
See
http://www.haskell.org/ghc/docs/6.4/html/users_guide/release-6-4.html
for the long list of changes since ghc-6.2.1.
In addition, GHCi and profiling support have been enabled in this
package.
Diffstat (limited to 'lang/ghc/Makefile')
-rw-r--r-- | lang/ghc/Makefile | 52 |
1 files changed, 27 insertions, 25 deletions
diff --git a/lang/ghc/Makefile b/lang/ghc/Makefile index 169f3a58c5a..15629062889 100644 --- a/lang/ghc/Makefile +++ b/lang/ghc/Makefile @@ -1,10 +1,10 @@ -# $NetBSD: Makefile,v 1.21 2005/05/04 19:02:33 kristerw Exp $ +# $NetBSD: Makefile,v 1.22 2005/05/21 20:22:21 kristerw Exp $ -DISTNAME= ghc-6.2.1 -PKGREVISION= 1 +DISTNAME= ghc-6.4 CATEGORIES= lang -MASTER_SITES= http://www.haskell.org/ghc/dist/6.2.1/ -DISTFILES= ghc-6.2.1-src.tar.bz2 \ +MASTER_SITES= http://www.haskell.org/ghc/dist/6.4/ +DISTFILES= ghc-6.4-src.tar.bz2 \ + ghc-6.2.1-src.tar.bz2 \ ghc-6.2.1-i386-unknown-netbsd-hc.tar.gz MAINTAINER= kristerw@NetBSD.org @@ -16,34 +16,36 @@ SITES_ghc-6.2.1-i386-unknown-netbsd-hc.tar.gz=${MASTER_SITE_LOCAL} ONLY_FOR_PLATFORM= NetBSD-1.5*-i386 NetBSD-1.6*-i386 NetBSD-[2-9]*-i386 GNU_CONFIGURE= yes -CONFIGURE_SCRIPT= ./distrib/hc-build -CONFIGURE_ARGS+= --enable-hc-boot-unregisterised -INSTALL_MAKE_FLAGS+= stage=1 - - +CONFIGURE_ARGS+= --with-ghc=${WRKDIR}/bootstrap/bin/ghc +CONFIGURE_ENV+= PerlCmd=${PERL5} USE_GNU_READLINE= yes # uses the UNDO_ constants USE_PERL5= yes USE_GNU_TOOLS+= make -# Everything is done in the configure target. -do-build: - @${DO_NADA} - pre-configure: - ${MV} ${WRKSRC}/mk/bootstrap.mk ${WRKSRC}/mk/bootstrap.mk.tmp + ${MV} ${WRKDIR}/ghc-6.2.1/mk/bootstrap.mk \ + ${WRKDIR}/ghc-6.2.1/mk/bootstrap.mk.tmp ${SED} -e 's,@PREFIX@,${PREFIX},g' \ - < ${WRKSRC}/mk/bootstrap.mk.tmp \ - > ${WRKSRC}/mk/bootstrap.mk - ${MV} ${WRKSRC}/libraries/readline/package.conf.in \ - ${WRKSRC}/libraries/readline/package.conf.in.tmp + < ${WRKDIR}/ghc-6.2.1/mk/bootstrap.mk.tmp \ + > ${WRKDIR}/ghc-6.2.1/mk/bootstrap.mk + ${MV} ${WRKDIR}/ghc-6.2.1/libraries/readline/package.conf.in \ + ${WRKDIR}/ghc-6.2.1/libraries/readline/package.conf.in.tmp ${SED} -e 's,@PREFIX@,${PREFIX},g' \ - < ${WRKSRC}/libraries/readline/package.conf.in.tmp \ - > ${WRKSRC}/libraries/readline/package.conf.in - ${MV} ${WRKSRC}/ghc/rts/package.conf.in \ - ${WRKSRC}/ghc/rts/package.conf.in.tmp + < ${WRKDIR}/ghc-6.2.1/libraries/readline/package.conf.in.tmp \ + > ${WRKDIR}/ghc-6.2.1/libraries/readline/package.conf.in + ${MV} ${WRKDIR}/ghc-6.2.1/ghc/rts/package.conf.in \ + ${WRKDIR}/ghc-6.2.1/ghc/rts/package.conf.in.tmp ${SED} -e 's,@PREFIX@,${PREFIX},g' \ - < ${WRKSRC}/ghc/rts/package.conf.in.tmp \ - > ${WRKSRC}/ghc/rts/package.conf.in + < ${WRKDIR}/ghc-6.2.1/ghc/rts/package.conf.in.tmp \ + > ${WRKDIR}/ghc-6.2.1/ghc/rts/package.conf.in + cd ${WRKDIR}/ghc-6.2.1 && \ + ./distrib/hc-build \ + --enable-hc-boot-unregisterised \ + --prefix=${WRKDIR}/bootstrap + cd ${WRKDIR}/ghc-6.2.1 && ${GMAKE} stage=1 install + +pre-build: + ${ECHO} "SplitObjs=NO" > ${WRKSRC}/mk/build.mk .include "../../devel/readline/buildlink3.mk" .include "../../devel/gmp/buildlink3.mk" |