pkgsrc/databases/lua-tokyocabinet/Makefile

60 lines
1.5 KiB
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.29 2020/07/02 10:26:18 nia Exp $
#
DISTNAME= tokyocabinet-lua-1.10
PKGNAME= ${LUA_PKGPREFIX}-${DISTNAME:S/-lua-/-/}
2014-10-20 00:27:43 +02:00
PKGREVISION= 2
CATEGORIES= databases lua
2010-03-12 11:21:54 +01:00
MASTER_SITES= ${HOMEPAGE:S/luadoc/luapkg/}
2015-03-15 20:57:40 +01:00
MAINTAINER= pkgsrc-users@NetBSD.org
2019-07-11 11:25:24 +02:00
HOMEPAGE= https://fallabs.com/tokyocabinet/luadoc/
COMMENT= Lua binding of Tokyo Cabinet
LICENSE= gnu-lgpl-v2.1
GNU_CONFIGURE= yes
USE_LANGUAGES= c
USE_TOOLS+= pkg-config pax
TEST_TARGET= check
TEST_ENV+= LUA_CDIR=${WRKSRC}
2013-10-30 07:20:45 +01:00
REPLACE_LUA= *.lua
2014-05-03 15:01:24 +02:00
INSTALLATION_DIRS+= ${LUA_DOCDIR} ${LUA_EXAMPLESDIR}
MAKE_ENV+= INCLUDEDIR=${BUILDLINK_PREFIX.tokyocabinet}/include
.include "../../mk/bsd.prefs.mk"
.if ${SHLIB_TYPE} == "dylib"
SOEXT= dylib
.else
SOEXT= so
.endif
PLIST_SUBST+= SOEXT=${SOEXT}
post-extract:
${CHMOD} -R go-w ${WRKSRC}
post-install:
cd ${WRKSRC}/doc && pax -rwpp . \
2014-05-03 15:01:24 +02:00
${DESTDIR}${PREFIX}/${LUA_DOCDIR}
mv ${DESTDIR}${PREFIX}/bin/*.lua \
${DESTDIR}${PREFIX}/${LUA_EXAMPLESDIR}
2009-07-20 05:01:09 +02:00
BUILDLINK_API_DEPENDS.tokyocabinet+= tokyocabinet>=1.4.29
.include "../../databases/tokyocabinet/buildlink3.mk"
2013-10-30 07:20:45 +01:00
.include "../../lang/lua/application.mk"
.include "../../lang/lua/module.mk"
2014-05-03 15:01:24 +02:00
.include "../../lang/lua/tool.mk"
PTHREAD_AUTO_VARS= yes
.include "../../mk/pthread.buildlink3.mk"
.if defined(PTHREAD_TYPE) && ${PTHREAD_TYPE} != "none"
SUBST_CLASSES+= pthread
SUBST_STAGE.pthread= pre-configure
SUBST_FILES.pthread= configure
SUBST_SED.pthread= -e 's|-lpthread|${PTHREAD_LIBS}|'
.endif
.include "../../mk/bsd.pkg.mk"