opencv: Fix pkgconfig file after multiple outputs

It used to contain:
````
includedir_old=${prefix}/include/opencv
includedir_new=${prefix}/include
Cflags: -I${includedir_old} -I${includedir_new}
````

Should fix build of 'seeks' and some others.
This commit is contained in:
Tuomas Tynkkynen 2016-10-20 16:38:02 +03:00
parent 27d018a120
commit 0d9068b131

View File

@ -68,6 +68,12 @@ stdenv.mkDerivation rec {
hardeningDisable = [ "bindnow" "relro" ];
# Fix pkgconfig file that gets broken with multiple outputs
postFixup = ''
sed -i $dev/lib/pkgconfig/opencv.pc -e "s|includedir_old=.*|includedir_old=$dev/include/opencv|"
sed -i $dev/lib/pkgconfig/opencv.pc -e "s|includedir_new=.*|includedir_new=$dev/include|"
'';
passthru = lib.optionalAttrs enablePython { pythonPath = []; };
meta = {