wok-6.x view mpv/receipt @ rev 24045
memtest,plop: tune lzma compression
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu May 06 12:50:46 2021 +0000 (2021-05-06) |
parents | a1ba148cfa9a |
children | 5ea0ce1cecc0 |
line source
1 # SliTaz package receipt.
3 PACKAGE="mpv"
4 VERSION="0.32.0"
5 CATEGORY="multimedia"
6 SHORT_DESC="Video player based on ffmpeg and mplayer2."
7 MAINTAINER="maintainer@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://mpv.io"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://github.com/mpv-player/mpv/archive/v$VERSION.tar.gz"
14 WAFTOOL="waf-1.8.12"
15 EXTRA_SOURCE_FILES="$WAFTOOL"
17 DEPENDS="alsa-lib bzlib ffmpeg glib glibc-base gmp lame lcms libdrm \
18 libegl-mesa libjpeg liblzma libpng libsdl libtasn1 libtinfo \
19 libv4l libxcb libxml2 lua mesa nettle pcre udev xorg-libX11 \
20 xorg-libXau xorg-libXdamage xorg-libXdmcp xorg-libXext \
21 xorg-libXxf86vm xorg-libXfixes xorg-libXinerama \
22 xorg-libXrandr xorg-libXrender xorg-libXv zlib"
23 BUILD_DEPENDS="alsa-lib-dev bzlib cacerts ffmpeg-compat-dev ffmpeg-dev \
24 file glib-dev glibc-dev gmp-dev jpeg-dev lame-dev lcms2-dev \
25 libdrm-dev libegl-mesa libguess liblzma-dev libpng-dev \
26 libsdl-dev libtasn1-dev libtinfo libv4l-dev libxcb-dev \
27 libxml2-dev mesa-dev nettle-dev openssl pcre-dev pkg-config \
28 udev-dev xorg-libX11-dev xorg-libXau-dev xorg-libXdamage-dev \
29 xorg-libXdmcp-dev xorg-libXext-dev xorg-libXfixes-dev \
30 xorg-libXinerama-dev xorg-libXrandr-dev xorg-libXrender-dev \
31 xorg-libXv-dev xorg-libXxf86vm-dev yasm zlib-dev"
33 # Rules to configure and make the package.
34 compile_rules()
35 {
36 [ -s $SOURCES_REPOSITORY/$WAFTOOL ] ||
37 wget -P $SOURCES_REPOSITORY \
38 http://www.freehackers.org/~tnagy/release/$WAFTOOL
39 install -m 755 $SOURCES_REPOSITORY/$WAFTOOL waf
41 # ./bootstrap.py # needs python3 to fetch waf
43 ./waf configure \
44 --prefix=/usr \
45 --confdir=/etc/mpv \
46 --disable-debug \
47 --disable-debug-build \
48 --disable-gl \
49 --disable-libass \
50 --disable-manpage-build \
51 --disable-oss-audio &&
52 ./waf build &&
53 ./waf install --destdir=$DESTDIR
54 }
56 # Rules to gen a SliTaz package suitable for Tazpkg.
57 genpkg_rules()
58 {
59 # mkdir $install/etc
60 # mkdir $install/etc/mpv
61 cp $WOK/$PACKAGE/source/$PACKAGE-$VERSION/etc/*.conf \
62 $install/etc/mpv
63 cp -a $install/* $fs
64 }