Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/lang/lua lua: cmake support in luaversion.mk



details:   https://anonhg.NetBSD.org/pkgsrc/rev/b747aa84132b
branches:  trunk
changeset: 435249:b747aa84132b
user:      nia <nia%pkgsrc.org@localhost>
date:      Thu Jul 02 20:43:26 2020 +0000

description:
lua: cmake support in luaversion.mk

diffstat:

 lang/lua/luaversion.mk |  10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diffs (22 lines):

diff -r b47d34ebfbb6 -r b747aa84132b lang/lua/luaversion.mk
--- a/lang/lua/luaversion.mk    Thu Jul 02 20:09:03 2020 +0000
+++ b/lang/lua/luaversion.mk    Thu Jul 02 20:43:26 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: luaversion.mk,v 1.12 2020/06/30 14:45:05 nia Exp $
+# $NetBSD: luaversion.mk,v 1.13 2020/07/02 20:43:26 nia Exp $
 
 # This file determins which Lua version is used as a dependency for
 # a package.
@@ -164,4 +164,12 @@
 LUA_INTERPRETER=       ${LOCALBASE}/bin/lua${_LUA_DOT_VERSION}
 LUA_COMPILER=          ${LOCALBASE}/bin/luac${_LUA_DOT_VERSION}
 
+.if defined(USE_CMAKE)
+# used by FindLua.cmake
+CMAKE_ARGS+=   -DLua_FIND_VERSION_EXACT=ON
+CMAKE_ARGS+=   -DLua_FIND_VERSION_COUNT=2
+CMAKE_ARGS+=   -DLua_FIND_VERSION_MAJOR=${LUA_VERSION_MAJOR}
+CMAKE_ARGS+=   -DLua_FIND_VERSION_MINOR=${LUA_VERSION_MINOR}
+.endif
+
 .endif  # LUA_LUAVERSION_MK



Home | Main Index | Thread Index | Old Index