51 lines
1.8 KiB
Makefile
51 lines
1.8 KiB
Makefile
# $NetBSD: Makefile,v 1.33 2006/11/12 21:58:38 kristerw Exp $
|
|
|
|
DISTNAME= ghc-6.4.2
|
|
PKGREVISION= 3
|
|
CATEGORIES= lang
|
|
MASTER_SITES= http://www.haskell.org/ghc/dist/6.4.2/
|
|
DISTFILES= ghc-6.4.2-src.tar.bz2 \
|
|
ghc-6.4.2-i386-unknown-netbsd-hc.tar.gz
|
|
|
|
MAINTAINER= kristerw@NetBSD.org
|
|
HOMEPAGE= http://www.haskell.org/ghc/
|
|
COMMENT= Compiler for the functional language Haskell
|
|
|
|
SITES.ghc-6.4.2-i386-unknown-netbsd-hc.tar.gz=${MASTER_SITE_LOCAL}
|
|
|
|
ONLY_FOR_PLATFORM= FreeBSD-*-i386 NetBSD-*-i386
|
|
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS+= --with-ghc=${WRKDIR}/ghc-boot/ghc/compiler/ghc-inplace
|
|
CONFIGURE_ENV+= PerlCmd=${PERL5:Q}
|
|
USE_GNU_READLINE= yes # uses the UNDO_ constants
|
|
USE_TOOLS+= gmake perl:run
|
|
|
|
SUBST_CLASSES+= add_paths
|
|
SUBST_STAGE.add_paths= post-patch
|
|
SUBST_FILES.add_paths= mk/bootstrap.mk
|
|
SUBST_FILES.add_paths+= ghc/rts/package.conf.in
|
|
SUBST_FILES.add_paths+= libraries/readline/package.conf.in
|
|
SUBST_SED.add_paths= -e 's,@PREFIX@,${PREFIX},g'
|
|
|
|
pre-configure:
|
|
${MKDIR} ${WRKDIR}/ghc-boot \
|
|
&& cd ${WRKSRC} && ${PAX} -rw . ${WRKDIR}/ghc-boot
|
|
cd ${WRKDIR}/ghc-boot && \
|
|
./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
|
|
# unused parts. This does however not play nice with the pkgsrc
|
|
# 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.
|
|
# Disable file splitting until pkgsrc has been improved.
|
|
pre-build:
|
|
${ECHO} "SplitObjs=NO" > ${WRKSRC}/mk/build.mk
|
|
|
|
.include "../../devel/readline/buildlink3.mk"
|
|
.include "../../devel/gmp/buildlink3.mk"
|
|
.include "../../mk/pthread.buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|