| @@ -1,63 +1,60 @@ | | | @@ -1,63 +1,60 @@ |
1 | # $NetBSD: Makefile,v 1.51 2013/10/24 10:31:02 wiz Exp $ | | 1 | # $NetBSD: Makefile,v 1.52 2013/12/06 06:20:00 dholland Exp $ |
2 | | | 2 | |
3 | DISTNAME= ghc-6.8.3 | | 3 | DISTNAME= ghc-6.8.3 |
4 | PKGREVISION= 4 | | 4 | PKGREVISION= 4 |
5 | CATEGORIES= lang | | 5 | CATEGORIES= lang |
6 | MASTER_SITES= http://www.haskell.org/ghc/dist/6.8.3/ | | 6 | MASTER_SITES= http://www.haskell.org/ghc/dist/6.8.3/ |
7 | DISTFILES= ghc-6.8.3-src.tar.bz2 \ | | 7 | DISTFILES= ghc-6.8.3-src.tar.bz2 \ |
8 | ghc-6.8.3-src-extralibs.tar.bz2 \ | | 8 | ghc-6.8.3-src-extralibs.tar.bz2 \ |
9 | ghc-6.4.2-src.tar.bz2 \ | | 9 | ghc-6.4.2-src.tar.bz2 \ |
10 | ghc-6.4.2-i386-unknown-netbsd-hc.tar.gz | | 10 | ghc-6.4.2-i386-unknown-netbsd-hc.tar.gz |
11 | | | 11 | |
12 | OWNER= kristerw@NetBSD.org | | 12 | OWNER= kristerw@NetBSD.org |
13 | HOMEPAGE= http://www.haskell.org/ghc/ | | 13 | HOMEPAGE= http://www.haskell.org/ghc/ |
14 | COMMENT= Compiler for the functional language Haskell | | 14 | COMMENT= Compiler for the functional language Haskell |
15 | | | 15 | |
16 | SITES.ghc-6.4.2-src.tar.bz2=http://www.haskell.org/ghc/dist/6.4.2/ | | 16 | SITES.ghc-6.4.2-src.tar.bz2=http://www.haskell.org/ghc/dist/6.4.2/ |
17 | SITES.ghc-6.4.2-i386-unknown-netbsd-hc.tar.gz=${MASTER_SITE_LOCAL} | | 17 | SITES.ghc-6.4.2-i386-unknown-netbsd-hc.tar.gz=${MASTER_SITE_LOCAL} |
18 | | | 18 | |
19 | ONLY_FOR_PLATFORM= Darwin-*-i386 FreeBSD-*-i386 NetBSD-*-i386 OpenBSD-*-i386 SunOS-*-i386 | | 19 | ONLY_FOR_PLATFORM= Darwin-*-i386 FreeBSD-*-i386 NetBSD-*-i386 OpenBSD-*-i386 SunOS-*-i386 |
20 | | | 20 | |
21 | PKG_DESTDIR_SUPPORT= none | | | |
22 | BROKEN= Does not support DESTDIR; will be removed after 2013Q4 | | | |
23 | | | | |
24 | CHECK_PORTABILITY_SKIP= distrib/prep-bin-dist-mingw | | 21 | CHECK_PORTABILITY_SKIP= distrib/prep-bin-dist-mingw |
25 | | | 22 | |
26 | # += in a shell script, but in embedded AWK code, so it's ok. | | 23 | # += in a shell script, but in embedded AWK code, so it's ok. |
27 | CHECK_PORTABILITY_SKIP+= libraries/base/cbits/ubconfc | | 24 | CHECK_PORTABILITY_SKIP+= libraries/base/cbits/ubconfc |
28 | | | 25 | |
29 | GNU_CONFIGURE= yes | | 26 | GNU_CONFIGURE= yes |
30 | CONFIGURE_ARGS+= --with-ghc=${WRKDIR}/ghc-6.4.2/ghc/compiler/ghc-inplace | | 27 | CONFIGURE_ARGS+= --with-ghc=${WRKDIR}/ghc-6.4.2/ghc/compiler/ghc-inplace |
31 | CONFIGURE_ENV+= PerlCmd=${PERL5:Q} | | 28 | CONFIGURE_ENV+= PerlCmd=${PERL5:Q} |
32 | USE_TOOLS+= gmake perl:run | | 29 | USE_TOOLS+= gmake perl:run |
33 | | | 30 | |
34 | SUBST_CLASSES+= prefix | | 31 | SUBST_CLASSES+= prefix |
35 | SUBST_STAGE.prefix= post-patch | | 32 | SUBST_STAGE.prefix= post-patch |
36 | SUBST_FILES.prefix+= ../ghc-6.4.2/mk/bootstrap.mk | | 33 | SUBST_FILES.prefix+= ../ghc-6.4.2/mk/bootstrap.mk |
37 | SUBST_FILES.prefix+= ../ghc-6.4.2/ghc/rts/package.conf.in | | 34 | SUBST_FILES.prefix+= ../ghc-6.4.2/ghc/rts/package.conf.in |
38 | SUBST_FILES.prefix+= ../ghc-6.4.2/libraries/readline/package.conf.in | | 35 | SUBST_FILES.prefix+= ../ghc-6.4.2/libraries/readline/package.conf.in |
39 | SUBST_FILES.prefix+= libraries/readline/configure | | 36 | SUBST_FILES.prefix+= libraries/readline/configure |
40 | SUBST_FILES.prefix+= libraries/readline/readline.cabal | | 37 | SUBST_FILES.prefix+= libraries/readline/readline.cabal |
41 | SUBST_FILES.prefix+= rts/package.conf.in | | 38 | SUBST_FILES.prefix+= rts/package.conf.in |
42 | SUBST_SED.prefix= -e 's,@PREFIX@,${PREFIX},g' | | 39 | SUBST_SED.prefix= -e 's,@PREFIX@,${PREFIX},g' |
43 | | | 40 | |
44 | pre-configure: | | 41 | pre-configure: |
45 | cd ${WRKDIR}/ghc-6.4.2 && \ | | 42 | cd ${WRKDIR}/ghc-6.4.2 && \ |
46 | ./distrib/hc-build --enable-hc-boot-unregisterised | | 43 | ./distrib/hc-build --enable-hc-boot-unregisterised |
47 | | | 44 | |
48 | # The ghc compiler does normally split the generated C files into small | | 45 | # The ghc compiler does normally split the generated C files into small |
49 | # parts before sending them to gcc, to enable the linker to eliminate | | 46 | # parts before sending them to gcc, to enable the linker to eliminate |
50 | # unused parts. This does however not play nice with the pkgsrc | | 47 | # unused parts. This does however not play nice with the pkgsrc |
51 | # framework, and the result is that the build takes more than 5 times | | 48 | # framework, and the result is that the build takes more than 5 times |
52 | # as long than when the files are not split. See | | 49 | # as long than when the files are not split. See |
53 | # http://mail-index.netbsd.org/tech-pkg/2006/07/30/0005.html | | 50 | # http://mail-index.netbsd.org/tech-pkg/2006/07/30/0005.html |
54 | # for a description of the problem. | | 51 | # for a description of the problem. |
55 | # Disable file splitting until pkgsrc has been improved. | | 52 | # Disable file splitting until pkgsrc has been improved. |
56 | pre-build: | | 53 | pre-build: |
57 | ${ECHO} "SplitObjs=NO" > ${WRKSRC}/mk/build.mk | | 54 | ${ECHO} "SplitObjs=NO" > ${WRKSRC}/mk/build.mk |
58 | | | 55 | |
59 | # uses the UNDO_ constants | | 56 | # uses the UNDO_ constants |
60 | .include "../../devel/readline/buildlink3.mk" | | 57 | .include "../../devel/readline/buildlink3.mk" |
61 | .include "../../devel/gmp/buildlink3.mk" | | 58 | .include "../../devel/gmp/buildlink3.mk" |
62 | .include "../../mk/pthread.buildlink3.mk" | | 59 | .include "../../mk/pthread.buildlink3.mk" |
63 | .include "../../mk/bsd.pkg.mk" | | 60 | .include "../../mk/bsd.pkg.mk" |