1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-16 07:58:04 +00:00

Clean up Makefile

- Use USES=localbase
- Use = instead of += for options helper
- Silence patch message
This commit is contained in:
Sunpoet Po-Chuan Hsieh 2021-02-06 20:43:32 +00:00
parent b761bbdfb8
commit 7c54a9e225
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=564251

View File

@ -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/*