wok annotate mpv/receipt @ rev 19806
mpv: update bdeps
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Feb 26 10:49:59 2017 +0100 (2017-02-26) |
parents | 323caf6ae266 |
children | 9821ba1c3bf5 |
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@19806 | 7 MAINTAINER="devel@slitaz.org" |
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 |
al@19804 | 15 DEPENDS="lcms xorg-libXv xorg-libX11 xorg-libXext glibc-base libxcb alsa-lib \ |
al@19804 | 16 liblzma bzlib zlib libjpeg libv4l libdrm xorg-libXinerama xorg-libXrandr mesa \ |
al@19804 | 17 libegl-mesa xorg-libXau xorg-libXdmcp libpng glib pcre libxml2 libtasn1 nettle \ |
al@19804 | 18 gmp libtinfo xorg-libXrender xorg-libXdamage xorg-libXfixes libxcb \ |
al@19804 | 19 xorg-libXxf86vm udev lua ffmpeg" |
al@19804 | 20 BUILD_DEPENDS="file sed yasm lcms2-dev xorg-libXv-dev xorg-libX11-dev \ |
al@19804 | 21 xorg-libXext-dev glibc-dev libxcb-dev alsa-lib-dev liblzma-dev bzlib zlib-dev \ |
al@19804 | 22 jpeg-dev libv4l-dev libdrm-dev xorg-libXinerama-dev xorg-libXrandr-dev \ |
al@19804 | 23 mesa-dev libegl-mesa xorg-libXau-dev xorg-libXdmcp-dev libpng-dev glib-dev \ |
al@19804 | 24 pcre-dev libxml2-dev libtasn1-dev nettle-dev gmp-dev libtinfo \ |
al@19804 | 25 xorg-libXrender-dev xorg-libXdamage-dev xorg-libXfixes-dev libxcb-dev \ |
pascal@19806 | 26 xorg-libXxf86vm-dev udev-dev ffmpeg-dev openal-dev" |
psychomaniak@17703 | 27 |
psychomaniak@17703 | 28 # Rules to configure and make the package. |
psychomaniak@17703 | 29 compile_rules() |
psychomaniak@17703 | 30 { |
pascal@19145 | 31 [ -s $SOURCES_REPOSITORY/$WAFTOOL ] || wget -P $SOURCES_REPOSITORY \ |
pascal@19145 | 32 http://www.freehackers.org/~tnagy/release/$WAFTOOL |
pascal@19145 | 33 install -m 755 $SOURCES_REPOSITORY/$WAFTOOL waf |
psychomaniak@17703 | 34 ./bootstrap.py |
psychomaniak@17703 | 35 ./waf configure \ |
psychomaniak@17703 | 36 --prefix=/usr \ |
pascal@19662 | 37 --confdir=/etc/mpv \ |
pascal@19662 | 38 --enable-openal \ |
pascal@19662 | 39 --disable-debug \ |
pascal@19662 | 40 --disable-oss-audio \ |
al@19804 | 41 --disable-manpage-build \ |
al@19804 | 42 --disable-libass |
al@19804 | 43 |
psychomaniak@17703 | 44 ./waf build |
psychomaniak@17703 | 45 ./waf install --destdir=$DESTDIR |
psychomaniak@17703 | 46 } |
psychomaniak@17703 | 47 |
psychomaniak@17703 | 48 # Rules to gen a SliTaz package suitable for Tazpkg. |
psychomaniak@17703 | 49 genpkg_rules() |
psychomaniak@17703 | 50 { |
al@19804 | 51 mkdir $install/etc |
al@19804 | 52 mkdir $install/etc/mpv |
al@19804 | 53 cp $WOK/$PACKAGE/source/$PACKAGE-$VERSION/etc/*.conf $install/etc/mpv |
psychomaniak@17703 | 54 cp -a $install/* $fs |
psychomaniak@17703 | 55 } |