diff --git a/system/yelp/yelp.SlackBuild b/system/yelp/yelp.SlackBuild index f12b8946e58..9ab81e30c75 100644 --- a/system/yelp/yelp.SlackBuild +++ b/system/yelp/yelp.SlackBuild @@ -76,6 +76,10 @@ 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 +91,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