libjpeg-turbo: include transupp functionality for freeimage

The transupp.h header is exported in the dev_private output.
This commit is contained in:
Las
2021-01-10 20:47:29 +00:00
parent 96d50327bc
commit 2cc1925c04
2 changed files with 112 additions and 3 deletions
@@ -15,11 +15,16 @@ stdenv.mkDerivation rec {
sha256 = "0njdxfmyk8smj8bbd6fs3lxjaq3lybivwgg16gpnbiyl984dpi9b";
};
patches =
stdenv.lib.optional (stdenv.hostPlatform.libc or null == "msvcrt")
# This is needed by freeimage
patches = [ ./0001-Compile-transupp.c-as-part-of-the-library.patch ]
++ stdenv.lib.optional (stdenv.hostPlatform.libc or null == "msvcrt")
./mingw-boolean.patch;
outputs = [ "bin" "dev" "out" "man" "doc" ];
outputs = [ "bin" "dev" "dev_private" "out" "man" "doc" ];
postFixup = ''
moveToOutput include/transupp.h $dev_private
'';
nativeBuildInputs = [ cmake nasm ];