diff options
Diffstat (limited to 'irc/weechat/files/patch-cmake-FindLua_cmake')
-rw-r--r-- | irc/weechat/files/patch-cmake-FindLua_cmake | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/irc/weechat/files/patch-cmake-FindLua_cmake b/irc/weechat/files/patch-cmake-FindLua_cmake index 820b311b2195..e960bcef3623 100644 --- a/irc/weechat/files/patch-cmake-FindLua_cmake +++ b/irc/weechat/files/patch-cmake-FindLua_cmake @@ -1,6 +1,6 @@ ---- cmake/FindLua.cmake.orig 2010-12-10 15:13:27.000000000 +0000 -+++ cmake/FindLua.cmake 2010-12-12 04:00:45.000000000 +0000 -@@ -33,51 +33,24 @@ +--- cmake/FindLua.cmake.orig 2012-07-06 10:35:11.000000000 +0000 ++++ cmake/FindLua.cmake 2012-07-07 23:45:24.258581623 +0000 +@@ -33,51 +33,25 @@ SET(LUA_FIND_QUIETLY TRUE) ENDIF(LUA_FOUND) @@ -37,8 +37,13 @@ - LUA50_LIBRARY NAMES lua50 lua5.0 lua-5.0 lua - PATHS /lib /usr/lib /usr/local/lib /usr/pkg/lib - PATH_SUFFIXES lua50 lua5.0 lua-5.0 lua -- ) -- ++IF(BSD_LUA_VER VERSION_EQUAL "5.0") ++ FIND_LIBRARY(LUALIB_LIBRARY ++ NAMES lualib ++ PATHS ${BSD_LUA_LIBDIR} + ) ++ENDIF(BSD_LUA_VER VERSION_EQUAL "5.0") + - FIND_LIBRARY( - LUALIB50_LIBRARY NAMES lualib50 lualib5.0 lualib-5.0 lualib - PATHS /lib /usr/lib /usr/local/lib /usr/pkg/lib @@ -53,12 +58,7 @@ - SET(LUA_FOUND TRUE) - ENDIF(LUA50_INCLUDE_PATH AND LUA50_LIBRARY AND LUALIB50_LIBRARY) -ENDIF(LUA51_INCLUDE_PATH AND LUA51_LIBRARY) -+SET(LUA_VERSION ${BSD_LUA_VER}) -+ -+IF(LUA_VERSION STREQUAL "5.0") -+ SET(LUALIB_LIBRARY ${LUA_LIBRARY}) -+ENDIF(LUA_VERSION STREQUAL "5.0") - +- +IF(LUA_INCLUDE_PATH AND LUA_LIBRARY) + SET(LUA_FOUND TRUE) +ENDIF(LUA_INCLUDE_PATH AND LUA_LIBRARY) |