2013-07-22 14:34:22 +00:00
|
|
|
# Created by: Veniamin Gvozdikov <vg@FreeBSD.org>
|
2012-01-02 15:41:28 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= tarantool
|
2017-05-15 08:37:55 +00:00
|
|
|
PORTVERSION= 1.7.4.0
|
2012-01-02 15:41:28 +00:00
|
|
|
CATEGORIES= databases
|
2017-01-25 14:17:12 +00:00
|
|
|
MASTER_SITES= http://download.tarantool.org/tarantool/1.7/src/
|
2012-01-02 15:41:28 +00:00
|
|
|
|
2013-07-22 14:34:22 +00:00
|
|
|
MAINTAINER= vg@FreeBSD.org
|
2015-07-10 10:59:40 +00:00
|
|
|
COMMENT= NoSQL database running in a Lua application server
|
2012-01-02 15:41:28 +00:00
|
|
|
|
2014-12-05 00:30:20 +00:00
|
|
|
LICENSE= BSD2CLAUSE
|
2012-01-02 15:41:28 +00:00
|
|
|
|
2017-05-27 15:07:11 +00:00
|
|
|
NOT_FOR_ARCHS= armv6 powerpc64 sparc64
|
|
|
|
NOT_FOR_ARCHS_REASON= fails to build: Unsupported architecture
|
2016-04-21 16:43:14 +00:00
|
|
|
|
2013-10-03 22:12:08 +00:00
|
|
|
MAKE_JOBS_UNSAFE=yes
|
2017-06-25 21:07:58 +00:00
|
|
|
USES= cmake:noninja compiler:c++11-lang gettext gmake perl5 readline
|
2012-12-11 20:00:36 +00:00
|
|
|
USE_LDCONFIG= yes
|
2012-01-02 15:41:28 +00:00
|
|
|
USE_RC_SUBR= ${PORTNAME}
|
|
|
|
SUB_FILES= pkg-message
|
2015-07-07 16:59:55 +00:00
|
|
|
|
|
|
|
TT_DATADIR?= /var/db/tarantool
|
|
|
|
TT_RUNDIR?= /var/run/tarantool
|
|
|
|
TT_LOGDIR?= /var/log/tarantool
|
|
|
|
|
2016-12-25 14:23:38 +00:00
|
|
|
CMAKE_ARGS= -DCMAKE_INSTALL_FULL_SYSCONFDIR=${ETCDIR} \
|
2016-01-21 12:20:10 +00:00
|
|
|
-DCMAKE_INSTALL_LOCALSTATEDIR=/var \
|
2017-01-25 14:17:12 +00:00
|
|
|
-DCMAKE_INSTALL_MANDIR=${MANPREFIX}/man \
|
2016-01-21 12:20:10 +00:00
|
|
|
-DENABLE_DIST=ON
|
2012-12-11 20:00:36 +00:00
|
|
|
|
2015-07-07 16:59:55 +00:00
|
|
|
USERS= tarantool
|
|
|
|
GROUPS= tarantool
|
2013-10-03 22:12:08 +00:00
|
|
|
|
2015-07-07 16:59:55 +00:00
|
|
|
SUB_LIST+= PORTNAME=${PORTNAME} \
|
|
|
|
TT_USER=${USERS} \
|
|
|
|
TT_DATADIR=${TT_DATADIR} \
|
|
|
|
TT_LOGDIR=${TT_LOGDIR} \
|
|
|
|
TT_RUNDIR=${TT_RUNDIR}
|
2012-12-11 20:00:36 +00:00
|
|
|
|
2015-07-07 16:59:55 +00:00
|
|
|
PLIST_SUB+= TT_USER=${USERS} \
|
|
|
|
TT_GROUP=${GROUPS} \
|
|
|
|
TT_LOGDIR=${TT_LOGDIR} \
|
|
|
|
TT_DATADIR=${TT_DATADIR} \
|
|
|
|
TT_RUNDIR=${TT_RUNDIR}
|
2012-12-11 20:00:36 +00:00
|
|
|
|
2015-07-07 16:59:55 +00:00
|
|
|
OPTIONS_DEFINE= DEBUG
|
|
|
|
|
2015-11-03 06:49:00 +00:00
|
|
|
.include <bsd.port.options.mk>
|
2015-11-01 21:25:50 +00:00
|
|
|
|
2012-12-11 20:00:36 +00:00
|
|
|
.if ${PORT_OPTIONS:MDEBUG}
|
2013-12-04 18:48:48 +00:00
|
|
|
CMAKE_BUILD_TYPE= RelWithDebugInfo
|
|
|
|
CMAKE_ARGS+= -DENABLE_BACKTRACE=ON
|
2013-10-03 22:12:08 +00:00
|
|
|
.else
|
2013-12-04 18:48:48 +00:00
|
|
|
CMAKE_BUILD_TYPE= Rel
|
|
|
|
CMAKE_ARGS+= -DENABLE_BACKTRACE=OFF
|
2012-12-11 20:00:36 +00:00
|
|
|
.endif
|
2012-01-02 15:41:28 +00:00
|
|
|
|
2015-11-03 06:49:00 +00:00
|
|
|
.include <bsd.port.mk>
|