2013-08-19 20:26:13 +02:00
|
|
|
# Description: General Purpose video player based on MPlayer and mplayer2
|
2018-07-22 13:18:04 +02:00
|
|
|
# URL: https://mpv.io/
|
|
|
|
# Maintainer: Danny Rawlins, crux at romster dot me
|
2019-12-01 02:39:02 +01:00
|
|
|
# Depends on: ffmpeg libass libplacebo util-linux xorg-libxscrnsaver
|
2022-11-04 06:39:45 +01:00
|
|
|
# Optional: docutils youtube-dl libquvi libdvdnav libbluray libcdio-paranoia libsdl2 libvdpau rubberband xorg-libxpresent
|
2013-08-19 20:26:13 +02:00
|
|
|
|
|
|
|
name=mpv
|
2022-02-05 16:34:40 +01:00
|
|
|
version=0.34.1
|
2022-11-01 15:11:05 +01:00
|
|
|
release=4
|
|
|
|
_commit=d3a28f12c9ced29982fc831722075bd0c73fb821
|
|
|
|
source=(https://github.com/mpv-player/mpv/archive/$_commit/$name-v$version-$release.tar.gz)
|
2013-08-19 20:26:13 +02:00
|
|
|
|
2016-06-10 11:02:55 +02:00
|
|
|
build() {
|
2022-11-04 06:39:45 +01:00
|
|
|
prt-get isinst libdvdnav && PKGMK_MPV="-D dvdnav=enabled"
|
|
|
|
prt-get isinst libcdio-paranoia && PKGMK_MPV+=" -D cdda=enabled"
|
|
|
|
prt-get isinst libsdl2 && PKGMK_MPV+=" -D sdl2=enabled"
|
|
|
|
|
|
|
|
meson setup $name-$_commit build $PKGMK_MPV \
|
2022-11-01 15:11:05 +01:00
|
|
|
--prefix=/usr \
|
|
|
|
--buildtype=plain \
|
|
|
|
--wrap-mode nodownload \
|
|
|
|
-D b_lto=true \
|
|
|
|
-D b_pie=true
|
2013-08-19 20:26:13 +02:00
|
|
|
|
2022-11-01 15:11:05 +01:00
|
|
|
meson compile -C build
|
|
|
|
DESTDIR=$PKG meson install -C build
|
2013-08-19 20:26:13 +02:00
|
|
|
}
|