Skip to content

Instantly share code, notes, and snippets.

@asergi
Created October 28, 2016 10:14
Show Gist options
  • Save asergi/32b6db568503dfb1c9bbba5d9efa3572 to your computer and use it in GitHub Desktop.
Save asergi/32b6db568503dfb1c9bbba5d9efa3572 to your computer and use it in GitHub Desktop.
diff --git a/common/options.description b/common/options.description
index 5bc7edf..5ec6e59 100644
--- a/common/options.description
+++ b/common/options.description
@@ -75,6 +75,7 @@ desc_option_upower="Enable support for UPower"
desc_option_usb="Enable support for USB"
desc_option_v4l2="Enable support for V4L2 (Video 4 Linux 2)"
desc_option_vaapi="Enable support for VA-API"
+desc_option_vapoursynth="Enable support for VapourSynth"
desc_option_vdpau="Enable support for VDPAU"
desc_option_wavpack="Enable support for the Wavpack audio format"
desc_option_wayland="Enable support for the Wayland backend"
diff --git a/srcpkgs/mpv/template b/srcpkgs/mpv/template
index 18aa637..56ac056 100644
--- a/srcpkgs/mpv/template
+++ b/srcpkgs/mpv/template
@@ -1,7 +1,8 @@
# Template file for 'mpv'
pkgname=mpv
version=0.21.0
-revision=1
+revision=2
+build_options="vapoursynth"
short_desc="Video player based on MPlayer/mplayer2"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="GPL-3"
@@ -9,7 +10,7 @@ homepage="http://mpv.io"
build_style=waf
configure_args="--confdir=/etc/mpv --docdir=/usr/share/examples/mpv
--enable-cdda --enable-libmpv-shared --disable-oss-audio --disable-sdl2
- --enable-vapoursynth"
+ $(vopt_enable vapoursynth)"
hostmakedepends="pkg-config python-docutils perl"
makedepends="
ffmpeg-devel libass-devel lcms2-devel libXinerama-devel lua52-devel v4l-utils-devel
@@ -17,8 +18,8 @@ makedepends="
pulseaudio-devel libbluray-devel libcdio-paranoia-devel libdvdread-devel
MesaLib-devel harfbuzz-devel libXScrnSaver-devel jack-devel libdvdnav-devel
wayland-devel libuuid-devel libguess-devel libXrandr-devel samba-devel
- rubberband-devel vapoursynth-devel zimg-devel python3-devel"
-depends="desktop-file-utils hicolor-icon-theme youtube-dl vapoursynth-mvtools"
+ rubberband-devel $(vopt_if vapoursynth 'vapoursynth-devel zimg-devel python3-devel')"
+depends="desktop-file-utils hicolor-icon-theme youtube-dl $(vopt_if vapoursynth vapoursynth-mvtools)"
distfiles="https://github.com/mpv-player/${pkgname}/archive/v${version}.tar.gz"
checksum=d05f8ece859c500ef1649cdfea911ec1529df1898b8fda3e217766dc28dc9bd3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment