diff options
Diffstat (limited to 'webkit/Pkgfile')
-rwxr-xr-x | webkit/Pkgfile | 104 |
1 files changed, 72 insertions, 32 deletions
diff --git a/webkit/Pkgfile b/webkit/Pkgfile index cfb8aa5da..c5e8e1ec0 100755 --- a/webkit/Pkgfile +++ b/webkit/Pkgfile @@ -2,51 +2,91 @@ # URL: http://webkitgtk.org/ # Maintainer: NuTyX core team # Packager: thierryn1 at hispeed dot ch -# Depends on: gtk3, curl, dbus, gperf, gst-plugins-base, icu, enchant, libsoup, gobject-introspection, libxslt, xorg-libxt, gobject-introspection -# Run on: gtk3,curl,dbus,gst-plugins-base,icu,enchant,libsoup,libxslt,xorg-libxt +# Depends on: gtk3, curl, dbus, gperf, gst-plugins-base, icu, enchant, libsoup, gobject-introspection, libxslt, xorg-libxt, gobject-introspection, geoclue +# Run on: gtk3,curl,dbus,gst-plugins-base,icu,enchant,libsoup,libxslt,xorg-libxt,geoclue name=webkit -version=1.7.4 +version=1.7.91 release=1 -source=(http://webkitgtk.org/$name-$version.tar.xz) +source=(http://webkitgtk.org/$name-$version.tar.xz + python.patch + parallel-make-hack.patch) -build() { - export PYTHON=/usr/bin/python2 - cp -r $name-$version $name-3-$version - - cd $name-$version - ./configure --prefix=/usr \ - --sysconfdir=/etc \ - --localstatedir=/var \ - --enable-introspection \ - --enable-video \ - --enable-jit \ - --disable-schemas-compile \ - --with-font-backend=freetype \ - --with-unicode-backend=icu \ - --with-gtk=2.0 - make - make DESTDIR=$PKG install - mkdir $PKG/usr/lib/$name - install -m755 Programs/GtkLauncher $PKG/usr/lib/$name - - cd $SRC/$name-3-$version - ./configure --prefix=/usr \ - --sysconfdir=/etc \ - --localstatedir=/var \ +buildwebkit() { + PYTHON=/usr/bin/python2 ../configure --prefix=/usr \ --enable-introspection \ + --enable-spellcheck \ + --enable-geolocation \ --enable-video \ --enable-jit \ --disable-schemas-compile \ --with-font-backend=freetype \ --with-unicode-backend=icu \ - --with-gtk=3.0 - make + "$@" + make all-built-sources-local + make all-ltlibraries-local + make all-programs-local + make all-data-local + make stamp-po make DESTDIR=$PKG install - mkdir $PKG/usr/lib/${name}3 - install -m755 Programs/GtkLauncher $PKG/usr/lib/${name}3 + } +build() { + cd $name-$version + patch -p1 < ../python.patch + patch -p1 < ../parallel-make-hack.patch + autoreconf -I Source/autotools -fi + mkdir build-gtk{2,3} + + ( + cd build-gtk2 + buildwebkit --with-gtk=2.0 + mkdir -p $PKG/usr/lib/$name + install -m 755 Programs/GtkLauncher $PKG/usr/lib/$name + ) + ( + cd build-gtk3 + buildwebkit --with-gtk=3.0 + mkdir -p $PKG/usr/lib/${name}3 + install -m 755 Programs/GtkLauncher $PKG/usr/lib/${name}3 + ) +} +# cp -r $name-$version $name-3-$version +# +# cd $name-$version +# ./configure --prefix=/usr \ +# --sysconfdir=/etc \ +# --localstatedir=/var \ +# --enable-introspection \ +# --enable-video \ +# --enable-jit \ +# --disable-schemas-compile \ +# --with-font-backend=freetype \ +# --with-unicode-backend=icu \ +# --with-gtk=2.0 +# make -j1 +# make DESTDIR=$PKG install +# mkdir $PKG/usr/lib/$name +# install -m755 Programs/GtkLauncher $PKG/usr/lib/$name +# +# cd $SRC/$name-3-$version +# ./configure --prefix=/usr \ +# --sysconfdir=/etc \ +# --localstatedir=/var \ +# --enable-introspection \ +# --enable-video \ +# --enable-jit \ +# --disable-schemas-compile \ +# --with-font-backend=freetype \ +# --with-unicode-backend=icu \ +# --with-gtk=3.0 +# make -j1 +# make DESTDIR=$PKG install +# mkdir $PKG/usr/lib/${name}3 +# install -m755 Programs/GtkLauncher $PKG/usr/lib/${name}3 +#} +# # --enable-3d-rendering \ # --enable-webgl \ # --enable-channel-messaging \ |