blob: 21552bb1841d8ebf599640e8747ddfa393fa2bb8 (
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
93
94
95
96
97
98
99
100
101
102
103
|
# Created by: frase@frase.id.au
# $FreeBSD$
PORTNAME= git-annex
PORTVERSION= 4.20130601
PORTREVISION= 4
CATEGORIES= devel haskell
MAINTAINER= haskell@FreeBSD.org
COMMENT= Manage files with git, without checking their contents into git
LICENSE= GPLv3
USE_CABAL= bloomfilter dataenc dlist edit-distance extensible-exceptions \
hslogger HTTP IfElse json MissingH MonadCatchIO-transformers \
monad-control mtl>=2 network>=2.0 QuickCheck>=2.1 random \
SafeSemaphore SHA text unix-compat utf8-string uuid
USES= gmake perl5
USE_PERL5= build
MAN1= git-annex.1 git-annex-shell.1
BUILD_DEPENDS+= rsync:${PORTSDIR}/net/rsync \
git:${PORTSDIR}/devel/git \
gsha256sum:${PORTSDIR}/sysutils/coreutils
RUN_DEPENDS+= rsync:${PORTSDIR}/net/rsync \
git:${PORTSDIR}/devel/git \
gsha256sum:${PORTSDIR}/sysutils/coreutils
EXECUTABLE= git-annex git-annex-shell
STANDALONE= yes
OPTIONS_DEFINE= S3 ASSISTANT INOTIFY WEBAPP PAIRING PRODUCTION TDFA
OPTIONS_DEFAULT= S3 ASSISTANT
S3_DESC= S3 support
ASSISTANT_DESC= 'assistant' and 'watch' commands
INOTIFY_DESC= File system notifications support
WEBAPP_DESC= Web application (requires assistant)
PAIRING_DESC= Enable pairing (requires web application)
PRODUCTION_DESC= Production build
TDFA_DESC= Use regex-tdfa for wildcards
.include "${.CURDIR}/../../lang/ghc/bsd.cabal.options.mk"
.if ${PORT_OPTIONS:MS3}
CONFIGURE_ARGS+= --flags="S3"
USE_CABAL+= hS3
.else
CONFIGURE_ARGS+= --flags="-S3"
.endif
.if ${PORT_OPTIONS:MASSISTANT}
CONFIGURE_ARGS+= --flags="Assistant"
USE_CABAL+= async stm>=2.3
.else
CONFIGURE_ARGS+= --flags="-Assistant"
.endif
.if ${PORT_OPTIONS:MINOTIFY}
CONFIGURE_ARGS+= --flags="Inotify"
USE_CABAL+= kqueue
.else
CONFIGURE_ARGS+= --flags="-Inotify"
.endif
.if ${PORT_OPTIONS:MWEBAPP} && ${PORT_OPTIONS:MASSISTANT}
CONFIGURE_ARGS+= --flags="Webapp"
USE_CABAL+= yesod yesod-static case-insensitive http-types \
transformers wai wai-logger warp blaze-builder \
blaze-html crypto-api hamlet clientsession \
yesod-default>=1.1.0 data-default
.else
CONFIGURE_ARGS+= --flags="-Webapp"
.endif
.if ${PORT_OPTIONS:MWEBAPP} && ${PORT_OPTIONS:MPAIRING}
CONFIGURE_ARGS+= --flags="Pairing"
USE_CABAL+= network-multicast network-info
.else
CONFIGURE_ARGS+= --flags="-Pairing"
.endif
# Disable all the other options
CONFIGURE_ARGS+= --flags="-DNS -XMPP -Dbus -WebDAV"
.if ${PORT_OPTIONS:MPRODUCTION}
CONFIGURE_ARGS+= --flags="Production"
.else
CONFIGURE_ARGS+= --flags="-Production"
.endif
.if ${PORT_OPTIONS:MTDFA}
CONFIGURE_ARGS+= --flags="TDFA"
USE_CABAL+= regex-tdfa
.else
CONFIGURE_ARGS+= --flags="-TDFA"
.endif
.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
.include <bsd.port.mk>
|