aboutsummaryrefslogtreecommitdiff
path: root/games/oblige/oblige.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'games/oblige/oblige.SlackBuild')
-rw-r--r--games/oblige/oblige.SlackBuild17
1 files changed, 10 insertions, 7 deletions
diff --git a/games/oblige/oblige.SlackBuild b/games/oblige/oblige.SlackBuild
index cbb0ef26b0..029db7783a 100644
--- a/games/oblige/oblige.SlackBuild
+++ b/games/oblige/oblige.SlackBuild
@@ -6,6 +6,8 @@
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
+# 20250806 bkw: BUILD=4, fix for impending fltk-1.4 update.
+
# 20230107 bkw: BUILD=3, fix line endings in .desktop file.
# 20211020 bkw: BUILD=2
@@ -48,7 +50,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=oblige
VERSION=${VERSION:-7.70}
-BUILD=${BUILD:-3}
+BUILD=${BUILD:-4}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -71,16 +73,12 @@ OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i586" ]; then
SLKCFLAGS="-O2 -march=i586 -mtune=i686"
- LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
- LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
- LIBDIRSUFFIX="64"
else
SLKCFLAGS="-O2"
- LIBDIRSUFFIX=""
fi
set -e
@@ -116,8 +114,8 @@ fi
cd ${SRCNAM}-${VERSION}-source
chown -R root:root .
-find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \
- \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+
+find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} + -o \
+ \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} +
# N.B. these diffs *must* be gzipped, they contain a mix of \n and
# \r\n line endings, git would strip the \r's.
@@ -132,6 +130,11 @@ if [ ! -d prefabs ]; then
sed -i '/\/prefabs/d' Makefile
fi
+# 20250806 bkw: this is *really fucking stupid*: upstream put in a
+# check that says "FLTK 1.3.0 or newer", but it actually checks for
+# 1.3.x (so 1.4.x will fail).
+sed -i '/FL_MINOR_VERSION/s,!=,<,' gui/ui_window.cc
+
make PREFIX=/usr OPTIMISE="$SLKCFLAGS"
make install PREFIX=$PKG/usr
mv $PKG/usr/bin $PKG/usr/games