wok annotate mpv/receipt @ rev 19981

Up gphoto2 (2.5.14), thanks Pasquale
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Jun 18 19:23:12 2017 +0200 (2017-06-18)
parents fe65ade6d3ce
children b21f0b31e0c2
rev   line source
psychomaniak@17703 1 # SliTaz package receipt.
psychomaniak@17703 2
psychomaniak@17703 3 PACKAGE="mpv"
al@19809 4 VERSION="0.18.1"
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@19809 16 libsdl liblzma bzlib zlib libjpeg libv4l libdrm xorg-libXinerama \
al@19809 17 xorg-libXrandr mesa libegl-mesa xorg-libXau xorg-libXdmcp libpng glib pcre \
al@19809 18 libxml2 libtasn1 nettle gmp libtinfo xorg-libXrender xorg-libXdamage \
al@19809 19 xorg-libXfixes libxcb xorg-libXxf86vm udev lua ffmpeg lame"
al@19809 20 BUILD_DEPENDS="slitaz-base-files slitaz-toolchain busybox cookutils tazpkg \
al@19809 21 cacerts openssl pkg-config wget libguess file sed yasm lcms2-dev \
al@19809 22 xorg-libXv-dev xorg-libX11-dev xorg-libXext-dev glibc-dev libxcb-dev \
al@19809 23 alsa-lib-dev libsdl-dev liblzma-dev bzlib zlib-dev jpeg-dev libv4l-dev \
al@19809 24 libdrm-dev xorg-libXinerama-dev xorg-libXrandr-dev mesa-dev libegl-mesa \
al@19809 25 xorg-libXau-dev xorg-libXdmcp-dev libpng-dev glib-dev pcre-dev libxml2-dev \
al@19809 26 libtasn1-dev nettle-dev gmp-dev libtinfo xorg-libXrender-dev \
al@19809 27 xorg-libXdamage-dev xorg-libXfixes-dev libxcb-dev xorg-libXxf86vm-dev udev-dev \
al@19809 28 ffmpeg-dev lame-dev"
psychomaniak@17703 29
psychomaniak@17703 30 # Rules to configure and make the package.
psychomaniak@17703 31 compile_rules()
psychomaniak@17703 32 {
pascal@19145 33 [ -s $SOURCES_REPOSITORY/$WAFTOOL ] || wget -P $SOURCES_REPOSITORY \
pascal@19145 34 http://www.freehackers.org/~tnagy/release/$WAFTOOL
pascal@19145 35 install -m 755 $SOURCES_REPOSITORY/$WAFTOOL waf
psychomaniak@17703 36 ./bootstrap.py
psychomaniak@17703 37 ./waf configure \
psychomaniak@17703 38 --prefix=/usr \
pascal@19662 39 --confdir=/etc/mpv \
pascal@19662 40 --disable-debug \
al@19809 41 --disable-debug-build \
pascal@19662 42 --disable-oss-audio \
al@19804 43 --disable-manpage-build \
al@19804 44 --disable-libass
al@19804 45
psychomaniak@17703 46 ./waf build
psychomaniak@17703 47 ./waf install --destdir=$DESTDIR
psychomaniak@17703 48 }
psychomaniak@17703 49
psychomaniak@17703 50 # Rules to gen a SliTaz package suitable for Tazpkg.
psychomaniak@17703 51 genpkg_rules()
psychomaniak@17703 52 {
al@19804 53 mkdir $install/etc
al@19804 54 mkdir $install/etc/mpv
al@19804 55 cp $WOK/$PACKAGE/source/$PACKAGE-$VERSION/etc/*.conf $install/etc/mpv
psychomaniak@17703 56 cp -a $install/* $fs
psychomaniak@17703 57 }