diff options
Diffstat (limited to 'extra/webkitgtk/PKGBUILD')
-rw-r--r-- | extra/webkitgtk/PKGBUILD | 80 |
1 files changed, 37 insertions, 43 deletions
diff --git a/extra/webkitgtk/PKGBUILD b/extra/webkitgtk/PKGBUILD index ea93ba2b0..6e907c355 100644 --- a/extra/webkitgtk/PKGBUILD +++ b/extra/webkitgtk/PKGBUILD @@ -1,22 +1,23 @@ -# $Id: PKGBUILD 175876 2013-01-23 00:13:13Z eric $ +# $Id: PKGBUILD 183326 2013-04-21 22:06:45Z heftig $ # Maintainer: Andreas Radke <andyrtr@archlinux.org> pkgbase=webkitgtk -pkgname=('webkitgtk2' 'webkitgtk3') -pkgver=1.10.2 -pkgrel=2 +pkgname=('webkitgtk3') +pkgver=2.0.1 +pkgrel=1 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' 'gstreamer0.10-base' 'gperf' 'gobject-introspection' 'python2' 'mesa' 'ruby' 'gtk-doc') +makedepends=('libxt' 'libxslt' 'sqlite' 'libsoup' 'enchant' 'libgl' 'geoclue' 'gtk2' 'gtk3' 'gst-plugins-base-libs' 'gperf' 'gobject-introspection' 'python' 'mesa' 'ruby' 'gtk-doc' 'libsecret' 'libwebp') options=('!libtool' '!emptydirs') -source=(http://webkitgtk.org/releases/webkitgtk-$pkgver.tar.xz) -sha256sums=('19234f8e4edfaefe91ed06471a2aa8c71d26dd55d33787eede1dcfc9a3a96d9c') - -build() { - cd "$srcdir/webkitgtk-$pkgver" - mkdir -p build-gtk2 build-gtk3 +source=(http://webkitgtk.org/releases/$pkgbase-$pkgver.tar.xz + 0001-https-bugs.webkit.org-show_bug.cgi-id-112141.patch) +sha256sums=('6303552a39d7912725d75bc55f530cdb99171fb873e299798d0bb932d6ea76cb' + '7b4c1419342bafcca642d7a41abe92713810401591906b081fe476169cb9a3aa') +prepare() { + cd $pkgbase-$pkgver + mkdir build-gtk3 if [ "$CARCH" = "mips64el" ]; then # Fix MIPS N32 support. sed -i 's/defined(_ABIO32)/(defined(_ABIO32) || defined(_ABIN32))/' \ @@ -24,52 +25,45 @@ build() { # 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 + fi + + # Fix build on 32-bit platforms. + patch -p1 -i "$srcdir/0001-https-bugs.webkit.org-show_bug.cgi-id-112141.patch" -# --disable-optimizations will add -O0 - export CFLAGS="${CFLAGS/-O[0-9]}" + # Won't be made before files there. + mkdir -p build-gtk3/Programs/resources +} + +build() { + cd $pkgbase-$pkgver/build-gtk3 + if [ "$CARCH" = "mips64el" ]; then + # Optimizations make it segfault when running; without + # -mlong-calls R_MIPS_26 relocations will be used and truncated. + # Disable unneeded arch-specific warnings. + export CPPFLAGS="${CPPFLAGS/-D_FORTIFY_SOURCE=[0-9]} -Wno-cast-align" + export CFLAGS="${CFLAGS/-O[0-9]} -mlong-calls" + export CXXFLAGS="${CXXFLAGS/-O[0-9]} -mlong-calls" extra="--disable-fast-malloc --disable-optimizations" fi - cd build-gtk2 - PYTHON=/usr/bin/python2 ../configure --prefix=/usr \ - --enable-introspection \ - --disable-silent-rules \ - --libexecdir=/usr/lib/webkitgtk2 \ - --with-gstreamer=0.10 \ - --with-gtk=2.0 \ - --disable-webkit2 $extra - make all stamp-po - - cd ../build-gtk3 - PYTHON=/usr/bin/python2 ../configure --prefix=/usr \ - --enable-introspection \ - --disable-silent-rules \ - --libexecdir=/usr/lib/webkitgtk3 \ - --with-gstreamer=1.0 $extra + # Suppress a *lot* of gcc 4.8 warnings + export CPPFLAGS="$CPPFLAGS -Wno-unused-local-typedefs" + + ../configure --prefix=/usr --libexecdir=/usr/lib/webkitgtk3 \ + --enable-introspection $extra make all stamp-po } package_webkitgtk3() { pkgdesc="GTK+ Web content engine library for GTK+ 3.0" - depends=('libxt' 'libxslt' 'sqlite' 'libsoup' 'enchant' 'libgl' 'geoclue' 'gtk2' 'gtk3' 'gst-plugins-base-libs') + depends=('libxt' 'libxslt' 'sqlite' 'libsoup' 'enchant' 'libgl' 'geoclue' 'gtk3' 'gst-plugins-base-libs' 'libsecret' 'libwebp') conflicts=('libwebkit3') provides=("libwebkit3=${pkgver}") replaces=('libwebkit3') + optdepends=('gtk2: Webkit2 plugin support') - cd "$srcdir/webkitgtk-$pkgver/build-gtk3" - make -j1 DESTDIR="$pkgdir" install - install -Dm644 ../Source/WebKit/LICENSE "$pkgdir/usr/share/licenses/${pkgname}/LICENSE" -} - -package_webkitgtk2() { - pkgdesc="GTK+ Web content engine library for GTK+ 2.0" - depends=('libxt' 'libxslt' 'sqlite' 'libsoup' 'enchant' 'libgl' 'geoclue' 'gtk2' 'gstreamer0.10-base') - conflicts=('libwebkit') - provides=("libwebkit=${pkgver}") - replaces=('libwebkit') - - cd "$srcdir/webkitgtk-$pkgver/build-gtk2" + cd $pkgbase-$pkgver/build-gtk3 make -j1 DESTDIR="$pkgdir" install install -Dm644 ../Source/WebKit/LICENSE "$pkgdir/usr/share/licenses/${pkgname}/LICENSE" } |