void-packages/srcpkgs/mpv/template
2018-07-30 21:45:28 +02:00

57 lines
2.4 KiB
Bash

# Template file for 'mpv'
pkgname=mpv
version=0.29.0
revision=1
build_style=waf
configure_args="--confdir=/etc/mpv --docdir=/usr/share/examples/mpv
--enable-dvdread --enable-dvdnav --enable-cdda --enable-libmpv-shared
--enable-dvbin $(vopt_enable alsa) $(vopt_enable caca) $(vopt_enable jack)
$(vopt_enable lua) $(vopt_enable oss oss-audio)
$(vopt_enable pulseaudio pulse) $(vopt_enable sdl2)
$(vopt_enable smb libsmbclient) $(vopt_enable sndio) $(vopt_enable v4l2 tv)
$(vopt_enable vapoursynth) $(vopt_enable vdpau) $(vopt_enable wayland)
$(vopt_enable x11)"
hostmakedepends="pkg-config python-docutils perl $(vopt_if wayland wayland-devel)"
makedepends="MesaLib-devel ffmpeg-devel harfbuzz-devel lcms2-devel libXv-devel
libass-devel libbluray-devel libcdio-paranoia-devel libdvdnav-devel
libdvdread-devel libguess-devel libuuid-devel libva-glx-devel rubberband-devel
$(vopt_if alsa alsa-lib-devel) $(vopt_if caca libcaca-devel)
$(vopt_if jack jack-devel) $(vopt_if lua lua52-devel)
$(vopt_if pulseaudio pulseaudio-devel) $(vopt_if sdl2 SDL2-devel)
$(vopt_if smb samba-devel) $(vopt_if sndio sndio-devel)
$(vopt_if v4l2 v4l-utils-devel) $(vopt_if vapoursynth vapoursynth-devel)
$(vopt_if vdpau libvdpau-devel) $(vopt_if wayland "wayland-devel
wayland-protocols libwayland-egl libxkbcommon-devel")
$(vopt_if x11 "libXScrnSaver-devel libXinerama-devel libXrandr-devel")"
depends="desktop-file-utils hicolor-icon-theme $(vopt_if vapoursynth vapoursynth-mvtools)"
short_desc="Video player based on MPlayer/mplayer2"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="GPL-2.0-or-later"
homepage="https://mpv.io"
distfiles="https://github.com/mpv-player/${pkgname}/archive/v${version}.tar.gz"
checksum=772af878cee5495dcd342788a6d120b90c5b1e677e225c7198f1e76506427319
build_options="alsa caca jack lua oss pulseaudio sdl2 smb sndio vapoursynth
vdpau v4l2 wayland x11"
build_options_default="alsa jack lua pulseaudio sndio vdpau wayland x11 v4l2"
desc_option_caca="Enable support for libcaca video output"
desc_option_oss="Enable support for OSS audio output"
vopt_conflict sdl2 wayland
if [ -z "$CROSS_BUILD" ]; then
configure_args+=" --enable-zsh-comp"
fi
pre_configure() {
python2 bootstrap.py
}
mpv-devel_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove usr/lib/*.so
}
}