mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-07 06:40:06 +00:00
5e373eaa92
Using ninja instead of make (1) can lead to significant speed ups while building. Therefore switch from having the ninja generator opt-in to having it opt-out. Previously cmake-ports that wanted to use ninja could set CMAKE_NINJA=yes now, ports that do not work with ninja can set cmake:<existing args>,noninja Note, that needing this should be an exception and most often points to a broken cmake of the port. The ports using cmake were modified * removed USES=gmake, if ninja is used * removed MAKE_ARGS, if ninja is used * added the cmake-argument noninja if necessary PR: 219629 PR: 213331 Exp-run by: antoine Reviewed by: rakuco Differential Revision: https://reviews.freebsd.org/D10748
60 lines
1.3 KiB
Makefile
60 lines
1.3 KiB
Makefile
# Created by: Veniamin Gvozdikov <vg@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= tarantool
|
|
PORTVERSION= 1.7.4.0
|
|
CATEGORIES= databases
|
|
MASTER_SITES= http://download.tarantool.org/tarantool/1.7/src/
|
|
|
|
MAINTAINER= vg@FreeBSD.org
|
|
COMMENT= NoSQL database running in a Lua application server
|
|
|
|
LICENSE= BSD2CLAUSE
|
|
|
|
NOT_FOR_ARCHS= armv6 powerpc64 sparc64
|
|
NOT_FOR_ARCHS_REASON= fails to build: Unsupported architecture
|
|
|
|
MAKE_JOBS_UNSAFE=yes
|
|
USES= cmake:noninja compiler:c++11-lang gettext gmake perl5 readline
|
|
USE_LDCONFIG= yes
|
|
USE_RC_SUBR= ${PORTNAME}
|
|
SUB_FILES= pkg-message
|
|
|
|
TT_DATADIR?= /var/db/tarantool
|
|
TT_RUNDIR?= /var/run/tarantool
|
|
TT_LOGDIR?= /var/log/tarantool
|
|
|
|
CMAKE_ARGS= -DCMAKE_INSTALL_FULL_SYSCONFDIR=${ETCDIR} \
|
|
-DCMAKE_INSTALL_LOCALSTATEDIR=/var \
|
|
-DCMAKE_INSTALL_MANDIR=${MANPREFIX}/man \
|
|
-DENABLE_DIST=ON
|
|
|
|
USERS= tarantool
|
|
GROUPS= tarantool
|
|
|
|
SUB_LIST+= PORTNAME=${PORTNAME} \
|
|
TT_USER=${USERS} \
|
|
TT_DATADIR=${TT_DATADIR} \
|
|
TT_LOGDIR=${TT_LOGDIR} \
|
|
TT_RUNDIR=${TT_RUNDIR}
|
|
|
|
PLIST_SUB+= TT_USER=${USERS} \
|
|
TT_GROUP=${GROUPS} \
|
|
TT_LOGDIR=${TT_LOGDIR} \
|
|
TT_DATADIR=${TT_DATADIR} \
|
|
TT_RUNDIR=${TT_RUNDIR}
|
|
|
|
OPTIONS_DEFINE= DEBUG
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${PORT_OPTIONS:MDEBUG}
|
|
CMAKE_BUILD_TYPE= RelWithDebugInfo
|
|
CMAKE_ARGS+= -DENABLE_BACKTRACE=ON
|
|
.else
|
|
CMAKE_BUILD_TYPE= Rel
|
|
CMAKE_ARGS+= -DENABLE_BACKTRACE=OFF
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|