aboutsummaryrefslogtreecommitdiffstats
path: root/lang/ghc/Makefile
blob: ed7bb07f3ea021f43b78fd59104dc0578924609b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
# New ports collection makefile for:    ghc
# Date created:             28 August 1999
# Whom:                 Simon Marlow <simonmar@microsoft.com>
#
# $FreeBSD$

PORTNAME=   ghc
PORTVERSION=    6.2.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

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>
-gnome/commit/ports-mgmt?h=gnome-3.24&id=78278afd9d007ab96d1c9c46d42b625332c970f1'>Remove expired ports:rene2014-04-184-26/+0 * Update to 1.3.0 alpha9bapt2014-04-164-44/+3 * New patch to avoid tons of cores to be created in case of bad failuresbapt2014-04-162-0/+16 * Add a patch to fix build on FreeBSD 8.x and 9.1bapt2014-04-161-0/+25 * Update to 1.3.0 alpha8bapt2014-04-153-29/+3 * ports-mgmt/porttools: upgrade to 1.01xmj2014-04-142-5/+5 * - Stop pkg-fallout mailsbdrewery2014-04-131-1/+1 * - Update LICENSE to BSD3CLAUSEbdrewery2014-04-122-5/+3 * Fix with HIDE_MARKUP optioncrees2014-04-081-1/+1 * - Update pkgng patch to 8.0.10 [1]ak2014-04-062-3/+5 * Fix packaging as a userbapt2014-04-053-2/+47 * Support stagingehaupt2014-04-041-10/+11 * Add the ability to specifiy the file where the ABI string will be determinedbapt2014-04-033-1/+28 * Add the ability to specifiy the file where the ABI string will be determined ...bapt2014-04-032-1/+26 * Detect invalid packages that list directories as a file in plistantoine2014-04-022-0/+19 * Update to 1.3.0.a7:bapt2014-04-012-3/+3 * Update to 1.3.0.a6:bapt2014-03-312-3/+5 * - Reroll and update bootstrap Haskell compilers to GHC 7.6.3 on 8.x andpgj2014-03-291-1/+1 * For some reason, having an ` in BROKEN/FORBIDDEN/IGNORE breaks QAT badly.mat2014-03-261-1/+1 * Fix enterBuild-- also fixed upstreamcrees2014-03-262-1/+33 * Release 1.3.0.a5bapt2014-03-262-4/+3 * - Update pkgng patch to 8.0.9ak2014-03-243-12/+13 * - Update to 1.00.2014.03.23swills2014-03-242-4/+4 * - Fix installation of hook samplesbdrewery2014-03-245-0/+160 * - Update to checkin 0966e62bc4bdrewery2014-03-233-82/+83 * Add orphaned file to plist.kwm2014-03-212-0/+2 * Update to 1.3.0 alpha4bapt2014-03-212-3/+3 * Support stagingehaupt2014-03-202-11/+13 * Update to 1.3.0.a3bapt2014-03-202-3/+3 * Update to 1.3.0.a2bapt2014-03-192-3/+3 * - Update to 1.00.2014.03.16swills2014-03-183-4/+5 * Update to 1.3.0.a1:bapt2014-03-184-20/+16 * - Update to 3.0.15bdrewery2014-03-172-3/+3 * - Reset MAINTAINERantoine2014-03-171-1/+3 * - Update to 1.2.7bdrewery2014-03-164-14/+10 * - Update to 3.17.4bdrewery2014-03-162-8/+5 * - Support stagingehaupt2014-03-131-2/+8 * Support stagingehaupt2014-03-131-6/+3 * Modernize my portseadler2014-03-131-1/+1 * ports-mgmt/porttools: Update to 1.00.2014.03.11koobs2014-03-122-8/+4 * Unbreakantoine2014-03-111-1/+1 * Update the default version of GCC used in the Ports Collection fromgerald2014-03-111-1/+1 * Convert p* to USES=zipbapt2014-03-111-1/+1 * Upgrade ports-mgmt/portsearch from 1.3.2 to 1.3.3vd2014-03-092-3/+5 * - Update to 1.00.2014.03.03lwhsu2014-03-062-4/+4 * - remove broken MANPREFIXdinoex2014-03-041-1/+1 * Support stagingehaupt2014-02-281-5/+4 * - Support stagingehaupt2014-02-281-5/+4 * - Remove the system-related section for this vulnerability as it is incorrect...zi2014-02-281-5/+0 * - Convert to stagingmat2014-02-275-49/+38 * - Support stagingehaupt2014-02-271-6/+8 * Support stagingehaupt2014-02-271-3/+2 * Avoid hardcoded version numbers in plist.olgeni2014-02-272-2/+3 * Add staging support.olgeni2014-02-263-4/+25 * - Stage supportmiwi2014-02-261-6/+3 * Add staging supportpawel2014-02-261-5/+3 * Remove hard dependency to ports-mgmt/pkgehaupt2014-02-251-2/+0 * Support stagingehaupt2014-02-251-2/+1 * Support stagingehaupt2014-02-251-2/+2 * Support stagingehaupt2014-02-251-2/+1 * Support stagingehaupt2014-02-251-6/+3 * Update comment and description for pkg(8)bapt2014-02-244-4/+4 * Fix even more issues with the upstream Makefile:ehaupt2014-02-242-4/+16 * Add patchfile. Forgotten in previous commit.ehaupt2014-02-241-0/+14 * Support stagingehaupt2014-02-242-10/+4 * Update to 2.15.0.marcus2014-02-242-222/+177 * - Update to 20140222 [1]jhale2014-02-232-3/+3 * Remove trailing whitespaces from category ports-mgmtehaupt2014-02-215-5/+5 * Stage support.adamw2014-02-211-4/+2 * - Deprecate due to pkgngzi2014-02-212-2/+4 * - Add stage supportmakc2014-02-201-2/+1 * Consolidate the docbook ports into -sgml and -xml variants.mat2014-02-191-2/+2 * ports-mgmt/porttools: Update to 1.00.2014.02.18, Fix package buildkoobs2014-02-192-8/+12 * Chase docbook cleanup dependencies.mat2014-02-181-1/+1 * - Bump PORTREVISION after KDE4_PREFIX changemakc2014-02-182-2/+2 * ports-mgmt/porttools: Update to 1.00.x and reassign maintainerkoobs2014-02-1614-681/+18 * - update to 1.5rm2014-02-143-13/+33 * - fix regressiondinoex2014-02-142-0/+0 * 0.4.1 2014-02-11mandree2014-02-122-2/+9 * - Stage supportmiwi2014-02-112-8/+3 * According to the Porter's Handbook (5.12.2.3.) default options must be added toehaupt2014-02-105-0/+12 * Update to 2.14.10.marcus2014-02-092-5/+32 * Support staging.ehaupt2014-02-062-3/+2 * - Preserve the automatic flag when using pkgngak2014-02-042-3/+3 * Update master siteeadler2014-02-041-2/+2 * - Add support for binary packages to pkgng patchak2014-02-022-3/+3 * Assign maintainership to submittermatthew2014-02-023-10/+12 * - Update pkg and pkg-devel to 1.2.6bdrewery2014-02-024-8/+12 * - Update to checkin 74abc9e1c2bdrewery2014-02-012-4/+5 * Add license.mat2014-01-291-0/+2 * Support staging.mat2014-01-291-2/+1 * Update to checkin 4fad732f19bapt2014-01-232-4/+4 * - Update to checkin 32dddce6d7bdrewery2014-01-232-5/+5 * Update LICENSE to new formatbdrewery2014-01-231-1/+1 * Fix properties on pkg-plistbapt2014-01-223-3/+0 * - Update to 3.0.14bdrewery2014-01-192-3/+3 * Update to 1.0.9.romain2014-01-192-5/+9 * - Reassign to new maintainertabthorpe2014-01-172-2/+2 * - Update to checkin 58af837f0ebdrewery2014-01-162-5/+4 * Python cleanup:rene2014-01-144-4/+4 * Patch no longer neededbdrewery2014-01-142-26/+1 * - Update to checkin 105ef35755bdrewery2014-01-142-4/+4 * Update to 1.2.5:bapt2014-01-136-64/+6 * - Stagify lang/ghc and all the Haskell Cabal portspgj2014-01-101-1/+0 * - Fix a run-time problem with lang/ghc on FreeBSD 10.0 and later, caused bypgj2014-01-101-1/+1 * - add stage supportaz2014-01-066-9/+3 * Update to support pkg, bump to v2.0.rakuco2014-01-062-140/+405 * Update to 2.14.9.marcus2014-01-052-19/+38 * Part 2 at removing now useless FETCH_ARGS redifitionbapt2014-01-031-1/+0 * Add temporary workaround for hang during sanity checkbdrewery2013-12-312-2/+26 * There is a hang while running sanity check, working on fixbdrewery2013-12-311-0/+2 * - Update to checkin ae87e905f3bdrewery2013-12-312-4/+4 * Update to 2.14.8.marcus2013-12-292-8/+16 * Support stagebapt2013-12-291-7/+2 * Support stagebapt2013-12-291-8/+7 * Support stagebapt2013-12-291-5/+4 * Support stagebapt2013-12-291-6/+5 * Update to 3.3matthew2013-12-273-15/+7 * - Update to checkin a9e8799172bdrewery2013-12-262-4/+4 * Detect pkgNG. When pkgNG is present and there is packages managed by pkgNG,delphij2013-12-242-1/+19 * - Update to checkin e5f36a7de8bdrewery2013-12-193-22/+5 * - Update from 1.0 to 1.1danilo2013-12-192-16/+13 * Remove outdated INVALID_BDB_VER line, db5 and db6 have just been made to workmandree2013-12-171-1/+0 * Pass maintainership to bdrewerybapt2013-12-172-4/+2 * Fix sefault while cleaning upbapt2013-12-164-0/+58 * Update to 1.2.4bapt2013-12-164-8/+8 * - update to 4.1.0ohauer2013-12-153-399/+3 * - Update to 2.4.12bdrewery2013-12-152-3/+3 * - Update from 3.0.4 to 3.0.5 [1]danilo2013-12-152-5/+4 * - Update to checkin 96722b2bdrewery2013-12-132-4/+4 * creduce/Makefile csmith/Makefile symports/Makefile: use BSD*CLAUSEeadler2013-12-121-1/+1 * - Chase r336083 and bump all ports using NO_ARCH so that users buildingbdrewery2013-12-113-0/+3 * Update to pkg 1.2.3bapt2013-12-106-34/+6 * Mark all my architecture independent ports using shell/perl/PHP asmatthew2013-12-092-0/+3 * Add recently added NO_ARCH variable to some of my ports which can use it.eadler2013-12-071-0/+1 * poudriere.d should be a @dirrmtry as it is user modifiablebdrewery2013-12-071-3/+3 * - Fix build on 8.xbdrewery2013-12-072-0/+28 * Update to 1.2.2bapt2013-12-066-8/+11 * - Update pkgng patch to 8.0.6ak2013-12-062-3/+3 * - Use recently implemented NO_ARCH knob in my architecture-neutral portsak2013-12-061-0/+1 * - Update to 2.4.11.3bdrewery2013-12-052-4/+3 * - Update to checkin 3778f5cbdrewery2013-12-022-4/+4 * Someone should take this port and make it work with pkgng.eadler2013-12-011-1/+1 * ports-mgmt/pkg*: Prepare for alternative PORTSDIR supportmarino2013-11-304-0/+78 * New version 0.4.0mandree2013-11-282-11/+56 * Release pkg 1.2.1bapt2013-11-286-132/+6 * - Revert to the original installation schema. With stage, files can be uncond...danilo2013-11-271-13/+1 * - Support pkg-1.2 [1]danilo2013-11-27