diff options
Diffstat (limited to 'extra/libwebkit/PKGBUILD')
-rw-r--r-- | extra/libwebkit/PKGBUILD | 25 |
1 files changed, 22 insertions, 3 deletions
diff --git a/extra/libwebkit/PKGBUILD b/extra/libwebkit/PKGBUILD index a92973938..aa2207e39 100644 --- a/extra/libwebkit/PKGBUILD +++ b/extra/libwebkit/PKGBUILD @@ -10,19 +10,29 @@ arch=('i686' 'x86_64' 'mips64el') url="http://webkitgtk.org/" license=('custom') depends=('libxt' 'libxslt' 'sqlite3' 'icu' 'gstreamer0.10-base' 'libsoup' 'enchant') +checkdepends=('hspell') makedepends=('gperf' 'gtk-doc' 'gobject-introspection' 'python2' 'gtk2' 'gtk3') options=('!libtool') install=libwebkit.install source=(http://webkitgtk.org/webkit-${pkgver}.tar.gz - replace-switch-with-given-when.patch) -md5sums=('361f8420e93d12101d650758fec09fa0' - '3ba708a26b7af0e1e853867966fe14f7') + replace-switch-with-given-when.patch + fix-mips-n32.patch) build() { cd "${srcdir}/webkit-${pkgver}" # patch -Np1 -i "${srcdir}/replace-switch-with-given-when.patch" mkdir build-gtk{2,3} + # WebKit knows only O32, not aligning memory on N32, also wants to + # use nonavailable JIT for all MIPS. + patch -Np1 -i "${srcdir}/fix-mips-n32.patch" + + # ld needs more virtual memory than is available on MIPS n32, these + # options should reduce it. + if [ "${CARCH}" == "mips64el" ] ; then + export LDFLAGS="${LDFLAGS} -Wl,--reduce-memory-overhead -Wl,--no-keep-memory" + fi + ( cd build-gtk2 && _build --with-gtk=2.0 ) ( cd build-gtk3 && _build --with-gtk=3.0 ) } @@ -36,6 +46,12 @@ _build() { make all stamp-po } +check() { + cd "${srcdir}/webkit-${pkgver}" + make -C build-gtk2 check + make -C build-gtk3 check +} + package_libwebkit() { pkgdesc+=" (for GTK2)" depends+=(gtk2) @@ -56,3 +72,6 @@ package_libwebkit3() { make DESTDIR="${pkgdir}" install install -Dm644 ../Source/WebKit/LICENSE "${pkgdir}/usr/share/licenses/libwebkit3/LICENSE" } +md5sums=('361f8420e93d12101d650758fec09fa0' + '3ba708a26b7af0e1e853867966fe14f7' + '1e1971b0214f6705ceb4f816c4b52af9') |