2013-08-19 20:26:13 +02:00
|
|
|
# Description: General Purpose video player based on MPlayer and mplayer2
|
2018-07-22 21:18:04 +10:00
|
|
|
# URL: https://mpv.io/
|
|
|
|
# Maintainer: Danny Rawlins, crux at romster dot me
|
2019-12-01 12:39:02 +11:00
|
|
|
# Depends on: ffmpeg libass libplacebo util-linux xorg-libxscrnsaver
|
|
|
|
# Optional: docutils youtube-dl libquvi libdvdnav libbluray libcdio-paranoia libvdpau rubberband
|
2013-08-19 20:26:13 +02:00
|
|
|
|
|
|
|
name=mpv
|
2022-02-05 16:34:40 +01:00
|
|
|
version=0.34.1
|
2022-04-08 13:41:23 +02:00
|
|
|
release=2
|
2019-10-26 02:08:51 +11:00
|
|
|
source=(https://github.com/$name-player/$name/archive/v$version/$name-v$version.tar.gz
|
2019-12-01 12:39:02 +11:00
|
|
|
https://waf.io/waf-2.0.9
|
|
|
|
mpv.1)
|
2013-08-19 20:26:13 +02:00
|
|
|
|
2016-06-10 12:02:55 +03:00
|
|
|
build() {
|
2013-08-25 14:40:25 +02:00
|
|
|
cd $name-$version
|
2013-08-19 20:26:13 +02:00
|
|
|
|
2019-10-26 02:08:51 +11:00
|
|
|
install -m0755 $SRC/waf-2.0.9 waf
|
|
|
|
|
2020-11-24 00:41:41 +11:00
|
|
|
[[ -e '/usr/lib/pkgconfig/libcdio_cdda.pc' ]] && PKGMK_MPV+=' --enable-cdda'
|
|
|
|
[[ -e '/usr/lib/pkgconfig/dvdnav.pc' ]] && PKGMK_MPV+=' --enable-dvdnav'
|
2017-06-18 12:23:09 +10:00
|
|
|
|
2020-01-07 00:05:04 +11:00
|
|
|
/usr/bin/python3 waf configure ${PKGMK_MPV} \
|
2017-06-18 12:23:09 +10:00
|
|
|
--prefix=/usr \
|
|
|
|
--enable-libarchive \
|
2018-07-22 21:18:04 +10:00
|
|
|
--enable-libmpv-shared \
|
|
|
|
-j ${JOBS-1}
|
2016-06-10 11:50:46 +03:00
|
|
|
|
2020-01-07 00:05:04 +11:00
|
|
|
/usr/bin/python3 waf build
|
|
|
|
/usr/bin/python3 waf install --destdir=$PKG
|
2017-06-18 12:23:09 +10:00
|
|
|
rm -r $PKG/usr/share/doc
|
2019-12-01 12:39:02 +11:00
|
|
|
|
|
|
|
[ -e '/usr/bin/rst2man.py' ] || install -D -m 0644 -t $PKG/usr/share/man/man1 $SRC/mpv.1
|
2013-08-19 20:26:13 +02:00
|
|
|
}
|