summaryrefslogtreecommitdiff
path: root/www/ocaml-cohttp/options.mk
blob: 0b9e28863d32979c752bbc70897f3106e5890808 (plain)
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
# $NetBSD: options.mk,v 1.4 2022/06/03 09:25:20 wiz Exp $

PKG_OPTIONS_VAR=	PKG_OPTIONS.ocaml-cohttp
PKG_SUPPORTED_OPTIONS=	lwt js_of_ocaml # async
PKG_SUGGESTED_OPTIONS=	lwt js_of_ocaml # async

.include "../../mk/bsd.prefs.mk"

.include "../../mk/bsd.options.mk"

PLIST_VARS+=	lwt jsoo # async

###
### async support
###
# doesn't work on NetBSD for the moment
#.if !empty(PKG_OPTIONS:Masync)
#.include "../../devel/ocaml-async/buildlink3.mk"
#.include "../../devel/ocaml-async_kernel/buildlink3.mk"
#.include "../../devel/ocaml-async_unix/buildlink3.mk"
#.include "../../devel/ocaml-base/buildlink3.mk"
#.include "../../devel/ocaml-core_unix/buildlink3.mk"
#.include "../../net/ocaml-ipaddr/buildlink3.mk"
#PLIST.async=		yes
#DUNE_BUILD_PACKAGES+=	cohttp-async
#OPAM_INSTALL_FILES+=	cohttp-async
#OCAML_FINDLIB_DIRS+=	cohttp-async
#.endif

###
### lwt support
###
.if !empty(PKG_OPTIONS:Mlwt)
.include "../../devel/ocaml-cmdliner/buildlink3.mk"
.include "../../devel/ocaml-fmt/buildlink3.mk"
.include "../../devel/ocaml-logs/buildlink3.mk"
.include "../../devel/ocaml-lwt/buildlink3.mk"
.include "../../misc/ocaml-magic-mime/buildlink3.mk"
.include "../../net/ocaml-conduit/buildlink3.mk"
PLIST.lwt=	yes
DUNE_BUILD_PACKAGES+=	cohttp-lwt cohttp-lwt-unix
OPAM_INSTALL_FILES+=	cohttp-lwt cohttp-lwt-unix
OCAML_FINDLIB_DIRS+=	cohttp-lwt cohttp-lwt-unix
.endif

###
### js_of_ocaml support
###
.if !empty(PKG_OPTIONS:Mjs_of_ocaml)
.include "../../devel/js_of_ocaml/buildlink3.mk"
PLIST.jsoo=	yes
DUNE_BUILD_PACKAGES+=	cohttp-lwt-jsoo
OPAM_INSTALL_FILES+=	cohttp-lwt-jsoo
OCAML_FINDLIB_DIRS+=	cohttp-lwt-jsoo
.endif