wok annotate 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
rev   line source
psychomaniak@17703 1 # SliTaz package receipt.
psychomaniak@17703 2
psychomaniak@17703 3 PACKAGE="mpv"
Hans-G?nter@23194 4 VERSION="0.32.0"
psychomaniak@17703 5 CATEGORY="multimedia"
Hans-G?nter@21622 6 SHORT_DESC="Video player based on ffmpeg and mplayer2."
Hans-G?nter@23194 7 MAINTAINER="maintainer@slitaz.org"
psychomaniak@17703 8 LICENSE="GPL2"
Hans-G?nter@21622 9 WEB_SITE="https://mpv.io"
Hans-G?nter@21622 10
psychomaniak@17703 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
psychomaniak@17703 12 WGET_URL="https://github.com/mpv-player/mpv/archive/v$VERSION.tar.gz"
Hans-G?nter@23194 13
pascal@19662 14 WAFTOOL="waf-1.8.12"
pascal@19145 15 EXTRA_SOURCE_FILES="$WAFTOOL"
psychomaniak@17703 16
Hans-G?nter@21622 17 DEPENDS="alsa-lib bzlib ffmpeg glib glibc-base gmp lame lcms libdrm \
Hans-G?nter@21622 18 libegl-mesa libjpeg liblzma libpng libsdl libtasn1 libtinfo \
Hans-G?nter@21622 19 libv4l libxcb libxml2 lua mesa nettle pcre udev xorg-libX11 \
Hans-G?nter@21622 20 xorg-libXau xorg-libXdamage xorg-libXdmcp xorg-libXext \
Hans-G?nter@21622 21 xorg-libXxf86vm xorg-libXfixes xorg-libXinerama \
Hans-G?nter@21622 22 xorg-libXrandr xorg-libXrender xorg-libXv zlib"
Hans-G?nter@21622 23 BUILD_DEPENDS="alsa-lib-dev bzlib cacerts ffmpeg-compat-dev ffmpeg-dev \
Hans-G?nter@21622 24 file glib-dev glibc-dev gmp-dev jpeg-dev lame-dev lcms2-dev \
Hans-G?nter@21622 25 libdrm-dev libegl-mesa libguess liblzma-dev libpng-dev \
Hans-G?nter@21622 26 libsdl-dev libtasn1-dev libtinfo libv4l-dev libxcb-dev \
Hans-G?nter@21622 27 libxml2-dev mesa-dev nettle-dev openssl pcre-dev pkg-config \
Hans-G?nter@21622 28 udev-dev xorg-libX11-dev xorg-libXau-dev xorg-libXdamage-dev \
Hans-G?nter@21622 29 xorg-libXdmcp-dev xorg-libXext-dev xorg-libXfixes-dev \
Hans-G?nter@21622 30 xorg-libXinerama-dev xorg-libXrandr-dev xorg-libXrender-dev \
Hans-G?nter@21622 31 xorg-libXv-dev xorg-libXxf86vm-dev yasm zlib-dev"
psychomaniak@17703 32
pascal@25600 33 # What is the latest version available today?
pascal@24055 34 current_version()
pascal@24055 35 {
pascal@24055 36 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
pascal@25600 37 sed '/tag\//!d;s|.*tag/v*||;s|".*||;q'
pascal@24055 38 }
pascal@24055 39
psychomaniak@17703 40 # Rules to configure and make the package.
psychomaniak@17703 41 compile_rules()
psychomaniak@17703 42 {
Hans-G?nter@23194 43 [ -s $SOURCES_REPOSITORY/$WAFTOOL ] ||
Hans-G?nter@23194 44 wget -P $SOURCES_REPOSITORY \
pascal@19145 45 http://www.freehackers.org/~tnagy/release/$WAFTOOL
pascal@19145 46 install -m 755 $SOURCES_REPOSITORY/$WAFTOOL waf
Hans-G?nter@23194 47
Hans-G?nter@23194 48 # ./bootstrap.py # needs python3 to fetch waf
Hans-G?nter@23194 49
Hans-G?nter@21622 50 ./waf configure \
Hans-G?nter@21622 51 --prefix=/usr \
Hans-G?nter@21622 52 --confdir=/etc/mpv \
Hans-G?nter@21622 53 --disable-debug \
Hans-G?nter@21622 54 --disable-debug-build \
Hans-G?nter@21622 55 --disable-gl \
Hans-G?nter@23194 56 --disable-libass \
Hans-G?nter@21622 57 --disable-manpage-build \
Hans-G?nter@23194 58 --disable-oss-audio &&
Hans-G?nter@21622 59 ./waf build &&
psychomaniak@17703 60 ./waf install --destdir=$DESTDIR
psychomaniak@17703 61 }
psychomaniak@17703 62
psychomaniak@17703 63 # Rules to gen a SliTaz package suitable for Tazpkg.
psychomaniak@17703 64 genpkg_rules()
psychomaniak@17703 65 {
Hans-G?nter@21622 66 # mkdir $install/etc
Hans-G?nter@21622 67 # mkdir $install/etc/mpv
Hans-G?nter@21622 68 cp $WOK/$PACKAGE/source/$PACKAGE-$VERSION/etc/*.conf \
Hans-G?nter@23194 69 $install/etc/mpv
Hans-G?nter@21622 70 cp -a $install/* $fs
psychomaniak@17703 71 }