Merge pull request #27765 from rycee/fix/ffmpeg/frei0r-plugin

ffmpeg-full: fix path to frei0r filters
This commit is contained in:
Jörg Thalheim 2017-07-30 16:01:25 +01:00 committed by GitHub
commit 6d883df780

View File

@ -241,6 +241,11 @@ stdenv.mkDerivation rec {
patchPhase = ''patchShebangs .
'' + stdenv.lib.optionalString stdenv.isDarwin ''
sed -i 's/#ifndef __MAC_10_11/#if 1/' ./libavcodec/audiotoolboxdec.c
'' + stdenv.lib.optionalString (frei0r != null) ''
substituteInPlace libavfilter/vf_frei0r.c \
--replace /usr/local/lib/frei0r-1 ${frei0r}/lib/frei0r-1
substituteInPlace doc/filters.texi \
--replace /usr/local/lib/frei0r-1 ${frei0r}/lib/frei0r-1
'';
configureFlags = [