2019-05-30 03:39:57 +01:00
|
|
|
{ stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, boost
|
|
|
|
, cmake
|
|
|
|
, ilmbase
|
|
|
|
, libjpeg
|
|
|
|
, libpng
|
|
|
|
, libtiff
|
|
|
|
, opencolorio
|
|
|
|
, openexr
|
|
|
|
, robin-map
|
|
|
|
, unzip
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "openimageio";
|
2019-07-16 04:36:48 +01:00
|
|
|
version = "2.0.9";
|
2019-05-30 03:39:57 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "OpenImageIO";
|
|
|
|
repo = "oiio";
|
|
|
|
rev = "Release-${version}";
|
2019-07-16 04:36:48 +01:00
|
|
|
sha256 = "17diyfk586hll54cl476kbhbcm3nihw6cb4bgjkjxxzxbd3wx839";
|
2019-05-30 03:39:57 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
outputs = [ "bin" "out" "dev" "doc" ];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
unzip
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
boost
|
|
|
|
ilmbase
|
|
|
|
libjpeg
|
|
|
|
libpng
|
|
|
|
libtiff
|
|
|
|
opencolorio
|
|
|
|
openexr
|
|
|
|
robin-map
|
|
|
|
];
|
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DUSE_PYTHON=OFF"
|
|
|
|
"-DUSE_QT=OFF"
|
|
|
|
# GNUInstallDirs
|
|
|
|
"-DCMAKE_INSTALL_BINDIR=${placeholder "bin"}/bin"
|
|
|
|
"-DCMAKE_INSTALL_INCLUDEDIR=${placeholder "dev"}/include"
|
|
|
|
"-DCMAKE_INSTALL_LIBDIR=lib" # needs relative path for pkgconfig
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = http://www.openimageio.org;
|
|
|
|
description = "A library and tools for reading and writing images";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ goibhniu jtojnar ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|