1999-11-10 17:25:29 +00:00
|
|
|
# New ports collection makefile for: ghc
|
|
|
|
# Date created: 28 August 1999
|
|
|
|
# Whom: Simon Marlow <simonmar@microsoft.com>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
|
2000-04-12 06:21:15 +00:00
|
|
|
PORTNAME= ghc
|
2000-08-12 19:13:06 +00:00
|
|
|
PORTVERSION= 4.08
|
1999-11-10 17:25:29 +00:00
|
|
|
CATEGORIES= lang
|
2000-08-12 19:13:06 +00:00
|
|
|
MASTER_SITES= http://www.haskell.org/ghc/dist/4.08/
|
|
|
|
DISTFILES= ghc-${PORTVERSION}-src${EXTRACT_SUFX} \
|
|
|
|
ghc-${PORTVERSION}-x86-hc${EXTRACT_SUFX}
|
1999-11-10 17:25:29 +00:00
|
|
|
|
|
|
|
MAINTAINER= simonmar@microsoft.com
|
|
|
|
|
|
|
|
USE_PERL5= yes
|
|
|
|
USE_GMAKE= yes
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
|
|
|
|
CONFIGURE_ARGS= --enable-hc-boot --libdir=${PREFIX}/lib/ghc
|
2000-03-04 13:50:17 +00:00
|
|
|
# specifying CONFIGURE_TARGET doesn't work for some reason.
|
|
|
|
CONFIGURE_TARGET=
|
1999-11-10 17:25:29 +00:00
|
|
|
|
|
|
|
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
|
2000-03-04 13:50:17 +00:00
|
|
|
@(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)
|
1999-11-10 17:25:29 +00:00
|
|
|
|
|
|
|
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)
|
2000-03-04 13:50:17 +00:00
|
|
|
@(cd ${WRKSRC}/hslibs; ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} clean boot all)
|
1999-11-10 17:25:29 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|