openbsd-ports/games/hedgewars/patches/patch-hedgewars_CMakeLists_txt
pascal 5c44c802ad Hedgewars is a turn based strategy, artillery, action and comedy
game, featuring the antics of pink hedgehogs with attitude as they
battle from the depths of hell to the depths of space.

As commander, it's your job to assemble your crack team of hedgehog
soldiers and bring the war to your enemy.

ok landry@
2015-12-27 21:40:56 +00:00

13 lines
850 B
Plaintext

$OpenBSD: patch-hedgewars_CMakeLists_txt,v 1.1.1.1 2015/12/27 21:40:57 pascal Exp $
--- hedgewars/CMakeLists.txt.orig Thu Jul 30 23:31:06 2015
+++ hedgewars/CMakeLists.txt Sun Dec 27 11:40:11 2015
@@ -162,7 +162,7 @@ if(LUA_SYSTEM)
get_filename_component(LUA_LIBRARY_DIR ${LUA_LIBRARY} PATH)
get_filename_component(LUA_LIBRARY_NAME ${LUA_LIBRARY} NAME)
#NAME_WE would strip the .1 (or .2) next to the ".so"
- string(REGEX REPLACE "${CMAKE_SHARED_LIBRARY_PREFIX}(.*)${CMAKE_SHARED_LIBRARY_SUFFIX}" "\\1" LUA_LIBRARY_NAME "${LUA_LIBRARY_NAME}")
+ string(REGEX REPLACE "${CMAKE_SHARED_LIBRARY_PREFIX}(.*)${CMAKE_SHARED_LIBRARY_SUFFIX}.[0-9].[0-9]" "\\1" LUA_LIBRARY_NAME "${LUA_LIBRARY_NAME}")
add_flag_append(CMAKE_Pascal_FLAGS "-Fl${LUA_LIBRARY_DIR} -XLAlua=${LUA_LIBRARY_NAME}")
else()
add_definitions(-dLUA_INTERNAL)