From ff016b946339f807a5743acf789ed9bb6bf42bee Mon Sep 17 00:00:00 2001 From: Danny Rawlins Date: Sun, 18 Jun 2017 12:23:09 +1000 Subject: [PATCH] mpv: fix dependencies, make a note about optical playback optional dependencies --- mpv/.footprint | 12 ++++++++++++ mpv/.signature | 6 +++--- mpv/Pkgfile | 20 +++++++++++++++----- mpv/README | 4 ++++ 4 files changed, 34 insertions(+), 8 deletions(-) create mode 100644 mpv/README diff --git a/mpv/.footprint b/mpv/.footprint index 439ba54cc..4a1d4e876 100644 --- a/mpv/.footprint +++ b/mpv/.footprint @@ -4,6 +4,18 @@ drwxr-xr-x root/root usr/bin/ drwxr-xr-x root/root usr/etc/ drwxr-xr-x root/root usr/etc/mpv/ -rw-r--r-- root/root usr/etc/mpv/encoding-profiles.conf +drwxr-xr-x root/root usr/include/ +drwxr-xr-x root/root usr/include/mpv/ +-rw-r--r-- root/root usr/include/mpv/client.h +-rw-r--r-- root/root usr/include/mpv/opengl_cb.h +-rw-r--r-- root/root usr/include/mpv/qthelper.hpp +-rw-r--r-- root/root usr/include/mpv/stream_cb.h +drwxr-xr-x root/root usr/lib/ +lrwxrwxrwx root/root usr/lib/libmpv.so -> libmpv.so.1.24.0 +lrwxrwxrwx root/root usr/lib/libmpv.so.1 -> libmpv.so.1.24.0 +-rwxr-xr-x root/root usr/lib/libmpv.so.1.24.0 +drwxr-xr-x root/root usr/lib/pkgconfig/ +-rw-r--r-- root/root usr/lib/pkgconfig/mpv.pc drwxr-xr-x root/root usr/share/ drwxr-xr-x root/root usr/share/applications/ -rw-r--r-- root/root usr/share/applications/mpv.desktop diff --git a/mpv/.signature b/mpv/.signature index 9d6703681..e016f1d78 100644 --- a/mpv/.signature +++ b/mpv/.signature @@ -1,5 +1,5 @@ untrusted comment: verify with /etc/ports/contrib.pub -RWSagIOpLGJF36/vryd3IQO7m35vm6XGELzsXXx4jSBCEbJ7EKnRQtSdJAGigvcswC+k413a426m+s+pSq1nv4GinbH0UuNQbgA= -SHA256 (Pkgfile) = b866093c5af23abb5a16e0ecd357e535e79996343b0838fd28ff2c9b8ec19731 -SHA256 (.footprint) = 9a2347eb043dbf9d16ecf623947a21139e7cbc8d9ec043d8129bcb1a65b1024f +RWSagIOpLGJF32rlplOdIBP6tOHhBMp2vhAo1gaZJwXocM9LJO2GjbbZf+RQkzh3uwvzwQCMwgcMGRvUxji0rcV8lMXYfJc7XQQ= +SHA256 (Pkgfile) = 4d87ba4f349fcad2ace91c4159d936d14af4810e6546277c60712e8805ac9296 +SHA256 (.footprint) = 9ad2cbd18772bb387a5ed2621e7117b016b2af468aca2c558d120bd9d1cd5a73 SHA256 (v0.25.0.tar.gz) = 07423ffad6921ec4da32f703cd7fbfb27012301dcb736ac8542ac8e6083b0bce diff --git a/mpv/Pkgfile b/mpv/Pkgfile index 82525aa34..b82c11633 100644 --- a/mpv/Pkgfile +++ b/mpv/Pkgfile @@ -1,21 +1,31 @@ # Description: General Purpose video player based on MPlayer and mplayer2 # URL: http://mpv.io/ # Maintainer: Svyatoslav Mishyn, juef at openmailbox dot org -# Depends on: ffmpeg docutils -# Optional: libquvi libdvdread libdvdnav +# Depends on: alsa-lib docutils ffmpeg libass mesa3d +# Optional: libquvi libdvdnav libbluray libcdio-paranoia libvdpau name=mpv version=0.25.0 -release=1 +release=2 source=(https://github.com/$name-player/$name/archive/v$version.tar.gz) build() { cd $name-$version +[ -e '/usr/lib/pkgconfig/libcdio_cdda.pc' ] && PKGMK_MPV+=' --enable-cdda' +[ -e '/usr/lib/pkgconfig/dvdnav.pc' ] && PKGMK_MPV+=' --enable-dvdread --enable-dvdnav' + +printf "\e[031mNote: for optical audio/dvd/bluray playback you need to: +prt-get depinst libcdio-paranoia libdvdnav libbluray , respectively.\033[0m\n" +sleep 10 + ./bootstrap.py - ./waf configure --prefix=/usr + ./waf configure ${PKGMK_MPV} \ + --prefix=/usr \ + --enable-libarchive \ + --enable-libmpv-shared ./waf build ./waf install --destdir=$PKG - rm -rf $PKG/usr/share/doc + rm -r $PKG/usr/share/doc } diff --git a/mpv/README b/mpv/README new file mode 100644 index 000000000..e27789e05 --- /dev/null +++ b/mpv/README @@ -0,0 +1,4 @@ +NOTE + +For optical audio/dvd/bluray playback you need to: +prt-get depinst libcdio-paranoia libdvdnav libbluray , respectively.