aboutsummaryrefslogtreecommitdiff
path: root/system/yelp/yelp.SlackBuild
diff options
context:
space:
mode:
authorTim Dickson <dickson.tim@googlemail.com>2024-07-25 12:23:18 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2024-07-26 12:03:38 +0700
commit24729b4b1b59df86f213318833eed725d3ec4c78 (patch)
tree11befa3ceb246716f7769908c06a740998c71275 /system/yelp/yelp.SlackBuild
parent3e54546fdcbec79a3166d4ad39f3417f2e3ee22c (diff)
system/yelp: add webkit2gtk4.1 support
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/yelp/yelp.SlackBuild')
-rw-r--r--system/yelp/yelp.SlackBuild9
1 files changed, 7 insertions, 2 deletions
diff --git a/system/yelp/yelp.SlackBuild b/system/yelp/yelp.SlackBuild
index f12b8946e58c9..9fa5cadab7c3d 100644
--- a/system/yelp/yelp.SlackBuild
+++ b/system/yelp/yelp.SlackBuild
@@ -26,7 +26,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=yelp
VERSION=${VERSION:-42.2}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -76,6 +76,11 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+WKIT2="4-0" #handle either webkit2gtk or webkit2gtk4.1
+if $(pkg-config --exists webkit2gtk-4.1); then
+ WKIT2="4-1"
+fi
+
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
@@ -87,7 +92,7 @@ CXXFLAGS="$SLKCFLAGS" \
--docdir=/usr/doc/$PRGNAM-$VERSION \
--enable-static=no \
--disable-schemas-compile \
- --with-webkit2gtk-4-0 \
+ --with-webkit2gtk-$WKIT2 \
--build=$ARCH-slackware-linux
make