2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv
|
2020-04-24 23:36:52 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, boost
|
|
|
|
, cmake
|
2021-06-04 09:07:49 +00:00
|
|
|
, giflib
|
2020-04-24 23:36:52 +00:00
|
|
|
, ilmbase
|
|
|
|
, libjpeg
|
|
|
|
, libpng
|
|
|
|
, libtiff
|
2021-06-28 23:13:55 +00:00
|
|
|
, opencolorio_1
|
2020-04-24 23:36:52 +00:00
|
|
|
, openexr
|
|
|
|
, robin-map
|
|
|
|
, unzip
|
2021-03-23 19:22:30 +00:00
|
|
|
, fmt
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "openimageio";
|
2021-08-11 14:56:57 +00:00
|
|
|
version = "2.2.17.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "OpenImageIO";
|
|
|
|
repo = "oiio";
|
|
|
|
rev = "Release-${version}";
|
2021-08-11 14:56:57 +00:00
|
|
|
sha256 = "0jqpb1zci911wdm928addsljxx8zsh0gzbhv9vbw6man4wi93h6h";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
outputs = [ "bin" "out" "dev" "doc" ];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
unzip
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
boost
|
2021-06-04 09:07:49 +00:00
|
|
|
giflib
|
2020-04-24 23:36:52 +00:00
|
|
|
ilmbase
|
|
|
|
libjpeg
|
|
|
|
libpng
|
|
|
|
libtiff
|
2021-06-28 23:13:55 +00:00
|
|
|
opencolorio_1
|
2020-04-24 23:36:52 +00:00
|
|
|
openexr
|
|
|
|
robin-map
|
2021-03-23 19:22:30 +00:00
|
|
|
fmt
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DUSE_PYTHON=OFF"
|
|
|
|
"-DUSE_QT=OFF"
|
|
|
|
# GNUInstallDirs
|
2021-02-05 17:12:51 +00:00
|
|
|
"-DCMAKE_INSTALL_LIBDIR=lib" # needs relative path for pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2022-08-21 13:32:41 +00:00
|
|
|
postFixup = ''
|
|
|
|
substituteInPlace $dev/lib/cmake/OpenImageIO/OpenImageIOTargets-*.cmake \
|
|
|
|
--replace "\''${_IMPORT_PREFIX}/lib/lib" "$out/lib/lib"
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "http://www.openimageio.org";
|
|
|
|
description = "A library and tools for reading and writing images";
|
|
|
|
license = licenses.bsd3;
|
2022-10-30 15:09:59 +00:00
|
|
|
maintainers = with maintainers; [ goibhniu ];
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|