blob: 2409b574fe30219c627333b556f784d0b6338319 (
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
|
# $NetBSD: options.mk,v 1.6 2018/04/13 13:15:00 jaapb Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.ocsigen
PKG_SUPPORTED_OPTIONS= camlzip
PKG_OPTIONS_NONEMPTY_SETS= database
PKG_OPTIONS_SET.database= sqlite gdbm pgsql
PKG_SUGGESTED_OPTIONS= gdbm camlzip
.include "../../mk/bsd.options.mk"
PLIST_VARS+= sqlite
.if !empty(PKG_OPTIONS:Msqlite)
DEPENDS+= ocaml-sqlite3>=0.23.0:../../databases/ocaml-sqlite3
CONFIGURE_ARGS+= --with-sqlite
PLIST.sqlite= yes
.else
CONFIGURE_ARGS+= --without-sqlite
.endif
PLIST_VARS+= dbm
.if !empty(PKG_OPTIONS:Mgdbm)
.include "../../databases/ocaml-dbm/buildlink3.mk"
CONFIGURE_ARGS+= --with-dbm
PLIST.dbm= yes
.else
CONFIGURE_ARGS+= --without-dbm
.endif
PLIST_VARS+= camlzip
.if !empty(PKG_OPTIONS:Mcamlzip)
DEPENDS+= ocaml-zip-[0-9]*:../../archivers/ocaml-zip
CONFIGURE_ARGS+= --with-camlzip
PLIST.camlzip= yes
.else
CONFIGURE_ARGS+= --without-camlzip
.endif
PLIST_VARS+= pgsql
.if !empty(PKG_OPTIONS:Mpgsql)
.include "../../databases/pgocaml/buildlink3.mk"
CONFIGURE_ARGS+= --with-pgsql
PLIST.pgsql= yes
.else
CONFIGURE_ARGS+= --without-pgsql
.endif
|