ffmpeg: fix includedir in pkg-config files

This commit is contained in:
Andrew Childs 2018-07-15 14:41:45 +09:00
parent ad19127009
commit 342f72e747

View File

@ -170,9 +170,15 @@ stdenv.mkDerivation rec {
doCheck = false; # fails
# ffmpeg 3+ generates pkg-config (.pc) files that don't have the
# form automatically handled by the multiple-outputs hooks.
postFixup = ''
moveToOutput bin "$bin"
moveToOutput share/ffmpeg/examples "$doc"
for pc in ''${!outputDev}/lib/pkgconfig/*.pc; do
substituteInPlace $pc \
--replace "includedir=$out" "includedir=''${!outputInclude}"
done
'';
installFlags = [ "install-man" ];