blob: d70304af3a6eab51d517c734d9508bd62727fa75 (
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
|
# $NetBSD: options.mk,v 1.5 2021/07/12 22:40:00 nia Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.mysql-server
PKG_SUPPORTED_OPTIONS+= columnstore embedded-server lzo lz4 oqgraph rocksdb
PKG_SUPPORTED_OPTIONS+= snappy ssl zstd
.include "../../mk/bsd.fast.prefs.mk"
PKG_SUGGESTED_OPTIONS= ssl
.include "../../mk/bsd.options.mk"
.if !empty(PKG_OPTIONS:Mcolumnstore)
.include "../../devel/boost-headers/buildlink3.mk"
CMAKE_ARGS+= -DPLUGIN_COLUMNSTORE=YES
.else
CMAKE_ARGS+= -DPLUGIN_COLUMNSTORE=NO
.endif
PLIST_VARS+= embedded
.if !empty(PKG_OPTIONS:Membedded-server)
CMAKE_ARGS+= -DWITH_EMBEDDED_SERVER=ON
PLIST.embedded= yes
.else
CMAKE_ARGS+= -DWITH_EMBEDDED_SERVER=OFF
.endif
.if !empty(PKG_OPTIONS:Mlzo)
.include "../../archivers/lzo/buildlink3.mk"
CMAKE_ARGS+= -DWITH_INNODB_LZO=ON
.else
CMAKE_ARGS+= -DWITH_INNODB_LZO=OFF
.endif
.if !empty(PKG_OPTIONS:Mlz4)
.include "../../archivers/lz4/buildlink3.mk"
CMAKE_ARGS+= -DGRN_WITH_LZ4=ON
CMAKE_ARGS+= -DWITH_INNODB_LZ4=ON
CMAKE_ARGS+= -DWITH_ROCKSDB_LZ4=ON
.else
CMAKE_ARGS+= -DGRN_WITH_LZ4=OFF
CMAKE_ARGS+= -DWITH_INNODB_LZ4=OFF
CMAKE_ARGS+= -DWITH_ROCKSDB_LZ4=OFF
.endif
PLIST_VARS+= oqgraph
.if !empty(PKG_OPTIONS:Moqgraph)
CMAKE_ARGS+= -DPLUGIN_OQGRAPH=YES
PLIST.oqgraph= yes
.include "../../devel/boost-libs/buildlink3.mk"
.include "../../devel/libjudy/buildlink3.mk"
.else
CMAKE_ARGS+= -DPLUGIN_OQGRAPH=NO
.endif
PLIST_VARS+= rocksdb
.if !empty(PKG_OPTIONS:Mrocksdb)
.include "../../lang/python/application.mk"
PLIST.rocksdb= yes
CMAKE_ARGS+= -DWITHOUT_ROCKSDB_STORAGE_ENGINE=OFF
CMAKE_ARGS+= -DPYTHON_SHEBANG=${PYTHONBIN}
.else
CMAKE_ARGS+= -DWITHOUT_ROCKSDB_STORAGE_ENGINE=ON
.endif
.if !empty(PKG_OPTIONS:Msnappy)
.include "../../devel/snappy/buildlink3.mk"
CMAKE_ARGS+= -DWITH_INNODB_SNAPPY=ON
CMAKE_ARGS+= -DWITH_ROCKSDB_snappy=ON
.else
CMAKE_ARGS+= -DWITH_INNODB_SNAPPY=OFF
CMAKE_ARGS+= -DWITH_ROCKSDB_snappy=OFF
.endif
# Enable OpenSSL support
.if !empty(PKG_OPTIONS:Mssl)
.include "../../security/openssl/buildlink3.mk"
CMAKE_ARGS+= -DWITH_SSL=system
LDFLAGS+= -lcrypto -lssl
.else
CMAKE_ARGS+= -DWITH_SSL=no
.endif
.if !empty(PKG_OPTIONS:Mzstd)
.include "../../archivers/zstd/buildlink3.mk"
CMAKE_ARGS+= -DWITH_ROCKSDB_zstd=ON
.else
CMAKE_ARGS+= -DWITH_ROCKSDB_zstd=OFF
.endif
|