summaryrefslogtreecommitdiff
path: root/databases/tarantool/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'databases/tarantool/Makefile')
-rw-r--r--databases/tarantool/Makefile62
1 files changed, 37 insertions, 25 deletions
diff --git a/databases/tarantool/Makefile b/databases/tarantool/Makefile
index 05cc4e32203a..c5d306c2a9da 100644
--- a/databases/tarantool/Makefile
+++ b/databases/tarantool/Makefile
@@ -1,43 +1,55 @@
-# New ports collection makefile for: tarantool
-# Date created: 2011-11-25
-# Whom: Gvozdikov Veniamin <g.veniamin@googlemail.com>
-#
+# Created by: Gvozdikov Veniamin <g.veniamin@googlemail.com>
# $FreeBSD$
-#
PORTNAME= tarantool
-PORTVERSION= 1.3.5
+PORTVERSION= 1.4.8
CATEGORIES= databases
-MASTER_SITES= http://launchpadlibrarian.net/71705094/
-DISTNAME= ${PORTNAME}-${PORTVERSION}-src
+MASTER_SITES= http://tarantool.org/dist/
+DISTNAME= ${PORTNAME}-${PORTVERSION}-${TR_REV}-src
MAINTAINER= g.veniamin@googlemail.com
-COMMENT= Tarantool, is a high performance key/value storage server
+COMMENT= High performance key/value storage server
LICENSE= BSD
-ONLY_FOR_ARCHS= i386
-
+TR_REV= 20-gdfe40fc
USE_CMAKE= yes
-ARCH= i386
+USE_GCC= 4.6+
+USE_GETTEXT= build
+USE_GMAKE= yes
+USE_LDCONFIG= yes
+USE_PERL5= yes
USE_RC_SUBR= ${PORTNAME}
SUB_FILES= pkg-message
+MAN1= tarantool_box.1
+
+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
-.include <bsd.port.pre.mk>
+.if ${PORT_OPTIONS:MDEBUG}
+CMAKE_ARGS+= -DCMAKE_BUILD_TYPE=RelWithDebugInfo
+.endif
-post-patch:
- @${REINPLACE_CMD} -e 's|%%DOCSDIR%%|${DOCSDIR}|g' \
- ${WRKSRC}/CMakeLists.txt
- @${REINPLACE_CMD} -e 's|%%ETCDIR%%|${ETCDIR}|g' \
- ${WRKSRC}/test/CMakeLists.txt
- @${RM} ${WRKSRC}/test/lib/server.py \
- ${WRKSRC}/test/lib/silverbox.py \
- ${WRKSRC}/test/lib/tarantool_admin.py \
- ${WRKSRC}/test/lib/tarantool_feeder_server.py \
- ${WRKSRC}/test/lib/tarantool_server.py \
- ${WRKSRC}/test/lib/*.orig
+.if ${PORT_OPTIONS:MSTATIC}
+CMAKE_ARGS+= -DENABLE_STATIC=true
+.endif
post-install:
@${CAT} ${PKGMESSAGE}
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>