68 lines
2.5 KiB
Bash
68 lines
2.5 KiB
Bash
# Template file for 'mpv'
|
|
pkgname=mpv
|
|
version=0.38.0
|
|
revision=2
|
|
build_style=meson
|
|
configure_args="-Dcdda=enabled -Ddvbin=enabled -Ddvdnav=enabled
|
|
-Dlibmpv=true -Dcplugins=enabled
|
|
$(vopt_feature alsa alsa)
|
|
$(vopt_feature caca caca)
|
|
$(vopt_feature jack jack)
|
|
$(vopt_feature lcms lcms2)
|
|
$(vopt_feature lua lua)
|
|
$(vopt_feature openal openal)
|
|
$(vopt_feature pulseaudio pulse)
|
|
$(vopt_feature sdl2 sdl2)
|
|
$(vopt_feature vapoursynth vapoursynth)
|
|
$(vopt_feature vdpau vdpau)
|
|
$(vopt_feature vulkan vulkan)
|
|
$(vopt_feature wayland wayland)
|
|
$(vopt_feature x11 x11)
|
|
$(vopt_feature pipewire pipewire)
|
|
$(vopt_feature sndio sndio)"
|
|
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 libplacebo-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-loader-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=86d9ef40b6058732f67b46d0bbda24a074fae860b3eaae05bab3145041303066
|
|
python_version=3
|
|
|
|
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
|
|
|
|
post_install() {
|
|
vbin TOOLS/umpv
|
|
}
|
|
|
|
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"
|
|
}
|
|
}
|