blob: 1421dd5995499a7f4775ef425784206197bc6661 (
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
|
# $NetBSD: options.mk,v 1.2 2020/01/10 21:19:20 joerg Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.ocaml-cohttp
PKG_SUPPORTED_OPTIONS= async lwt js_of_ocaml
PKG_SUGGESTED_OPTIONS= async lwt js_of_ocaml
.include "../../mk/bsd.prefs.mk"
.include "../../mk/bsd.options.mk"
PLIST_VARS+= lwt jsoo
###
### async support
###
.if !empty(PKG_OPTIONS:Masync)
DUNE_BUILD_PACKAGES+= cohttp-async
.endif
###
### lwt support
###
.if !empty(PKG_OPTIONS:Mlwt)
.include "../../devel/ocaml-lwt/buildlink3.mk"
.include "../../misc/ocaml-magic-mime/buildlink3.mk"
PLIST.lwt= yes
DUNE_BUILD_PACKAGES+= cohttp-lwt cohttp-lwt-unix
OPAM_INSTALL_FILES+= 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
.endif
|