head	1.22;
access;
symbols
	RELEASE_5_2_1:1.20
	RELEASE_5_2_0:1.20
	RELEASE_4_9_0:1.20
	old_RELEASE_5_1_0:1.18
	old_RELEASE_4_8_0:1.17
	old_RELEASE_5_0_0:1.15
	old_RELEASE_4_7_0:1.14
	old_RELEASE_4_6_2:1.9
	old_RELEASE_4_6_1:1.9
	old_RELEASE_4_6_0:1.9
	old_RELEASE_5_0_DP1:1.8
	old_RELEASE_4_5_0:1.7
	old_RELEASE_4_4_0:1.6
	old_RELEASE_4_3_0:1.6
	old_RELEASE_4_2_0:1.5
	old_RELEASE_4_1_1:1.4
	old_RELEASE_4_1_0:1.3
	old_RELEASE_3_5_0:1.3
	old_RELEASE_4_0_0:1.2
	old_RELEASE_3_4_0:1.1.1.1
	old_v4_04:1.1.1.1
	old_VIDRINE:1.1.1;
locks; strict;
comment	@# @;


1.22
date	2004.01.15.22.56.10;	author obraun;	state dead;
branches;
next	1.21;

1.21
date	2004.01.15.10.22.09;	author obraun;	state Exp;
branches;
next	1.20;

1.20
date	2003.08.01.18.37.31;	author obraun;	state Exp;
branches;
next	1.19;

1.19
date	2003.06.11.16.03.36;	author obraun;	state Exp;
branches;
next	1.18;

1.18
date	2003.03.27.22.55.09;	author obraun;	state Exp;
branches;
next	1.17;

1.17
date	2003.02.21.12.35.02;	author knu;	state Exp;
branches;
next	1.16;

1.16
date	2003.01.01.17.24.59;	author obraun;	state Exp;
branches;
next	1.15;

1.15
date	2002.11.20.09.10.55;	author obraun;	state Exp;
branches;
next	1.14;

1.14
date	2002.09.17.20.09.56;	author obraun;	state Exp;
branches;
next	1.13;

1.13
date	2002.08.22.12.53.38;	author obraun;	state Exp;
branches;
next	1.12;

1.12
date	2002.07.23.01.18.29;	author naddy;	state Exp;
branches;
next	1.11;

1.11
date	2002.07.21.16.57.23;	author olgeni;	state Exp;
branches;
next	1.10;

1.10
date	2002.07.21.14.10.56;	author olgeni;	state Exp;
branches;
next	1.9;

1.9
date	2002.05.08.16.41.23;	author dwcjr;	state Exp;
branches;
next	1.8;

1.8
date	2002.01.31.11.09.00;	author olgeni;	state Exp;
branches;
next	1.7;

1.7
date	2002.01.07.14.39.00;	author olgeni;	state Exp;
branches;
next	1.6;

1.6
date	2001.02.26.04.39.59;	author steve;	state Exp;
branches;
next	1.5;

1.5
date	2000.10.13.20.17.44;	author ade;	state Exp;
branches;
next	1.4;

1.4
date	2000.08.12.19.13.05;	author nbm;	state Exp;
branches;
next	1.3;

1.3
date	2000.04.12.06.18.41;	author obrien;	state Exp;
branches;
next	1.2;

1.2
date	2000.03.04.13.50.13;	author jedgar;	state Exp;
branches;
next	1.1;

1.1
date	99.11.10.17.25.28;	author nectar;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	99.11.10.17.25.28;	author nectar;	state Exp;
branches;
next	;


desc
@@


1.22
log
@* Upgrade lang/ghc to 6.2.
* Welcome lang/ghc5 after repocopy from lang/ghc.
* Say goodbye to lang/ghc6.
* Fix dependency of devel/hs-tclhaskell-ghc and devel/hs-uni.

Approved by:	portmgr (marcus), maintainer
Repocopy by:	joe
@
text
@# New ports collection makefile for:	ghc
# Date created:				28 August 1999
# Whom:					Simon Marlow <simonmar@@microsoft.com>
#
# $FreeBSD: ports/lang/ghc6/Makefile,v 1.21 2004/01/15 10:22:09 obraun Exp $

PORTNAME=	ghc6
PORTVERSION=	6.2
CATEGORIES=	lang haskell
MASTER_SITES=	http://www.haskell.org/ghc/dist/${PORTVERSION}/:source \
		http://www.haskell.org/ghc/dist/${PORTVERSION}/FreeBSD/:boot

