2013-03-27 16:46:23 -07:00
|
|
|
{ stdenv, fetchurl, boost, cmake, ilmbase, libjpeg, libpng, libtiff
|
|
|
|
, opencolorio, openexr, unzip
|
2013-03-27 15:29:17 -07:00
|
|
|
}:
|
2013-03-27 14:25:33 -07:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "oiio-${version}";
|
2014-11-24 13:17:00 -08:00
|
|
|
version = "1.4.14";
|
2013-03-27 14:25:33 -07:00
|
|
|
|
|
|
|
src = fetchurl {
|
2014-09-26 03:44:02 -07:00
|
|
|
url = "https://github.com/OpenImageIO/oiio/archive/Release-${version}.zip";
|
2014-11-24 13:17:00 -08:00
|
|
|
sha256 = "1wn51d7044wyh25bwykxiw8rysb0v0sy2cfj6pyk5fg6rsr9cx51";
|
2013-03-27 14:25:33 -07:00
|
|
|
};
|
|
|
|
|
2013-12-16 05:25:01 -08:00
|
|
|
buildInputs = [
|
2014-10-01 12:55:40 -07:00
|
|
|
boost cmake ilmbase libjpeg libpng libtiff opencolorio openexr
|
2014-09-19 10:56:08 -07:00
|
|
|
unzip
|
2013-03-27 16:46:23 -07:00
|
|
|
];
|
2013-03-27 14:25:33 -07:00
|
|
|
|
2014-08-11 17:33:10 -07:00
|
|
|
cmakeFlags = [
|
|
|
|
"-DUSE_PYTHON=OFF"
|
|
|
|
];
|
2013-03-27 14:25:33 -07:00
|
|
|
|
2013-03-27 15:29:17 -07:00
|
|
|
buildPhase = ''
|
|
|
|
make ILMBASE_HOME=${ilmbase} OPENEXR_HOME=${openexr} USE_PYTHON=0 \
|
|
|
|
INSTALLDIR=$out dist_dir=
|
|
|
|
'';
|
2013-03-27 14:25:33 -07:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = http://www.openimageio.org;
|
2013-03-27 16:46:23 -07:00
|
|
|
description = "A library and tools for reading and writing images";
|
2013-03-27 14:25:33 -07:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = [ maintainers.goibhniu ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
2013-06-22 15:11:42 -07:00
|
|
|
}
|