Import of pkgsrc-2014Q1
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
# $NetBSD: module.mk,v 1.3 2009/06/14 22:58:02 joerg Exp $
|
||||
# $NetBSD: module.mk,v 1.5 2013/10/30 06:18:09 dholland Exp $
|
||||
#
|
||||
# This Makefile fragment is intended to be included by packages that
|
||||
# install Lua packages.
|
||||
@@ -6,23 +6,24 @@
|
||||
.if !defined(LUA_MODULE_MK)
|
||||
LUA_MODULE_MK= # defined
|
||||
|
||||
.include "../../lang/lua/version.mk"
|
||||
.include "../../lang/lua/luaversion.mk"
|
||||
|
||||
_LUA_VERSION= ${LUA_VERSION_MAJOR}.${LUA_VERSION_MINOR}
|
||||
|
||||
LUA_PKGPREFIX= lua
|
||||
LUA_LDIR= share/lua/${_LUA_VERSION}
|
||||
LUA_LDIR= share/lua/${_LUA_DOT_VERSION}
|
||||
PLIST_SUBST+= LUA_LDIR=${LUA_LDIR}
|
||||
|
||||
.if defined(NO_BUILD) && empty(NO_BUILD:M[Nn][Oo])
|
||||
DEPENDS+= lua-${_LUA_VERSION}.*:../../lang/lua
|
||||
DEPENDS+= ${LUA_BASEDEPENDS}
|
||||
|
||||
.else
|
||||
LUA_CDIR= lib/lua/${_LUA_VERSION}
|
||||
LUA_CDIR= lib/lua/${_LUA_DOT_VERSION}
|
||||
PLIST_SUBST+= LUA_CDIR=${LUA_CDIR}
|
||||
|
||||
BUILDLINK_API_DEPENDS.lua+= lua-${_LUA_VERSION}.*
|
||||
PRINT_PLIST_AWK+= /^${LUA_LDIR:S|/|\\/|g}/ \
|
||||
{ gsub(/${LUA_LDIR:S|/|\\/|g}/, "$${LUA_LDIR}") }
|
||||
PRINT_PLIST_AWK+= /^${LUA_CDIR:S|/|\\/|g}/ \
|
||||
{ gsub(/${LUA_CDIR:S|/|\\/|g}/, "$${LUA_CDIR}") }
|
||||
|
||||
.include "../../lang/lua/buildlink3.mk"
|
||||
.include "${LUA_PKGSRCDIR}/buildlink3.mk"
|
||||
.endif
|
||||
|
||||
.endif # LUA_MODULE_MK
|
||||
|
||||
Reference in New Issue
Block a user