ONLY_FOR_ARCHS=	i386

SRC_DIST=	ghc-${PORTVERSION}-src${EXTRACT_SUFX}:source
BOOT_DIST=	ghc-${PORTVERSION}-i386-unknown-freebsd-boot${EXTRACT_SUFX}:boot
BOOT_DIST5=	ghc-${PORTVERSION}-i386-unknown-freebsd5-boot${EXTRACT_SUFX}:boot

USE_BZIP2=	yes
.include <bsd.port.pre.mk>

DISTFILES=	${SRC_DIST}

.if ${OSVERSION} < 500000
DISTFILES+=	${BOOT_DIST}
.else
DISTFILES+=	${BOOT_DIST5}
.endif

LIB_DEPENDS=	gmp.6:${PORTSDIR}/math/libgmp4

MAINTAINER=	simonmar@@microsoft.com
COMMENT=	A Compiler for the functional language Haskell

WRKSRC=		${WRKDIR}/ghc-${PORTVERSION}
USE_PERL5=	yes
USE_REINPLACE=	yes
USE_GMAKE=	yes
GNU_CONFIGURE=	yes

PLIST_SUB=      GHC_VERSION=${PORTVERSION}
.if defined(WITHOUT_PROFILE)
PLIST_SUB+=	PROFILE="@@comment "
.else
PLIST_SUB+=	PROFILE=""
.endif

# This port builds by downloading a minimal binary distribution of GHC and
# using that to bootstrap.
BOOT_DIR=	${WRKDIR}/ghc-${PORTVERSION}-boot
BOOT_GHC=	${BOOT_DIR}/bin/i386-unknown-freebsd/ghc-${PORTVERSION}

CONFIGURE_ARGS= --with-ghc=${BOOT_GHC} --with-gcc=${CC}
# specifying CONFIGURE_TARGET doesn't work for some reason.
CONFIGURE_TARGET=
# libgmp:
CONFIGURE_ENV+=	CFLAGS=-I${LOCALBASE}/include LDFLAGS=-L${LOCALBASE}/lib

# override TMPDIR because /tmp often doesn't have enough space
# to build some of the larger libraries.
TMPDIR = ${WRKSRC}/tmp
MAKE_ENV += TMPDIR=${TMPDIR}

# Just do a stage1 build
ALL_TARGET = stage1
MAKE_ENV += stage=1

pre-everything::
.if !defined(WITHOUT_PROFILE)
	@@${ECHO_CMD} "To build GHC without profiling libraries,"
	@@${ECHO_CMD} "hit Ctrl-C now and restart with 'make"
	@@$(ECHO_CMD) "WITHOUT_PROFILE=YES'."
.else
	@@${ECHO_CMD} "Building GHC without profiling libraries."
.endif

.if defined(WITHOUT_PROFILE)
post-extract:
	@@${ECHO} >>${WRKSRC}/mk/build.mk GhcLibWays=
.endif

post-patch:
	@@${REINPLACE_CMD} s+%%LOCALBASE%%+${LOCALBASE}+ \
		${WRKSRC}/ghc/rts/package.conf.in

pre-configure:
	@@(cd ${BOOT_DIR} && ${CONFIGURE_ENV} ./${CONFIGURE_SCRIPT} ${CONFIGURE_ARGS})
	@@(cd ${BOOT_DIR} && ${MAKE} in-place)

pre-build:
	@@${MKDIR} ${TMPDIR}

.include <bsd.port.post.mk>
@


1.21
log
@* Upgrade to 6.2.
* Use math/libgmp4 instead of included gmp.

Reviewed by:	Volker Stolz <stolz@@i2.informatik.rwth-aachen.de>
Approved by:	maintainer
@
text
@d5 1
a5 1
# $FreeBSD$
@


1.20
log
@Upgrade to 6.0.1.

Approved by:	maintainer
@
text
@d8 1
a8 1
PORTVERSION=	6.0.1
d30 2
d37 1
d53 1
a53 1
CONFIGURE_ARGS= --with-ghc=${BOOT_GHC}
d56 2
d81 4
@


1.19
log
@Upgrade after repo-copy from ports/lang/ghc to 6.0.

Submitted by:	maintainer
Approved by:	portmgr (marcus)
Repo-copy by:	joe
@
text
@d8 1
a8 1
PORTVERSION=	6.0
@


1.18
log
@Upgrade to 5.04.3.

