mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-22 19:44:21 +01:00
libraries/wxPython3: Add webkitgtk detection.
Thanks to Alex Kempshall for reporting. Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
109b2f018a
commit
1f65ccdeb3
2 changed files with 14 additions and 2 deletions
|
@ -16,3 +16,6 @@ overwrite some files created by wxPython.
|
|||
If you need to build packages using wxPython, simply reinstall wxPython package and
|
||||
wx-config will point to correct version.
|
||||
The same solution can be used if wxPython's wx-config is overwritten.
|
||||
|
||||
Optional dependency:
|
||||
- To have webview support, please install webkitgtk before installing wxGTK3.
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
PRGNAM=wxPython3
|
||||
SRCNAM=wxPython
|
||||
VERSION=${VERSION:-3.0.2.0}
|
||||
BUILD=${BUILD:-1}
|
||||
BUILD=${BUILD:-2}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
if [ -z "$ARCH" ]; then
|
||||
|
@ -56,6 +56,14 @@ else
|
|||
LIBDIRSUFFIX=""
|
||||
fi
|
||||
|
||||
# check webkitgtk existence
|
||||
webkit=`pkg-config --exists webkit-1.0`
|
||||
if [ "$?" -eq 0 ]; then
|
||||
wx="--enable-webview"
|
||||
else
|
||||
wx="--disable-webview"
|
||||
fi
|
||||
|
||||
set -e
|
||||
|
||||
rm -rf $PKG
|
||||
|
@ -88,7 +96,8 @@ CXXFLAGS="$SLKCFLAGS" \
|
|||
--enable-sound \
|
||||
--disable-precomp-headers \
|
||||
--libdir=/usr/lib$LIBDIRSUFFIX \
|
||||
--build=$ARCH-slackware-linux
|
||||
--build=$ARCH-slackware-linux \
|
||||
$wx
|
||||
|
||||
make
|
||||
|
||||
|
|
Loading…
Reference in a new issue