summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author B. Watson <urchlay@slackware.uk>2023-01-08 12:44:17 -0500
committer Willy Sudiarto Raharjo <willysr@slackbuilds.org>2023-01-14 08:50:24 +0700
commit8eb74cb898064c17edaeb5d93cf45ea7b6afbf3a (patch)
tree35fb108f7ea2bf43d0ae88eb5a00c11776c70c18
parentbc4bb4703db4fdaa8d346a13c4cc5435da11d452 (diff)
downloadslackbuilds-8eb74cb898064c17edaeb5d93cf45ea7b6afbf3a.tar.gz
slackbuilds-8eb74cb898064c17edaeb5d93cf45ea7b6afbf3a.tar.xz
desktop/idesk: Work around imlib2 breakage.
Signed-off-by: B. Watson <urchlay@slackware.uk> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-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 3040b30b93..8644bb97b1 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 0000000000..e6c4f196d9
--- /dev/null
+++ b/desktop/idesk/imlib2-config-fake
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+[ "$1" = "--libs" ] && echo "-lImlib2"
+exit 0