head	1.103;
access;
symbols
	RELEASE_8_3_0:1.95
	RELEASE_9_0_0:1.93
	RELEASE_7_4_0:1.88
	RELEASE_8_2_0:1.88
	RELEASE_6_EOL:1.87
	RELEASE_8_1_0:1.85
	RELEASE_7_3_0:1.82
	RELEASE_8_0_0:1.80
	RELEASE_7_2_0:1.74
	RELEASE_7_1_0:1.71
	RELEASE_6_4_0:1.71
	RELEASE_5_EOL:1.68
	RELEASE_7_0_0:1.55
	RELEASE_6_3_0:1.55
	PRE_XORG_7:1.48
	RELEASE_4_EOL:1.47
	RELEASE_6_2_0:1.45
	RELEASE_6_1_0:1.37
	RELEASE_5_5_0:1.37
	RELEASE_6_0_0:1.32
	RELEASE_5_4_0:1.30
	RELEASE_4_11_0:1.27
	RELEASE_5_3_0:1.26
	RELEASE_4_10_0:1.23
	RELEASE_5_2_1:1.18
	RELEASE_5_2_0:1.18
	RELEASE_4_9_0:1.18
	RELEASE_5_1_0:1.18
	RELEASE_4_8_0:1.17
	RELEASE_5_0_0:1.15
	RELEASE_4_7_0:1.14
	RELEASE_4_6_2:1.9
	RELEASE_4_6_1:1.9
	RELEASE_4_6_0:1.9
	RELEASE_5_0_DP1:1.8
	RELEASE_4_5_0:1.7
	RELEASE_4_4_0:1.6
	RELEASE_4_3_0:1.6
	RELEASE_4_2_0:1.5
	RELEASE_4_1_1:1.4
	RELEASE_4_1_0:1.3
	RELEASE_3_5_0:1.3
	RELEASE_4_0_0:1.2
	RELEASE_3_4_0:1.1.1.1
	v4_04:1.1.1.1
	VIDRINE:1.1.1;
locks; strict;
comment	@# @;


1.103
date	2013.02.05.22.47.11;	author svnexp;	state Exp;
branches;
next	1.102;

1.102
date	2013.01.22.11.46.17;	author svnexp;	state Exp;
branches;
next	1.101;

1.101
date	2012.12.28.21.06.08;	author svnexp;	state Exp;
branches;
next	1.100;

1.100
date	2012.12.20.02.32.28;	author svnexp;	state Exp;
branches;
next	1.99;

1.99
date	2012.11.17.05.58.50;	author svnexp;	state Exp;
branches;
next	1.98;

1.98
date	2012.10.09.22.12.13;	author linimon;	state Exp;
branches;
next	1.97;

1.97
date	2012.08.03.02.35.28;	author pgj;	state Exp;
branches;
next	1.96;

1.96
date	2012.06.03.20.52.18;	author pgj;	state Exp;
branches;
next	1.95;

1.95
date	2012.02.13.14.49.11;	author ashish;	state Exp;
branches;
next	1.94;

1.94
date	2012.02.13.03.49.27;	author pgj;	state Exp;
branches;
next	1.93;

1.93
date	2011.09.23.22.23.43;	author amdmi3;	state Exp;
branches;
next	1.92;

1.92
date	2011.08.24.13.17.35;	author pgj;	state Exp;
branches;
next	1.91;

1.91
date	2011.05.25.18.57.25;	author ashish;	state Exp;
branches;
next	1.90;

1.90
date	2011.05.21.02.08.40;	author ashish;	state Exp;
branches;
next	1.89;

1.89
date	2011.05.09.05.28.46;	author ashish;	state Exp;
branches;
next	1.88;

1.88
date	2010.12.04.07.32.20;	author ade;	state Exp;
branches;
next	1.87;

1.87
date	2010.10.16.11.52.14;	author ade;	state Exp;
branches;
next	1.86;

1.86
date	2010.09.15.18.34.37;	author ade;	state Exp;
branches;
next	1.85;

1.85
date	2010.04.21.19.53.03;	author pgj;	state Exp;
branches;
next	1.84;

1.84
date	2010.04.19.16.22.15;	author itetcu;	state Exp;
branches;
next	1.83;

1.83
date	2010.04.19.10.43.26;	author ale;	state Exp;
branches;
next	1.82;

1.82
date	2009.12.06.20.56.52;	author pgj;	state Exp;
branches;
next	1.81;

1.81
date	2009.11.08.19.40.06;	author pgj;	state Exp;
branches;
next	1.80;

1.80
date	2009.09.02.15.38.40;	author pgj;	state Exp;
branches;
next	1.79;

1.79
date	2009.08.15.16.09.45;	author erwin;	state Exp;
branches;
next	1.78;

1.78
date	2009.06.20.07.22.04;	author pgj;	state Exp;
branches;
next	1.77;

1.77
date	2009.06.18.20.37.30;	author pav;	state Exp;
branches;
next	1.76;

1.76
date	2009.05.13.09.45.52;	author ale;	state Exp;
branches;
next	1.75;

1.75
date	2009.05.12.11.28.16;	author itetcu;	state Exp;
branches;
next	1.74;

1.74
date	2009.03.06.19.31.19;	author pgj;	state Exp;
branches;
next	1.73;

1.73
date	2009.01.05.20.36.30;	author pav;	state Exp;
branches;
next	1.72;

1.72
date	2008.10.26.18.14.28;	author amdmi3;	state Exp;
branches;
next	1.71;

1.71
date	2008.08.20.00.56.51;	author ade;	state Exp;
branches;
next	1.70;

1.70
date	2008.08.15.04.34.09;	author edwin;	state Exp;
branches;
next	1.69;

1.69
date	2008.07.18.20.05.15;	author obraun;	state Exp;
branches;
next	1.68;

1.68
date	2008.05.23.20.32.10;	author obraun;	state Exp;
branches;
next	1.67;

1.67
date	2008.05.04.19.25.37;	author obraun;	state Exp;
branches;
next	1.66;

1.66
date	2008.03.06.17.03.29;	author obraun;	state Exp;
branches;
next	1.65;

1.65
date	2008.03.02.19.27.24;	author obraun;	state Exp;
branches;
next	1.64;

1.64
date	2008.03.01.13.54.33;	author obraun;	state Exp;
branches;
next	1.63;

1.63
date	2008.02.29.21.26.22;	author obraun;	state Exp;
branches;
next	1.62;

1.62
date	2008.02.29.21.15.50;	author obraun;	state Exp;
branches;
next	1.61;

1.61
date	2008.02.22.12.00.59;	author obraun;	state Exp;
branches;
next	1.60;

1.60
date	2008.02.09.18.05.45;	author obraun;	state Exp;
branches;
next	1.59;

1.59
date	2008.01.25.20.15.26;	author erwin;	state Exp;
branches;
next	1.58;

1.58
date	2008.01.04.21.01.07;	author obraun;	state Exp;
branches;
next	1.57;

1.57
date	2007.12.31.10.55.20;	author obraun;	state Exp;
branches;
next	1.56;

1.56
date	2007.12.30.11.37.20;	author obraun;	state Exp;
branches;
next	1.55;

1.55
date	2007.10.04.01.25.16;	author edwin;	state Exp;
branches;
next	1.54;

1.54
date	2007.09.30.03.51.08;	author linimon;	state Exp;
branches;
next	1.53;

1.53
date	2007.09.29.20.57.27;	author linimon;	state Exp;
branches;
next	1.52;

1.52
date	2007.09.17.05.43.54;	author vs;	state Exp;
branches;
next	1.51;

1.51
date	2007.09.08.01.00.15;	author linimon;	state Exp;
branches;
next	1.50;

1.50
date	2007.06.23.10.25.50;	author obraun;	state Exp;
branches;
next	1.49;

1.49
date	2007.05.19.20.13.38;	author flz;	state Exp;
branches;
next	1.48;

1.48
date	2007.02.15.05.13.41;	author vs;	state Exp;
branches;
next	1.47;

1.47
date	2007.01.24.23.55.35;	author obraun;	state Exp;
branches;
next	1.46;

1.46
date	2007.01.22.05.06.44;	author vs;	state Exp;
branches;
next	1.45;

1.45
date	2006.06.23.10.56.50;	author vs;	state Exp;
branches;
next	1.44;

1.44
date	2006.06.13.17.34.59;	author oliver;	state Exp;
branches;
next	1.43;

1.43
date	2006.05.29.08.14.05;	author vs;	state Exp;
branches;
next	1.42;

1.42
date	2006.05.28.09.30.51;	author vs;	state Exp;
branches;
next	1.41;

1.41
date	2006.05.17.07.08.26;	author vs;	state Exp;
branches;
next	1.40;

1.40
date	2006.05.10.14.46.41;	author ale;	state Exp;
branches;
next	1.39;

1.39
date	2006.05.08.09.51.18;	author vs;	state Exp;
branches;
next	1.38;

1.38
date	2006.05.01.11.23.17;	author vs;	state Exp;
branches;
next	1.37;

1.37
date	2006.01.12.12.54.23;	author sem;	state Exp;
branches;
next	1.36;

1.36
date	2006.01.06.09.36.41;	author vs;	state Exp;
branches;
next	1.35;

1.35
date	2005.11.15.06.49.54;	author ade;	state Exp;
branches;
next	1.34;

1.34
date	2005.10.16.20.30.58;	author vs;	state Exp;
branches;
next	1.33;

1.33
date	2005.10.14.12.01.17;	author vs;	state Exp;
branches;
next	1.32;

1.32
date	2005.08.26.05.22.42;	author krion;	state Exp;
branches;
next	1.31;

1.31
date	2005.06.28.06.45.28;	author vs;	state Exp;
branches;
next	1.30;

1.30
date	2005.03.23.08.43.18;	author vs;	state Exp;
branches;
next	1.29;

1.29
date	2005.03.20.21.53.49;	author vs;	state Exp;
branches;
next	1.28;

1.28
date	2005.03.14.17.32.11;	author obraun;	state Exp;
branches;
next	1.27;

1.27
date	2004.10.17.09.24.59;	author obraun;	state Exp;
branches;
next	1.26;

1.26
date	2004.09.18.17.22.26;	author kris;	state Exp;
branches;
next	1.25;

1.25
date	2004.07.26.12.06.06;	author vs;	state Exp;
branches;
next	1.24;

1.24
date	2004.05.11.19.22.25;	author obraun;	state Exp;
branches;
next	1.23;

1.23
date	2004.03.24.09.48.39;	author obraun;	state Exp;
branches;
next	1.22;

1.22
date	2004.02.04.05.21.37;	author marcus;	state Exp;
branches;
next	1.21;

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

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

1.19
date	2003.12.12.16.33.17;	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.103
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/311736
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@# Created by: Simon Marlow <simonmar@@microsoft.com>
# $FreeBSD: head/lang/ghc/Makefile 311736 2013-02-05 22:26:31Z pgj $

PORTNAME=	ghc
PORTVERSION=	7.4.2
PORTREVISION=	1
CATEGORIES=	lang haskell
MASTER_SITES=	http://www.haskell.org/ghc/dist/${PORTVERSION}/:source \
		${MASTER_SITE_LOCAL:S/$/:boot/}
MASTER_SITE_SUBDIR=	pgj/:boot
DISTFILES=	ghc-${PORTVERSION}-src${EXTRACT_SUFX}:source

MAINTAINER=	haskell@@FreeBSD.org
COMMENT=	Compiler for the functional language Haskell

ONLY_FOR_ARCHS=	i386 amd64

GHC_VERSION=		${PORTVERSION}
BOOT_GHC_VERSION=	7.4.1
HSCOLOUR_VERSION=	1.20.2

DATADIR=	${PREFIX}/share/ghc-${GHC_VERSION}
EXAMPLESDIR=	${PREFIX}/share/examples/ghc-${GHC_VERSION}

CONFLICTS=	ghc-6.8.* ghc-6.10.* ghc-6.12.* ghc-7.0.* ghc-7.2.*

USE_BZIP2=	yes
LIB_DEPENDS+=	gmp.10:${PORTSDIR}/math/gmp

USE_AUTOTOOLS=		autoconf autoheader
USE_PERL5_BUILD=	yes
USE_GMAKE=		yes
USE_ICONV=		yes
USE_BINUTILS=		yes
USE_GCC=		4.6+
USE_NCURSES=		yes

LICENSE=	BSD
LICENSE_FILE=	${WRKSRC}/LICENSE

MAKE_JOBS_SAFE=	yes
MAKE_ENV=	LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8

# The configure process accepts,filters and canonicalises
# the CONFIGURE_TARGET variable. You can read the files
# ${WRKSRC}/configure and ${WRKSRC}/config.sub.
# This is better fixed in the ${WRKSRC}/mk/build.mk.
# You can view below.
GNU_CONFIGURE=	yes

OPTIONS_DEFINE=		PROFILE DYNAMIC DOCS
OPTIONS_DEFAULT=	PROFILE DYNAMIC DOCS

BOOT_DESC=		Use installed GHC for bootstrapping
BOOTH_DESC=		Use installed HsColour for bootstrapping
PROFILE_DESC=		Add support for performance profiling
DYNAMIC_DESC=		Add support for dynamic linking
DOCS_DESC=		Install HTML documentation

LOCALBASE?=	/usr/local

.if exists(${LOCALBASE}/bin/ghc)
OPTIONS_DEFINE+=	BOOT
.endif

.if exists(${LOCALBASE}/bin/HsColour)
OPTIONS_DEFINE+=	BOOTH
.endif

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MDYNAMIC}
LIB_DEPENDS+=	ffi.6:${PORTSDIR}/devel/libffi
.endif

.if empty(PORT_OPTIONS:MBOOT)

