git.iko.soy/typeable/nixpkgs
on master help sign in
ffmpeg: fix includedir in pkg-config files
commit342f72e747369c19f041e4169d93b3283dbe15a9 authorAndrew Childs <lorne@cons.org.nz> dateSun 15 Jul 2018, 14:41 (8 years ago) parentad19127
1 file changed+6
pkgs/development/libraries/ffmpeg/generic.nix+6
pkgs/development/libraries/ffmpeg/generic.nix+6
@@ -170,9 +170,15 @@ stdenv.mkDerivation rec {
170170
171171 doCheck = false; # fails
172172
173+ # ffmpeg 3+ generates pkg-config (.pc) files that don't have the
174+ # form automatically handled by the multiple-outputs hooks.
173175 postFixup = ''
174176 moveToOutput bin "$bin"
175177 moveToOutput share/ffmpeg/examples "$doc"
178+ for pc in ''${!outputDev}/lib/pkgconfig/*.pc; do
179+ substituteInPlace $pc \
180+ --replace "includedir=$out" "includedir=''${!outputInclude}"
181+ done
176182 '';
177183
178184 installFlags = [ "install-man" ];