mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-14 03:10:47 +00:00
e6ab3ba661
By request of Gea-Suan Lin <gslin@gslin.org> - reset ports to ports@FreeBSD. Gea-Suan Lin's work is much appreciated. Approved by: portmgr (implicit) (not really, skipping NO_STAGE check)
40 lines
972 B
Makefile
40 lines
972 B
Makefile
# Created by: Gea-Suan Lin <gslin@gslin.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= tokyotyrant
|
|
PORTVERSION= 1.1.41
|
|
PORTREVISION= 1
|
|
CATEGORIES= databases
|
|
MASTER_SITES= http://fallabs.com/${PORTNAME}/
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Network interface of Tokyo Cabinet
|
|
|
|
BUILD_DEPENDS= tokyocabinet>=1.4.20:${PORTSDIR}/databases/tokyocabinet
|
|
LIB_DEPENDS= libtokyocabinet.so:${PORTSDIR}/databases/tokyocabinet
|
|
|
|
GNU_CONFIGURE= yes
|
|
USE_LDCONFIG= yes
|
|
USES= gmake
|
|
USE_RC_SUBR= ttserver
|
|
|
|
OPTIONS_DEFINE= LUA
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
|
CFLAGS+= -I${LOCALBASE}/include
|
|
|
|
LUA_CONFIGURE_ENABLE= lua
|
|
LUA_LDFLAGS+= -L${LUA_LIBDIR}
|
|
LUA_CFLAGS+= -I${LUA_INCDIR}
|
|
LUA_CPPFLAGS+= -I${LUA_INCDIR}
|
|
LUA_USES= lua
|
|
|
|
# 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
|
|
${REINPLACE_CMD} -e 's|llua|llua-${LUA_VER}|g' ${WRKSRC}/configure
|
|
|
|
.include <bsd.port.mk>
|