2013-08-19 20:26:13 +02:00
|
|
|
# Description: General Purpose video player based on MPlayer and mplayer2
|
2018-02-05 20:49:44 +02:00
|
|
|
# URL: https://mpv.io/
|
2018-02-08 12:38:45 +11:00
|
|
|
# Maintainer: Danny Rawlins, crux at romster dot me
|
2018-07-16 23:17:29 +10:00
|
|
|
# Depends on: docutils ffmpeg libass util-linux xorg-libxscrnsaver
|
2018-02-05 20:49:44 +02:00
|
|
|
# Optional: youtube-dl libquvi libdvdnav libbluray libcdio-paranoia libvdpau
|
2013-08-19 20:26:13 +02:00
|
|
|
|
|
|
|
name=mpv
|
2018-04-23 21:15:28 +10:00
|
|
|
version=0.28.2
|
2018-07-16 23:17:29 +10:00
|
|
|
release=2
|
2018-02-18 18:19:41 +11:00
|
|
|
source=(https://github.com/$name-player/$name/archive/v$version/$name-v$version.tar.gz)
|
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
|
|
|
|
2017-07-23 23:01:42 +03:00
|
|
|
[ -e '/usr/lib/pkgconfig/libcdio_cdda.pc' ] && PKGMK_MPV+=' --enable-cdda'
|
|
|
|
[ -e '/usr/lib/pkgconfig/dvdnav.pc' ] && PKGMK_MPV+=' --enable-dvdread --enable-dvdnav'
|
2017-06-18 12:23:09 +10:00
|
|
|
|
2015-03-23 13:15:23 +01:00
|
|
|
./bootstrap.py
|
2017-06-18 12:23:09 +10:00
|
|
|
./waf configure ${PKGMK_MPV} \
|
|
|
|
--prefix=/usr \
|
|
|
|
--enable-libarchive \
|
|
|
|
--enable-libmpv-shared
|
2016-06-10 11:50:46 +03:00
|
|
|
|
2015-03-23 13:15:23 +01:00
|
|
|
./waf build
|
|
|
|
./waf install --destdir=$PKG
|
2017-06-18 12:23:09 +10:00
|
|
|
rm -r $PKG/usr/share/doc
|
2013-08-19 20:26:13 +02:00
|
|
|
}
|