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
|
@ -16,3 +16,6 @@ overwrite some files created by wxPython.
|
||||||
If you need to build packages using wxPython, simply reinstall wxPython package and
|
If you need to build packages using wxPython, simply reinstall wxPython package and
|
||||||
wx-config will point to correct version.
|
wx-config will point to correct version.
|
||||||
The same solution can be used if wxPython's wx-config is overwritten.
|
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
|
PRGNAM=wxPython3
|
||||||
SRCNAM=wxPython
|
SRCNAM=wxPython
|
||||||
VERSION=${VERSION:-3.0.2.0}
|
VERSION=${VERSION:-3.0.2.0}
|
||||||
BUILD=${BUILD:-1}
|
BUILD=${BUILD:-2}
|
||||||
TAG=${TAG:-_SBo}
|
TAG=${TAG:-_SBo}
|
||||||
|
|
||||||
if [ -z "$ARCH" ]; then
|
if [ -z "$ARCH" ]; then
|
||||||
|
@ -56,6 +56,14 @@ else
|
||||||
LIBDIRSUFFIX=""
|
LIBDIRSUFFIX=""
|
||||||
fi
|
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
|
set -e
|
||||||
|
|
||||||
rm -rf $PKG
|
rm -rf $PKG
|
||||||
|
@ -88,7 +96,8 @@ CXXFLAGS="$SLKCFLAGS" \
|
||||||
--enable-sound \
|
--enable-sound \
|
||||||
--disable-precomp-headers \
|
--disable-precomp-headers \
|
||||||
--libdir=/usr/lib$LIBDIRSUFFIX \
|
--libdir=/usr/lib$LIBDIRSUFFIX \
|
||||||
--build=$ARCH-slackware-linux
|
--build=$ARCH-slackware-linux \
|
||||||
|
$wx
|
||||||
|
|
||||||
make
|
make
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue