2002-08-21 22:49:30 +02:00
|
|
|
# New ports collection makefile for: drift
|
|
|
|
# Date created: 13 August 2002
|
|
|
|
# Whom: Oliver Braun <obraun@informatik.unibw-muenchen.de>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= drift
|
2008-03-01 17:39:02 +01:00
|
|
|
PORTVERSION= 2.2.3
|
2012-06-03 22:52:29 +02:00
|
|
|
PORTREVISION= 5
|
2002-11-20 10:10:55 +01:00
|
|
|
CATEGORIES= devel haskell
|
2008-03-01 17:39:02 +01:00
|
|
|
MASTER_SITES= http://repetae.net/computer/haskell/DrIFT/drop/
|
2002-09-04 20:39:09 +02:00
|
|
|
PKGNAMEPREFIX= hs-
|
2003-10-29 10:40:05 +01:00
|
|
|
DISTNAME= DrIFT-${PORTVERSION}
|
2002-08-21 22:49:30 +02:00
|
|
|
|
2004-03-06 22:29:59 +01:00
|
|
|
MAINTAINER= haskell@FreeBSD.org
|
2003-02-18 11:50:48 +01:00
|
|
|
COMMENT= A type sensitive preprocessor for Haskell
|
2002-08-21 22:49:30 +02:00
|
|
|
|
2004-12-02 09:31:51 +01:00
|
|
|
OPTIONS= NHC98 "Build with nhc98" off \
|
|
|
|
GHC "Build with ghc" on
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2003-10-29 10:40:05 +01:00
|
|
|
.if !defined(WITH_NHC98)
|
2012-06-03 22:52:29 +02:00
|
|
|
BUILD_DEPENDS= ghc:${PORTSDIR}/lang/ghc \
|
|
|
|
hs-random>=0:${PORTSDIR}/devel/hs-random
|
2010-04-19 12:43:42 +02:00
|
|
|
LIB_DEPENDS= gmp.10:${PORTSDIR}/math/gmp
|
2003-10-29 10:40:05 +01:00
|
|
|
.else
|
|
|
|
BUILD_DEPENDS= nhc98:${PORTSDIR}/lang/nhc98
|
2006-04-15 15:30:40 +02:00
|
|
|
BROKEN= Does not build
|
2002-08-21 22:49:30 +02:00
|
|
|
.endif
|
|
|
|
|
2006-04-15 15:30:40 +02:00
|
|
|
USE_GMAKE= yes
|
|
|
|
GNU_CONFIGURE= yes
|
2002-08-21 22:49:30 +02:00
|
|
|
|
2003-10-29 10:40:05 +01:00
|
|
|
INFO= drift
|
2004-12-02 09:31:51 +01:00
|
|
|
PLIST_FILES= bin/DrIFT bin/drift-ghc
|
2003-10-29 10:40:05 +01:00
|
|
|
|
|
|
|
.if !defined(WITH_NHC98)
|
2002-08-21 22:49:30 +02:00
|
|
|
CONFIGURE_ARGS+= --with-hc=ghc
|
2003-10-29 10:40:05 +01:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --with-hc=nhc98
|
2002-08-21 22:49:30 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !defined(WITH_GHC)
|
2003-02-28 23:53:02 +01:00
|
|
|
pre-everything::
|
2002-08-21 22:49:30 +02:00
|
|
|
@${ECHO} ""
|
2003-10-29 10:40:05 +01:00
|
|
|
@${ECHO} " DrIFT will be build with ghc"
|
|
|
|
@${ECHO} " Define WITH_NHC98 to build with nhc98."
|
2002-08-21 22:49:30 +02:00
|
|
|
@${ECHO} ""
|
2012-06-03 22:52:29 +02:00
|
|
|
|
|
|
|
.else
|
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} 's|import List|import Data.List| ; \
|
|
|
|
s|import Char|import Data.Char| ; \
|
|
|
|
s|import Monad|import Control.Monad| ; \
|
|
|
|
s|import IO|import System.IO.Error| ; \
|
|
|
|
s|import Directory|import System.Directory| ; \
|
|
|
|
s|import Maybe|import Data.Maybe| ; \
|
|
|
|
s|import Array|import Data.Array| ; \
|
|
|
|
s|import Time|import System.Time| ; \
|
|
|
|
s|import Random|import System.Random| ; \
|
|
|
|
s|import System[^\.]|import System.Exit|' \
|
|
|
|
`${FIND} ${WRKSRC} -name '*.*hs'`
|
2002-08-21 22:49:30 +02:00
|
|
|
.endif
|
|
|
|
|
2004-12-02 09:31:51 +01:00
|
|
|
.include <bsd.port.post.mk>
|