2005-05-04 21:02:33 +02:00
|
|
|
# $NetBSD: Makefile,v 1.21 2005/05/04 19:02:33 kristerw Exp $
|
1999-12-15 06:50:47 +01:00
|
|
|
|
2004-05-29 16:28:43 +02:00
|
|
|
DISTNAME= ghc-6.2.1
|
2004-10-03 02:12:51 +02:00
|
|
|
PKGREVISION= 1
|
1999-12-15 06:50:47 +01:00
|
|
|
CATEGORIES= lang
|
2004-05-29 16:28:43 +02:00
|
|
|
MASTER_SITES= http://www.haskell.org/ghc/dist/6.2.1/
|
|
|
|
DISTFILES= ghc-6.2.1-src.tar.bz2 \
|
|
|
|
ghc-6.2.1-i386-unknown-netbsd-hc.tar.gz
|
1999-12-15 07:00:43 +01:00
|
|
|
|
2003-12-31 18:11:57 +01:00
|
|
|
MAINTAINER= kristerw@NetBSD.org
|
1999-12-15 07:00:43 +01:00
|
|
|
HOMEPAGE= http://www.haskell.org/ghc/
|
2001-02-17 10:06:56 +01:00
|
|
|
COMMENT= Compiler for the functional language Haskell
|
1999-12-15 06:50:47 +01:00
|
|
|
|
2004-05-29 16:28:43 +02:00
|
|
|
SITES_ghc-6.2.1-i386-unknown-netbsd-hc.tar.gz=${MASTER_SITE_LOCAL}
|
|
|
|
|
2004-12-19 21:06:32 +01:00
|
|
|
ONLY_FOR_PLATFORM= NetBSD-1.5*-i386 NetBSD-1.6*-i386 NetBSD-[2-9]*-i386
|
|
|
|
|
2004-05-29 16:28:43 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2003-12-31 18:11:57 +01:00
|
|
|
CONFIGURE_SCRIPT= ./distrib/hc-build
|
2004-05-29 16:28:43 +02:00
|
|
|
CONFIGURE_ARGS+= --enable-hc-boot-unregisterised
|
|
|
|
INSTALL_MAKE_FLAGS+= stage=1
|
2003-04-29 13:27:39 +02:00
|
|
|
|
|
|
|
|
2004-05-29 16:28:43 +02:00
|
|
|
USE_GNU_READLINE= yes # uses the UNDO_ constants
|
|
|
|
USE_PERL5= yes
|
|
|
|
USE_GNU_TOOLS+= make
|
1999-12-15 06:50:47 +01:00
|
|
|
|
2004-05-29 16:28:43 +02:00
|
|
|
# Everything is done in the configure target.
|
2005-05-04 21:02:33 +02:00
|
|
|
do-build:
|
|
|
|
@${DO_NADA}
|
2004-05-29 16:28:43 +02:00
|
|
|
|
|
|
|
pre-configure:
|
|
|
|
${MV} ${WRKSRC}/mk/bootstrap.mk ${WRKSRC}/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
|
|
|
|
${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
|
|
|
|
${SED} -e 's,@PREFIX@,${PREFIX},g' \
|
|
|
|
< ${WRKSRC}/ghc/rts/package.conf.in.tmp \
|
|
|
|
> ${WRKSRC}/ghc/rts/package.conf.in
|
|
|
|
|
|
|
|
.include "../../devel/readline/buildlink3.mk"
|
|
|
|
.include "../../devel/gmp/buildlink3.mk"
|
|
|
|
.include "../../mk/pthread.buildlink3.mk"
|
1999-12-15 07:00:43 +01:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|