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 8c289f466..5f4f6538c 100644
--- a/extra/qtwebkit/PKGBUILD
+++ b/extra/qtwebkit/PKGBUILD
@@ -4,7 +4,7 @@
pkgname=qtwebkit
pkgver=2.2.2
pkgrel=1
-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')
@@ -24,6 +24,15 @@ sha1sums=('914d7cc099e5b6181c2d74fc7a74e1b4478b75a4'
build() {
cd "${srcdir}"/${pkgname}-${pkgver}-source
+ 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}"/glibc.patch
patch -p1 -i "${srcdir}"/fix-build.patch