aboutsummaryrefslogtreecommitdiff
path: root/games/noteye
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2024-11-03 02:16:00 -0500
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2024-11-09 07:02:41 +0700
commit6cc3c5dc1a3e5c34b8b6921e4a92e7b2ca509679 (patch)
tree134f57e7bb77147ddc1e5d4b31f5399d2532103f /games/noteye
parent16620f9b7276f124ac691cfb1beccf99f0f72a99 (diff)
games/noteye: Fix luajit include path.
Signed-off-by: B. Watson <urchlay@slackware.uk> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'games/noteye')
-rw-r--r--games/noteye/noteye.SlackBuild11
1 files changed, 10 insertions, 1 deletions
diff --git a/games/noteye/noteye.SlackBuild b/games/noteye/noteye.SlackBuild
index 99a3cdf2d9..6211ec8dc6 100644
--- a/games/noteye/noteye.SlackBuild
+++ b/games/noteye/noteye.SlackBuild
@@ -6,6 +6,12 @@
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
+# 20241103 bkw: BUILD=3, fix include path for luajit. This was always
+# wrong, but "masked" because luajit used to have REQUIRES=lua, so
+# noteye would use the lua.h from lua, not luajit, and it happened to
+# compile OK. Now, if luajit was installed without lua, it couldn't
+# find lua.h. Fixed.
+
# 20230109 bkw: BUILD=2, remove empty dir from docs.
# 20211115 bkw:
@@ -22,7 +28,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=noteye
VERSION=${VERSION:-8.4}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-3}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -87,6 +93,9 @@ patch -p1 < $CWD/sbo.diff
# fix underlinking.
sed -i '/-lGLU *\$(TGT) *$/s,$, -lSDL2,' src/Makefile
+# 20241103 bkw: fix include path for luajit.
+sed -i 's,-I/usr/include/lua5.1,-I/usr/include/luajit-2.0,' src/Makefile
+
# release tarball for 8.4 is missing this header (so use a copy
# from upstream's github)
xzcat $CWD/mtrand.h.xz > hydra/mtrand.h