1999-11-10 18:25:29 +01:00
|
|
|
# New ports collection makefile for: ghc
|
|
|
|
# Date created: 28 August 1999
|
|
|
|
# Whom: Simon Marlow <simonmar@microsoft.com>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
|
2000-04-12 08:21:15 +02:00
|
|
|
PORTNAME= ghc
|
2002-07-21 16:10:56 +02:00
|
|
|
PORTVERSION= 5.04
|
2002-07-21 18:57:23 +02:00
|
|
|
PORTREVISION= 1
|
1999-11-10 18:25:29 +01:00
|
|
|
CATEGORIES= lang
|
2001-02-26 05:40:05 +01:00
|
|
|
MASTER_SITES= http://www.haskell.org/ghc/dist/${PORTVERSION}/
|
2002-01-07 15:39:00 +01:00
|
|
|
|
2002-07-21 16:10:56 +02:00
|
|
|
SRC_DIST= ghc-${PORTVERSION}-src${EXTRACT_SUFX}
|
2002-01-07 15:39:00 +01:00
|
|
|
BOOT_DIST= ghc-${PORTVERSION}-i386-unknown-freebsd-boot${EXTRACT_SUFX}
|
2002-05-08 18:41:23 +02:00
|
|
|
BOOT_DIST5= ghc-${PORTVERSION}-i386-unknown-freebsd5-boot${EXTRACT_SUFX}
|
2002-01-07 15:39:00 +01:00
|
|
|
|
2002-05-08 18:41:23 +02:00
|
|
|
USE_BZIP2= yes
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
DISTFILES= ${SRC_DIST}
|
|
|
|
|
|
|
|
.if ${OSVERSION} < 500000
|
|
|
|
DISTFILES+= ${BOOT_DIST}
|
|
|
|
.else
|
|
|
|
DISTFILES+= ${BOOT_DIST5}
|
|
|
|
.endif
|
1999-11-10 18:25:29 +01:00
|
|
|
|
|
|
|
MAINTAINER= simonmar@microsoft.com
|
|
|
|
|
|
|
|
USE_PERL5= yes
|
|
|
|
USE_GMAKE= yes
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
|
2002-01-07 15:39:00 +01:00
|
|
|
PLIST_SUB= GHC_VERSION=${PORTVERSION}
|
|
|
|
|
|
|
|
# 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}
|
2000-03-04 14:50:17 +01:00
|
|
|
# specifying CONFIGURE_TARGET doesn't work for some reason.
|
|
|
|
CONFIGURE_TARGET=
|
1999-11-10 18:25:29 +01:00
|
|
|
|
2000-10-13 22:17:46 +02:00
|
|
|
# override TMPDIR because /tmp often doesn't have enough space
|
|
|
|
# to build some of the larger libraries.
|
|
|
|
TMPDIR = ${WRKSRC}/tmp
|
|
|
|
MAKE_ENV += TMPDIR=${TMPDIR}
|
|
|
|
|
2002-01-07 15:39:00 +01:00
|
|
|
pre-configure:
|
|
|
|
@(cd ${BOOT_DIR} && ${CONFIGURE_ENV} ./${CONFIGURE_SCRIPT} ${CONFIGURE_ARGS})
|
|
|
|
@(cd ${BOOT_DIR} && ${MAKE} in-place)
|
2000-10-13 22:17:46 +02:00
|
|
|
|
2002-01-07 15:39:00 +01:00
|
|
|
pre-build:
|
2000-10-13 22:17:46 +02:00
|
|
|
@${MKDIR} ${TMPDIR}
|
1999-11-10 18:25:29 +01:00
|
|
|
|
2002-05-08 18:41:23 +02:00
|
|
|
.include <bsd.port.post.mk>
|