wok annotate mpv/receipt @ rev 19777
Up cookutils (882)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Feb 21 21:19:57 2017 +0100 (2017-02-21) |
parents | b05fba2ec312 |
children | 323caf6ae266 |
rev | line source |
---|---|
psychomaniak@17703 | 1 # SliTaz package receipt. |
psychomaniak@17703 | 2 |
psychomaniak@17703 | 3 PACKAGE="mpv" |
pascal@19662 | 4 VERSION="0.17.0" |
psychomaniak@17703 | 5 CATEGORY="multimedia" |
psychomaniak@17703 | 6 SHORT_DESC="Video player based on ffmpeg & mplayer2" |
pascal@19662 | 7 MAINTAINER="jurijlunjov@yandex.ru" |
psychomaniak@17703 | 8 LICENSE="GPL2" |
psychomaniak@17703 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
psychomaniak@17703 | 10 WEB_SITE="http://mpv.io" |
psychomaniak@17703 | 11 WGET_URL="https://github.com/mpv-player/mpv/archive/v$VERSION.tar.gz" |
pascal@19662 | 12 WAFTOOL="waf-1.8.12" |
pascal@19145 | 13 EXTRA_SOURCE_FILES="$WAFTOOL" |
psychomaniak@17703 | 14 |
pascal@19666 | 15 DEPENDS="xorg-server xorg-libXv xorg-libXinerama xorg-libXss util-linux-uuid \ |
pascal@19666 | 16 libarchive alsa-lib enca fribidi lua ffmpeg openal" |
pascal@19666 | 17 BUILD_DEPENDS="wget xorg-dev xorg-libXv-dev xorg-libXss-dev lua-dev ffmpeg-dev \ |
pascal@19666 | 18 libarchive-dev enca-dev fribidi-dev alsa-lib-dev openal-dev" |
psychomaniak@17703 | 19 |
psychomaniak@17703 | 20 # Rules to configure and make the package. |
psychomaniak@17703 | 21 compile_rules() |
psychomaniak@17703 | 22 { |
pascal@19145 | 23 [ -s $SOURCES_REPOSITORY/$WAFTOOL ] || wget -P $SOURCES_REPOSITORY \ |
pascal@19145 | 24 http://www.freehackers.org/~tnagy/release/$WAFTOOL |
pascal@19145 | 25 install -m 755 $SOURCES_REPOSITORY/$WAFTOOL waf |
psychomaniak@17703 | 26 ./bootstrap.py |
psychomaniak@17703 | 27 ./waf configure \ |
psychomaniak@17703 | 28 --prefix=/usr \ |
pascal@19662 | 29 --confdir=/etc/mpv \ |
pascal@19662 | 30 --enable-openal \ |
pascal@19662 | 31 --enable-zsh-comp \ |
pascal@19662 | 32 --disable-debug \ |
pascal@19662 | 33 --enable-libarchive \ |
pascal@19662 | 34 --disable-oss-audio \ |
pascal@19662 | 35 --disable-libass \ |
pascal@19662 | 36 --enable-libmpv-shared |
pascal@19662 | 37 |
psychomaniak@17703 | 38 ./waf build |
psychomaniak@17703 | 39 ./waf install --destdir=$DESTDIR |
psychomaniak@17703 | 40 } |
psychomaniak@17703 | 41 |
psychomaniak@17703 | 42 # Rules to gen a SliTaz package suitable for Tazpkg. |
psychomaniak@17703 | 43 genpkg_rules() |
psychomaniak@17703 | 44 { |
psychomaniak@17703 | 45 cp -a $install/* $fs |
psychomaniak@17703 | 46 } |