aboutsummaryrefslogtreecommitdiff
path: root/databases/tokyotyrant/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'databases/tokyotyrant/Makefile')
-rw-r--r--databases/tokyotyrant/Makefile18
1 files changed, 14 insertions, 4 deletions
diff --git a/databases/tokyotyrant/Makefile b/databases/tokyotyrant/Makefile
index ad6a1b57c94d..3075761e915b 100644
--- a/databases/tokyotyrant/Makefile
+++ b/databases/tokyotyrant/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= tokyotyrant
-PORTVERSION= 1.1.26
+PORTVERSION= 1.1.27
CATEGORIES= databases
MASTER_SITES= SF
MASTER_SITE_SUBDIR= tokyocabinet
@@ -14,9 +14,8 @@ MASTER_SITE_SUBDIR= tokyocabinet
MAINTAINER= gslin@gslin.org
COMMENT= Network interface of Tokyo Cabinet
-BUILD_DEPENDS= tokyocabinet>=1.4.7:${PORTSDIR}/databases/tokyocabinet
+BUILD_DEPENDS= tokyocabinet>=1.4.20:${PORTSDIR}/databases/tokyocabinet
LIB_DEPENDS= tokyocabinet:${PORTSDIR}/databases/tokyocabinet
-RUN_DEPENDS= tokyocabinet>=1.4.7:${PORTSDIR}/databases/tokyocabinet
GNU_CONFIGURE= yes
USE_LDCONFIG= yes
@@ -27,10 +26,21 @@ MAN1= tcrmgr.1 tcrmttest.1 tcrtest.1 ttserver.1 ttulmgr.1 ttultest.1
MAN3= tcrdb.3 tculog.3 ttutil.3
MAN8= ttservctl.8
+OPTIONS= LUA "Enable LUA support" off
+
+.include <bsd.port.pre.mk>
+
+.if defined(WITH_LUA)
+CONFIGURE_ARGS+= --enable-lua
+CONFIGURE_ENV+= LDFLAGS="-L${LUA_LIBDIR}"
+CFLAGS+= -I${LUA_INCDIR}
+USE_LUA= yes
+.endif
+
# Since gnomehack only works for "(libdir)" case, we need to patch it
# manually.
post-patch:
${REINPLACE_CMD} -e 's|@libdir@/pkgconfig|@prefix@/libdata/pkgconfig|g' \
${WRKSRC}/Makefile.in
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>