aboutsummaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2023-01-08 12:54:53 -0500
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2023-01-14 08:50:24 +0700
commit00aa5e2139feff2399dda2c90913197fc89cd83b (patch)
treeab4b41e78c6cb33c1e6d35d4a8bab1a4032ddea9 /desktop
parent8eb74cb898064c17edaeb5d93cf45ea7b6afbf3a (diff)
desktop/mhsetroot: Work around imlib2 breakage.
Signed-off-by: B. Watson <urchlay@slackware.uk> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'desktop')
-rw-r--r--desktop/mhsetroot/imlib2-config-fake4
-rw-r--r--desktop/mhsetroot/mhsetroot.SlackBuild6
2 files changed, 10 insertions, 0 deletions
diff --git a/desktop/mhsetroot/imlib2-config-fake b/desktop/mhsetroot/imlib2-config-fake
new file mode 100644
index 000000000000..e6c4f196d9d5
--- /dev/null
+++ b/desktop/mhsetroot/imlib2-config-fake
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+[ "$1" = "--libs" ] && echo "-lImlib2"
+exit 0
diff --git a/desktop/mhsetroot/mhsetroot.SlackBuild b/desktop/mhsetroot/mhsetroot.SlackBuild
index d2b0c3c51178..678211dc1afb 100644
--- a/desktop/mhsetroot/mhsetroot.SlackBuild
+++ b/desktop/mhsetroot/mhsetroot.SlackBuild
@@ -24,6 +24,8 @@
# Now maintained by B. Watson <urchlay@slackware.uk>.
+# 20230108 bkw: BUILD=3, fix breakage due to imlib2-0.10.0.
+
# 20220208 bkw: BUILD=2
# - take over maintenance.
# - install AUTHORS and COPYING to doc dir.
@@ -86,6 +88,10 @@ 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 {} \+
+cat $CWD/imlib2-config-fake > imlib2-config
+chmod +x imlib2-config
+export PATH=$(pwd):$PATH
+
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS -std=c++11" \
./configure \