blob: 41db9947e3caf2c05a9f534996248537abf87ef8 (
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
|
# $NetBSD: options.mk,v 1.5 2018/08/03 09:19:56 jaapb Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.js_of_ocaml
PKG_SUPPORTED_OPTIONS= ocaml-tyxml camlp4
PKG_SUGGESTED_OPTIONS= ocaml-tyxml
.include "../../mk/bsd.prefs.mk"
.include "../../mk/bsd.options.mk"
PLIST_VARS+= tyxml camlp4
###
### TyXML support
###
.if !empty(PKG_OPTIONS:Mocaml-tyxml)
.include "../../textproc/ocaml-tyxml/buildlink3.mk"
.include "../../devel/ocaml-reactiveData/buildlink3.mk"
PLIST.tyxml= yes
JBUILDER_BUILD_PACKAGES+= js_of_ocaml-tyxml
OPAM_INSTALL_FILES+= js_of_ocaml-tyxml
.else
.endif
###
### Camlp4 support
###
.if !empty(PKG_OPTIONS:Mcamlp4)
.include "../../lang/camlp4/buildlink3.mk"
DEPENDS+= ocaml-deriving-ocsigen>=0.8.1:../../devel/ocaml-deriving-ocsigen
PLIST.camlp4= yes
JBUILDER_BUILD_PACKAGES+= js_of_ocaml-camlp4
OPAM_INSTALL_FILES+= js_of_ocaml-camlp4
.else
.endif
|