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