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/
|
2023-03-06 05:22:42 +01:00
|
|
|
# Maintainer: John McQuah, jmcquah at disroot dot org
|
2019-12-01 02:39:02 +01:00
|
|
|
# Depends on: ffmpeg libass libplacebo util-linux xorg-libxscrnsaver
|
2023-07-16 13:54:13 +02:00
|
|
|
# Optional: libdvdnav libbluray libcdio-paranoia libsdl2 libvdpau pipewire pulseaudio sndio rubberband xorg-libxpresent
|
2013-08-19 20:26:13 +02:00
|
|
|
|
|
|
|
name=mpv
|
2023-11-23 13:39:00 +01:00
|
|
|
version=0.37.0
|
2023-07-25 20:37:04 +02:00
|
|
|
release=1
|
|
|
|
source=(https://github.com/mpv-player/mpv/archive/v$version/$name-$version.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"
|
2023-07-16 13:54:13 +02:00
|
|
|
[ -e /usr/lib/libsndio.so ] && PKGMK_MPV+=" -D sndio=enabled"
|
2022-11-04 06:39:45 +01:00
|
|
|
|
2023-07-25 20:37:04 +02:00
|
|
|
meson setup $name-$version 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
|
|
|
|
2023-07-16 13:54:13 +02:00
|
|
|
ninja -C build -j ${JOBS:-1}
|
2022-11-01 15:11:05 +01:00
|
|
|
DESTDIR=$PKG meson install -C build
|
2023-03-06 05:22:42 +01:00
|
|
|
|
|
|
|
prt-get isinst bash-completion || rm -rf $PKG/usr/share/bash-completion
|
|
|
|
prt-get isinst zsh || rm -rf $PKG/usr/share/zsh
|
2013-08-19 20:26:13 +02:00
|
|
|
}
|