wok view mpv/receipt @ rev 19804

mpv: maintainer's update
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sun Feb 26 05:06:21 2017 +0200 (2017-02-26)
parents 08427c08b07d
children fe65ade6d3ce
line source
1 # SliTaz package receipt.
3 PACKAGE="mpv"
4 VERSION="0.17.0"
5 CATEGORY="multimedia"
6 SHORT_DESC="Video player based on ffmpeg & mplayer2"
7 MAINTAINER="slitaz"
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 liblzma bzlib zlib libjpeg libv4l libdrm xorg-libXinerama xorg-libXrandr mesa \
17 libegl-mesa xorg-libXau xorg-libXdmcp libpng glib pcre libxml2 libtasn1 nettle \
18 gmp libtinfo xorg-libXrender xorg-libXdamage xorg-libXfixes libxcb \
19 xorg-libXxf86vm udev lua ffmpeg"
20 BUILD_DEPENDS="file sed yasm lcms2-dev xorg-libXv-dev xorg-libX11-dev \
21 xorg-libXext-dev glibc-dev libxcb-dev alsa-lib-dev liblzma-dev bzlib zlib-dev \
22 jpeg-dev libv4l-dev libdrm-dev xorg-libXinerama-dev xorg-libXrandr-dev \
23 mesa-dev libegl-mesa xorg-libXau-dev xorg-libXdmcp-dev libpng-dev glib-dev \
24 pcre-dev libxml2-dev libtasn1-dev nettle-dev gmp-dev libtinfo \
25 xorg-libXrender-dev xorg-libXdamage-dev xorg-libXfixes-dev libxcb-dev \
26 xorg-libXxf86vm-dev udev-dev ffmpeg-dev"
28 # Rules to configure and make the package.
29 compile_rules()
30 {
31 [ -s $SOURCES_REPOSITORY/$WAFTOOL ] || wget -P $SOURCES_REPOSITORY \
32 http://www.freehackers.org/~tnagy/release/$WAFTOOL
33 install -m 755 $SOURCES_REPOSITORY/$WAFTOOL waf
34 ./bootstrap.py
35 ./waf configure \
36 --prefix=/usr \
37 --confdir=/etc/mpv \
38 --enable-openal \
39 --disable-debug \
40 --disable-oss-audio \
41 --disable-manpage-build \
42 --disable-libass
44 ./waf build
45 ./waf install --destdir=$DESTDIR
46 }
48 # Rules to gen a SliTaz package suitable for Tazpkg.
49 genpkg_rules()
50 {
51 mkdir $install/etc
52 mkdir $install/etc/mpv
53 cp $WOK/$PACKAGE/source/$PACKAGE-$VERSION/etc/*.conf $install/etc/mpv
54 cp -a $install/* $fs
55 }