summaryrefslogtreecommitdiff
path: root/libraries/wxPython3
diff options
context:
space:
mode:
authorWilly Sudiarto Raharjo <willysr@slackbuilds.org>2016-09-29 00:19:48 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2016-10-01 07:17:18 +0700
commit1f65ccdeb333daaeef01ffa5cec61cd8bd5d07b4 (patch)
tree075c29ca6012ed8b67dc72d0a67c94fd7ace8b09 /libraries/wxPython3
parent109b2f018af8e4c87e4c793c7c03dfab919fc450 (diff)
downloadslackbuilds-1f65ccdeb333daaeef01ffa5cec61cd8bd5d07b4.tar.gz
libraries/wxPython3: Add webkitgtk detection.
Thanks to Alex Kempshall for reporting. Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'libraries/wxPython3')
-rw-r--r--libraries/wxPython3/README3
-rw-r--r--libraries/wxPython3/wxPython3.SlackBuild13
2 files changed, 14 insertions, 2 deletions
diff --git a/libraries/wxPython3/README b/libraries/wxPython3/README
index 2768e60a6e..39946a5a65 100644
--- a/libraries/wxPython3/README
+++ b/libraries/wxPython3/README
@@ -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.
diff --git a/libraries/wxPython3/wxPython3.SlackBuild b/libraries/wxPython3/wxPython3.SlackBuild
index 181ff3e867..4284135177 100644
--- a/libraries/wxPython3/wxPython3.SlackBuild
+++ b/libraries/wxPython3/wxPython3.SlackBuild
@@ -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