wok-next annotate libwebkit-video/receipt @ rev 20454
Choose between libpng16 and libpng12
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Wed Feb 28 17:32:31 2018 +0200 (2018-02-28) |
parents | 7eb047d2b438 |
children | d43bf7aae921 |
rev | line source |
---|---|
pascal@20171 | 1 # SliTaz package receipt v2. |
pascal@11624 | 2 |
pascal@11624 | 3 PACKAGE="libwebkit-video" |
psychomaniak@16866 | 4 VERSION="1.8.3" |
pascal@11624 | 5 CATEGORY="network" |
pascal@11624 | 6 SHORT_DESC="xHTML render library." |
pascal@11624 | 7 MAINTAINER="mallory@sweetpeople.org" |
pascal@15482 | 8 LICENSE="LGPL2" |
psychomaniak@16866 | 9 SOURCE="webkit" |
domcox@12890 | 10 TARBALL="$SOURCE-$VERSION.tar.xz" |
samuel_trassare@11907 | 11 WEB_SITE="http://webkitgtk.org" |
pascal@12892 | 12 WGET_URL="$WEB_SITE/releases/$TARBALL" |
pascal@11624 | 13 |
pascal@11624 | 14 BUILD_DEPENDS="gtk+-dev enchant enchant-dev gperf libxslt-dev jpeg-dev \ |
al@20454 | 15 libpng16-dev glib-dev autoconf automake gnutls-dev sqlite3-dev libtool \ |
pascal@11624 | 16 m4 bison flex xorg-libXdamage-dev acl-dev libsoup-dev libxml2-dev \ |
al@20450 | 17 xorg-libxcb-dev xorg-xcb-util-dev util-linux-uuid-dev zlib-dev libtasn1-dev \ |
domcox@14491 | 18 gobject-introspection-dev tar gettext glib-networking-dev gtk-doc \ |
pascal@19824 | 19 xorg-libXt gstreamer0-dev gst0-plugins-base-dev" |
pascal@20171 | 20 SPLIT="libwebkit-video libwebkit-video-dev" |
al@19821 | 21 SUGGESTED="gst0-plugins-good gst0-plugins-bad gst0-plugins-ugly gst0-ffmpeg" |
pascal@11624 | 22 |
pascal@11624 | 23 # Rules to configure and make the package. |
pascal@11624 | 24 compile_rules() |
pascal@11624 | 25 { |
domcox@12890 | 26 # libwebkit does not like parallel builds. |
domcox@12890 | 27 export MAKEFLAGS=$(echo $MAKEFLAGS | sed 's/-j[0-9]*/-j1/') |
psychomaniak@16866 | 28 touch Documentation/webkitgtk/version.xml |
domcox@14107 | 29 # Build |
pascal@11624 | 30 ./configure \ |
pascal@11624 | 31 --prefix=/usr \ |
pascal@11624 | 32 --infodir=/usr/share/info \ |
pascal@11624 | 33 --mandir=/usr/share/man \ |
pascal@11624 | 34 --enable-introspection=no \ |
pascal@11624 | 35 --enable-video=yes \ |
pascal@11624 | 36 --enable-jit=yes \ |
domcox@12890 | 37 --disable-webgl \ |
domcox@12890 | 38 --disable-geolocation \ |
pascal@11624 | 39 --with-unicode-backend=glib \ |
pascal@11624 | 40 --with-gtk=2.0 \ |
domcox@14107 | 41 --disable-webkit2 \ |
psychomaniak@16892 | 42 --disable-gtk-doc-html \ |
pascal@11624 | 43 $CONFIGURE_ARGS && |
pascal@14492 | 44 make all stamp-po 2>&1 | grep -v Source/WebCore/dom/testing && |
pascal@14492 | 45 make DESTDIR=$DESTDIR install 2>&1 | grep -v /usr/share/gtk-doc/html/ && |
pascal@11624 | 46 cp -a $src/Programs/GtkLauncher $DESTDIR/usr/bin |
pascal@11624 | 47 } |
pascal@11624 | 48 |
pascal@11624 | 49 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@11624 | 50 genpkg_rules() |
pascal@11624 | 51 { |
pascal@20171 | 52 case $PACKAGE in |
pascal@20171 | 53 libwebkit-video) |
pascal@20171 | 54 PROVIDE="libwebkit" |
al@20454 | 55 DEPENDS="gtk+ enchant libxslt expat gtk+ jpeg libpng16 libxml2 \ |
pascal@20171 | 56 sqlite3 xorg-libICE xorg-libSM xorg-libX11 xorg-libXau \ |
pascal@20171 | 57 xorg-libXcomposite xorg-libXcursor xorg-libXdmcp \ |
pascal@20171 | 58 xorg-libXext xorg-libXfixes xorg-libXinerama \ |
pascal@20171 | 59 xorg-libXrandr xorg-libXrender xorg-libXt acl \ |
pascal@20171 | 60 xorg-libXdamage libsoup gcc-lib-base libtasn1 \ |
pascal@20171 | 61 util-linux-uuid glib-networking gst0-plugins-base" |
pascal@20171 | 62 mkdir -p $fs/usr/lib $fs/usr/bin |
pascal@20171 | 63 [ -d $install/usr/lib/girepository-1.0 ] && |
pascal@20171 | 64 cp -a $install/usr/lib/girepository-1.0 $fs/usr/lib |
pascal@20171 | 65 cp -a $install/usr/lib/*.so* $fs/usr/lib |
pascal@20171 | 66 ;; |
pascal@20171 | 67 libwebkit-video-dev) |
pascal@20171 | 68 CAT="development|devel files for libwebkit" |
pascal@20171 | 69 DEPENDS="libwebkit-video libsoup-dev enchant-dev libtasn1-dev \ |
pascal@20171 | 70 sqlite3-dev pkg-config" |
pascal@20171 | 71 mkdir -p $fs/usr/lib $fs/usr/share |
pascal@20171 | 72 cp -a $install/usr/lib/*.*a $fs/usr/lib |
pascal@20171 | 73 cp -a $install/usr/lib/pkgconfig $fs/usr/lib |
pascal@20171 | 74 cp -a $install/usr/include $fs/usr |
pascal@20171 | 75 [ -d $install/usr/share/gir-1.0 ] && |
pascal@20171 | 76 cp -a $install/usr/share/gir-1.0 $fs/usr/share |
pascal@20171 | 77 if [ -f $fs/usr/lib/pkgconfig/webkit-1.0.pc ]; then |
pascal@20171 | 78 ln -sf /usr/lib/pkgconfig/webkit-1.0.pc \ |
pascal@20171 | 79 $fs/usr/lib/pkgconfig/webkitgtk-1.0.pc |
pascal@20171 | 80 fi |
pascal@20171 | 81 ;; |
pascal@20171 | 82 esac |
pascal@11624 | 83 } |