wok-6.x annotate mpv/receipt @ rev 23955
Add rhash
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Sep 26 09:25:55 2020 +0000 (2020-09-26) |
parents | a1ba148cfa9a |
children | 5ea0ce1cecc0 |
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 |
psychomaniak@17703 | 33 # Rules to configure and make the package. |
psychomaniak@17703 | 34 compile_rules() |
psychomaniak@17703 | 35 { |
Hans-G?nter@23194 | 36 [ -s $SOURCES_REPOSITORY/$WAFTOOL ] || |
Hans-G?nter@23194 | 37 wget -P $SOURCES_REPOSITORY \ |
pascal@19145 | 38 http://www.freehackers.org/~tnagy/release/$WAFTOOL |
pascal@19145 | 39 install -m 755 $SOURCES_REPOSITORY/$WAFTOOL waf |
Hans-G?nter@23194 | 40 |
Hans-G?nter@23194 | 41 # ./bootstrap.py # needs python3 to fetch waf |
Hans-G?nter@23194 | 42 |
Hans-G?nter@21622 | 43 ./waf configure \ |
Hans-G?nter@21622 | 44 --prefix=/usr \ |
Hans-G?nter@21622 | 45 --confdir=/etc/mpv \ |
Hans-G?nter@21622 | 46 --disable-debug \ |
Hans-G?nter@21622 | 47 --disable-debug-build \ |
Hans-G?nter@21622 | 48 --disable-gl \ |
Hans-G?nter@23194 | 49 --disable-libass \ |
Hans-G?nter@21622 | 50 --disable-manpage-build \ |
Hans-G?nter@23194 | 51 --disable-oss-audio && |
Hans-G?nter@21622 | 52 ./waf build && |
psychomaniak@17703 | 53 ./waf install --destdir=$DESTDIR |
psychomaniak@17703 | 54 } |
psychomaniak@17703 | 55 |
psychomaniak@17703 | 56 # Rules to gen a SliTaz package suitable for Tazpkg. |
psychomaniak@17703 | 57 genpkg_rules() |
psychomaniak@17703 | 58 { |
Hans-G?nter@21622 | 59 # mkdir $install/etc |
Hans-G?nter@21622 | 60 # mkdir $install/etc/mpv |
Hans-G?nter@21622 | 61 cp $WOK/$PACKAGE/source/$PACKAGE-$VERSION/etc/*.conf \ |
Hans-G?nter@23194 | 62 $install/etc/mpv |
Hans-G?nter@21622 | 63 cp -a $install/* $fs |
psychomaniak@17703 | 64 } |