summaryrefslogtreecommitdiff
path: root/devel/hs-darcs/Makefile
blob: 0bba80a27d912aff60fe5cdb46ed551b48dab6fb (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
# Created by: Oliver Braun <obraun@FreeBSD.org>
# $FreeBSD$

PORTNAME=	darcs
PORTVERSION=	2.14.1
PORTREVISION=	3
CATEGORIES=	devel haskell

MAINTAINER=	haskell@FreeBSD.org
COMMENT=	Distributed, interactive, smart revision control system

LICENSE=	GPLv2

BROKEN=		Doesn't build with recent GHC

USE_CABAL=	async attoparsec base16-bytestring cryptohash \
		data-ordlist fgl graphviz hashable html HTTP \
		mmap mtl random \
		regex-applicative regex-compat-tdfa sandi tar \
		transformers-compat unix-compat \
		utf8-string vector zip-archive zlib

EXECUTABLE=	darcs

MAN1PAGES=	darcs.1

FLAGS_DEFINE=		STATIC TERMINFO THREADED
FLAGS_MULTI=		WEB
FLAGS_MULTI_WEB=	CURL HTTP
WEB_DESC=		HTTP backend

FLAGS_DEFAULT=		CURL THREADED
FLAGS_ENABLE=		library executable

CURL_DESC=		Use libcurl for HTTP support
CURL_FLAG_ENABLE=	curl
CURL_FLAG_LIB=		libcurl.so:ftp/curl

HTTP_DESC=		Use the pure HTTP package
HTTP_FLAG_ENABLE=	http
HTTP_FLAG_CABAL=	HTTP>=4000.2.3 network>=2.6 network-uri>=2.6

STATIC_DESC=		Build static binary
STATIC_FLAG_ENABLE=	static

TERMINFO_DESC=		Use terminfo
TERMINFO_FLAG_ENABLE=	terminfo

THREADED_DESC=		Use threading and SMP support
THREADED_FLAG_ENABLE=	threaded

.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"

.if ${PORT_OPTIONS:MSTATIC} && ${PORT_OPTIONS:MCURL}
BROKEN=			enabling STATIC and CURL together will produce linker errors
.endif

.include <bsd.port.mk>