summaryrefslogtreecommitdiffstats
path: root/libraries
diff options
context:
space:
mode:
author Bob Funk <bobfunk11@gmail.com>2025-05-15 19:13:28 -0500
committer Willy Sudiarto Raharjo <willysr@slackbuilds.org>2025-05-16 08:22:15 +0700
commit84d461a4b25430d0a64012bfcc2e2bf278119b3d (patch)
tree8c0d99d30f72cbbf11434d610947fb20e323ca6e /libraries
parentf482569be336f084959d5de2fa059648b4e3258d (diff)
downloadslackbuilds-84d461a4b25430d0a64012bfcc2e2bf278119b3d.tar.gz
slackbuilds-84d461a4b25430d0a64012bfcc2e2bf278119b3d.tar.xz
libraries/tepl: Fix building on Slackware-current
Detect the glib-2.0 version and set G_CONNECT_DEFAULT=0 only on Slackware-15.0 builds, so that tepl still builds on Slackware-current. Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'libraries')
-rw-r--r--libraries/tepl/tepl.SlackBuild9
1 files changed, 8 insertions, 1 deletions
diff --git a/libraries/tepl/tepl.SlackBuild b/libraries/tepl/tepl.SlackBuild
index 6a6195bfca..06e95b32be 100644
--- a/libraries/tepl/tepl.SlackBuild
+++ b/libraries/tepl/tepl.SlackBuild
@@ -87,9 +87,16 @@ find -L . \
sed -i "s/meson_version: '>= 0.64'/meson_version: '>= 0.59'/;
s/'gio-2.0', version: '>= 2.74'/'gio-2.0', version: '>= 2.70'/" meson.build
+# Define G_CONNECT_DEFAULT=0 if glib2 version is less than 2.74.0
+# This is needed to build tepl on Slackware-15.0 with it's glib2-2.70.3 version,
+# but causes tepl to FTB on Slackware-current with its newer glib2 version, so
+# set it depending on detected glib-2.0 version:
+if ! pkg-config --atleast-version 2.74.0 glib-2.0; then
+ SLKCFLAGS="$SLKCFLAGS -DG_CONNECT_DEFAULT=0"
+fi
cd build
- CFLAGS="$SLKCFLAGS -DG_CONNECT_DEFAULT=0" \
+ CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
meson .. \
--buildtype=release \