Merge branch 'staged'
[dports.git] / devel / stack / Makefile
1 PORTNAME=       stack
2 PORTVERSION=    2.11.1
3 DISTVERSIONPREFIX=      v
4 CATEGORIES=     devel haskell
5
6 MAINTAINER=     haskell@FreeBSD.org
7 COMMENT=        Cross-platform program for developing Haskell programs
8 WWW=            https://www.haskellstack.org/
9
10 LICENSE=        BSD3CLAUSE
11
12 BROKEN_aarch64= compiler crashes
13
14 RUN_DEPENDS=    ca_root_nss>0:security/ca_root_nss \
15                 gmake:devel/gmake \
16                 ${LOCALBASE}/lib/compat/libffi.so.6:devel/libffi321 \
17                 ${LOCALBASE}/lib/compat/libffi.so.7:devel/libffi33
18
19 USES=           cabal gmake iconv:wchar_t perl5 pkgconfig
20 USE_GITHUB=     yes
21 GH_ACCOUNT=     commercialhaskell
22 USE_PERL5=      run
23
24 CABAL_FLAGS=    -support_aesni
25 CABAL_PROJECT=  remove
26
27 USE_CABAL=      Glob-0.10.2_3 \
28                 OneTuple-0.4.1.1 \
29                 QuickCheck-2.14.2 \
30                 StateVar-1.2.2 \
31                 aeson-2.1.2.1_3 \
32                 annotated-wl-pprint-0.7.0_1 \
33                 ansi-terminal-1.0 \
34                 ansi-terminal-types-0.11.5_1 \
35                 ansi-wl-pprint-0.6.9_4 \
36                 appar-0.1.8 \
37                 asn1-encoding-0.9.6_2 \
38                 asn1-parse-0.9.5 \
39                 asn1-types-0.3.4 \
40                 assoc-1.1 \
41                 async-2.2.4_3 \
42                 attoparsec-0.14.4_3 \
43                 attoparsec-iso8601-1.1.0.0_1 \
44                 auto-update-0.1.6 \
45                 base-compat-0.13.0 \
46                 base-compat-batteries-0.13.0 \
47                 base-orphans-0.9.0 \
48                 base16-bytestring-1.0.2.0 \
49                 base64-bytestring-1.2.1.0 \
50                 basement-0.0.15 \
51                 bifunctors-5.6.1 \
52                 bitvec-1.1.4.0 \
53                 blaze-builder-0.4.2.2_1 \
54                 blaze-html-0.9.1.2_2 \
55                 blaze-markup-0.8.2.8_4 \
56                 byteorder-1.0.4 \
57                 casa-client-0.0.1 \
58                 casa-types-0.0.2 \
59                 case-insensitive-1.2.1.0 \
60                 cereal-0.5.8.3 \
61                 clock-0.8.3 \
62                 cmdargs-0.10.22 \
63                 colour-2.3.6 \
64                 comonad-5.0.8_1 \
65                 conduit-1.3.4.3_1 \
66                 conduit-combinators-1.3.0 \
67                 conduit-extra-1.3.6 \
68                 connection-0.3.1_1 \
69                 contravariant-1.5.5 \
70                 cookie-0.4.6 \
71                 cryptohash-sha256-0.11.102.1_2 \
72                 cryptonite-0.30 \
73                 cryptonite-conduit-0.2.2_1 \
74                 data-default-class-0.1.2.0 \
75                 data-fix-0.3.2_4 \
76                 digest-0.0.1.7 \
77                 distributive-0.6.2.1_1 \
78                 dlist-1.0 \
79                 easy-file-0.2.5 \
80                 echo-0.1.4 \
81                 ed25519-0.0.5.0_7 \
82                 extra-1.7.13 \
83                 fast-logger-3.2.1 \
84                 file-embed-0.0.15.0 \
85                 filelock-0.1.1.6 \
86                 foldable1-classes-compat-0.1_2 \
87                 fsnotify-0.4.1.0 \
88                 generic-deriving-1.14.4 \
89                 generically-0.1.1_1 \
90                 githash-0.1.6.3 \
91                 hackage-security-0.6.2.3_3 \
92                 hashable-1.4.2.0_1 \
93                 hi-file-parser-0.1.4.0 \
94                 hourglass-0.2.12 \
95                 hpack-0.35.2_1 \
96                 hsc2hs-0.68.9 \
97                 http-api-data-0.5.1 \
98                 http-client-0.7.13.1_1 \
99                 http-client-tls-0.3.6.1 \
100                 http-conduit-2.3.8 \
101                 http-download-0.2.0.0 \
102                 http-types-0.12.3 \
103                 indexed-traversable-0.1.2.1 \
104                 indexed-traversable-instances-0.1.1.2_1 \
105                 infer-license-0.2.0 \
106                 integer-logarithms-1.0.3.1_4 \
107                 iproute-1.7.12 \
108                 libyaml-0.1.2_1 \
109                 lift-type-0.1.1.1 \
110                 lifted-base-0.2.3.12 \
111                 lukko-0.1.1.3_4 \
112                 megaparsec-9.3.1 \
113                 memory-0.18.0 \
114                 microlens-0.4.13.1 \
115                 microlens-mtl-0.2.0.3 \
116                 microlens-th-0.4.3.13 \
117                 mime-types-0.1.1.0 \
118                 mintty-0.1.4 \
119                 monad-control-1.0.3.1 \
120                 monad-logger-0.3.39_1 \
121                 monad-loops-0.4.3 \
122                 mono-traversable-1.0.15.3 \
123                 mtl-compat-0.2.2 \
124                 mustache-2.4.2 \
125                 neat-interpolation-0.5.1.3 \
126                 network-3.1.3.0 \
127                 network-uri-2.6.4.2 \
128                 old-locale-1.0.0.7_2 \
129                 old-time-1.1.0.3_2 \
130                 open-browser-0.2.1.0 \
131                 optparse-applicative-0.17.0.0 \
132                 optparse-simple-0.1.1.4 \
133                 pantry-0.8.2.2 \
134                 parser-combinators-1.3.0 \
135                 path-0.9.2 \
136                 path-io-1.8.1 \
137                 path-pieces-0.2.1_1 \
138                 pem-0.2.4 \
139                 persistent-2.14.5.0 \
140                 persistent-sqlite-2.13.1.1 \
141                 persistent-template-2.12.0.0 \
142                 primitive-0.8.0.0 \
143                 project-template-0.2.1.0 \
144                 random-1.2.1.1 \
145                 resource-pool-0.4.0.0 \
146                 resourcet-1.3.0 \
147                 retry-0.9.3.1 \
148                 rio-0.1.22.0 \
149                 rio-orphans-0.1.2.0 \
150                 rio-prettyprint-0.1.4.0 \
151                 safe-0.3.19 \
152                 safe-exceptions-0.1.7.3 \
153                 scientific-0.3.7.0_5 \
154                 semialign-1.3 \
155                 semigroupoids-6.0.0.1 \
156                 semigroups-0.20 \
157                 silently-1.2.5.3 \
158                 socks-0.6.1 \
159                 split-0.2.3.5 \
160                 splitmix-0.1.0.4_2 \
161                 stm-chans-3.0.0.9 \
162                 streaming-commons-0.2.2.6 \
163                 strict-0.5 \
164                 syb-0.7.2.3 \
165                 tagged-0.8.7 \
166                 tar-0.5.1.1_6 \
167                 tar-conduit-0.3.2 \
168                 temporary-1.3 \
169                 text-metrics-0.3.2_2 \
170                 text-short-0.1.5_2 \
171                 th-abstraction-0.5.0.0 \
172                 th-compat-0.1.4_2 \
173                 th-expand-syns-0.4.11.0_1 \
174                 th-lift-0.8.3 \
175                 th-lift-instances-0.1.20 \
176                 th-reify-many-0.1.10 \
177                 these-1.2 \
178                 time-compat-1.9.6.1_5 \
179                 tls-1.6.0 \
180                 transformers-base-0.4.6 \
181                 transformers-compat-0.7.2 \
182                 typed-process-0.2.11.0 \
183                 unicode-data-0.4.0.1_1 \
184                 unicode-transforms-0.4.0.1_3 \
185                 unix-compat-0.7 \
186                 unix-time-0.4.9 \
187                 unliftio-0.2.24.0 \
188                 unliftio-core-0.2.1.0_2 \
189                 unordered-containers-0.2.19.1_2 \
190                 uuid-types-1.0.5_4 \
191                 vault-0.3.1.5_3 \
192                 vector-0.13.0.0_3 \
193                 vector-algorithms-0.9.0.1_2 \
194                 vector-stream-0.1.0.0_2 \
195                 witherable-0.4.2_4 \
196                 x509-1.7.7 \
197                 x509-store-1.6.9 \
198                 x509-system-1.6.7 \
199                 x509-validation-1.6.12 \
200                 yaml-0.11.11.0 \
201                 zip-archive-0.4.3 \
202                 zlib-0.6.3.0_1
203
204 .include <bsd.port.pre.mk>
205
206 .if ${ARCH} == aarch64
207 # Keep it in sync with LLVM_VERSION in lang/ghc* port, which is used to build this one
208 LLVM_VERSION=   10
209 RUN_DEPENDS+=   llc${LLVM_VERSION}:devel/llvm${LLVM_VERSION}
210 .endif
211
212 .if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1300078 && ${ARCH} != powerpc64
213 LIB_DEPENDS+=   libncursesw.so.8:misc/compat12x
214 .endif
215
216 #PLIST_FILES=   etc/bash_completion.d/_stack.bash \
217 #               share/zsh/site-functions/_stack
218
219 .include <bsd.port.post.mk>