diff options
-rw-r--r-- | games/CorsixTH/CorsixTH.SlackBuild | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/games/CorsixTH/CorsixTH.SlackBuild b/games/CorsixTH/CorsixTH.SlackBuild index 8082e31b9899f..5b413ce9b2b9a 100644 --- a/games/CorsixTH/CorsixTH.SlackBuild +++ b/games/CorsixTH/CorsixTH.SlackBuild @@ -22,6 +22,10 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# 20210217 bkw: modified by SlackBuilds.org: build would fail if both +# lua and lua52 (or lua53) were installed. The fix is to force cmake +# to use the libraries from lua (version 5.1.5). + PRGNAM=CorsixTH VERSION=${VERSION:-0.63} BUILD=${BUILD:-1} @@ -75,6 +79,9 @@ cd build -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ -DCMAKE_INSTALL_PREFIX=/usr \ + -DLUA_LIBRARY="/usr/lib$LIBDIRSUFFIX/liblua.so" \ + -DLUA_INCLUDE_DIR="/usr/include/" \ + -DLUA_MATH_LIBRARY="/usr/lib$LIBDIRSUFFIX/libm.so" \ -DCMAKE_BUILD_TYPE=Release .. make make install/strip DESTDIR=$PKG |