summaryrefslogtreecommitdiff
path: root/libraries/wxPython3/wxPython3.SlackBuild
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/wxPython3.SlackBuild
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/wxPython3.SlackBuild')
-rw-r--r--libraries/wxPython3/wxPython3.SlackBuild13
1 files changed, 11 insertions, 2 deletions
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