diff options
author | Nicolás Reynolds <fauno@kiwwwi.com.ar> | 2012-11-08 10:42:22 -0300 |
---|---|---|
committer | Nicolás Reynolds <fauno@kiwwwi.com.ar> | 2012-11-08 10:42:22 -0300 |
commit | 82dd72a1e6566fb0ef971d2432204d6eeed4d5aa (patch) | |
tree | 3d9edfab4bdf0c2147a1a8b235a36af244bc28c3 | |
parent | a41239c941341e3c2017c6d3644e2cce0f1badf2 (diff) |
ported without optimizations
-rw-r--r-- | extra/webkitgtk/PKGBUILD | 22 |
1 files changed, 18 insertions, 4 deletions
diff --git a/extra/webkitgtk/PKGBUILD b/extra/webkitgtk/PKGBUILD index d77de3a00..7bd428411 100644 --- a/extra/webkitgtk/PKGBUILD +++ b/extra/webkitgtk/PKGBUILD @@ -5,7 +5,7 @@ pkgbase=webkitgtk pkgname=('webkitgtk2' 'webkitgtk3') pkgver=1.10.1 pkgrel=1 -arch=('i686' 'x86_64') +arch=('i686' 'x86_64' 'mips64el') url="http://webkitgtk.org/" license=('custom') makedepends=('libxt' 'libxslt' 'sqlite' 'libsoup' 'enchant' 'libgl' 'geoclue' 'gtk2' 'gtk3' 'gst-plugins-base-libs' 'gperf' 'gobject-introspection' 'python2' 'mesa' 'ruby' 'gtk-doc') @@ -15,7 +15,21 @@ sha1sums=('3a2df2eb42ffdd7f3b39873d5461c347a6330493') build() { cd "$srcdir/webkitgtk-$pkgver" - mkdir build-gtk2 build-gtk3 + mkdir -p build-gtk2 build-gtk3 + + if [ "$CARCH" = "mips64el" ]; then + # Fix MIPS N32 support. + sed -i 's/defined(_ABIO32)/(defined(_ABIO32) || defined(_ABIN32))/' \ + Source/WTF/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/WTF/wtf/Platform.h + +# --disable-optimizations will add -O0 + export CFLAGS="${CFLAGS/-O[0-9]}" + + extra="--disable-fast-malloc --disable-optimizations" + fi cd build-gtk2 PYTHON=/usr/bin/python2 ../configure --prefix=/usr \ @@ -24,7 +38,7 @@ build() { --libexecdir=/usr/lib/webkitgtk2 \ --with-gstreamer=1.0 \ --with-gtk=2.0 \ - --disable-webkit2 + --disable-webkit2 $extra make all stamp-po cd ../build-gtk3 @@ -32,7 +46,7 @@ build() { --enable-introspection \ --disable-silent-rules \ --libexecdir=/usr/lib/webkitgtk3 \ - --with-gstreamer=1.0 + --with-gstreamer=1.0 $extra make all stamp-po } |