libraries/wxWidgets: Add webkit2gtk as mandatory dep.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Willy Sudiarto Raharjo 2024-09-02 20:33:38 +07:00
parent d574f76a61
commit 07930f66bd
No known key found for this signature in database
GPG key ID: 3F617144D7238786
3 changed files with 6 additions and 17 deletions

View file

@ -2,10 +2,7 @@ wxWidgets is a cross-platform API for writing GUI applications
on multiple platforms that still utilize the native platform's
controls and utilities.
webkit2gtk is an optional dependency of this package. This will
provide webview support.
nanosvg is another optional dependency. By default, the
nanosvg is optional dependency. By default, the
SlackBuild script checks for the nanosvg system headers and
disables SVG support if they are not found; you can force
different behavior (e.g. using wxWidgets' internal copy of

View file

@ -2,7 +2,7 @@
# Slackware build script for wxWidgets
# Copyright 2023 Willy Sudiarto Raharjo <willysr@slackbuilds.org>
# Copyright 2023-2024 Willy Sudiarto Raharjo <willysr@slackbuilds.org>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@ -26,7 +26,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=wxWidgets
VERSION=${VERSION:-3.2.5}
BUILD=${BUILD:-1}
BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@ -68,14 +68,6 @@ else
stl="OFF"
fi
# Check for WebKit
webkit="$( pkg-config --exists webkit2gtk-4.0 )"
if [ "$?" -eq 0 ]; then
wk="ON"
else
wk="OFF"
fi
# BCS: check for NanoSVG
test -f /usr/include/nanosvg/nanosvg.h
case "${NANOSVG:-auto}" in
@ -119,7 +111,7 @@ cmake -B build-gtk3 \
-DwxUSE_LIBMSPACK=ON \
-DwxUSE_NANOSVG=$nanosvg \
-DwxUSE_STL=$stl \
-DwxUSE_WEBVIEW_WEBKIT=$wk \
-DwxUSE_WEBVIEW_WEBKIT=ON \
-DwxUSE_PRIVATE_FONTS=ON \
-DCMAKE_BUILD_TYPE=Release .
cmake --build build-gtk3
@ -142,7 +134,7 @@ cmake -B build-qt5 \
-DwxUSE_LIBMSPACK=ON \
-DwxUSE_NANOSVG=OFF \
-DwxUSE_STL=$stl \
-DwxUSE_WEBVIEW_WEBKIT=$wk \
-DwxUSE_WEBVIEW_WEBKIT=ON \
-DwxUSE_PRIVATE_FONTS=ON \
-DCMAKE_BUILD_TYPE=Release .
cmake --build build-qt5

View file

@ -5,6 +5,6 @@ DOWNLOAD="https://github.com/wxWidgets/wxWidgets/archive/v3.2.5/wxWidgets-3.2.5.
MD5SUM="d0a5436a48d2008e451976e92b09d248"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""
REQUIRES="webkit2gtk"
MAINTAINER="Willy Sudiarto Raharjo"
EMAIL="willysr@slackbuilds.org"