2013-06-07 18:32:13 +00:00
|
|
|
# $Id$
|
2013-04-24 19:11:36 +00:00
|
|
|
# Maintainer: Andreas Radke <andyrtr@archlinux.org>
|
|
|
|
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
2014-03-12 13:08:03 +00:00
|
|
|
# - use --disable-jit to solve segfaults
|
2014-06-07 22:54:47 +00:00
|
|
|
# - use --disable-gtk-doc to solve html docs breaking the build
|
2015-07-19 17:21:19 +00:00
|
|
|
# - AArch64 fixes
|
2013-04-24 19:11:36 +00:00
|
|
|
|
2016-04-10 01:21:32 +00:00
|
|
|
highmem=1
|
|
|
|
|
2014-04-14 22:41:05 +00:00
|
|
|
pkgbase=webkitgtk
|
2014-03-03 23:32:37 +00:00
|
|
|
pkgname=(webkitgtk webkitgtk2)
|
2016-04-15 12:17:40 +00:00
|
|
|
pkgver=2.4.11
|
|
|
|
pkgrel=1
|
2013-06-07 18:32:13 +00:00
|
|
|
pkgdesc="GTK+ Web content engine library"
|
|
|
|
arch=(i686 x86_64)
|
2013-04-24 19:11:36 +00:00
|
|
|
url="http://webkitgtk.org/"
|
2013-06-07 18:32:13 +00:00
|
|
|
license=(custom)
|
2014-06-07 19:17:32 +00:00
|
|
|
depends=(libxt libxslt sqlite libsoup enchant libgl geoclue2 gst-plugins-base-libs
|
2013-06-12 20:57:10 +00:00
|
|
|
libsecret libwebp harfbuzz-icu)
|
2014-10-16 13:19:12 +00:00
|
|
|
makedepends=(gtk3 gtk2 gperf gobject-introspection python2 mesa ruby)
|
2014-04-14 21:07:45 +00:00
|
|
|
optdepends=('gst-plugins-base: free media decoding'
|
|
|
|
'gst-plugins-good: media decoding'
|
|
|
|
'gst-libav: nonfree media decoding')
|
2014-03-03 23:32:37 +00:00
|
|
|
options=(!emptydirs)
|
2015-07-19 17:21:19 +00:00
|
|
|
source=(http://webkitgtk.org/releases/$pkgbase-${pkgver}.tar.xz
|
2016-03-19 02:21:13 +00:00
|
|
|
ARM64-GCC-generates-wrong-code-with-O2-flag-in-WTF-weakCompareAndSwap.patch
|
|
|
|
ARM64-GNU-assembler-fails-in-TransformationMatrix-multiply.patch)
|
2016-04-15 12:17:40 +00:00
|
|
|
sha256sums=('588aea051bfbacced27fdfe0335a957dca839ebe36aa548df39c7bbafdb65bf7'
|
2016-03-19 02:21:13 +00:00
|
|
|
'9313e66470e502bc3f2152ec00d8ef7d7c637dcc087b29e124b89ce92d8e28ce'
|
|
|
|
'2b1bbe3b3106c414085f98c5447e9555d9323b5aa388216df08cb5fadf041b1d')
|
2013-04-24 19:11:36 +00:00
|
|
|
|
2014-03-03 23:32:37 +00:00
|
|
|
prepare() {
|
2014-06-07 19:17:32 +00:00
|
|
|
mkdir build-gtk{,2} path
|
|
|
|
ln -s /usr/bin/python2 path/python
|
2015-07-19 17:21:19 +00:00
|
|
|
|
|
|
|
# AArch64 fixes
|
|
|
|
cd $pkgbase-$pkgver
|
|
|
|
if [[ $CARCH == "aarch64" ]]; then
|
2016-03-19 02:21:13 +00:00
|
|
|
patch -p1 -i ../ARM64-GCC-generates-wrong-code-with-O2-flag-in-WTF-weakCompareAndSwap.patch
|
|
|
|
patch -p1 -i ../ARM64-GNU-assembler-fails-in-TransformationMatrix-multiply.patch
|
2015-07-19 17:21:19 +00:00
|
|
|
CFLAGS+=" -DENABLE_YARR_JIT=0"
|
|
|
|
CXXFLAGS+=" -DENABLE_YARR_JIT=0"
|
|
|
|
fi
|
2014-03-03 23:32:37 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
_build() (
|
|
|
|
_ver="$1"; shift
|
|
|
|
cd build-${_ver}
|
2013-10-18 01:38:43 +00:00
|
|
|
|
2015-05-21 00:01:59 +00:00
|
|
|
PATH="$srcdir/path:$PATH"
|
|
|
|
|
2014-03-03 23:32:37 +00:00
|
|
|
../$pkgbase-$pkgver/configure --prefix=/usr \
|
|
|
|
--libexecdir=/usr/lib/webkit${_ver} \
|
2014-10-16 13:19:12 +00:00
|
|
|
--enable-introspection \
|
|
|
|
--disable-jit \
|
|
|
|
--disable-webkit2 \
|
|
|
|
--disable-gtk-doc \
|
2014-03-12 13:08:03 +00:00
|
|
|
"$@"
|
2013-06-07 18:32:13 +00:00
|
|
|
|
|
|
|
# https://bugzilla.gnome.org/show_bug.cgi?id=655517
|
|
|
|
sed -i 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
|
2013-04-24 19:11:36 +00:00
|
|
|
|
|
|
|
make all stamp-po
|
2014-03-03 23:32:37 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
build() {
|
2014-10-16 13:19:12 +00:00
|
|
|
_build gtk
|
|
|
|
_build gtk2 --with-gtk=2.0
|
2013-04-24 19:11:36 +00:00
|
|
|
}
|
|
|
|
|
2014-03-03 23:32:37 +00:00
|
|
|
package_webkitgtk() {
|
|
|
|
depends+=(gtk3)
|
2014-04-14 21:07:45 +00:00
|
|
|
optdepends+=('gtk2: Netscape plugin support')
|
2014-03-03 23:32:37 +00:00
|
|
|
provides=("webkitgtk3=${pkgver}" "libwebkit3=${pkgver}")
|
|
|
|
conflicts=(webkitgtk3 libwebkit3)
|
|
|
|
replaces=(webkitgtk3 libwebkit3)
|
|
|
|
|
|
|
|
make -C build-gtk -j1 DESTDIR="$pkgdir" install
|
|
|
|
install -Dm644 $pkgbase-$pkgver/Source/WebKit/LICENSE \
|
|
|
|
"$pkgdir/usr/share/licenses/webkitgtk/LICENSE"
|
|
|
|
}
|
|
|
|
|
|
|
|
package_webkitgtk2() {
|
|
|
|
pkgdesc+=" for GTK2"
|
|
|
|
depends+=(gtk2)
|
|
|
|
provides=("libwebkit=${pkgver}")
|
|
|
|
conflicts=(libwebkit)
|
|
|
|
replaces=(libwebkit)
|
|
|
|
|
|
|
|
make -C build-gtk2 -j1 DESTDIR="$pkgdir" install
|
|
|
|
install -Dm644 $pkgbase-$pkgver/Source/WebKit/LICENSE \
|
|
|
|
"$pkgdir/usr/share/licenses/webkitgtk2/LICENSE"
|
2013-04-24 19:11:36 +00:00
|
|
|
}
|