Gerald Pfeifer 41e60477bd Replace USE_GCC=4.6+ and USE_GCC=4.4+ by USE_GCC=yes.
Right now this is a noop in the former case and a noop in the latter
case unless lang/gcc44 has been installed explicitly.

This puts a bit more emphasis on standardizing on a canonical version
"current" GCC and makes it easier to update that canonical version
by changing the default in Mk/bsd.gcc.mk and updating the lang/gcc port.

That is, USE_GCC=yes means "use a decent/modern version of GCC" without
having to worry about details.

Approved by:	portmgr (bdrewery)
2013-08-17 16:27:24 +00:00

57 lines
1.1 KiB
Makefile

# Created by: Veniamin Gvozdikov <vg@FreeBSD.org>
# $FreeBSD$
PORTNAME= tarantool
PORTVERSION= 1.4.9
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= 45-g2f7b3f9
USES= cmake gettext:build
USE_GCC= yes
USE_GMAKE= yes
USE_LDCONFIG= yes
USE_PERL5= yes
USE_RC_SUBR= ${PORTNAME}
SUB_FILES= pkg-message
MAN1= tarantool_box.1
CMAKE_ARGS= -DCMAKE_MAN_DIR=man/man1
OPTIONS_DEFINE= CLIENT DEBUG STATIC
CLIENT_DESC= Enable client
DEBUG_DESC= Enable debug
STATIC_DESC= Enable static (got core dump)
OPTIONS_DEFAULT=CLIENT DEBUG
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MCLIENT}
CMAKE_ARGS+= -DENABLE_CLIENT=true
CFLAGS+= "-O0 -g"
PLIST_SUB+= CLIENT=""
MAN1+= tarantool.1
.else
PLIST_SUB+= CLIENT="@comment "
.endif
.if ${PORT_OPTIONS:MDEBUG}
CMAKE_ARGS+= -DCMAKE_BUILD_TYPE=RelWithDebugInfo
.endif
.if ${PORT_OPTIONS:MSTATIC}
LIB_DEPENDS+= iconv:${PORTSDIR}/converters/iconv
CMAKE_ARGS+= -DENABLE_STATIC=true
.endif
post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>