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