mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-20 04:02:27 +00:00
8eb9c488e7
PR: ports/19936 Submitted by: Simon Marlow <simonmar@microsoft.com> (maintainer)
48 lines
1.7 KiB
Makefile
48 lines
1.7 KiB
Makefile
# New ports collection makefile for: ghc
|
|
# Date created: 28 August 1999
|
|
# Whom: Simon Marlow <simonmar@microsoft.com>
|
|
#
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= ghc
|
|
PORTVERSION= 4.08
|
|
CATEGORIES= lang
|
|
MASTER_SITES= http://www.haskell.org/ghc/dist/4.08/
|
|
DISTFILES= ghc-${PORTVERSION}-src${EXTRACT_SUFX} \
|
|
ghc-${PORTVERSION}-x86-hc${EXTRACT_SUFX}
|
|
|
|
MAINTAINER= simonmar@microsoft.com
|
|
|
|
USE_PERL5= yes
|
|
USE_GMAKE= yes
|
|
GNU_CONFIGURE= yes
|
|
|
|
CONFIGURE_ARGS= --enable-hc-boot --libdir=${PREFIX}/lib/ghc
|
|
# specifying CONFIGURE_TARGET doesn't work for some reason.
|
|
CONFIGURE_TARGET=
|
|
|
|
WRKSRC= ${WRKDIR}/fptools
|
|
|
|
# Note:
|
|
# - This port will bootstrap from pre-compiled C files.
|
|
# - ToDo: bootstrap using existing compiler, if one is installed.
|
|
|
|
# XXX: we touch the happy-generated files to ensure that when we
|
|
# switch to non-bootstrapping mode for installation, the build system
|
|
# won't try to create them.
|
|
#
|
|
pre-build:
|
|
@${CP} ${FILESDIR}/build.mk ${WRKSRC}/mk
|
|
@${TOUCH} ${TOUCH_FLAGS} ${WRKSRC}/ghc/compiler/rename/ParseIface.hs
|
|
@${TOUCH} ${TOUCH_FLAGS} ${WRKSRC}/ghc/compiler/parser/Parser.hs
|
|
@(cd ${WRKSRC}/glafp-utils; ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} boot)
|
|
@(cd ${WRKSRC}/ghc; ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} boot)
|
|
@(cd ${WRKSRC}/hslibs; ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} boot)
|
|
|
|
post-build:
|
|
@echo "GhcWithHscBuiltViaC=NO" >>${WRKSRC}/mk/build.mk
|
|
@(cd ${WRKSRC}/ghc/lib; ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} clean boot all)
|
|
@(cd ${WRKSRC}/hslibs; ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} clean boot all)
|
|
|
|
.include <bsd.port.mk>
|