diff options
author | Inochi Amaoto | 2019-07-27 20:52:45 +0800 |
---|---|---|
committer | Inochi Amaoto | 2019-07-27 20:52:45 +0800 |
commit | f1371058d7b1c08ce96859926213c964efcd85e2 (patch) | |
tree | da5482e9daa25fab842114aee81fa15af3ec165d | |
parent | 52b6d67c1adf1961d852d724623183ae571f1844 (diff) | |
download | aur-f1371058d7b1c08ce96859926213c964efcd85e2.tar.gz |
add spirv-cross, and add speed up ffmpeg builds
-rw-r--r-- | .SRCINFO | 6 | ||||
-rw-r--r-- | PKGBUILD | 17 |
2 files changed, 10 insertions, 13 deletions
@@ -1,6 +1,6 @@ pkgbase = mpv-full-build-git pkgdesc = Video player based on MPlayer/mplayer2 with all possible libs (uses statically linked ffmpeg with all possible libs). (GIT version ) - pkgver = 0.29.0.r326.g91c1691b35 + pkgver = 0.29.0.r366.ga8c2e29868 pkgrel = 1 url = http://mpv.io arch = x86_64 @@ -59,6 +59,7 @@ pkgbase = mpv-full-build-git depends = libiec61883 depends = libmodplug depends = libomxil-bellagio + depends = libplacebo depends = libpng depends = libpulse depends = librsvg @@ -116,7 +117,6 @@ pkgbase = mpv-full-build-git depends = zvbi depends = chromaprint-fftw depends = codec2 - depends = crossc depends = davs2 depends = flite1-patched depends = kvazaar @@ -129,11 +129,11 @@ pkgbase = mpv-full-build-git depends = rockchip-mpp depends = rsound depends = shine + depends = spirv-cross depends = vo-amrwbenc depends = xavs depends = xavs2 optdepends = cuda: mpv ffmpeg nvcc and libnpp support - optdepends = libplacebo-git: Addition GPU-accelerated rendering primitives optdepends = mpv-bash-completion-git: Additional completion definitions for Bash users optdepends = nvidia-utils: for hardware accelerated video decoding with CUDA optdepends = youtube-dl: Another way to view youtuve videos with mpv @@ -1,7 +1,7 @@ # Maintainer: Inochi Amaoto <libraryindexsky@gmail.com> pkgname=mpv-full-build-git -pkgver=0.29.0.r326.g91c1691b35 +pkgver=0.29.0.r366.ga8c2e29868 pkgrel=1 pkgdesc="Video player based on MPlayer/mplayer2 with all possible libs (uses statically linked ffmpeg with all possible libs). (GIT version )" arch=('x86_64') @@ -46,6 +46,7 @@ depends=( 'libiec61883' 'libmodplug' 'libomxil-bellagio' + 'libplacebo' 'libpng' 'libpulse' 'librsvg' @@ -105,7 +106,6 @@ depends=( # AUR: 'chromaprint-fftw' 'codec2' - 'crossc' 'davs2' 'flite1-patched' 'kvazaar' @@ -118,6 +118,7 @@ depends=( 'rockchip-mpp' 'rsound' 'shine' + 'spirv-cross' 'vo-amrwbenc' 'xavs' 'xavs2' @@ -138,7 +139,6 @@ makedepends=( ) optdepends=( 'cuda: mpv ffmpeg nvcc and libnpp support' - 'libplacebo-git: Addition GPU-accelerated rendering primitives' 'mpv-bash-completion-git: Additional completion definitions for Bash users' 'nvidia-utils: for hardware accelerated video decoding with CUDA' 'youtube-dl: Another way to view youtuve videos with mpv' @@ -174,9 +174,6 @@ if [ -z ${MPV_NO_CHECK_OPT_DEPEND+yes} ]; then if [ -f /usr/lib/libtensorflow.so ]; then depends+=('tensorflow') fi - if [ -f /usr/lib/libplacebo.so ]; then - depends+=('libplacebo-git') - fi if [ -d /opt/cuda ]; then makedepends+=('cuda') depends+=('cuda') @@ -318,7 +315,6 @@ prepare() { '--enable-caca' '--enable-cdda' '--enable-cplugins' - '--enable-crossc' '--enable-cuda-hwaccel' '--enable-drm' '--enable-drmprime' @@ -343,6 +339,7 @@ prepare() { '--enable-libavdevice' '--enable-libbluray' '--enable-libmpv-shared' + '--enable-libplacebo' '--enable-libsmbclient' '--enable-libv4l2' '--enable-lua' @@ -355,6 +352,7 @@ prepare() { '--enable-sdl2' '--enable-shaderc' '--enable-sndio' + '--enable-spirv-cross' '--enable-tv' '--enable-tv' '--enable-tv-v4l2' @@ -384,9 +382,6 @@ prepare() { local _ffmpeg_cflags='' local _ffmpeg_ldflags='' if [ -z ${MPV_NO_CHECK_OPT_DEPEND+yes} ]; then - if [ -f /usr/lib/libplacebo.so ]; then - _mpv_options+=('--enable-libplacebo') - fi if [ -f /usr/lib/libvapoursynth.so ]; then _mpv_options+=('--enable-vapoursynth') fi @@ -412,6 +407,8 @@ prepare() { build() { cd mpv-build + CORENUM=$(nproc) + sed -i "s|scripts/ffmpeg-build|scripts/ffmpeg-build -j ${CORENUM}|" build if [ -d /opt/cuda ]; then sed -i 's|scripts/mpv-config|sed \-i "s\|-lavfilter\|-L/opt/cuda/targets/x86_64-linux/lib/ -lavfilter\|" build_libs/lib/pkgconfig/libavfilter.pc\nscripts/mpv-config|' "${srcdir}/mpv-build/build" fi |