diff options
-rw-r--r-- | libraries/wxPython3/README | 3 | ||||
-rw-r--r-- | libraries/wxPython3/wxPython3.SlackBuild | 13 |
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 |