summaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2021-02-17 16:44:30 -0500
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2021-02-21 00:05:07 +0700
commit99a9bb19d0ef6bd741eb7101799d9a25092c7627 (patch)
treebd55de623ef8137645ff5443cd9f3e5c183686fb /games
parent9752325add790d3b2e308c485b5559e0dc76ae51 (diff)
downloadslackbuilds-99a9bb19d0ef6bd741eb7101799d9a25092c7627.tar.gz
games/CorsixTH: Fix build if lua52/53 present.
Signed-off-by: B. Watson <yalhcru@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'games')
-rw-r--r--games/CorsixTH/CorsixTH.SlackBuild7
1 files changed, 7 insertions, 0 deletions
diff --git a/games/CorsixTH/CorsixTH.SlackBuild b/games/CorsixTH/CorsixTH.SlackBuild
index 8082e31b98..5b413ce9b2 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