1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-27 00:57:50 +00:00
freebsd-ports/databases/tokyotyrant/Makefile
Dmitry Marakasov 6f6fbe4bdf - Add LDFLAGS to CONFIGURE_ENV and MAKE_ENV (as it was done with LDFLAGS)
- Fix all ports that add {CPP,LD}FLAGS to *_ENV to modify flags instead

PR:		157936
Submitted by:	myself
Exp-runs by:	pav
Approved by:	pav
2011-09-23 22:26:39 +00:00

51 lines
1.1 KiB
Makefile

# New ports collection makefile for: tokyotyrant
# Date created: 2009-03-09
# Whom: Gea-Suan Lin <gslin@gslin.org>
#
# $FreeBSD$
#
PORTNAME= tokyotyrant
PORTVERSION= 1.1.41
CATEGORIES= databases
MASTER_SITES= http://fallabs.com/${PORTNAME}/
MAINTAINER= gslin@gslin.org
COMMENT= Network interface of Tokyo Cabinet
BUILD_DEPENDS= tokyocabinet>=1.4.20:${PORTSDIR}/databases/tokyocabinet
LIB_DEPENDS= tokyocabinet:${PORTSDIR}/databases/tokyocabinet
GNU_CONFIGURE= yes
USE_LDCONFIG= yes
USE_GMAKE= yes
USE_RC_SUBR= ttserver
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
LDFLAGS+= -L${LOCALBASE}/lib
CFLAGS+= -I${LOCALBASE}/include
.include <bsd.port.pre.mk>
.if defined(WITH_LUA)
CONFIGURE_ARGS+= --enable-lua
LDFLAGS+= -L${LUA_LIBDIR}
CFLAGS+= -I${LUA_INCDIR}
USE_LUA= yes
.else
CONFIGURE_ARGS+= --disable-lua
.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.post.mk>