summaryrefslogtreecommitdiff
path: root/extra/qtwebkit/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'extra/qtwebkit/PKGBUILD')
-rw-r--r--extra/qtwebkit/PKGBUILD11
1 files changed, 10 insertions, 1 deletions
diff --git a/extra/qtwebkit/PKGBUILD b/extra/qtwebkit/PKGBUILD
index c0c13dd98..94849c15f 100644
--- a/extra/qtwebkit/PKGBUILD
+++ b/extra/qtwebkit/PKGBUILD
@@ -4,7 +4,7 @@
pkgname=qtwebkit
pkgver=2.2.1
pkgrel=2
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
url='http://trac.webkit.org/wiki/QtWebKit'
pkgdesc='An open source web browser engine (Qt port)'
license=('LGPL2.1' 'GPL3')
@@ -22,6 +22,15 @@ sha1sums=('283fc116882157df0474af496be73bb9b34cb001'
build() {
cd "${srcdir}"/QtWebKit-${pkgver}
+ if [ "$CARCH" = "mips64el" ]; then
+ # Fix MIPS N32 support.
+ sed -i 's/defined(_ABIO32)/(defined(_ABIO32) || defined(_ABIN32))/' \
+ Source/JavaScriptCore/wtf/Platform.h
+ # Don't enable JIT even if configure finds that it's not supported.
+ sed -i 's/#define ENABLE_JIT 1/#define ENABLE_JIT 0/' \
+ Source/JavaScriptCore/wtf/Platform.h
+ fi
+
patch -p1 -i "${srcdir}"/python2-path.patch
cd Tools/Scripts