pkgsrc-Changes archive

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

CVS commit: pkgsrc/lang/lua



Module Name:    pkgsrc
Committed By:   nia
Date:           Thu Jul  2 20:43:26 UTC 2020

Modified Files:
        pkgsrc/lang/lua: luaversion.mk

Log Message:
lua: cmake support in luaversion.mk


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 pkgsrc/lang/lua/luaversion.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/lang/lua/luaversion.mk
diff -u pkgsrc/lang/lua/luaversion.mk:1.12 pkgsrc/lang/lua/luaversion.mk:1.13
--- pkgsrc/lang/lua/luaversion.mk:1.12  Tue Jun 30 14:45:05 2020
+++ pkgsrc/lang/lua/luaversion.mk       Thu Jul  2 20:43:26 2020
@@ -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_INCDIR=                include/lua-${_LUA_DOT_VERS
 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