EXTRA_PATCHES=		${PATCHDIR}/nopatch-.._ghc-${BOOT_GHC_VERSION}-boot_rts_package.conf.in

.if ${ARCH} == "i386"

.if ${OSVERSION} >= 900000
DISTFILES+=	ghc-${BOOT_GHC_VERSION}-i386-freebsd9-boot${EXTRACT_SUFX}:boot
.elif ${OSVERSION} >= 800000
DISTFILES+=	ghc-${BOOT_GHC_VERSION}-i386-freebsd8-boot${EXTRACT_SUFX}:boot
.elif ${OSVERSION} >= 700000
DISTFILES+=	ghc-${BOOT_GHC_VERSION}-i386-freebsd7-boot${EXTRACT_SUFX}:boot
.else
IGNORE=		unsupported
.endif

.elif ${ARCH} == "amd64"

.if ${OSVERSION} >= 900000
DISTFILES+=	ghc-${BOOT_GHC_VERSION}-amd64-freebsd9-boot${EXTRACT_SUFX}:boot
.elif ${OSVERSION} >= 800000
DISTFILES+=	ghc-${BOOT_GHC_VERSION}-amd64-freebsd8-boot${EXTRACT_SUFX}:boot
.elif ${OSVERSION} >= 700000
DISTFILES+=	ghc-${BOOT_GHC_VERSION}-amd64-freebsd7-boot${EXTRACT_SUFX}:boot
.else
IGNORE=		unsupported
.endif

.endif

.endif # MBOOT

DOCSDIR=	${PREFIX}/share/doc/${DISTNAME}
GHC_LIBDIR=	${PREFIX}/lib/ghc-${GHC_VERSION}
GHC_LIBDIR_REL=	lib/ghc-${GHC_VERSION}

PLIST_SUB+=	GHC_VERSION=${GHC_VERSION} GHC_LIBDIR=${GHC_LIBDIR_REL}

HACKAGE_SITE?=		http://hackage.haskell.org/
HACKAGE_ARCH?=		packages/archive/

CONFIGURE_ARGS=		--with-gcc=${CC} \
			--with-ld=${LD} \
			--with-gmp-includes=${LOCALBASE}/include \
			--with-gmp-libraries=${LOCALBASE}/lib \
			--with-iconv-includes=${LOCALBASE}/include \
			--with-iconv-libraries=${LOCALBASE}/lib

.if ${PORT_OPTIONS:MDYNAMIC}
CONFIGURE_ARGS+=	--with-system-libffi \
			--with-ffi-includes=${LOCALBASE}/include \
			--with-ffi-libraries=${LOCALBASE}/lib
.endif

.if empty(PORT_OPTIONS:MBOOT)

BOOT_DIR=	${WRKDIR}/ghc-${BOOT_GHC_VERSION}-boot
BOOT_GHC=	${BOOT_DIR}/bin/ghc-${BOOT_GHC_VERSION}
BOOT_GHC-PKG=	${BOOT_DIR}/bin/ghc-pkg-${BOOT_GHC_VERSION}
BOOT_HSC2HS=	${BOOT_DIR}/bin/hsc2hs

SLAVE_CMD=	${SETENV} PATH=${BOOT_DIR}/bin:${PATH}

CONFIGURE_ARGS_BOOT=	--prefix=${BOOT_DIR} --with-gcc=${CC}
CONFIGURE_ARGS+=	--with-ghc=${BOOT_GHC}

.else # MBOOT

SLAVE_CMD=	# empty

CONFIGURE_ARGS+=	--with-ghc=${LOCALBASE}/bin/ghc

.endif # MBOOT

# libgmp:
LDFLAGS+=	-L${LOCALBASE}/lib
CFLAGS+=	-I${LOCALBASE}/include

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

# Defining with documentation:
# An in place installation and registration of hscolour will be
# activated. In this way it's possible to use it directly into
# the build tree, without needing to install it. At the end
# you could view the output of: ${BOOT_GHC} describe hscolour

.if ${PORT_OPTIONS:MDOCS}

.if empty(PORT_OPTIONS:MBOOTH)

MASTER_SITES+=	${HACKAGE_SITE}${HACKAGE_ARCH}hscolour/${HSCOLOUR_VERSION}/:docs
DISTFILES+=	hscolour-${HSCOLOUR_VERSION}.tar.gz:docs

