contrib/mpv/Pkgfile

27 lines
880 B
Plaintext
Raw Normal View History

2013-08-19 20:26:13 +02:00
# Description: General Purpose video player based on MPlayer and mplayer2
# 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
2023-01-29 10:12:38 +01:00
version=0.35.1
release=1
2022-11-12 21:50:44 +01:00
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"
2022-11-12 21:50:44 +01:00
meson setup $name-$version build $PKGMK_MPV \
--prefix=/usr \
--buildtype=plain \
--wrap-mode nodownload \
-D b_lto=true \
-D b_pie=true
2013-08-19 20:26:13 +02:00
meson compile -C build
DESTDIR=$PKG meson install -C build
2013-08-19 20:26:13 +02:00
}