PR:		ports/50354
Submitted by:	maintainer
@
text
@d7 2
a8 2
PORTNAME=	ghc
PORTVERSION=	5.04.3
d33 1
d59 4
a76 9
post-patch:
	@@${PERL} -pi -e 's/DrIFT/DrIFT-ghc/g; \
		s/DtdToHaskell/DtdToHaskell-ghc/g; \
		s/Xtract/Xtract-ghc/g' \
			${WRKSRC}/ghc/mk/config.mk \
			${WRKSRC}/hslibs/tools/DrIFT/Makefile \
			${WRKSRC}/hslibs/tools/DtdToHaskell/Makefile \
			${WRKSRC}/hslibs/tools/Xtract/Makefile

a82 3

post-install:
	@@${CAT} ${PKGMESSAGE}
@


1.17
log
@De-pkg-comment.
@
text
@d8 1
a8 1
PORTVERSION=	5.04.2
@


1.16
log
@Upgrade to 5.04.2.

PR:		ports/46230
Submitted by:	maintainer
@
text
@d31 1
@


1.15
log
@Add the new virtual category haskell.
@
text
@d8 1
a8 1
PORTVERSION=	5.04.1
d10 2
a11 1
MASTER_SITES=	http://www.haskell.org/ghc/dist/${PORTVERSION}/
d15 3
a17 3
SRC_DIST=	ghc-${PORTVERSION}-src${EXTRACT_SUFX} 
BOOT_DIST=	ghc-${PORTVERSION}-i386-unknown-freebsd-boot${EXTRACT_SUFX}
BOOT_DIST5=	ghc-${PORTVERSION}-i386-unknown-freebsd5-boot${EXTRACT_SUFX}
@


1.14
log
@Upgrade to 5.04.1.

Note: This does *NOT* work on -current. The bootstrap tarball for -current is
      still missing. I am working on it. However I wanted to make this new
      version available on 4.7-R.

Submitted by:	maintainer
@
text
@d9 1
a9 1
CATEGORIES=	lang
@


1.13
log
@* Install three binaries with prefix "-ghc" to avoid problems with
  textproc/haxml and devel/drift. (1)
* Add WITHOUT_PROFILE knob to install without profiling libraries. (2)
* Bump PORTREVISION.

PR:		ports/41051 (1), ports/41231 (2)
Submitted by:	Volker Stolz <vs@@lambda.foldr.org> (2)
Approved by:	maintainer, dwcjr (mentor)
@
text
@d8 1
a8 2
PORTVERSION=	5.04
PORTREVISION=	2
@


1.12
log
@* All the world's an i386...
* Remove empty patch file.
@
text
@d9 1
a9 1
PORTREVISION=	1
d37 5
d57 23
d86 3
@


1.11
log
@I forgot to add 2 new patchfiles :(
@
text
@d13 2
@


1.10
log
@Update port to version 5.04.

PR:		40779
Submitted by:	Simon Marlow <simon@@smarlow.com>
Reviewed by:	Oliver Braun <obraun@@informatik.unibw-muenchen.de>
@
text
@d9 1
@


1.9
log
@Fix for -current

PR:		36803
Submitted by:	maintainer
@
text
@d8 1
a8 1
PORTVERSION=	5.02.2
d12 1
a12 1
SRC_DIST=	ghc-${PORTVERSION}-src-1${EXTRACT_SUFX} 
@


1.8
log
@Update port to version 5.02.2 and remove dependency on devel/happy from the
configuration script.

PR:		34349
Submitted by:	Simon Marlow <simon@@smarlow.com>
@
text
@d14 1
d16 10
a25 1
DISTFILES=	${SRC_DIST} ${BOOT_DIST}
a28 1
USE_BZIP2=	yes
d56 1
a56 1
.include <bsd.port.mk>
@


1.7
log
@Update port to version 5.02.1

PR:		32001
Submitted by:	Simon Marlow <simon@@smarlow.com>
@
text
@d8 1
a8 1
PORTVERSION=	5.02.1
@


1.6
log
@Update to version 4.08.2.

PR:		24934
Submitted by:	Simon Marlow <simonmar@@microsoft.com>
@
text
@d5 1
a5 1
# $FreeBSD: ports/lang/ghc/Makefile,v 1.5 2000/10/13 20:17:44 ade Exp $
d8 1
a8 1
PORTVERSION=	4.08.2
d11 5
a15 2
DISTFILES=	ghc-${PORTVERSION}-src${EXTRACT_SUFX} \
		ghc-${PORTVERSION}-x86-hc${EXTRACT_SUFX}
d24 8
a31 1
CONFIGURE_ARGS= --enable-hc-boot --libdir=${PREFIX}/lib/ghc
d40 3
d44 1
a44 11
# 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.
#
BOOT_COOKIE = ${WRKDIR}/.boot_done

${BOOT_COOKIE}:
a45 25
	@@${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)
	@@${TOUCH} ${TOUCH_FLAGS} ${BOOT_COOKIE}

pre-build: ${BOOT_COOKIE}

# After building the compiler, we go back and build the libraries from
# source using the compiler we just built.  We also build profiling
# versions of the libraries at this point.

REAL_LIBS_COOKIE = ${WRKDIR}/.real_libs_done

${REAL_LIBS_COOKIE}:
	@@echo "GhcWithHscBuiltViaC=NO" >>${WRKSRC}/mk/build.mk
	@@echo "GhcLibWays=p" >>${WRKSRC}/mk/build.mk
	@@(cd ${WRKSRC}/ghc/rts; ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} clean boot all)
	@@(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)
	@@${TOUCH} ${TOUCH_FLAGS} ${REAL_LIBS_COOKIE}

