2018-08-22 11:43:40 +02:00
|
|
|
# $NetBSD: Makefile,v 1.58 2018/08/22 09:45:20 wiz Exp $
|
1999-12-15 06:50:47 +01:00
|
|
|
|
2008-07-20 02:26:52 +02:00
|
|
|
DISTNAME= ghc-6.8.3
|
2018-08-22 11:43:40 +02:00
|
|
|
PKGREVISION= 8
|
1999-12-15 06:50:47 +01:00
|
|
|
CATEGORIES= lang
|
2008-07-20 02:26:52 +02:00
|
|
|
MASTER_SITES= http://www.haskell.org/ghc/dist/6.8.3/
|
|
|
|
DISTFILES= ghc-6.8.3-src.tar.bz2 \
|
|
|
|
ghc-6.8.3-src-extralibs.tar.bz2 \
|
2007-03-24 18:57:19 +01:00
|
|
|
ghc-6.4.2-src.tar.bz2 \
|
2006-07-31 04:07:13 +02:00
|
|
|
ghc-6.4.2-i386-unknown-netbsd-hc.tar.gz
|
1999-12-15 07:00:43 +01:00
|
|
|
|
2008-07-20 02:26:52 +02:00
|
|
|
OWNER= 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
|
|
|
|
2007-03-24 18:57:19 +01:00
|
|
|
SITES.ghc-6.4.2-src.tar.bz2=http://www.haskell.org/ghc/dist/6.4.2/
|
2006-07-31 04:07:13 +02:00
|
|
|
SITES.ghc-6.4.2-i386-unknown-netbsd-hc.tar.gz=${MASTER_SITE_LOCAL}
|
2004-05-29 16:28:43 +02:00
|
|
|
|
2015-01-04 09:03:50 +01:00
|
|
|
# There is only an i386 bootstrap kit available.
|
2012-08-17 17:49:35 +02:00
|
|
|
ONLY_FOR_PLATFORM= Darwin-*-i386 FreeBSD-*-i386 NetBSD-*-i386 OpenBSD-*-i386 SunOS-*-i386
|
2004-12-19 21:06:32 +01:00
|
|
|
|
2007-03-24 18:57:19 +01:00
|
|
|
CHECK_PORTABILITY_SKIP= distrib/prep-bin-dist-mingw
|
|
|
|
|
2007-06-25 23:18:37 +02:00
|
|
|
# += in a shell script, but in embedded AWK code, so it's ok.
|
|
|
|
CHECK_PORTABILITY_SKIP+= libraries/base/cbits/ubconfc
|
|
|
|
|
2004-05-29 16:28:43 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2007-03-24 18:57:19 +01:00
|
|
|
CONFIGURE_ARGS+= --with-ghc=${WRKDIR}/ghc-6.4.2/ghc/compiler/ghc-inplace
|
2005-12-05 21:49:47 +01:00
|
|
|
CONFIGURE_ENV+= PerlCmd=${PERL5:Q}
|
2005-07-16 03:19:06 +02:00
|
|
|
USE_TOOLS+= gmake perl:run
|
1999-12-15 06:50:47 +01:00
|
|
|
|
2007-03-24 18:57:19 +01:00
|
|
|
SUBST_CLASSES+= prefix
|
2018-07-04 15:40:07 +02:00
|
|
|
SUBST_STAGE.prefix= pre-configure
|
2007-03-24 18:57:19 +01:00
|
|
|
SUBST_FILES.prefix+= ../ghc-6.4.2/mk/bootstrap.mk
|
|
|
|
SUBST_FILES.prefix+= ../ghc-6.4.2/ghc/rts/package.conf.in
|
|
|
|
SUBST_FILES.prefix+= ../ghc-6.4.2/libraries/readline/package.conf.in
|
2008-03-17 16:33:10 +01:00
|
|
|
SUBST_FILES.prefix+= libraries/readline/configure
|
|
|
|
SUBST_FILES.prefix+= libraries/readline/readline.cabal
|
|
|
|
SUBST_FILES.prefix+= rts/package.conf.in
|
2007-03-24 18:57:19 +01:00
|
|
|
SUBST_SED.prefix= -e 's,@PREFIX@,${PREFIX},g'
|
2005-05-21 22:22:21 +02:00
|
|
|
|
2006-07-31 04:07:13 +02:00
|
|
|
pre-configure:
|
2007-03-24 18:57:19 +01:00
|
|
|
cd ${WRKDIR}/ghc-6.4.2 && \
|
2006-07-31 04:07:13 +02:00
|
|
|
./distrib/hc-build --enable-hc-boot-unregisterised
|
|
|
|
|
|
|
|
# The ghc compiler does normally split the generated C files into small
|
|
|
|
# parts before sending them to gcc, to enable the linker to eliminate
|
2006-07-31 20:10:00 +02:00
|
|
|
# unused parts. This does however not play nice with the pkgsrc
|
2006-07-31 04:07:13 +02:00
|
|
|
# framework, and the result is that the build takes more than 5 times
|
|
|
|
# as long than when the files are not split. See
|
|
|
|
# http://mail-index.netbsd.org/tech-pkg/2006/07/30/0005.html
|
|
|
|
# for a description of the problem.
|
2006-07-31 20:10:00 +02:00
|
|
|
# Disable file splitting until pkgsrc has been improved.
|
2005-05-21 22:22:21 +02:00
|
|
|
pre-build:
|
|
|
|
${ECHO} "SplitObjs=NO" > ${WRKSRC}/mk/build.mk
|
2004-05-29 16:28:43 +02:00
|
|
|
|
2013-07-15 04:02:17 +02:00
|
|
|
# uses the UNDO_ constants
|
2004-05-29 16:28:43 +02:00
|
|
|
.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"
|