summaryrefslogtreecommitdiff
path: root/repo/mpv/mpv.xibuild
blob: 6770c545f5f73ea4d43c86d26a6cb3d451dc9124 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/sh

NAME="mpv"
DESC="Video player based on MPlayer/mplayer2"

MAKEDEPS="make waf"
DEPS="alsa-lib faac ffmpeg4 freetype2 lame aom libass libtheora libva libvdpau libxext libxinerama libxkbcommon libxrandr libxscrnsaver libxv libxvmc libxxf86dga lua mesa perl pulseaudio python-docutils python xvidcore zlib "

PKG_VER=0.34.1
SOURCE="https://github.com/mpv-player/mpv/archive/v$PKG_VER/mpv-$PKG_VER.tar.gz"

prepare () {
    ln -s /usr/bin/waf waf
}

build () {
    python3 waf configure \
        --prefix=/usr \
        --bindir=/usr/bin \
        --sysconfdir=/etc \
        --disable-static \
        --enable-alsa \
        --enable-pulse \
        --enable-libmpv-shared \
        --enable-wayland \
        --enable-lua \
        --enable-test
    python3 waf build
}

package () {
    python3 waf install --destdir=$PKG_DEST
}