blob: 1b9bc9f6b55a834de76f2a8eb2eef2e25f1b7075 (
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
|
# $NetBSD: options.mk,v 1.4 2015/02/11 13:45:02 jaapb Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.ocsigen
PKG_SUPPORTED_OPTIONS= camlzip
PKG_OPTIONS_NONEMPTY_SETS= database
PKG_OPTIONS_SET.database= sqlite gdbm
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
|