wok view mpv/receipt @ rev 25705
fusecloop/extract_compressed_fs: can convert to v0.68 or v1.0
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Jun 22 12:48:49 2024 +0000 (4 months ago) |
parents | 5ea0ce1cecc0 |
children |
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 # What is the latest version available today?
34 current_version()
35 {
36 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
37 sed '/tag\//!d;s|.*tag/v*||;s|".*||;q'
38 }
40 # Rules to configure and make the package.
41 compile_rules()
42 {
43 [ -s $SOURCES_REPOSITORY/$WAFTOOL ] ||
44 wget -P $SOURCES_REPOSITORY \
45 http://www.freehackers.org/~tnagy/release/$WAFTOOL
46 install -m 755 $SOURCES_REPOSITORY/$WAFTOOL waf
48 # ./bootstrap.py # needs python3 to fetch waf
50 ./waf configure \
51 --prefix=/usr \
52 --confdir=/etc/mpv \
53 --disable-debug \
54 --disable-debug-build \
55 --disable-gl \
56 --disable-libass \
57 --disable-manpage-build \
58 --disable-oss-audio &&
59 ./waf build &&
60 ./waf install --destdir=$DESTDIR
61 }
63 # Rules to gen a SliTaz package suitable for Tazpkg.
64 genpkg_rules()
65 {
66 # mkdir $install/etc
67 # mkdir $install/etc/mpv
68 cp $WOK/$PACKAGE/source/$PACKAGE-$VERSION/etc/*.conf \
69 $install/etc/mpv
70 cp -a $install/* $fs
71 }