wok view mpv/receipt @ rev 20611

Up linux-libre (3.18.129) again
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Dec 18 11:30:04 2018 +0100 (2018-12-18)
parents 9821ba1c3bf5
children 6e8b1bcb30e2
line source
1 # SliTaz package receipt.
3 PACKAGE="mpv"
4 VERSION="0.18.1"
5 CATEGORY="multimedia"
6 SHORT_DESC="Video player based on ffmpeg & mplayer2"
7 MAINTAINER="devel@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://mpv.io"
11 WGET_URL="https://github.com/mpv-player/mpv/archive/v$VERSION.tar.gz"
12 WAFTOOL="waf-1.8.12"
13 EXTRA_SOURCE_FILES="$WAFTOOL"
15 DEPENDS="lcms xorg-libXv xorg-libX11 xorg-libXext glibc-base libxcb alsa-lib \
16 libsdl liblzma bzlib zlib libjpeg libv4l libdrm xorg-libXinerama \
17 xorg-libXrandr mesa libegl-mesa xorg-libXau xorg-libXdmcp libpng glib pcre \
18 libxml2 libtasn1 nettle gmp libtinfo xorg-libXrender xorg-libXdamage \
19 xorg-libXfixes libxcb xorg-libXxf86vm udev lua ffmpeg lame"
20 BUILD_DEPENDS="slitaz-base-files slitaz-toolchain busybox cookutils tazpkg \
21 cacerts openssl pkg-config wget libguess file sed yasm lcms2-dev \
22 xorg-libXv-dev xorg-libX11-dev xorg-libXext-dev glibc-dev libxcb-dev \
23 alsa-lib-dev libsdl-dev liblzma-dev bzlib zlib-dev jpeg-dev libv4l-dev \
24 libdrm-dev xorg-libXinerama-dev xorg-libXrandr-dev mesa-dev libegl-mesa \
25 xorg-libXau-dev xorg-libXdmcp-dev libpng-dev glib-dev pcre-dev libxml2-dev \
26 libtasn1-dev nettle-dev gmp-dev libtinfo xorg-libXrender-dev \
27 xorg-libXdamage-dev xorg-libXfixes-dev libxcb-dev xorg-libXxf86vm-dev udev-dev \
28 ffmpeg-dev lame-dev libgnutls"
30 # Rules to configure and make the package.
31 compile_rules()
32 {
33 [ -s $SOURCES_REPOSITORY/$WAFTOOL ] || wget -P $SOURCES_REPOSITORY \
34 http://www.freehackers.org/~tnagy/release/$WAFTOOL
35 install -m 755 $SOURCES_REPOSITORY/$WAFTOOL waf
36 ./bootstrap.py
37 ./waf configure \
38 --prefix=/usr \
39 --confdir=/etc/mpv \
40 --disable-debug \
41 --disable-debug-build \
42 --disable-oss-audio \
43 --disable-manpage-build \
44 --disable-libass
46 ./waf build
47 ./waf install --destdir=$DESTDIR
48 }
50 # Rules to gen a SliTaz package suitable for Tazpkg.
51 genpkg_rules()
52 {
53 mkdir $install/etc
54 mkdir $install/etc/mpv
55 cp $WOK/$PACKAGE/source/$PACKAGE-$VERSION/etc/*.conf $install/etc/mpv
56 cp -a $install/* $fs
57 }