From 7c54a9e2256a230e815e5e20533011095fbbb063 Mon Sep 17 00:00:00 2001 From: Sunpoet Po-Chuan Hsieh Date: Sat, 6 Feb 2021 20:43:32 +0000 Subject: [PATCH] Clean up Makefile - Use USES=localbase - Use = instead of += for options helper - Silence patch message --- databases/tokyotyrant/Makefile | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/databases/tokyotyrant/Makefile b/databases/tokyotyrant/Makefile index 429a5786b54d..2e69aaac9ec5 100644 --- a/databases/tokyotyrant/Makefile +++ b/databases/tokyotyrant/Makefile @@ -5,7 +5,7 @@ PORTNAME= tokyotyrant PORTVERSION= 1.1.41 PORTREVISION= 2 CATEGORIES= databases -MASTER_SITES= https://dbmx.net/${PORTNAME}/ +MASTER_SITES= https://dbmx.net/tokyotyrant/ MAINTAINER= ports@FreeBSD.org COMMENT= Network interface of Tokyo Cabinet @@ -13,24 +13,21 @@ COMMENT= Network interface of Tokyo Cabinet BUILD_DEPENDS= tokyocabinet>=1.4.20:databases/tokyocabinet LIB_DEPENDS= libtokyocabinet.so:databases/tokyocabinet +USES= gmake localbase pathfix + GNU_CONFIGURE= yes USE_LDCONFIG= yes -USES= gmake pathfix USE_RC_SUBR= ttserver OPTIONS_DEFINE= LUA +OPTIONS_DEFAULT=LUA # should be removed before committing -LDFLAGS+= -L${LOCALBASE}/lib -CFLAGS+= -I${LOCALBASE}/include - +LUA_CFLAGS= -I${LUA_INCDIR} LUA_CONFIGURE_ENABLE= lua -LUA_LDFLAGS+= -L${LUA_LIBDIR} -LUA_CFLAGS+= -I${LUA_INCDIR} -LUA_CPPFLAGS+= -I${LUA_INCDIR} LUA_USES= lua post-patch: - ${REINPLACE_CMD} -e 's|llua|llua-${LUA_VER}|g' ${WRKSRC}/configure + @${REINPLACE_CMD} -e 's|llua|llua-${LUA_VER}|g' ${WRKSRC}/configure post-install: ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/*