blob: 7e46c35e6feee379a30378a202015c2e223e85bf (
plain) (
blame)
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
|
# Created by: Veniamin Gvozdikov <vg@FreeBSD.org>
# $FreeBSD$
PORTNAME= tarantool
PORTVERSION= 1.5.1
PORTREVISION= 1
CATEGORIES= databases
MASTER_SITES= http://tarantool.org/dist/
DISTNAME= ${PORTNAME}-${PORTVERSION}-${TR_REV}-src
MAINTAINER= vg@FreeBSD.org
COMMENT= High performance key/value storage server
LICENSE= BSD
TR_REV= 248-g1f7eab2
MAKE_JOBS_UNSAFE=yes
USES= cmake gettext:build gmake iconv perl5 compiler:c++11-lang
USE_LDCONFIG= yes
USE_RC_SUBR= ${PORTNAME}
SUB_FILES= pkg-message
CMAKE_ARGS= -DCMAKE_MAN_DIR=man \
-DCMAKE_SYSCONF_DIR=${ETCDIR} \
-DCMAKE_LOCALSTATE_DIR=${DATADIR}
OPTIONS_DEFINE= CLIENT
OPTIONS_GROUP= PLUGINS
OPTIONS_GROUP_PLUGINS= MYSQL PGSQL
PLUGINS_DESC= Plugins list
CLIENT_DESC= Enable client
DEBUG_DESC= Enable debug
MYSQL_DESC= Install MySQL plugin
PGSQL_DESC= Install PostgreSQL plugin
OPTIONS_DEFAULT=CLIENT
MAN1= tarantool_box.1
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MCLIENT}
CMAKE_ARGS+= -DENABLE_CLIENT=true
PLIST_SUB+= CLIENT=""
MAN1+= tarantool.1
.else
PLIST_SUB+= CLIENT="@comment "
.endif
.if ${PORT_OPTIONS:MDEBUG}
CMAKE_ARGS+= -DCMAKE_BUILD_TYPE=RelWithDebugInfo \
-DENABLE_BACKTRACE=ON
.else
CMAKE_ARGS+= -DCMAKE_BUILD_TYPE=Rel \
-DENABLE_BACKTRACE=OFF
.endif
.if ${PORT_OPTIONS:MMYSQL}
CMAKE_ARGS+= -DWITH_MYSQL=ON
PLIST_SUB+= MYSQL=""
USE_MYSQL= yes
.else
CMAKE_ARGS+= -DWITH_MYSQL=OFF
PLIST_SUB+= MYSQL="@comment "
.endif
.if ${PORT_OPTIONS:MPGSQL}
CMAKE_ARGS+= -DWITH_POSTGRESQL=ON
PLIST_SUB+= PGSQL=""
USE_PGSQL= yes
.else
CMAKE_ARGS+= -DWITH_POSTGRESQL=OFF
PLIST_SUB+= PGSQL="@comment "
.endif
.if ${PORT_OPTIONS:MMYSQL} || ${PORT_OPTIONS:MPGSQL}
PLIST_SUB+= PLUGINS=""
.else
PLIST_SUB+= PLUGINS="@comment "
.endif
post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>
|