post-build: ${REAL_LIBS_COOKIE}
@


1.5
log
@Update to 4.08.1

PR:		21502
Submitted by:	maintainer
@
text
@d5 1
a5 1
# $FreeBSD: ports/lang/ghc/Makefile,v 1.4 2000/08/12 19:13:05 nbm Exp $
d8 1
a8 1
PORTVERSION=	4.08.1
d10 1
a10 1
MASTER_SITES=	http://www.haskell.org/ghc/dist/4.08.1/
d16 1
a23 2

WRKSRC=		${WRKDIR}/fptools
@


1.4
log
@Update to 4.08

PR:		ports/19936
Submitted by:	Simon Marlow <simonmar@@microsoft.com> (maintainer)
@
text
@d5 1
a5 1
# $FreeBSD: ports/lang/ghc/Makefile,v 1.3 2000/04/12 06:18:41 obrien Exp $
d8 1
a8 1
PORTVERSION=	4.08
d10 1
a10 1
MASTER_SITES=	http://www.haskell.org/ghc/dist/4.08/
d26 6
d40 4
a43 1
pre-build:
d50 3
d54 7
a60 1
post-build:
d62 2
d66 3
@


1.3
log
@Convert to the PORTNAME - PORTVERSION syntax.
@
text
@d5 1
a5 1
# $FreeBSD: ports/lang/ghc/Makefile,v 1.2 2000/03/04 13:50:13 jedgar Exp $
d8 1
a8 1
PORTVERSION=	4.06
d10 3
a12 2
MASTER_SITES=	http://www.haskell.org/ghc/dist/4.06/
DISTFILES=	ghc-4.06-src${EXTRACT_SUFX} ghc-4.06-x86-hc${EXTRACT_SUFX}
@


1.2
log
@Update port to 4.06

PR:		17115
Submitted by:	Maintainer
@
text
@a1 1
# Version required:			4.06
d5 1
a5 1
# $FreeBSD: ports/lang/ghc/Makefile,v 1.1.1.1 1999/11/10 17:25:28 nectar Exp $
d7 2
a8 1
DISTNAME=	ghc-4.06
@


1.1
log
@Initial revision
@
text
@d2 1
a2 1
# Version required:			4.04
d6 1
a6 1
# $FreeBSD$
d8 1
a8 1
DISTNAME=	ghc-4.04
d10 2
a11 2
MASTER_SITES=	http://www.haskell.org/ghc/dist/4.04/
DISTFILES=	ghc-4.04-src${EXTRACT_SUFX} ghc-4.04-x86-hc${EXTRACT_SUFX}
d20 2
d37 3
a39 1
	@@(cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} boot)
d44 1
@


1.1.1.1
log
@GHC: The Glasgow Haskell Compiler.

The Glasgow Haskell Compiler is a robust, fully-featured, optimising
compiler for the functional programming language Haskell 98
(http://www.haskell.org). GHC compiles Haskell to either native code
or C. It implements numerous experimental language extensions to
Haskell, including concurrency, a foreign language interface, several
type-system extensions, exceptions, and so on. GHC comes with a
generational garbage collector, a space and time profiler, and a
comprehensive set of libraries.

PR:		ports/13786
Submitted by:	Simon Marlow <simonm@@dcs.gla.ac.uk>
@
text
@@