EXTRACT_ONLY=	${_DISTFILES:C/hscolour.*$//g}

.endif # MBOOTH

MAN1=		ghc.1

.if empty(PORT_OPTIONS:MBOOTH)

SLAVES_PREFIX=		${WRKDIR}/slaves_prefix
SLAVES_WRKDIRPREFIX=	${WRKDIR}/slaves_wrkdirprefix

MAKE_ENV+=	PATH=${SLAVES_PREFIX}/bin:${PATH}
MAKE_ENV+=	LC_ALL=en_US.UTF-8
CONFIGURE_ENV+=	PATH=${SLAVES_PREFIX}/bin:${PATH}

.endif # MBOOTH

BUILD_DEPENDS+=	${LOCALBASE}/share/xsl/docbook/html:${PORTSDIR}/textproc/docbook-xsl \
		${LOCALBASE}/bin/xsltproc:${PORTSDIR}/textproc/libxslt
.endif

post-extract:
	@@${ECHO} >> ${WRKSRC}/mk/build.mk "docdir = ${PREFIX}/share/doc/ghc-${GHC_VERSION}"
	@@${ECHO} >> ${WRKSRC}/mk/build.mk "htmldir = ${PREFIX}/share/doc/ghc-${GHC_VERSION}"
	@@${ECHO} >> ${WRKSRC}/mk/build.mk "mandir = ${PREFIX}/man"
	@@${ECHO} >> ${WRKSRC}/mk/build.mk "infodir = ${PREFIX}/info"
	@@${ECHO} >> ${WRKSRC}/mk/build.mk "GhcLibWays = v"
.if ${PORT_OPTIONS:MPROFILE}
	@@${ECHO} >> ${WRKSRC}/mk/build.mk "GhcLibWays += p"
.endif
.if ${PORT_OPTIONS:MDYNAMIC}
	@@${ECHO} >> ${WRKSRC}/mk/build.mk "GhcLibWays += dyn"
.endif
.if ${PORT_OPTIONS:MDOCS}
	@@${ECHO} >> ${WRKSRC}/mk/build.mk "XMLDocWays = html"
	@@${ECHO} >> ${WRKSRC}/mk/build.mk "HADDOCK_DOCS = YES"
	@@${ECHO} >> ${WRKSRC}/mk/build.mk "HSCOLOUR_SRCS = YES"
.else
	@@${ECHO} >> ${WRKSRC}/mk/build.mk "XMLDocWays ="
	@@${ECHO} >> ${WRKSRC}/mk/build.mk "HADDOCK_DOCS ="
	@@${ECHO} >> ${WRKSRC}/mk/build.mk "HSCOLOUR_SRCS ="
.endif
.if ${PORT_OPTIONS:MBOOT}
	@@${ECHO} >> ${WRKSRC}/mk/build.mk "BSD_PATH_TO_HSC2HS = ${LOCALBASE}/bin/hsc2hs"
.else
	@@${ECHO} >> ${WRKSRC}/mk/build.mk "BSD_PATH_TO_HSC2HS = ${BOOT_HSC2HS}"
.endif
	@@${ECHO} >> ${WRKSRC}/mk/build.mk "SRC_HC_OPTS += -I${NCURSESINC} -L${NCURSESLIB} -I${LOCALBASE}/include -L${LOCALBASE}/lib"
	@@${ECHO} >> ${WRKSRC}/mk/build.mk "SRC_CC_OPTS += ${CFLAGS}"
	@@${ECHO} >> ${WRKSRC}/mk/build.mk "EXTRA_HSC2HS_OPTS += -I${LOCALBASE}/include --lflag=-L${LOCALBASE}/lib"
	@@${ECHO} >> ${WRKSRC}/mk/build.mk "EXTRA_LD_OPTS += -L${LOCALBASE}/lib"
	@@${ECHO} >> ${WRKSRC}/mk/build.mk "EXTRA_CABAL_CONFIGURE_FLAGS += --extra-include-dirs=${LOCALBASE}/include"
	@@${ECHO} >> ${WRKSRC}/mk/build.mk "EXTRA_CABAL_CONFIGURE_FLAGS += --extra-lib-dirs=${LOCALBASE}/lib"
	@@${ECHO} >> ${WRKSRC}/mk/build.mk "libraries/terminfo_CONFIGURE_OPTS += --configure-option=--with-curses-includes=${NCURSESINC} --configure-option=--with-curses-libraries=${NCURSESLIB}"
#	@@${ECHO} >> ${WRKSRC}/mk/build.mk "BIN_DIST_NAME = ghc-\$$(ProjectVersion)-boot"
#	@@${ECHO} >> ${WRKSRC}/mk/build.mk "BIN_DIST_TAR  = ghc-\$$(ProjectVersion)-amd64-ash0-freebsd8-boot.tar"

post-install-script:
	@@${FIND} -ds ${GHC_LIBDIR} -type f -print | ${SED} -E -e \
		'/^${GHC_LIBDIR:C/\//\\\//g}\/package.conf.d\/package\.cache/d' -e \
		's,^${PREFIX}/?,,' >> ${TMPPLIST}
	@@${FIND} -ds ${DOCSDIR} -type f -print | ${SED} -E -e \
		'/^${DOCSDIR:C/\//\\\//g}\/html\/libraries\/doc-index-[^.]+\.html/d' -e \
		'/^${DOCSDIR:C/\//\\\//g}\/html\/libraries\/index[^\/.]*\.html/d' -e \
		'/^${DOCSDIR:C/\//\\\//g}\/html\/libraries\/[^\/]+\.png/d' -e \
		's,^${PREFIX}/?,,' >> ${TMPPLIST}
.if ${PORT_OPTIONS:MDOCS}
	# Cleanup the indexen created by gen_contents_index
	@@${ECHO} "@@unexec ${RM} -f %D/${DOCSDIR_REL}/html/libraries/doc-index-*.html" >> ${TMPPLIST}
	@@${ECHO} "@@unexec ${RM} -f %D/${DOCSDIR_REL}/html/libraries/index*.html" >> ${TMPPLIST}
	@@${ECHO} "@@unexec ${RM} -f %D/${DOCSDIR_REL}/html/libraries/*.png" >> ${TMPPLIST}
.endif
	@@${ECHO} "@@exec %D/bin/ghc-pkg recache" >>${TMPPLIST}
.if ${PORT_OPTIONS:MDOCS}
	@@${ECHO} '@@exec ${SH} -c "cd %D/${DOCSDIR_REL}/html/libraries && ./gen_contents_index"' >> ${TMPPLIST}
.endif
	@@${ECHO} '@@unexec ${RM} -f %D/${GHC_LIBDIR_REL}/package.conf.d/package.cache' >>${TMPPLIST}
	@@${FIND} -ds ${DOCSDIR} -type d -print | ${SED} -E -e \
		's,^${PREFIX}/?,@@dirrm ,' >> ${TMPPLIST}
	@@${FIND} -ds ${GHC_LIBDIR} -type d -print | ${SED} -E -e \
		's,^${PREFIX}/?,@@dirrm ,' >> ${TMPPLIST}

#post-build:
#	@@(cd ${WRKSRC} && ${GMAKE} binary-dist)
#
#do-install:
#	@@${NONE}

post-patch:
# Hack don't to install the internal haddock.
	@@${REINPLACE_CMD} -e 's+\(DO_NOT_INSTALL =\)+\1 haddock+' \
		${WRKSRC}/utils/Makefile

.if ${PORT_OPTIONS:MBOOT}
	@@${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \
		${WRKSRC}/rts/package.conf.in \
		${WRKSRC}/libraries/Makefile
.else
	@@${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \
		${WRKSRC}/../ghc-${BOOT_GHC_VERSION}-boot/rts/package.conf.in \
		${WRKSRC}/rts/package.conf.in \
		${WRKSRC}/libraries/Makefile
.endif

	@@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' \
		${WRKSRC}/configure

pre-configure:
	@@${MKDIR} ${TMPDIR}
.if empty(PORT_OPTIONS:MBOOT)
	@@(cd ${BOOT_DIR} && ${CONFIGURE_ENV} ./${CONFIGURE_SCRIPT} ${CONFIGURE_ARGS_BOOT})
	@@(cd ${BOOT_DIR} && PACKAGES='' ${GMAKE} install)
.endif

# Defining with documentation:
# Defining "SLAVE" in devel/hs-haddock and print/hs-hscolour flips the building process
# functionally to this port.
.if ${PORT_OPTIONS:MDOCS} && empty(PORT_OPTIONS:MBOOTH)
	@@${ECHO_MSG} -e "\a"
	@@${ECHO_MSG} "======================================================================"
	@@${ECHO_MSG} "  WARNING: Now HsColour will be built, the respective port will not   "
	@@${ECHO_MSG} "           be installed, but an in-place installation and             "
	@@${ECHO_MSG} "           registration of both takes place.                          "
	@@${ECHO_MSG} "======================================================================"
	@@${ECHO_MSG} ""
	@@sleep 3

	@@${MKDIR} ${SLAVES_PREFIX}
	@@${MKDIR} ${SLAVES_WRKDIRPREFIX}

	@@(cd ${SLAVES_WRKDIRPREFIX} && \
		${TAR} xvf ${DISTDIR}/hscolour-${HSCOLOUR_VERSION}.tar.gz && \
		cd hscolour-${HSCOLOUR_VERSION} && \
		${SLAVE_CMD} ghc --make -o Setup Setup.hs -package Cabal && \
		${SLAVE_CMD} ./Setup configure --ghc --prefix=${SLAVES_PREFIX} && \
		${SLAVE_CMD} ./Setup build && \
		${SLAVE_CMD} ./Setup install)
.endif

post-install:
	# cabalised hs-foo-ghc ports
	@@${MKDIR} ${GHC_LIBDIR}/cabal
	@@${MKDIR} ${DOCSDIR}/cabal
	@@${MKDIR} ${EXAMPLESDIR}/cabal
	@@${MKDIR} ${DATADIR}/cabal
.if ${PORT_OPTIONS:MDOCS}
	cd ${DOCSDIR}/html/libraries && ./gen_contents_index
.endif
	@@${RM} -f ${PREFIX}/bin/haddock
.if ${PORT_OPTIONS:MDOCS}
	@@${LN} -sf ${PREFIX}/bin/haddock-ghc-${GHC_VERSION} ${PREFIX}/bin/haddock
.endif
	@@${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old

.include <bsd.port.mk>
@


1.102
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/310825
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@d2 1
a2 1
# $FreeBSD: head/lang/ghc/Makefile 310825 2013-01-22 10:52:37Z pgj $
d6 1
d30 1
d41 1
d72 4
d118 1
d124 6
@


1.101
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/309584
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ## r309584 | pgj | 2012-12-28 20:05:44 +0000 (Fri, 28 Dec 2012) | 7 lines
## SVN ##
## SVN ## - Make dependency on base-system ncurses explicit -- this fixes potential
## SVN ##   build errors when devel/ncurses is also installed
## SVN ##
## SVN ## PR:		ports/174703
## SVN ## Reported by:	Finn <bash.org@@gmail.com>
## SVN ## Obtained from:	FreeBSD Haskell
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ##
@
text
@d2 1
a2 1
# $FreeBSD: head/lang/ghc/Makefile 309584 2012-12-28 20:05:44Z pgj $
d13 1
a13 1
COMMENT=	A Compiler for the functional language Haskell
d33 2
a34 1
USE_GCC=		4.6
d125 1
a125 1
CONFIGURE_ARGS_BOOT=	--prefix=${BOOT_DIR} CC=${CC}
d205 1
a205 1
	@@${ECHO} >> ${WRKSRC}/mk/build.mk "SRC_HC_OPTS += -I/usr/include -L/usr/lib -I${LOCALBASE}/include -L${LOCALBASE}/lib"
d211 1
a211 1
	@@${ECHO} >> ${WRKSRC}/mk/build.mk "libraries/terminfo_CONFIGURE_OPTS += --configure-option=--with-curses-includes=/usr/include --configure-option=--with-curses-libraries=/usr/lib"
@


1.100
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/309275
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ## r309275 | pgj | 2012-12-20 02:23:04 +0000 (Thu, 20 Dec 2012) | 270 lines
## SVN ##
## SVN ## - Update The Glorious Glasgow Haskell Compiler to version 7.4.2
## SVN ## - Update Haskell Platform to version 2012.4.0.0
## SVN ## - Update Gtk2Hs to 0.12.4
## SVN ## - Transfer maintainership of math/hs-math-functions to haskell@@ [1]
## SVN ##
## SVN ## Please note that port revisions for all the Haskell ports without version
## SVN ## changes are bumped.
## SVN ##
## SVN ## Some further highlights of the update:
## SVN ## - Trim Makefile headers
## SVN ## - Enable dynamic libraries and dynamic linking by default
## SVN ## - Enable bootstrapping by versions of GHC and HsColour already installed
## SVN ## - Use GCC and binutils from ports
## SVN ##
## SVN ## New ports (32):
## SVN ##
## SVN ## devel/hs-List                            0.5.1
## SVN ## devel/hs-ReadArgs                        1.2.1
## SVN ## devel/hs-SafeSemaphore                   0.9.0
## SVN ## devel/hs-activehs-base                   0.3.0.2
## SVN ## devel/hs-async                           2.0.1.3
## SVN ## devel/hs-basic-prelude                   0.3.1.0
## SVN ## devel/hs-classy-prelude                  0.4.1
## SVN ## devel/hs-classy-prelude-conduit          0.4.1
## SVN ## devel/hs-data-pprint                     0.2.1.4
## SVN ## devel/hs-date-cache                      0.3.0
## SVN ## devel/hs-fsnotify                        0.0.4
## SVN ## devel/hs-hinotify                        0.3.5
## SVN ## devel/hs-hspec-expectations              0.3.0.3
## SVN ## devel/hs-kqueue                          0.1.2.4
## SVN ## devel/hs-monad-logger                    0.2.3
## SVN ## devel/hs-optparse-applicative            0.4.2
## SVN ## devel/hs-project-template                0.1.0.1
## SVN ## devel/hs-setenv                          0.1.0
## SVN ## devel/hs-simple-reflect                  0.2
## SVN ## devel/hs-threads                         0.5.0.1
## SVN ## devel/hs-time-compat                     0.1.0.2
## SVN ## devel/hs-unix-time                       0.1.4
## SVN ## devel/hs-word8                           0.0.2
## SVN ## graphics/hs-dia-base                     0.1.1.2
## SVN ## graphics/hs-dia-functions                0.2.1.3
## SVN ## mail/hs-mime-types                       0.1.0.0
## SVN ## net/hs-network-info                      0.2.0.3
## SVN ## net/hs-network-multicast                 0.0.7
## SVN ## security/hs-cipher-aes                   0.1.5
## SVN ## textproc/hs-hexpat                       0.20.3
## SVN ## www/hs-activehs                          0.3.0.1
## SVN ## www/hs-http-reverse-proxy                0.1.0.6
## SVN ##
## SVN ## Updated ports (211):
## SVN ##
## SVN ## archivers/hs-tar                         0.4.0.0_1        --> 0.4.0.1
## SVN ## archivers/hs-zip-archive                 0.1.1.8_1        --> 0.1.2.1
## SVN ## archivers/hs-zlib                        0.5.3.3_1        --> 0.5.4.0
## SVN ## archivers/hs-zlib-bindings               0.1.0.1_1        --> 0.1.1.2
## SVN ## archivers/hs-zlib-conduit                0.4.0.2          --> 0.5.0.3
## SVN ## archivers/hs-zlib-enum                   0.2.2.1_1        --> 0.2.3
## SVN ## audio/hs-libmpd                          0.8.0_1          --> 0.8.0.1
## SVN ## benchmarks/hs-criterion                  0.6.0.1_2        --> 0.6.2.0
## SVN ## converters/hs-dataenc                    0.14.0.3_2       --> 0.14.0.4
## SVN ## converters/hs-json                       0.5_1            --> 0.7
## SVN ## databases/hs-persistent                  0.9.0.4_1        --> 1.0.2.2
## SVN ## databases/hs-persistent-sqlite           0.9.0.2_1        --> 1.0.1
## SVN ## databases/hs-persistent-template         0.9.0.2_1        --> 1.0.0.2
## SVN ## devel/hs-Boolean                         0.0.1_5          --> 0.1.1
## SVN ## devel/hs-DeepArrow                       0.3.5_2          --> 0.3.7
## SVN ## devel/hs-HUnit                           1.2.4.2_2        --> 1.2.5.1
## SVN ## devel/hs-MemoTrie                        0.5_1            --> 0.6.1
## SVN ## devel/hs-MissingH                        1.1.1.0_2        --> 1.2.0.0
## SVN ## devel/hs-MonadCatchIO-mtl                0.3.0.4_3        --> 0.3.0.5
## SVN ## devel/hs-QuickCheck                      2.4.2_1          --> 2.5.1.1
## SVN ## devel/hs-Stream                          0.4.6_2          --> 0.4.6.1
## SVN ## devel/hs-TypeCompose                     0.9.1_2          --> 0.9.7
## SVN ## devel/hs-abstract-deque                  0.1.5_1          --> 0.1.6
## SVN ## devel/hs-alex                            3.0.1_1          --> 3.0.2
## SVN ## devel/hs-arrows                          0.4.4.0_4        --> 0.4.4.1
## SVN ## devel/hs-asn1-data                       0.6.1.3_1        --> 0.7.1
## SVN ## devel/hs-base-unicode-symbols            0.2.2.3_2        --> 0.2.2.4
## SVN ## devel/hs-base64-bytestring               0.1.2.0          --> 1.0.0.0
## SVN ## devel/hs-blaze-builder-conduit           0.4.0.2_1        --> 0.5.0.3
## SVN ## devel/hs-blaze-builder-enumerator        0.2.0.4_1        --> 0.2.0.5
## SVN ## devel/hs-blaze-textual                   0.2.0.6_2        --> 0.2.0.8
## SVN ## devel/hs-bytestring-nums                 0.3.5_2          --> 0.3.6
## SVN ## devel/hs-c2hs                            0.16.3_3         --> 0.16.4
## SVN ## devel/hs-cmdargs                         0.9.5_1          --> 0.10.1
## SVN ## devel/hs-conduit                         0.4.2_1          --> 0.5.5
## SVN ## devel/hs-configurator                    0.2.0.0_2        --> 0.2.0.1
## SVN ## devel/hs-cpphs                           1.14             --> 1.15
## SVN ## devel/hs-darcs                           2.8.1_1          --> 2.8.3
## SVN ## devel/hs-data-default                    0.4.0_1          --> 0.5.0
## SVN ## devel/hs-directory-tree                  0.10.1           --> 0.11.0
## SVN ## devel/hs-edit-distance                   0.2.1_1          --> 0.2.1.1
## SVN ## devel/hs-fast-logger                     0.0.2_2          --> 0.3.1
## SVN ## devel/hs-file-embed                      0.0.4.4_1        --> 0.0.4.6
## SVN ## devel/hs-filemanip                       0.3.5.2_6        --> 0.3.6.2
## SVN ## devel/hs-filestore                       0.5_1            --> 0.5.0.1
## SVN ## devel/hs-filesystem-conduit              0.4.0_1          --> 0.5.0.2
## SVN ## devel/hs-gconf                           0.12.1_3         --> 0.12.1.1
## SVN ## devel/hs-ghc-events                      0.4.0.0_2        --> 0.4.2.0
## SVN ## devel/hs-ghc-mtl                         1.0.1.1_2        --> 1.0.1.2
## SVN ## devel/hs-gio                             0.12.3_1         --> 0.12.4
## SVN ## devel/hs-git-annex                       3.20120807       --> 3.20121211
## SVN ## devel/hs-glib                            0.12.3.1_1       --> 0.12.4
## SVN ## devel/hs-gtk2hs-buildtools               0.12.3.1_1       --> 0.12.4
## SVN ## devel/hs-haddock                         2.10.0_1         --> 2.11.0
## SVN ## devel/hs-happy                           1.18.9_1         --> 1.18.10
## SVN ## devel/hs-hashable                        1.1.2.3_1        --> 1.1.2.5
## SVN ## devel/hs-hashed-storage                  0.5.9_2          --> 0.5.10
## SVN ## devel/hs-hashtables                      1.0.1.6_1        --> 1.0.1.8
## SVN ## devel/hs-haskell-src-exts                1.13.3_1         --> 1.13.5
## SVN ## devel/hs-hastache                        0.4.1            --> 0.4.2
## SVN ## devel/hs-hint                            0.3.3.4_1        --> 0.3.3.5
## SVN ## devel/hs-hlint                           1.8.30           --> 1.8.39
## SVN ## devel/hs-hoogle                          4.2.11_1         --> 4.2.14
## SVN ## devel/hs-hslogger                        1.1.5_2          --> 1.2.1
## SVN ## devel/hs-hspec                           1.2.0.1          --> 1.4.2
## SVN ## devel/hs-language-javascript             0.5.4_1          --> 0.5.7
## SVN ## devel/hs-largeword                       1.0.1_2          --> 1.0.3
## SVN ## devel/hs-lifted-base                     0.1.1_1          --> 0.2
## SVN ## devel/hs-logict                          0.5.0.1_1        --> 0.5.0.2
## SVN ## devel/hs-monad-control                   0.3.1.3_1        --> 0.3.1.4
## SVN ## devel/hs-mtl                             2.1.1_1          --> 2.1.2
## SVN ## devel/hs-murmur-hash                     0.1.0.5_2        --> 0.1.0.6
## SVN ## devel/hs-parallel                        3.2.0.2_1        --> 3.2.0.3
## SVN ## devel/hs-pool-conduit                    0.1.0.2_1        --> 0.1.0.3
## SVN ## devel/hs-primitive                       0.4.1_2          --> 0.5.0.1
## SVN ## devel/hs-resource-pool                   0.2.1.0_1        --> 0.2.1.1
## SVN ## devel/hs-resourcet                       0.3.3.1          --> 0.4.4
## SVN ## devel/hs-silently                        1.2.0.2          --> 1.2.4
## SVN ## devel/hs-split                           0.1.4.3          --> 0.2.1.1
## SVN ## devel/hs-stm                             2.3_1            --> 2.4
## SVN ## devel/hs-syb                             0.3.6.1_1        --> 0.3.7
## SVN ## devel/hs-syb-with-class                  0.6.1.3_2        --> 0.6.1.4
## SVN ## devel/hs-system-fileio                   0.3.8            --> 0.3.10
## SVN ## devel/hs-system-filepath                 0.4.6_1          --> 0.4.7
## SVN ## devel/hs-tagged                          0.4.2.1_1        --> 0.4.4
## SVN ## devel/hs-temporary                       1.1.2.3_1        --> 1.1.2.4
## SVN ## devel/hs-terminfo                        0.3.2.4          --> 0.3.2.5
## SVN ## devel/hs-test-framework                  0.6_1            --> 0.8
## SVN ## devel/hs-test-framework-hunit            0.2.7_2          --> 0.3.0
## SVN ## devel/hs-test-framework-quickcheck2      0.2.12.2_1       --> 0.3.0.1
## SVN ## devel/hs-text                            0.11.2.0_1       --> 0.11.2.3
## SVN ## devel/hs-threadscope                     0.2.1_3          --> 0.2.2
## SVN ## devel/hs-uniplate                        1.6.7_1          --> 1.6.10
## SVN ## devel/hs-unix-compat                     0.3.0.1_1        --> 0.4.0.0
## SVN ## devel/hs-unordered-containers            0.2.1.0_1        --> 0.2.2.1
## SVN ## devel/hs-uuagc                           0.9.40.3_1       --> 0.9.42.2
## SVN ## devel/hs-uuagc-cabal                     1.0.2.0_2        --> 1.0.4.0
## SVN ## devel/hs-vault                           0.2.0.0_1        --> 0.2.0.1
## SVN ## devel/hs-vector                          0.9.1_2          --> 0.10.0.1
## SVN ## devel/hs-vector-algorithms               0.5.4_1          --> 0.5.4.2
## SVN ## devel/hs-void                            0.5.6            --> 0.5.8
## SVN ## ftp/hs-curl                              1.3.7_3          --> 1.3.8
## SVN ## graphics/hs-cairo                        0.12.3.1_1       --> 0.12.4
## SVN ## lang/hs-unlambda                         0.1_6            --> 0.1.3
## SVN ## mail/hs-email-validate                   0.2.8_1          --> 0.3.2
## SVN ## mail/hs-mime                             0.3.3.2          --> 0.3.4
## SVN ## mail/hs-mime-mail                        0.4.1.1_2        --> 0.4.1.2
## SVN ## math/hs-categories                       1.0.3_1          --> 1.0.4
## SVN ## math/hs-comonad                          1.1.1.6_1        --> 3.0.0.2
## SVN ## math/hs-comonad-transformers             2.1.2            --> 3.0
## SVN ## math/hs-data-lens                        2.10.0_1         --> 2.10.2
## SVN ## math/hs-data-lens-template               2.1.5_1          --> 2.1.7
## SVN ## math/hs-math-functions                   0.1.1.1_2        --> 0.1.1.2 [1]
## SVN ## math/hs-mwc-random                       0.12.0.0_1       --> 0.12.0.1
## SVN ## math/hs-pointed                          2.1.0.2_1        --> 3.0.1
## SVN ## math/hs-semigroupoids                    1.3.4            --> 3.0.0.1
## SVN ## math/hs-semigroups                       0.8.3.2_1        --> 0.8.4.1
## SVN ## math/hs-statistics                       0.10.1.0_1       --> 0.10.2.0
## SVN ## math/hs-vector-space                     0.8.2            --> 0.8.6
## SVN ## multimedia/hs-gstreamer                  0.12.1.1_1       --> 0.12.1.2
## SVN ## net/hs-network                           2.3.0.13_1       --> 2.3.1.0
## SVN ## net/hs-network-conduit                   0.4.0.1_1        --> 0.6.1.1
## SVN ## net/hs-pcap                              0.4.5.1_4        --> 0.4.5.2
## SVN ## net/hs-sendfile                          0.7.6_1          --> 0.7.8
## SVN ## net/hs-simple-sendfile                   0.2.4            --> 0.2.8
## SVN ## net/hs-socks                             0.4.1_1          --> 0.4.2
## SVN ## print/hs-hscolour                        1.20.2,1         --> 1.20.3,1
## SVN ## security/hs-Crypto                       4.2.5_1          --> 4.2.5.1
## SVN ## security/hs-HsOpenSSL                    0.10.3.2         --> 0.10.3.3
## SVN ## security/hs-RSA                          1.2.1.0_1        --> 1.2.2.0
## SVN ## security/hs-SHA                          1.5.0.1_1        --> 1.6.1
## SVN ## security/hs-certificate                  1.2.3_1          --> 1.3.3
## SVN ## security/hs-clientsession                0.7.5_1          --> 0.8.0.1
## SVN ## security/hs-cprng-aes                    0.2.3_2          --> 0.2.4
## SVN ## security/hs-crypto-conduit               0.3.2_1          --> 0.4.1
## SVN ## security/hs-crypto-pubkey-types          0.1.1_1          --> 0.2.0
## SVN ## security/hs-cryptocipher                 0.3.5            --> 0.3.6
## SVN ## security/hs-cryptohash                   0.7.5_1          --> 0.7.9
## SVN ## security/hs-digest                       0.0.1.1_1        --> 0.0.1.2
## SVN ## security/hs-monadcryptorandom            0.4.1_1          --> 0.5
## SVN ## security/hs-pureMD5                      2.1.0.3_2        --> 2.1.2.1
## SVN ## security/hs-pwstore-fast                 2.2_2            --> 2.3
## SVN ## security/hs-skein                        0.1.0.7_1        --> 0.1.0.10
## SVN ## security/hs-tls                          0.9.5_1          --> 1.0.2
## SVN ## security/hs-tls-extra                    0.4.6_1          --> 0.5.0
## SVN ## sysutils/hs-angel                        0.3.2_1          --> 0.3.3
## SVN ## textproc/hs-HStringTemplate              0.6.8_2          --> 0.6.12
## SVN ## textproc/hs-attoparsec-conduit           0.4.0.1_1        --> 0.5.0.3
## SVN ## textproc/hs-attoparsec-enumerator        0.3_2            --> 0.3.1
## SVN ## textproc/hs-blaze-html                   0.5.0.0          --> 0.5.1.1
## SVN ## textproc/hs-blaze-markup                 0.5.1.0_1        --> 0.5.1.2
## SVN ## textproc/hs-case-insensitive             0.4.0.1_2        --> 0.4.0.3
## SVN ## textproc/hs-citeproc-hs                  0.3.4_1          --> 0.3.6
## SVN ## textproc/hs-double-conversion            0.2.0.4_2        --> 0.2.0.5
## SVN ## textproc/hs-highlighting-kate            0.5.1_1          --> 0.5.3.3
## SVN ## textproc/hs-hs-bibutils                  4.12_4           --> 4.15
## SVN ## textproc/hs-html-conduit                 0.0.1_1          --> 0.1.0.4
## SVN ## textproc/hs-hxt                          9.2.2_1          --> 9.3.1.1
## SVN ## textproc/hs-lhs2tex                      1.17_4           --> 1.18.1
## SVN ## textproc/hs-pandoc                       1.9.4.2          --> 1.9.4.5
## SVN ## textproc/hs-parsec                       3.1.2_1          --> 3.1.3
## SVN ## textproc/hs-regex-pcre-builtin           0.94.2.1.7.7_4   --> 0.94.4.3.8.31
## SVN ## textproc/hs-regex-posix                  0.95.1_2         --> 0.95.2
## SVN ## textproc/hs-stringsearch                 0.3.6.3_2        --> 0.3.6.4
## SVN ## textproc/hs-tagsoup                      0.12.6_2         --> 0.12.8
## SVN ## textproc/hs-tagstream-conduit            0.3.2_1          --> 0.5.3
## SVN ## textproc/hs-texmath                      0.6.0.6_1        --> 0.6.1.1
## SVN ## textproc/hs-xml-conduit                  0.7.0.3_1        --> 1.0.3.3
## SVN ## textproc/hs-xml-types                    0.3.2            --> 0.3.3
## SVN ## textproc/hs-xmlhtml                      0.2.0.2          --> 0.2.0.3
## SVN ## textproc/hs-yaml                         0.7.0.3          --> 0.8.1.1
## SVN ## www/hs-HTTP                              4000.2.3_1       --> 4000.2.5
## SVN ## www/hs-authenticate                      1.2.1.1_1        --> 1.3.2
## SVN ## www/hs-cookie                            0.4.0_1          --> 0.4.0.1
## SVN ## www/hs-gitit                             0.10.0.1         --> 0.10.0.2
## SVN ## www/hs-hamlet                            1.0.1.4          --> 1.1.1.1
## SVN ## www/hs-happstack                         7.0.0_1          --> 7.0.1
## SVN ## www/hs-happstack-server                  7.0.3            --> 7.1.1
## SVN ## www/hs-heist                             0.8.1.1          --> 0.8.2
## SVN ## www/hs-hjsmin                            0.1.2_1          --> 0.1.3
## SVN ## www/hs-http-conduit                      1.4.1.10         --> 1.8.4.3
## SVN ## www/hs-http-date                         0.0.2_1          --> 0.0.3
## SVN ## www/hs-http-server                       1_5              --> 1.0.1
## SVN ## www/hs-http-types                        0.6.11_1         --> 0.7.3.0.1
## SVN ## www/hs-path-pieces                       0.1.1_1          --> 0.1.2
## SVN ## www/hs-shakespeare                       1.0.0.2_1        --> 1.0.2
## SVN ## www/hs-shakespeare-css                   1.0.1.2_1        --> 1.0.2
## SVN ## www/hs-shakespeare-js                    1.0.0.3_1        --> 1.1.0
## SVN ## www/hs-shakespeare-text                  1.0.0.2_1        --> 1.0.0.5
## SVN ## www/hs-snap                              0.9.0.1          --> 0.9.2.2
## SVN ## www/hs-snap-core                         0.9.0            --> 0.9.2.2
## SVN ## www/hs-snap-server                       0.9.0            --> 0.9.2.4
## SVN ## www/hs-wai                               1.2.0.3          --> 1.3.0.1
## SVN ## www/hs-wai-app-static                    1.2.0.4          --> 1.3.0.4
## SVN ## www/hs-wai-extra                         1.2.0.5          --> 1.3.0.4
## SVN ## www/hs-wai-logger                        0.1.4_1          --> 0.3.0
## SVN ## www/hs-wai-test                          1.2.0.2_1        --> 1.3.0
## SVN ## www/hs-warp                              1.2.2            --> 1.3.5
## SVN ## www/hs-yesod                             1.0.1.6_1        --> 1.1.4.1
## SVN ## www/hs-yesod-auth                        1.0.2.1_1        --> 1.1.2
## SVN ## www/hs-yesod-core                        1.0.1.2_1        --> 1.1.6.1
## SVN ## www/hs-yesod-default                     1.0.1.1_1        --> 1.1.2
## SVN ## www/hs-yesod-form                        1.0.0.4_1        --> 1.2.0.1
## SVN ## www/hs-yesod-json                        1.0.0.1_1        --> 1.1.2
## SVN ## www/hs-yesod-persistent                  1.0.0.1_1        --> 1.1.0
## SVN ## www/hs-yesod-platform                    1.0.5            --> 1.1.5
## SVN ## www/hs-yesod-routes                      1.0.1.2_1        --> 1.1.1.1
## SVN ## www/hs-yesod-static                      1.0.0.3_1        --> 1.1.1.1
## SVN ## www/hs-yesod-test                        0.2.1            --> 0.3.1.1
## SVN ## x11-toolkits/hs-gtk                      0.12.3.1         --> 0.12.4
## SVN ## x11-toolkits/hs-pango                    0.12.3_1         --> 0.12.4
## SVN ##
## SVN ## Removed ports (1):
## SVN ##
## SVN ## textproc/hs-xml2html                     0.1.2.3_1
## SVN ##
## SVN ## Approved by:	wen (maintainer) [1]
## SVN ## Obtained from:	FreeBSD Haskell
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ##
@
text
@d2 1
a2 1
# $FreeBSD: head/lang/ghc/Makefile 309275 2012-12-20 02:23:04Z pgj $
d204 1
a204 1
	@@${ECHO} >> ${WRKSRC}/mk/build.mk "SRC_HC_OPTS += -I${LOCALBASE}/include -L${LOCALBASE}/lib"
d210 1
@


1.99
log
@Switch exporter over
@
text
@d1 2
a2 5
# New ports collection makefile for:	ghc
# Date created:				28 August 1999
# Whom:					Simon Marlow <simonmar@@microsoft.com>
#
# $FreeBSD: head/lang/ghc/Makefile 305610 2012-10-09 22:12:13Z linimon $
d5 1
a5 1
PORTVERSION=	7.4.1
d17 1
a17 1
GHC_VERSION=	${PORTVERSION}
d19 1
a19 1
HSCOLOUR_VERSION=	1.19
a26 1
USE_GCC=	any
d30 4
a33 2
USE_GMAKE=	yes
USE_ICONV=	yes
d50 2
d56 10
d68 4
d98 2
a105 6
# This port builds by downloading a minimal binary distribution of GHC and
# using that to bootstrap.
BOOT_DIR=	${WRKDIR}/ghc-${BOOT_GHC_VERSION}-boot
BOOT_GHC=	${BOOT_DIR}/bin/ghc-${BOOT_GHC_VERSION}
BOOT_GHC-PKG=	${BOOT_DIR}/bin/ghc-pkg-${BOOT_GHC_VERSION}
BOOT_HSC2HS=	${BOOT_DIR}/bin/hsc2hs
d109 1
a109 2
CONFIGURE_ARGS_BOOT=	--prefix=${BOOT_DIR} CC=${CC}
CONFIGURE_ARGS+=	--with-ghc=${BOOT_GHC} --with-gcc=${CC} \
d115 20
d149 1
d152 2
d159 2
d163 2
a166 1
SLAVE_CMD=	${SETENV} PATH=${BOOT_DIR}/bin:${PATH}
d172 2
d199 3
d203 1
d249 5
d258 1
d265 1
d268 1
d273 1
a273 1
.if ${PORT_OPTIONS:MDOCS}
@


1.98
log
@SVN rev 305610 on 2012-10-09 22:12:13Z by linimon

Force numerous ports that fail to build with clang over to instead always
rely on gcc.  The patch uses the new USE_GCC=any code in Mk/bsd.gcc.mk to
accomplish this.

The ports chosen were ports that blocked 2 or more ports from building with
clang.  (There are several hundred other ports that still fail to build with
clang, even with this patch.  This is merely one step along the way.)

Those interested in fixing these ports with clang, and have clang as their
default compiler, can simply set FORCE_BASE_CC_FOR_TESTING=yes.

For those who have gcc as their default compiler, this change is believed
to cause no change.

Hat:		portmgr
Tested with:	multiple runs on amd64-8-exp-bcm and 9-exp-clang, with various
		combinations of patch/no-patch and flag settings.
@
text
@d5 1
a5 1
# $FreeBSD$
@


1.97
log
@SVN rev 301882 on 2012-08-03 02:35:28Z by pgj

- Use the new options framework

Obtained from:	FreeBSD Haskell
@
text
@d30 1
@


1.96
log
@- Update The Glorious Glasgow Haskell Compiler to version 7.4.1

Please note that port revision for all the Haskell ports without version changes
are also bumped.  Other per-port updates are coming soon (in separate commits)!
In addition to that, separate -docs ports are no longer needed so they are
now removed.

Thanks ashish@@ for the assistance.

Obtained from:	FreeBSD Haskell
@
text
@d48 6
a53 8
.if !defined(NOPORTDOCS)
OPTIONS=	PROFILE "Compile for profiling as well" on \
		DYNAMIC	"Compile for dynamic linking support"	on \
		DOCS "Install HTML documentation" on
.else
OPTIONS=	PROFILE "Compile for profiling as well" on \
		DYNAMIC	"Compile for dynamic linking support"	on
.endif
a55 5
.include <bsd.port.pre.mk>

.if defined(WITHOUT_DOCS)
NOPORTDOCS=
.endif
d114 1
a114 1
# Defining WITH_DOCS:
d119 1
a119 1
.if defined(WITH_DOCS)
d146 1
a146 1
.if !defined(WITHOUT_PROFILE)
d149 1
a149 1
.if !defined(WITHOUT_DYNAMIC)
d152 1
a152 1
.if defined(WITH_DOCS)
d180 1
a180 1
.if !defined(NOPORTDOCS)
d187 1
a187 1
.if !defined(NOPORTDOCS)
d220 1
a220 1
# Defining WITH_DOCS:
d223 1
a223 1
.if defined(WITH_DOCS)
d251 1
a251 1
.if !defined(NOPORTDOCS)
d255 1
a255 1
.if !defined(NOPORTDOCS)
d260 1
a260 1
.include <bsd.port.post.mk>
@


1.95
log
@- Fix MASTER_SITES

Obtained from:	FreeBSD Haskell
@
text
@d8 1
a8 1
PORTVERSION=	7.0.4
d11 1
a11 3
		${MASTER_SITE_LOCAL:S/$/:boot/} \
		http://www.autistici.org/jacula/FreeBSD/:boot \
#		http://haskell.org/ghc/dist/${PORTVERSION}/freebsd/:boot
d21 2
a22 3
BOOT_GHC_VERSION=	6.10.4
HSCOLOUR_VERSION=	1.16
GHCPATH_VERSION=	0.1.0.6
d27 1
a27 1
CONFLICTS=	ghc-6.8.* ghc-6.10.* ghc-6.12.*
d105 1
a105 1
CONFIGURE_ARGS_BOOT=	--prefix=${BOOT_DIR})
d128 2
a129 4
MASTER_SITES+=	${HACKAGE_SITE}${HACKAGE_ARCH}hscolour/${HSCOLOUR_VERSION}/:docs \
		${HACKAGE_SITE}${HACKAGE_ARCH}ghc-paths/${GHCPATH_VERSION}/:docs
DISTFILES+=	hscolour-${HSCOLOUR_VERSION}.tar.gz:docs \
		ghc-paths-${GHCPATH_VERSION}.tar.gz:docs
d131 1
a131 1
EXTRACT_ONLY=	${_DISTFILES:C/ghc-paths.*$//g:C/hscolour.*$//g}
a176 1
	-@@${RM} -f ${BOOT_DIR}/mk/build.mk
d224 1
a224 1
	@@(cd ${BOOT_DIR} && ${CONFIGURE_ENV} ./${CONFIGURE_SCRIPT} ${CONFIGURE_ARGS_BOOT}
a225 3
#	@@(${BOOT_GHC-PKG} unregister haddock-${BOOT_HADDOCK_VERSION})
#	@@(cd ${BOOT_DIR} && ${RM} -rf utils/haddock && ${RM} -f bin/haddock \
#			 && ${RM} -f ${GHC_LIBDIR_REL}/haddock && ${RM} -rf ${GHC_LIBDIR_REL}/haddock-${BOOT_HADDOCK_VERSION})
d228 1
a228 2
# Defining "SLAVE" in devel/hs-ghc-paths devel/hs-haddock and
# print/hs-hscolour flips the building process
d233 3
a235 3
	@@${ECHO_MSG} "  WARNING: Now (Ghc-Paths, Haddock and) HsColour will be  "
	@@${ECHO_MSG} "           built, the respective ports won't be installed, but an     "
	@@${ECHO_MSG} "           in-place installation and registration of both takes place."
a243 16
		${TAR} xvf ${DISTDIR}/ghc-paths-${GHCPATH_VERSION}.tar.gz && \
		cd ghc-paths-${GHCPATH_VERSION} && \
		${SLAVE_CMD} ghc --make -o Setup Setup.hs -package Cabal && \
		${SLAVE_CMD} ./Setup configure --ghc --prefix=${SLAVES_PREFIX} && \
		${SLAVE_CMD} ./Setup build && \
		${SLAVE_CMD} ./Setup install)

	# @@(cd ${SLAVES_WRKDIRPREFIX} && \
	# 	${TAR} xvf ${DISTDIR}/haddock-${HADDOCK_VERSION}.tar.gz && \
	# 	cd haddock-${HADDOCK_VERSION} && \
	# 	${SLAVE_CMD} ghc --make -o Setup Setup.lhs -package Cabal && \
	# 	${SLAVE_CMD} ./Setup configure --ghc --prefix=${SLAVES_PREFIX} && \
	# 	${SLAVE_CMD} ./Setup build && \
	# 	${SLAVE_CMD} ./Setup install)

	@@(cd ${SLAVES_WRKDIRPREFIX} && \
@


1.94
log
@- Please welcome GHC 7.0.4

GHC in the ports tree has been updated to version 7.0.4 and the port revision
for all the Haskell ports without version changes are bumped.  Other per-port
updates are coming soon.

This update also incorporates some improvements for bsd.cabal.mk that makes
working with Haskell ports even easier.

Thanks ashish@@ for the help!

Obtained from:	FreeBSD Haskell
@
text
@d10 1
a10 1
MASTER_SITES=	http://haskell.org/ghc/dist/${PORTVERSION}/:source \
@


1.93
log
@- Add LDFLAGS to CONFIGURE_ENV and MAKE_ENV (as it was done with LDFLAGS)
- Fix all ports that add {CPP,LD}FLAGS to *_ENV to modify flags instead

PR:		157936
Submitted by:	myself
Exp-runs by:	pav
Approved by:	pav
@
text
@d8 1
a8 2
PORTVERSION=	7.0.3
PORTREVISION=	1
@


1.92
log
@- Unbreak on 9.x.  Random core dumps experienced during the build are
  probably caused by an rtld(1) bug in the base system that may not
  affect everybody, though.

  For affected systems: watch out for the upcoming rtld(1) fix (by
  Kostik Belousov) to be committed soon.
@
text
@d117 1
a117 1
CONFIGURE_ENV+=	LDFLAGS=-L${LOCALBASE}/lib
@


1.91
log
@- Fix lang/ghc to not install unusable haddock when NOPORTDOCS is set
- Fix lang/ghc/bsd.cabal.mk to depend on devel/hs-haddock for documentation
- Split textproc/hs-xhtml into a separate -docs port (required by haddock)
- Bump PORTREVISION of devel/hs-haskell-platform, depends on textproc/hs-xhtml

Obtained from:	FreeBSD Haskell
@
text
@a63 4
.if ${OSVERSION} >= 900000
BROKEN=	does not compile
.endif

@


1.90
log
@- Mark BROKEN on 9.x: does not compile

Reported by:   pointyhat
@
text
@d9 1
d293 1
d295 1
@


1.89
log
@- Please welcome GHC 7.0.3

GHC in the ports tree has been updated to 7.0.3 and all other Haskell ports
are also updated to their corresponding Haskell Platform versions, or latest
versions.

We would like to acknowledge the support of the FreeBSD Donations Team and
Eotvos Lorand University, Faculty of Informatics who contributed to the server
that we used for testing.

We would also like to thank all the testers who tested FreeBSD Haskell ports
and provided their feedback.

PR:		ports/156642
Approved by:	tabthorpe (mentor)
Obtained from:	FreeBSD Haskell
@
text
@d63 4
@


1.88
log
@Sync to new bsd.autotools.mk
@
text
@d8 1
a8 2
PORTVERSION=	6.10.4
PORTREVISION=	3
d10 1
a10 1
MASTER_SITES=	http://www.haskell.org/ghc/dist/${PORTVERSION}/:source \
d15 1
a15 2
DISTFILES=	ghc-${PORTVERSION}-src${EXTRACT_SUFX}:source \
		ghc-${PORTVERSION}-src-extralibs${EXTRACT_SUFX}:source
d22 9
a30 7
GHC_VERSION=		${PORTVERSION}
BOOT_GHC_VERSION=	${GHC_VERSION}
HADDOCK_VERSION=	2.4.2
PORT_HADDOCK_VERSION=	${HADDOCK_VERSION}
BOOT_HADDOCK_VERSION=	${HADDOCK_VERSION}
HSCOLOUR_VERSION=	1.15
GHCPATH_VERSION=	0.1.0.5
a31 1
USE_AUTOTOOLS=	autoconf:env
d35 1
a35 1
USE_PERL5=	yes
d39 5
d53 2
a54 3
		DOCS "Install HTML documentation" on \
		HADDOCK "Use the internal version of Haddock" off \
		TEST "Use the testsuite" off
d57 1
a57 2
		HADDOCK "Use the internal version of Haddock" off \
		TEST "Use the testsuite" off
a62 25
.if defined(WITH_TEST)
USE_PYTHON_BUILD=	2.5+
DISTFILES+=	testsuite-${PORTVERSION}${EXTRACT_SUFX}:source
SUB_FILES+=	testsuite.sh
SUB_LIST+=	GHC_VERSION=${GHC_VERSION} \
		GMAKE=${GMAKE} \
		WRKDIR=${WRKDIR}
.endif

# Used by devel/hs-haddock & C.
# Haddock: (0|1)(0|1) = (installing|installed)(port|internal)
.if !exists(${LOCALBASE}/bin/haddock)
.  if defined(WITHOUT_HADDOCK)
PORT_HADDOCK=	00
.  else
PORT_HADDOCK=	01
.  endif
.else
.  if exists(${LOCALBASE}/lib/haddock-${PORT_HADDOCK_VERSION}/register.sh)
PORT_HADDOCK=	10
.  else
PORT_HADDOCK=	11
.  endif
.endif

d70 1
a70 1
DISTFILES+=	ghc-${GHC_VERSION}-i386-freebsd9-boot${EXTRACT_SUFX}:boot
d72 1
a72 1
DISTFILES+=	ghc-${GHC_VERSION}-i386-freebsd8-boot${EXTRACT_SUFX}:boot
d74 1
a74 3
DISTFILES+=	ghc-${GHC_VERSION}-i386-freebsd7-boot${EXTRACT_SUFX}:boot
.elif ${OSVERSION} >= 600000
DISTFILES+=	ghc-${GHC_VERSION}-i386-freebsd6-boot${EXTRACT_SUFX}:boot
d82 1
a82 1
DISTFILES+=	ghc-${GHC_VERSION}-amd64-freebsd9-boot${EXTRACT_SUFX}:boot
d84 1
a84 1
DISTFILES+=	ghc-${GHC_VERSION}-amd64-freebsd8-boot${EXTRACT_SUFX}:boot
d86 1
a86 1
DISTFILES+=	ghc-${GHC_VERSION}-amd64-freebsd7-boot${EXTRACT_SUFX}:boot
d94 1
a95 1
PORTDOCS=	*
d97 1
a97 20
# hack to register LICENSE files without portdocs
.if defined(NOPORTDOCS)
PLIST_SUB+=		NOPORTDOCS=""
.else
PLIST_SUB+=		NOPORTDOCS="@@comment "
.endif

PLIST_SUB+=	GHC_VERSION=${GHC_VERSION} GHC_LIBDIR_REL=${GHC_LIBDIR_REL} DOCSDIR_REL=${DOCSDIR_REL}

.if defined(WITHOUT_PROFILE)
PLIST_SUB+=	PROFILE="@@comment "
.else
PLIST_SUB+=	PROFILE=""
.endif

.if defined(WITHOUT_HADDOCK)
PLIST_SUB+=	HADDOCK="@@comment "
.else
PLIST_SUB+=	HADDOCK=""
.endif
d105 2
d111 3
a113 1
			--with-gmp-libraries=${LOCALBASE}/lib
d131 4
a134 2
MASTER_SITES+=	ftp://ftp.cs.york.ac.uk/pub/haskell/contrib/:docs
DISTFILES+=	hscolour-${HSCOLOUR_VERSION}.tar.gz:docs
d136 1
a136 16
# Defining WITHOUT_HADDOCK:
# An in place installation and registration of ghc-path and
# haddock will be activated. In this way it's possible to use
# it directly into the build tree, without needing to use the
# base version of haddock and ghc-paths. At the end you could
# view the output of: ${BOOT_GHC} describe haddock and
# ${BOOT_GHC} describe ghc-paths.
.if defined(WITHOUT_HADDOCK)
MASTER_SITES+=	http://hackage.haskell.org/packages/archive/ghc-paths/${GHCPATH_VERSION}/:docs \
		http://hackage.haskell.org/packages/archive/haddock/${PORT_HADDOCK_VERSION}/:docs

DISTFILES+=	ghc-paths-${GHCPATH_VERSION}.tar.gz:docs \
		haddock-${PORT_HADDOCK_VERSION}.tar.gz:docs
.endif

EXTRACT_ONLY=	${_DISTFILES:C/ghc-paths.*$//g:C/hscolour.*$//g:C/haddock.*$//g}
d142 1
a142 1
SLAVES_MAKE_ARGS=	-DSLAVE PREFIX=${SLAVES_PREFIX} WRKDIRPREFIX=${SLAVES_WRKDIRPREFIX} PATH=${BOOT_DIR}/bin:${PATH}
d145 1
a151 14
# For a post installation test, set WITH_TEST and: make clean; make extract;
# make apply-slist; make testsuite
testsuite:
	@@${ECHO_MSG} -e "\a"
	@@${ECHO_MSG} "======================================================================"
	@@${ECHO_MSG} "  WARNING: Now a test will be performed, this will take a long time!  "
	@@${ECHO_MSG} "  For a summary of the test see the final file:                       "
	@@${ECHO_MSG} "                                                                      "
	@@${ECHO_MSG} "  ${WRKDIR}/sumtest.txt                                               "
	@@${ECHO_MSG} "======================================================================"
	@@${ECHO_MSG} ""
	@@sleep 3
	-@@(${CHMOD} a+x ${WRKDIR}/testsuite.sh && cd ${WRKDIR} && ./testsuite.sh)

d157 2
a158 1
.if defined(WITH_PROFILE)
d160 3
a162 2
.else
	@@${ECHO} >> ${WRKSRC}/mk/build.mk "GhcLibWays ="
d180 34
a216 1
.if defined(WITHOUT_HADDOCK)
a218 1
.endif
d221 1
a221 1
		${WRKSRC}/../ghc-${GHC_VERSION}-boot/rts/package.conf.in \
d231 4
a234 4
	@@(cd ${BOOT_DIR} && ${GMAKE} install)
	@@(${BOOT_GHC-PKG} unregister haddock-${BOOT_HADDOCK_VERSION})
	@@(cd ${BOOT_DIR} && ${RM} -rf utils/haddock && ${RM} -f bin/haddock \
			 && ${RM} -f ${GHC_LIBDIR_REL}/haddock && ${RM} -rf ${GHC_LIBDIR_REL}/haddock-${BOOT_HADDOCK_VERSION})
d243 3
a245 3
	@@${ECHO_MSG} "  WARNING: Now (Ghc-Paths, Haddock and) HsColour will be built, the   "
	@@${ECHO_MSG} "           respective ports won't be installed, but it takes place    "
	@@${ECHO_MSG} "           an in-place installation and registration of both.         "
d253 23
a275 10
.if defined(WITHOUT_HADDOCK)
	@@(cd ${PORTSDIR}/devel/hs-ghc-paths && \
		${MAKE} ${SLAVES_MAKE_ARGS} install)

	@@(cd ${PORTSDIR}/devel/hs-haddock && \
		${MAKE} ${SLAVES_MAKE_ARGS} install)
.endif

	@@(cd ${PORTSDIR}/print/hs-hscolour && \
		${MAKE} ${SLAVES_MAKE_ARGS} install)
d280 6
a285 5
	@@${MKDIR} ${PREFIX}/lib/ghc-${GHC_VERSION}/cabal
	@@${MKDIR} ${PREFIX}/share/doc/ghc-${GHC_VERSION}/cabal

.if defined(WITH_DOCS)
	@@(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} install-docs)
d287 2
a290 9
.if defined(WITH_TEST)
	@@${ECHO_MSG} -e "\a"
	@@${ECHO_MSG} "====================================================================="
	@@${ECHO_MSG} "  The ${WRKDIR}/testsuite-${GHC_VERSION} was created.                "
	@@${ECHO_MSG} "  Now \"make testsuite\" and let's wait!                             "
	@@${ECHO_MSG} "====================================================================="
	@@${ECHO_MSG} ""
.endif

@


1.87
log
@Punt autoconf267->autoconf268
@
text
@d32 1
a32 1
USE_AUTOTOOLS=	autoconf:268:env
@


1.86
log
@Autotools update.   Read ports/UPDATING 20100915 for details.

Approved by:	portmgr (for Mk/bsd.port.mk part)
Tested by:	Multiple -exp runs
@
text
@d32 1
a32 1
USE_AUTOTOOLS=	autoconf:267:env
@


1.85
log
@- Unbreak build.
- While I am here: unbreak on 9.X as well, shrink bootstraps.

Supported by:	itetcu, jacula
@
text
@d9 1
a9 1
PORTREVISION=	2
d32 1
a32 1
USE_AUTOTOOLS=	autoconf:262:env
@


1.84
log
@Broken by the recent gmp update.

Submitted by:	QAT
Confirmed by:	kib@@
@
text
@a21 2
BROKEN=		by the recent gmp update

d91 5
a95 2
.if ${OSVERSION} >= 800000
DISTFILES+=	ghc-${GHC_VERSION}-i386-jm0-freebsd8-boot${EXTRACT_SUFX}:boot
d97 1
a97 1
DISTFILES+=	ghc-${GHC_VERSION}-i386-jm0-freebsd7-boot${EXTRACT_SUFX}:boot
d99 3
a101 1
DISTFILES+=	ghc-${GHC_VERSION}-i386-jm0-freebsd6-boot${EXTRACT_SUFX}:boot
d103 1
d105 5
a109 2
.if ${OSVERSION} >= 800000
DISTFILES+=	ghc-${GHC_VERSION}-amd64-ash0-freebsd8-boot${EXTRACT_SUFX}:boot
d111 1
a111 1
DISTFILES+=	ghc-${GHC_VERSION}-amd64-ash0-freebsd7-boot${EXTRACT_SUFX}:boot
d113 1
a113 1
IGNORE=		unsupported at the moment
d115 1
@


1.83
log
@Switch to use newer GMP version.

PR:		ports/144487
Submitted by:	ale
Approved by:	portmgr (-exp run by erwin)
@
text
@d22 2
@


1.82
log
@- Update HsColour to 1.15
- Bump PORTREVISION for all affected ports

PR:		ports/138567, ports/138568
Submitted by:	Ashish Shukla <wahjava (at) gmail.com>
Approved by:	maintainer
@
text
@d9 1
a9 1
PORTREVISION=	1
d34 1
a34 1
LIB_DEPENDS+=	gmp.8:${PORTSDIR}/math/libgmp4
@


1.81
log
@- Fix installation of hs-ghc-paths as slave port when build is launched in
  user mode.

PR:		ports/140269
Submitted by:	Makoto Kishimoto <ksmakoto(at)dd(dot)iij4u(dot)or(dot)jp>
@
text
@d9 1
d29 1
a29 1
HSCOLOUR_VERSION=	1.13
@


1.80
log
@- Update GHC and Haskell ports to 6.10.4 (for both i386 and amd64), bump
  port revision where appropriate
- Add devel/hs-ghc-paths
- Add devel/hs-QuickCheck
- Add devel/hs-readline
- Add devel/hs-haskeline
- Add devel/hs-mmap
- Remove lang/ghc-doc
- Mark devel/lhs2TeX broken as it does not compile with GHC 6.10.4
- Set NHC98 as default compiler for devel/hs-hat as it does not compile
  with GHC 6.10.4

PR:		ports/137055, ports/137058, ports/137059, ports/137060, ports/137061,
   		ports/137062, ports/137063, ports/137063, ports/137064, ports/137065,
   		ports/137066, ports/137067, ports/137068, ports/137069, ports/137070,
   		ports/137071, ports/137072, ports/137074, ports/137075, ports/137076,
   		ports/137077, ports/137078, ports/137079, ports/137080, ports/137081,
   		ports/137082, ports/137083, ports/137084, ports/137085, ports/137086,
   		ports/137087, ports/137088, ports/137090, ports/137091, ports/137092,
   		ports/137093, ports/137094, ports/137095, ports/137096, ports/137097,
   		ports/137098, ports/137099, ports/137102, ports/137103, ports/137104,
   		ports/137107, ports/137108, ports/137109, ports/137110, ports/137111

Submitted by:	Jacula Modyun (jacula (at) gmail (dot) com),
             	Ashish Shukla (wahjava (at) gmail (dot) com) (amd64 support)
Supported by:	wxs (review, amd64 testing), tabthorpe (8.x testing)
Approved by:	tabthorpe (mentor), respective maintainers
@
text
@d184 1
a184 1
SLAVES_MAKE_ARGS=	-DSLAVE PREFIX=${SLAVES_PREFIX} WRKDIRPREFIX=${SLAVES_WRKDIRPREFIX}
d276 1
a276 1
		${SETENV} PATH=${BOOT_DIR}/bin:${PATH} ${MAKE} ${SLAVES_MAKE_ARGS} install)
d279 1
a279 1
		${SETENV} PATH=${BOOT_DIR}/bin:${PATH} ${MAKE} ${SLAVES_MAKE_ARGS} install)
d283 1
a283 1
		${SETENV} PATH=${BOOT_DIR}/bin:${PATH} ${MAKE} ${SLAVES_MAKE_ARGS} install)
@


1.79
log
@Mark BROKEN on 8.x: does not build
@
text
@d8 1
a8 2
PORTVERSION=	6.8.3
PORTREVISION=	5
d11 4
a14 2
		http://www.haskell.org/ghc/dist/${PORTVERSION}/FreeBSD/:boot \
		${MASTER_SITE_LOCAL:S/$/:boot/}
d23 7
a29 1
GHC_VERSION=	${PORTVERSION}
d37 1
d46 10
a55 1
OPTIONS=	PROFILE "Compile for profiling as well" on
d57 1
d60 17
a76 2
.if ${ARCH} == "i386"
OPTIONS+=	DOCS "Install HTML documentation" on
d78 5
a82 1
.undef		WITH_DOCS
d85 2
a86 2
.if exists(${LOCALBASE}/lib/libreadline.so.6)
LIB_DEPENDS+=	readline.6:${PORTSDIR}/devel/readline
d90 2
a91 2
.if ${OSVERSION} >= 800105
BROKEN=		does not build
d93 9
a101 9
DISTFILES+=	ghc-${PORTVERSION}-i386-unknown-freebsd7-boot${EXTRACT_SUFX}:boot
.else
DISTFILES+=	ghc-${PORTVERSION}-i386-unknown-freebsd6-boot${EXTRACT_SUFX}:boot
.endif
.endif

.if ${ARCH} == "amd64"
.if ${OSVERSION} >= 700000
DISTFILES+=	ghc-${PORTVERSION}-x86_64-unknown-freebsd7-boot${EXTRACT_SUFX}:boot
d126 6
d134 9
a142 2
BOOT_DIR=	${WRKDIR}/ghc-${GHC_VERSION}-boot
BOOT_GHC=	${BOOT_DIR}/bin/ghc-${GHC_VERSION}
a143 2
CONFIGURE_ARGS+=	--with-ghc=${BOOT_GHC}  --with-gcc=${CC} \
	--with-gmp-includes=${LOCALBASE}/include --with-gmp-libraries=${LOCALBASE}/lib
d145 2
a146 1
CONFIGURE_ENV+=	CFLAGS=-I${LOCALBASE}/include LDFLAGS=-L${LOCALBASE}/lib
a151 1
EXCLUDELIBS=	ALUT GLUT HGL OpenAL OpenGL X11
d154 1
a154 1
# An in place installation and registration of haddock will be
d157 1
a157 1
# you could view the output of: ${BOOT_GHC} describe haddock
d160 2
a161 2
MASTER_SITES+=	http://hackage.haskell.org/packages/archive/haddock/2.1.0/:docs \
		ftp://ftp.cs.york.ac.uk/pub/haskell/contrib/:docs
d163 14
a176 2
DISTFILES+=	haddock-2.1.0.tar.gz:docs \
		hscolour-1.12.tar.gz:docs
d178 1
a178 1
EXTRACT_ONLY=	${_DISTFILES:C/hscolour.*$//g:C/haddock.*$//g}
a181 2
SUB_FILES=	pkg-message.haddock

d193 14
d212 3
a214 1
.if defined(WITHOUT_PROFILE)
d220 19
d241 4
a244 1
	@@cd ${WRKSRC}/libraries && ${RM} -rf ${EXCLUDELIBS}
d246 2
a247 3
post-patch:
	@@${REINPLACE_CMD} s+%%LOCALBASE%%+${LOCALBASE}+ \
		${WRKSRC}/rts/package.conf.in
d251 1
a251 1
	@@(cd ${BOOT_DIR} && ${CONFIGURE_ENV} ./${CONFIGURE_SCRIPT} ${CONFIGURE_ARGS} --prefix=${BOOT_DIR})
d253 3
d258 1
a258 1
# Defining "SLAVE" in devel/hs-haddock and
d263 5
a267 5
	@@${ECHO_MSG} "====================================================================="
	@@${ECHO_MSG} "  WARNING: Now Haddock and HsColour will be built, the respective    "
	@@${ECHO_MSG} "           ports won't be installed, but it takes place an in-place  "
	@@${ECHO_MSG} "           installation and registration of both.                    "
	@@${ECHO_MSG} "====================================================================="
d274 4
d280 1
d288 1
a288 1
	@@${MKDIR} ${PREFIX}/lib/ghc-${PORTVERSION}/cabal
d293 2
d296 7
a302 3
	@@${ECHO_MSG}
	@@${CAT} ${PKGMESSAGE}
	@@${ECHO_MSG}
a303 1
	@@${RM} -f ${PREFIX}/lib/ghc-${PORTVERSION}/package.conf.old
@


1.78
log
@- Unbreak build

Approved by:	tabthorpe (mentor, implicit)
@
text
@d53 3
a55 1
.if ${OSVERSION} >= 700000
@


1.77
log
@- Mark BROKEN: does not configure

Reported by:	pointyhat, QAT
@
text
@a21 2
BROKEN=		does not configure

d153 1
a180 3
pre-build:
	@@${MKDIR} ${TMPDIR}

@


1.76
log
@Chase libgmp and bump PORTREVISION.
@
text
@d22 2
@


1.75
log
@Fix LIB_DEPENDS on devel/readline: its sh lib version was bumped recently from
5 to 6.

Forgotten by:	araujo@@
Reported by:	QAT
@
text
@d9 1
a9 1
PORTREVISION=	4
d26 1
a26 1
LIB_DEPENDS+=	gmp.7:${PORTSDIR}/math/libgmp4
@


1.74
log
@- Update hs-hscolour to 1.12

PR:		ports/132279
Submitted by:	Jacula Modyun <jacula (at) gmail (dot) com>
Approved by:	tabthorpe
@
text
@d9 1
a9 1
PORTREVISION=	3
d48 2
a49 2
.if exists(${LOCALBASE}/lib/libreadline.so.5)
LIB_DEPENDS+=	readline.5:${PORTSDIR}/devel/readline
@


1.73
log
@- Remove conditional checks for FreeBSD 5.x and older
@
text
@d9 1
a9 1
PORTREVISION=	2
d114 1
a114 1
		hscolour-1.10.1.tar.gz:docs
@


1.72
log
@- Update print/hs-hscolour to version 1.10.1

PR:		128344
Submitted by:	Jacula Modyun <jacula at gmail dot com> (maintainer)
Approved by:	obraun (for lang/ghc and devel/hs-haddock-docs)
@
text
@d55 1
a55 1
.elif ${OSVERSION} >= 600000
a56 2
.else
IGNORE=		unsupported at the moment
@


1.71
log
@Conversion from (now defunct) autoconf-2.61 to autoconf-2.62

Tested by:	exp build run (erwin)
@
text
@d9 1
a9 1
PORTREVISION=	1
d116 1
a116 1
		hscolour-1.10.tar.gz:docs
@


1.70
log
@[MAINTAINER UPDATE]: print/hs-hscolour updated to port version 1.10

Step 3 - lang/ghc

PR:             ports/126008
Submitted by:   Jacula Modyun <jacula@@gmail.com>
@
text
@d24 1
a24 1
USE_AUTOTOOLS=	autoconf:261:env
@


1.69
log
@Upgrade ghc to 6.8.3.
@
text
@d9 1
d116 1
a116 1
		hscolour-1.9.tar.gz:docs
@


1.68
log
@Fix plist if building with NOPORTDOCS.
@
text
@d8 1
a8 2
PORTVERSION=	6.8.2
PORTREVISION=	1
a66 2
EXTRA_PATCHES=	${PATCHDIR}/extra-patch-rts-Linker.c \
		${PATCHDIR}/extra-patch-driver-mangler-ghc-asm.lprl
@


1.67
log
@Updated haddock to 2.1.0.
@
text
@d76 7
@


1.66
log
@Install manpage only with docs (building manpage depends on textproc/libxslt).
@
text
@d107 1
a107 1
MASTER_SITES+=	http://www.haskell.org/haddock/dist/:docs \
d110 1
a110 1
DISTFILES+=	haddock-2.0.0.0.tar.gz:docs \
@


1.65
log
@* Add to patches to fix ghc on amd64, which enables building of hs-alex, whitespace, ...
* Bump PORTREVISION.

Obtained from:	http://hackage.haskell.org/trac/ghc
@
text
@a74 1
MAN1=		ghc.1
d115 2
a190 2
.else
	@@${INSTALL_MAN} ${WRKSRC}/docs/man/ghc.1 ${PREFIX}/man/man1
@


1.64
log
@Disable WITH_DOCS on amd64.

PR:		ports/121251
Submitted by:	"Brian O'Hanlon" <brianpo@@cmu.edu>
@
text
@d9 1
d68 2
@


1.63
log
@Ups, forgot to remove local hack for testing in previous commit :-(
@
text
@d37 1
a37 2
OPTIONS=	PROFILE "Compile for profiling as well" on \
		DOCS "Install HTML documentation" on
d41 6
@


1.62
log
@* Add new knob WITH_DOCS to install the user
  documentation and the hyperlinkable documentation, generated
  by haddock and HsColour.
* Build haddock and HsColour for building documentaion only.
* Install manpage.

PR:		ports/120975
Submitted by:	Jacula Modyun <jacula@@gmail.com>
@
text
@d161 1
a161 2
	#@@(cd ${PORTSDIR}/devel/hs-haddock && \ 
	@@(cd ../hs-haddock && \
d164 1
a164 2
	#@@(cd ${PORTSDIR}/print/hs-hscolour && \ 
	@@(cd ../hs-hscolour && \
@


1.61
log
@Welcome ghc on amd64.

Bootstrap tarball submitted by:	"Thomas M. Hermann" <tmh.public@@gmail.com>
@
text
@d21 2
d29 6
d37 2
a38 1
OPTIONS=	PROFILE "Compile for profiling as well" on
d64 7
a70 1
PLIST_SUB+=	GHC_VERSION=${PORTVERSION}
d79 2
a80 2
BOOT_DIR=	${WRKDIR}/ghc-${PORTVERSION}-boot
BOOT_GHC=	${BOOT_DIR}/bin/ghc-${PORTVERSION}
d83 1
a83 3
	--with-gmp-includes=${LOCALBASE}/include --with-gmp-libraries=${LOCALBASE}/lib 
# specifying CONFIGURE_TARGET doesn't work for some reason.
CONFIGURE_TARGET=
d93 28
d122 4
d127 1
a127 1
	@@${ECHO} >>${WRKSRC}/mk/build.mk GhcLibWays=
d129 5
d144 26
d174 14
a187 1
	@@${MKDIR} ${PREFIX}/lib/ghc-${PORTVERSION}/cabal		# cabalised hs-foo-ghc ports
@


1.60
log
@* Correct pkg-plist.
* Add dependency on readline if already installed.
* Mark unbroken.

PR:		ports/120360
Submitted by:	Jacula Modyun <jacula@@gmail.com>
@
text
@d19 1
a19 4
ONLY_FOR_ARCHS=	i386

BOOT_DIST6=	ghc-${PORTVERSION}-i386-unknown-freebsd6-boot${EXTRACT_SUFX}:boot
BOOT_DIST7=	ghc-${PORTVERSION}-i386-unknown-freebsd7-boot${EXTRACT_SUFX}:boot
d37 1
d39 1
a39 1
DISTFILES+=	${BOOT_DIST7}
d41 9
a49 1
DISTFILES+=	${BOOT_DIST6}
d52 1
a52 1
#DISTFILES+=	${BOOT_DIST5}
@


1.59
log
@Mark BROKEN: does not deinstall
@
text
@a18 2
BROKEN=		does not deinstall

d36 4
@


1.58
log
@Enable build on 7.x.
@
text
@d19 2
@


1.57
log
@Reactivate dependency on libgmp-port
@
text
@d21 2
a22 1
BOOT_DIST=	ghc-${PORTVERSION}-i386-unknown-freebsd6-boot${EXTRACT_SUFX}:boot
d37 1
a37 1
IGNORE=		unsupported at the moment
d39 1
a39 1
DISTFILES+=	${BOOT_DIST}
@


1.56
log
@Update to 6.8.2.
@
text
@d25 1
a25 1
#LIB_DEPENDS+=	gmp.7:${PORTSDIR}/math/libgmp4
d56 2
a57 2
CONFIGURE_ARGS+=	--with-ghc=${BOOT_GHC}  --with-gcc=${CC}# \
#	--with-gmp-includes=${LOCALBASE}/include --with-gmp-libraries=${LOCALBASE}/lib 
d61 1
a61 2
#CONFIGURE_ENV+=	CFLAGS=-I${LOCALBASE}/include LDFLAGS=-L${LOCALBASE}/lib
CONFIGURE_ENV+=	CFLAGS= #empty
@


1.55
log
@Remove always-false/true conditions based on OSVERSION 500000
@
text
@d8 1
a8 2
PORTVERSION=	6.6.1
PORTREVISION=	2
a12 1
MASTER_SITE_SUBDIR=vs/ghcdist/${PORTVERSION}/:boot
a20 2
BOOT_DIST4=	ghc-${PORTVERSION}-i386-unknown-freebsd4-boot${EXTRACT_SUFX}:boot
BOOT_DIST5=	ghc-${PORTVERSION}-i386-unknown-freebsd5-boot${EXTRACT_SUFX}:boot
d25 1
a25 1
LIB_DEPENDS+=	gmp.7:${PORTSDIR}/math/libgmp4
d54 1
a54 1
BOOT_GHC=	${BOOT_DIR}/bin/i386-unknown-freebsd/ghc-${PORTVERSION}
d56 2
a57 1
CONFIGURE_ARGS+=	--with-ghc=${BOOT_GHC}  --with-gcc=${CC}
d61 2
a62 1
CONFIGURE_ENV+=	CFLAGS=-I${LOCALBASE}/include LDFLAGS=-L${LOCALBASE}/lib
a78 2
	${REINPLACE_CMD} s+/usr/local/lib/ghc-6.6+${BOOT_DIR}/lib/i386-unknown-freebsd+ \
		${BOOT_DIR}/bin/i386-unknown-freebsd/*.sh
d81 2
a82 2
	@@(cd ${BOOT_DIR} && ${CONFIGURE_ENV} ./${CONFIGURE_SCRIPT} ${CONFIGURE_ARGS})
	@@(cd ${BOOT_DIR} && ${MAKE} in-place)
a87 1
	@@${RMDIR} ${PREFIX}/lib/ghc-${PORTVERSION}/imports/cbits	# empty/unused
@


1.54
log
@Switch autoconf dependency to 2.61.

PR:		ports/116639
Submitted by:	aDe
@
text
@d39 1
a39 2
.if ${OSVERSION} < 500000
#DISTFILES+=	${BOOT_DIST4}
d41 1
a41 2
.else
.if ${OSVERSION} >= 600000
a46 4
.endif
.if ${OSVERSION} >= 700000
IGNORE=		unsupported at the moment
.endif
@


1.53
log
@Move the USE_PERL definitions, and others, before pre.mk inclusion.  This
will be needed to conditionalize bsd.perl.mk inclusion.

Approved by:	maintainer
@
text
@d9 1
a9 1
PORTREVISION=	1
d27 1
a27 1
USE_AUTOTOOLS=	autoconf:259:env
@


1.52
log
@Re-structure support for libraries in GHC:
This commit splits off the supporting libraries that pull in additional
dependencies like X11 and GL. These will be provided by separate ports
like x11/hs-x11-ghc using the "Cabal"-mechanism (a framework for installing
additional libraries into Haskell environments like GHC and NHC).
Accordingly, the libraries will put their files into a subdirectory of GHC.
List of libraries that have been split off: ALUT GLUT HGL OpenAL OpenGL X11

Also, finally remove dependency on devel/readline: the current readline in
base has all the features we need.

Bump PORTREVISION accordingly.

Tested through Tinderbox runs on lang/ghc and devel/darcs. Please be patient
for the supporting libraries to roll in in the next few days. All screwups
are my fault only and should not be attributed to haskell@@.
@
text
@d27 1
d29 5
a53 7
USE_AUTOTOOLS=	autoconf:259:env
LIB_DEPENDS+=	gmp.7:${PORTSDIR}/math/libgmp4

USE_PERL5=	yes
USE_GMAKE=	yes
GNU_CONFIGURE=	yes

@


1.51
log
@Welcome bsd.perl.mk.  Add support for constructs such as USE_PERL5=5.8.0+.
Drop support for antique perl.

Work done by:	gabor
Sponsored by:	Google Summer of Code 2007
Hat:		portmgr
@
text
@d9 1
d49 1
a49 2
LIB_DEPENDS+=	gmp.7:${PORTSDIR}/math/libgmp4 \
		readline.5:${PORTSDIR}/devel/readline
a54 20
.if defined(WITHOUT_X11)
CONFIGURE_ARGS+=--disable-x11 --disable-hgl --disable-opengl --disable-glut
PLIST_SUB+=	X11="@@comment "
PKGNAMESUFFIX=	-nox11
.else
LIB_DEPENDS+=	glut.4:${PORTSDIR}/graphics/libglut
USE_GL=		yes
PLIST_SUB+=	X11=""
.endif

.if defined(WITH_OPENAL)
BROKEN=		Unsupported/does not build
PLIST_SUB+=	OPENAL=""
LIB_DEPENDS+=	openal.0:${PORTSDIR}/audio/openal
CONFIGURE_ARGS+=--enable-openal
.else
CONFIGURE_ARGS+=--without-openal
PLIST_SUB+=	OPENAL="@@comment "
.endif

d77 1
d79 1
a80 1
post-extract:
d83 1
d98 4
@


1.50
log
@Update to 6.6.1.
@
text
@a46 4
.if ${PERL_LEVEL} < 500600
IGNORE=		requires newer version of perl
.endif

@


1.49
log
@- Welcome X.org 7.2 \o/.
- Set X11BASE to ${LOCALBASE} for recent ${OSVERSION}.
- Bump PORTREVISION for ports intalling files in ${X11BASE}.
@
text
@d8 1
a8 2
PORTVERSION=	6.6
PORTREVISION=	1
a16 3
PATCH_SITES=	http://www-i2.informatik.rwth-aachen.de/~stolz/FreeBSD/
PATCHFILES=	patch-ghc-libraries_OpenAL.diff

@


1.48
log
@Use MASTER_SITE_LOCAL for our own boot-file
@
text
@d9 1
@


1.47
log
@Moved bootstrap tarball to haskell.org. Therefore readd master site.
@
text
@d12 2
a13 1
		http://people.freebsd.org/~vs/ghcdist/${PORTVERSION}/:boot
@


1.46
log
@Update lang/ghc to 6.6

Also fixes readline issue reported in PR ports/107380.
OpenAL support is not yet fixed, we might break that out into a
separate port, now that the upstream infrastructure is in place.

Your haskell@@ team, Olli & Volker
@
text
@d11 1
a12 1
#		http://www.haskell.org/ghc/dist/${PORTVERSION}/FreeBSD/:boot
@


1.45
log
@Mark as BROKEN on -CURRENT until there's such thing as compat6x or somebody
does a bootstrap. libmapping the newer libs seems not to work.
@
text
@d8 1
a8 2
PORTVERSION=	6.4.2
PORTREVISION=	1
d11 4
a14 2
		http://www.haskell.org/ghc/dist/${PORTVERSION}/FreeBSD/:boot
DISTFILES=	ghc-${PORTVERSION}-src${EXTRACT_SUFX}:source
d35 1
a35 1
DISTFILES+=	${BOOT_DIST4}
d41 2
a42 1
DISTFILES+=	${BOOT_DIST5}
d62 1
a62 1
CONFIGURE_ARGS+=--without-x --without-x11 --without-hgl --without-opengl --without-glut
a103 4
# Just do a stage1 build
ALL_TARGET=	stage1
MAKE_ENV += stage=1

d111 3
a113 1
		${WRKSRC}/ghc/rts/package.conf.in
@


1.44
log
@make portlint happier

PR:		ports/96548
Approved by:	previous maintainer
@
text
@d43 3
@


1.43
log
@Assign to haskell@@FreeBSD.org: Simon hasn't enough time to care for the FreeBSD version
and most of the problems with the port are my fault anyway.

Approved by: maintainer
@
text
@d13 2
d18 3
a22 1
SRC_DIST=	ghc-${PORTVERSION}-src${EXTRACT_SUFX}:source
a32 2
DISTFILES=	${SRC_DIST}

a51 3
MAINTAINER=	haskell@@FreeBSD.org
COMMENT=	A Compiler for the functional language Haskell

@


1.42
log
@- Enable build for 5.x
- Prune compat5 from LIB_DEPENDS on 6.x as it has been redundant for a while.
@
text
@d50 1
a50 1
MAINTAINER=	simonmar@@microsoft.com
@


1.41
log
@Mark as IGNORE for < 6.x as we do not have a bootstrap-tarball yet.
@
text
@d20 1
a30 4
.if ${OSVERSION} < 600000
IGNORE=		unsupported at the moment
.endif

d33 1
d35 1
d37 2
a38 2
.if ${OSVERSION} >= 600000
LIB_DEPENDS+=	c.5:${PORTSDIR}/misc/compat5x
@


1.40
log
@Chase gmp library and bump PORTREVISION.
@
text
@d30 4
a35 1
IGNORE=		unsupported at the moment
@


1.39
log
@Update to 6.4.2
This build uses an unthreaded RTS, please see the GHC mailing lists for
details and report any problems you observe (eg. non-termination/segfaults in
compiled binaries).

Approved by: cabal
@
text
@d9 1
d45 1
a45 1
LIB_DEPENDS+=	gmp.6:${PORTSDIR}/math/libgmp4 \
@


1.38
log
@Unbreak by disconnecting OpenAL support for now. The version in ports
seems to be different from the one GHC expects.

Approved by: Haskell cabal
@
text
@d8 1
a8 2
PORTVERSION=	6.4.1
PORTREVISION=	1
d18 2
a19 2
BOOT_DIST=	ghc-${PORTVERSION}-i386-unknown-freebsd-boot${EXTRACT_SUFX}:boot
BOOT_DIST5=	ghc-${PORTVERSION}-i386-unknown-freebsd5-boot${EXTRACT_SUFX}:boot
d30 3
a33 2
.else
DISTFILES+=	${BOOT_DIST5}
a110 1
	@@(cd ${WRKSRC}/libraries/OpenAL && ${AUTOCONF})
a113 7
post-configure:
.if defined(WITHOUT_X11)
.for d in GLUT HGL OpenGL X11
	${REINPLACE_CMD} -e 's/^\(.*BUILD_PACKAGE\)=yes/\1=no/' ${WRKSRC}/libraries/${d}/config.mk
.endfor
.endif

@


1.37
log
@- Update graphics/libglut to 6.4.1.
- Shared lib version and PORTREVISION bumb for all affected ports.

While I'm here:
- Remove USE_MESA knob where it was (35 ports).
  It marked as depricated for 2 years.

PR:		ports/90247
Submitted by:	Ermal Lu?i <eri--@@albabsd.org>
@
text
@a50 1
USE_REINPLACE=	yes
d55 2
a56 2
CONFIGURE_ARGS+=--without-x --without-x11 --without-openal --without-hgl --without-opengl --without-glut
PLIST_SUB+=	X11="@@comment " OPENAL="@@comment "
d59 1
a59 2
LIB_DEPENDS+=	glut.4:${PORTSDIR}/graphics/libglut \
		openal.0:${PORTSDIR}/audio/openal
d61 7
a67 1
PLIST_SUB+=	X11="" OPENAL=""
d69 3
@


1.36
log
@Honour WITHOUT_X11.
Note that except for OpenAL the --without-foo flags to configure are currently
ignored, so some post-configure intervention is required to get this right
when X11 is present but not desired.

Requested by:	Yuri Karaban
Approved by:	maintainer (cabal)
@
text
@d9 1
d60 1
a60 1
LIB_DEPENDS+=	glut.3:${PORTSDIR}/graphics/libglut \
@


1.35
log
@Mass-conversion to the USE_AUTOTOOLS New World Order.  The code present
in bsd.autotools.mk essentially makes this a no-op given that all the
old variables set a USE_AUTOTOOLS_COMPAT variable, which is parsed in
exactly the same way as USE_AUTOTOOLS itself.

Moreover, USE_AUTOTOOLS has already been extensively tested by the GNOME
team -- all GNOME 2.12.x ports use it.

Preliminary documentation can be found at:
	http://people.FreeBSD.org/~ade/autotools.txt

which is in the process of being SGMLized before introduction into the
Porters Handbook.

Light blue touch-paper.  Run.
@
text
@a43 2
		glut.3:${PORTSDIR}/graphics/libglut \
		openal.0:${PORTSDIR}/audio/openal \
d53 8
d62 3
d66 1
a66 1
PLIST_SUB=	GHC_VERSION=${PORTVERSION}
d78 1
a78 2
CONFIGURE_ARGS=	--with-ghc=${BOOT_GHC}  --with-gcc=${CC} \
		--enable-openal
d107 7
@


1.34
log
@Requires newer version of perl than base in 4.x
@
text
@d42 1
a42 1
WANT_AUTOCONF_VER=259	# Need this to regenerate patched configure in OpenAL
@


1.33
log
@Update to 6.4.1

Approved by: maintainer (cabal)
@
text
@d38 4
@


1.32
log
@Fix build on 6.x

Submitted by:	lesi
Approved by:	portmgr (self)
@
text
@d8 1
a8 2
PORTVERSION=	6.4
PORTREVISION=	2
d13 1
a13 1
PATCHFILES=	patch-ghc-libraries_GLUT.diff patch-ghc-libraries_OpenAL.diff
d38 1
a38 1
WANT_AUTOCONF_VER=259	# Need this to regenerate patched configure in GLUT
d41 2
a42 1
		openal.0:${PORTSDIR}/audio/openal
d65 2
a66 1
CONFIGURE_ARGS=	--with-ghc=${BOOT_GHC}  --with-gcc=${CC}
a90 1
	@@(cd ${WRKSRC}/libraries/GLUT && ${AUTOCONF})
@


1.31
log
@Add off-site patches partially obtained from CVS to enable libglut (fixes to include-path)
and OpenAL (needs -pthread). This requires running $AUTOCONF after patching the
autoconf-files. Bump PORTREVISION.

Requested by:	Ron de Bruijn
Approved by:	maintainer (Haskell cabal)
@
text
@d34 3
d40 1
a40 1
LIB_DEPENDS=	gmp.6:${PORTSDIR}/math/libgmp4 \
@


1.30
log
@Set USE_GL to pull in missing stuff

Noticed by:	krisbot
Tested by:	obraun@@
Approved by:	portmgr (marcus)
@
text
@d9 1
a9 1
PORTREVISION=	1
d13 2
d23 3
d36 4
a39 1
LIB_DEPENDS=	gmp.6:${PORTSDIR}/math/libgmp4
a76 9
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

d87 2
@


1.29
log
@Resurrect patch to bring libgmp into scope which got accidently dropped on
the recent upgrade.

Approved by: Haskell cabal
@
text
@d40 1
@


1.28
log
@Upgrade to 6.4.

Approved by:	maintainer
@
text
@d9 1
@


1.27
log
@Upgrade ghc to 6.2.2, remove BROKEN, make portlint a little bit happier.
@
text
@d8 1
a8 1
PORTVERSION=	6.2.2
@


1.26
log
@BROKEN on 5.x: Does not compile

Approved by:    portmgr (self)
@
text
@d8 1
a8 1
PORTVERSION=	6.2.1
a21 4
.if ${OSVERSION} >= 502126
BROKEN=		"Does not compile on FreeBSD >= 5.x"
.endif

d40 1
a40 1
PLIST_SUB=      GHC_VERSION=${PORTVERSION}
d52 1
a52 1
CONFIGURE_ARGS= --with-ghc=${BOOT_GHC}  --with-gcc=${CC}
d60 2
a61 2
TMPDIR = ${WRKSRC}/tmp
MAKE_ENV += TMPDIR=${TMPDIR}
d64 1
a64 1
ALL_TARGET = stage1
d71 1
a71 1
	@@$(ECHO_CMD) "WITHOUT_PROFILE=YES'."
@


1.25
log
@Remove mirror.ac.uk from MASTERSITES in Haskell(-related) ports.

PR:		ports/69481
Submitted by:	Tim Bishop
@
text
@d22 4
@


1.24
log
@Add the mirror http://www.mirror.ac.uk/sites/www.haskell.org/ to MASTER_SITES.

Pointed out by: Simon Marlow <simonmar@@microsoft.com>
@
text
@d11 1
a11 3
		http://www.haskell.org/ghc/dist/${PORTVERSION}/FreeBSD/:boot \
		http://www.mirror.ac.uk/sites/www.haskell.org/ghc/dist/${PORTVERSION}/:source \
		http://www.mirror.ac.uk/sites/www.haskell.org/ghc/dist/${PORTVERSION}/FreeBSD/:boot
@


1.23
log
@Upgrade to 6.2.1.

Approved by:	maintainer
@
text
@d11 3
a13 1
		http://www.haskell.org/ghc/dist/${PORTVERSION}/FreeBSD/:boot
@


1.22
log
@Bump PORTREVISION on all ports that depend on gettext to aid with upgrading.

(Part 2)
@
text
@d8 1
a8 2
PORTVERSION=	6.2
PORTREVISION=	1
@


1.21
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
@d9 1
@


1.20
log
@Use patches and libgmp port on -STABLE, too.

Submitted by:	Volker Stolz <stolz@@i2.informatik.rwth-aachen.de>
Approved by:	maintainer
@
text
@d8 1
a8 2
PORTVERSION=	5.04.3
PORTREVISION=	1
d63 4
d76 1
a77 1
.if defined(WITHOUT_PROFILE)
a79 1
	@@${ECHO} >>${WRKSRC}/mk/build.mk SplitObjs=NO
d82 2
a83 8
	@@${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
	@@${REINPLACE_CMD} s+%%LOCALBASE%%+${LOCALBASE}+ ${WRKSRC}/ghc/rts/rts.conf.in
a90 3

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


1.19
log
@- Fix build on -CURRENT by importing some gcc33 fixes
- Fix linker issue on -CURRENT by not using SplitObjs, same as:
   http://www.haskell.org/pipermail/glasgow-haskell-users/2003-June/005289.html
- Use libgmp from ports on -CURRENT (saves further patching)
- Bump PORTREVISION

PR:		ports/60155
Submitted by:	Volker Stolz <stolz@@i2.informatik.rwth-aachen.de>
Approved by:	maintainer
@
text
@d29 2
a30 5
EXTRA_PATCHES+=	${FILESDIR}/extra-patch-ghc-compiler-nativeGen-MachMisc.lhs \
		${FILESDIR}/extra-patch-ghc-compiler-nativeGen-RegAllocInfo.lhs \
		${FILESDIR}/extra-patch-ghc-rts-RtsFlags.c \
		${FILESDIR}/extra-patch-ghc-rts-rts.conf.in \
		${FILESDIR}/extra-patch-ghc-utils-prof-cgprof-cgprof.c
a31 1
.endif
d53 1
a53 1
CONFIGURE_ARGS= --with-ghc=${BOOT_GHC}
a56 1
.if ${OSVERSION} >= 500000
a57 4
PLIST_SUB+=	GMP="@@comment "
.else
PLIST_SUB+=	GMP=""
.endif
a76 1
.if ${OSVERSION} >= 500000
a77 1
.endif
@


1.18
log
@Upgrade to 5.04.3.

PR:		ports/50354
Submitted by:	maintainer
@
text
@d9 1
d29 6
d41 1
d60 7
d82 1
a83 1
post-extract:
d86 3
d98 1
@


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
@@
