diff options
Diffstat (limited to 'extra/libwebkit/PKGBUILD')
-rw-r--r-- | extra/libwebkit/PKGBUILD | 26 |
1 files changed, 20 insertions, 6 deletions
diff --git a/extra/libwebkit/PKGBUILD b/extra/libwebkit/PKGBUILD index 8553daaa4..924d155e6 100644 --- a/extra/libwebkit/PKGBUILD +++ b/extra/libwebkit/PKGBUILD @@ -2,16 +2,16 @@ # Maintainer: Andreas Radke <andyrtr@archlinux.org> pkgbase=libwebkit -pkgname=(libwebkit libwebkit3) +pkgname=(libwebkit) # libwebkit3) pkgver=1.8.3 -pkgrel=1 +pkgrel=1.2 pkgdesc="An opensource web content engine" -arch=('i686' 'x86_64') +arch=('i686' 'x86_64' 'mips64el') url="http://webkitgtk.org/" license=('custom') depends=('libxt' 'libxslt' 'sqlite' 'icu' 'gstreamer0.10-base' 'libsoup' 'enchant' 'libgl' 'geoclue') -makedepends=('gperf' 'gobject-introspection' 'python2' 'gtk2' 'gtk3' 'mesa') +makedepends=('gperf' 'gobject-introspection' 'python2' 'gtk2' 'mesa') # 'gtk3' 'mesa') options=('!libtool' '!emptydirs') source=(http://webkitgtk.org/releases/webkit-$pkgver.tar.xz bison26.diff) @@ -25,12 +25,26 @@ build() { mkdir build-gtk{2,3} + 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 + +# --disable-optimizations will add -O0 + export CFLAGS="${CFLAGS/-O[0-9]}" + + extra="--disable-fast-malloc --disable-optimizations" + fi + # clear makeflags: race during introspection. # WebKit*.gir should be created before WebKit*.typelib, but isn't #MAKEFLAGS= - ( cd build-gtk2 && _build --with-gtk=2.0 ) - ( cd build-gtk3 && _build --with-gtk=3.0 ) + ( cd build-gtk2 && _build --with-gtk=2.0 $extra ) + # ( cd build-gtk3 && _build --with-gtk=3.0 $extra ) } _build() { |