68 lines
2.8 KiB
Bash
68 lines
2.8 KiB
Bash
# Template file for 'mpv'
|
|
pkgname=mpv
|
|
version=0.35.1
|
|
revision=1
|
|
build_style=meson
|
|
configure_args="-Dcdda=enabled -Ddvbin=enabled -Ddvdnav=enabled
|
|
-Dlibmpv=true -Dcplugins=enabled
|
|
-Dalsa=$(vopt_if alsa enabled disabled)
|
|
-Dcaca=$(vopt_if caca enabled disabled)
|
|
-Djack=$(vopt_if jack enabled disabled)
|
|
-Dlcms2=$(vopt_if lcms enabled disabled)
|
|
-Dlua=$(vopt_if lua enabled disabled)
|
|
-Dopenal=$(vopt_if openal enabled disabled)
|
|
-Dpulse=$(vopt_if pulseaudio enabled disabled)
|
|
-Dsdl2=$(vopt_if sdl2 enabled disabled)
|
|
-Dvapoursynth=$(vopt_if vapoursynth enabled disabled)
|
|
-Dvdpau=$(vopt_if vdpau enabled disabled)
|
|
-Dvulkan=$(vopt_if vulkan enabled disabled)
|
|
-Dshaderc=$(vopt_if vulkan enabled disabled)
|
|
-Dwayland=$(vopt_if wayland enabled disabled)
|
|
-Dx11=$(vopt_if x11 enabled disabled)
|
|
-Dpipewire=$(vopt_if pipewire enabled disabled)
|
|
-Dsndio=$(vopt_if sndio enabled disabled)"
|
|
hostmakedepends="pkg-config python3-docutils $(vopt_if wayland wayland-devel)"
|
|
makedepends="MesaLib-devel ffmpeg-devel harfbuzz-devel libXv-devel
|
|
libass-devel libbluray-devel libcdio-paranoia-devel libdvdnav-devel
|
|
libuuid-devel libva-devel rubberband-devel uchardet-devel
|
|
libarchive-devel $(vopt_if alsa alsa-lib-devel) $(vopt_if caca libcaca-devel)
|
|
$(vopt_if jack jack-devel) $(vopt_if lcms lcms2-devel)
|
|
$(vopt_if lua lua52-devel) $(vopt_if openal libopenal-devel)
|
|
$(vopt_if pulseaudio pulseaudio-devel) $(vopt_if pipewire pipewire-devel)
|
|
$(vopt_if sdl2 SDL2-devel) $(vopt_if vapoursynth vapoursynth-devel)
|
|
$(vopt_if vdpau libvdpau-devel) $(vopt_if sndio sndio-devel)
|
|
$(vopt_if vulkan "Vulkan-Headers vulkan-loader shaderc libplacebo-devel")
|
|
$(vopt_if wayland "wayland-devel wayland-protocols libxkbcommon-devel")
|
|
$(vopt_if x11 "libXScrnSaver-devel libXinerama-devel libXrandr-devel libXpresent-devel")"
|
|
depends="desktop-file-utils hicolor-icon-theme"
|
|
short_desc="Video player based on MPlayer/mplayer2"
|
|
maintainer="travankor <travankor@tuta.io>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="https://mpv.io"
|
|
changelog="https://github.com/mpv-player/mpv/releases"
|
|
distfiles="https://github.com/mpv-player/mpv/archive/v${version}.tar.gz"
|
|
checksum=41df981b7b84e33a2ef4478aaf81d6f4f5c8b9cd2c0d337ac142fc20b387d1a9
|
|
|
|
if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
|
|
makedepends+=" libatomic-devel"
|
|
fi
|
|
|
|
build_options="alsa caca jack lcms lua openal pulseaudio pipewire sdl2
|
|
sndio vapoursynth vdpau vulkan wayland x11"
|
|
build_options_default="alsa jack lcms lua pulseaudio pipewire vdpau vulkan
|
|
sndio wayland x11"
|
|
desc_option_caca="Enable support for libcaca video output"
|
|
desc_option_lcms="Enable support for LittleCMS 2 engine"
|
|
desc_option_openal="Enable support for OpenAL audio output"
|
|
vopt_conflict sdl2 wayland
|
|
|
|
mpv-devel_package() {
|
|
depends="${sourcepkg}>=${version}_${revision} ${makedepends}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/pkgconfig
|
|
vmove "usr/lib/*.so"
|
|
}
|
|
}
|