aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--desktop/idesk/idesk.SlackBuild10
-rw-r--r--desktop/idesk/imlib2-config-fake4
2 files changed, 13 insertions, 1 deletions
diff --git a/desktop/idesk/idesk.SlackBuild b/desktop/idesk/idesk.SlackBuild
index 3040b30b9331..8644bb97b19c 100644
--- a/desktop/idesk/idesk.SlackBuild
+++ b/desktop/idesk/idesk.SlackBuild
@@ -17,11 +17,13 @@
# on future versions of Slackware (unless upstream suddenly releases a
# new version, but it's been a dead project for almost 10 years now).
+# 20230108 bkw: BUILD=2, work around imlib2-0.10.0 breakage.
+
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=idesk
VERSION=${VERSION:-0.7.5}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -89,6 +91,12 @@ sed -i \
-e 's,Xdialog,kdialog,g' \
examples/*
+# 20230108 bkw: imlib2 dropped their imlib2-config script, this configure
+# really insist on using it. fake it out.
+export PATH=$(pwd):$PATH
+cat $CWD/imlib2-config-fake > imlib2-config
+chmod +x imlib2-config
+
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
diff --git a/desktop/idesk/imlib2-config-fake b/desktop/idesk/imlib2-config-fake
new file mode 100644
index 000000000000..e6c4f196d9d5
--- /dev/null
+++ b/desktop/idesk/imlib2-config-fake
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+[ "$1" = "--libs" ] && echo "-lImlib2"
+exit 0