blob: ccdf4a6a210d6adea00f2edabc7a23dedb2e1f01 (
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
|
PORTNAME= tarantool
PORTVERSION= 2.10.3
CATEGORIES= databases
MASTER_SITES= https://download.tarantool.org/tarantool/src/
MAINTAINER= balaev@tarantool.org
COMMENT= NoSQL database running in a Lua application server
WWW= https://tarantool.io/
LICENSE= BSD2CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
BROKEN_aarch64= fails to compile: mmintrin.h:50:12: invalid conversion between vector type '__m64' (vector of 1 'long long' value) and integer type 'int' of different siz
BROKEN_riscv64= fails to compile: mmintrin.h:50:12: invalid conversion between vector type '__m64' (vector of 1 'long long' value) and integer type 'int' of different siz
NOT_FOR_ARCHS= armv6 i386 powerpc64 sparc64
NOT_FOR_ARCHS_REASON= fails to build: Unsupported architecture
BUILD_DEPENDS= gsed:textproc/gsed \
msgpuck>=2.0_5:devel/msgpuck
LIB_DEPENDS= libcurl.so:ftp/curl \
libicui18n.so:devel/icu \
libmsgpuck.so:devel/msgpuck \
libyaml.so:textproc/libyaml \
libzstd.so:archivers/zstd
USES= cmake:noninja compiler:c++11-lang cpe gettext-runtime gmake iconv perl5 readline ssl
USE_PERL5= build
BINARY_ALIAS= sed=${LOCALBASE}/bin/gsed
CMAKE_ARGS= -DCMAKE_INSTALL_FULL_SYSCONFDIR=${ETCDIR} \
-DCMAKE_INSTALL_LOCALSTATEDIR=/var \
-DCMAKE_INSTALL_MANDIR=${PREFIX}/share/man
CMAKE_OFF= ENABLE_BUNDLED_LIBCURL \
ENABLE_BUNDLED_LIBYAML \
ENABLE_BUNDLED_MSGPUCK \
ENABLE_BUNDLED_ZSTD
CMAKE_ON= ENABLE_DIST
MAKE_JOBS_UNSAFE= yes
USE_LDCONFIG= yes
USE_RC_SUBR= tarantool
USERS= tarantool
GROUPS= tarantool
PLIST_SUB= TT_DATADIR=${TT_DATADIR} \
TT_LOGDIR=${TT_LOGDIR}
SUB_FILES= pkg-message
TT_DATADIR?= /var/db/tarantool
TT_LOGDIR?= /var/log/tarantool
TT_RUNDIR?= /var/run/tarantool
OPTIONS_DEFINE= DEBUG
DEBUG_CMAKE_BOOL= ENABLE_BACKTRACE
post-patch:
@${ECHO_CMD} ${PORTVERSION}-0 > ${WRKSRC}/VERSION
@${GREP} -lr 'msgpuck/msgpuck.h' ${WRKSRC}/ | ${XARGS} ${REINPLACE_CMD} -e 's|msgpuck/msgpuck.h|msgpuck.h|'
@${REINPLACE_CMD} -e 's|libmsgpuck.a|libmsgpuck.so|' ${WRKSRC}/cmake/FindMsgPuck.cmake
@${REINPLACE_CMD} -e 's|lib/msgpuck.h|msgpuck.h|' ${WRKSRC}/src/lib/core/decimal.c
post-install:
@${RMDIR} ${STAGEDIR}${PREFIX}/lib/tarantool/
.include <bsd.port.mk>
|