Fri Dec 6 06:20:00 2013 UTC ()
After all the Sturm und Drang, it turns out the only thing needed for
DESTDIR support in ghc is to turn it on. Sigh.

Remove BROKEN.


(dholland)
diff -r1.51 -r1.52 pkgsrc/lang/ghc/Makefile

cvs diff -r1.51 -r1.52 pkgsrc/lang/ghc/Makefile (switch to unified diff)

--- pkgsrc/lang/ghc/Makefile 2013/10/24 10:31:02 1.51
+++ pkgsrc/lang/ghc/Makefile 2013/12/06 06:20:00 1.52
@@ -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
3DISTNAME= ghc-6.8.3 3DISTNAME= ghc-6.8.3
4PKGREVISION= 4 4PKGREVISION= 4
5CATEGORIES= lang 5CATEGORIES= lang
6MASTER_SITES= http://www.haskell.org/ghc/dist/6.8.3/ 6MASTER_SITES= http://www.haskell.org/ghc/dist/6.8.3/
7DISTFILES= ghc-6.8.3-src.tar.bz2 \ 7DISTFILES= 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
12OWNER= kristerw@NetBSD.org 12OWNER= kristerw@NetBSD.org
13HOMEPAGE= http://www.haskell.org/ghc/ 13HOMEPAGE= http://www.haskell.org/ghc/
14COMMENT= Compiler for the functional language Haskell 14COMMENT= Compiler for the functional language Haskell
15 15
16SITES.ghc-6.4.2-src.tar.bz2=http://www.haskell.org/ghc/dist/6.4.2/ 16SITES.ghc-6.4.2-src.tar.bz2=http://www.haskell.org/ghc/dist/6.4.2/
17SITES.ghc-6.4.2-i386-unknown-netbsd-hc.tar.gz=${MASTER_SITE_LOCAL} 17SITES.ghc-6.4.2-i386-unknown-netbsd-hc.tar.gz=${MASTER_SITE_LOCAL}
18 18
19ONLY_FOR_PLATFORM= Darwin-*-i386 FreeBSD-*-i386 NetBSD-*-i386 OpenBSD-*-i386 SunOS-*-i386 19ONLY_FOR_PLATFORM= Darwin-*-i386 FreeBSD-*-i386 NetBSD-*-i386 OpenBSD-*-i386 SunOS-*-i386
20 20
21PKG_DESTDIR_SUPPORT= none 
22BROKEN= Does not support DESTDIR; will be removed after 2013Q4 
23 
24CHECK_PORTABILITY_SKIP= distrib/prep-bin-dist-mingw 21CHECK_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.
27CHECK_PORTABILITY_SKIP+= libraries/base/cbits/ubconfc 24CHECK_PORTABILITY_SKIP+= libraries/base/cbits/ubconfc
28 25
29GNU_CONFIGURE= yes 26GNU_CONFIGURE= yes
30CONFIGURE_ARGS+= --with-ghc=${WRKDIR}/ghc-6.4.2/ghc/compiler/ghc-inplace 27CONFIGURE_ARGS+= --with-ghc=${WRKDIR}/ghc-6.4.2/ghc/compiler/ghc-inplace
31CONFIGURE_ENV+= PerlCmd=${PERL5:Q} 28CONFIGURE_ENV+= PerlCmd=${PERL5:Q}
32USE_TOOLS+= gmake perl:run 29USE_TOOLS+= gmake perl:run
33 30
34SUBST_CLASSES+= prefix 31SUBST_CLASSES+= prefix
35SUBST_STAGE.prefix= post-patch 32SUBST_STAGE.prefix= post-patch
36SUBST_FILES.prefix+= ../ghc-6.4.2/mk/bootstrap.mk 33SUBST_FILES.prefix+= ../ghc-6.4.2/mk/bootstrap.mk
37SUBST_FILES.prefix+= ../ghc-6.4.2/ghc/rts/package.conf.in 34SUBST_FILES.prefix+= ../ghc-6.4.2/ghc/rts/package.conf.in
38SUBST_FILES.prefix+= ../ghc-6.4.2/libraries/readline/package.conf.in 35SUBST_FILES.prefix+= ../ghc-6.4.2/libraries/readline/package.conf.in
39SUBST_FILES.prefix+= libraries/readline/configure 36SUBST_FILES.prefix+= libraries/readline/configure
40SUBST_FILES.prefix+= libraries/readline/readline.cabal 37SUBST_FILES.prefix+= libraries/readline/readline.cabal
41SUBST_FILES.prefix+= rts/package.conf.in 38SUBST_FILES.prefix+= rts/package.conf.in
42SUBST_SED.prefix= -e 's,@PREFIX@,${PREFIX},g' 39SUBST_SED.prefix= -e 's,@PREFIX@,${PREFIX},g'
43 40
44pre-configure: 41pre-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.
56pre-build: 53pre-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"