2015-06-25 21:56:09 +01:00
|
|
|
{ stdenv, fetchurl, boost, cmake, doxygen, fftw, fftwSinglePrec, hdf5, ilmbase
|
|
|
|
, libjpeg, libpng, libtiff, numpy, openexr, python }:
|
|
|
|
|
2012-02-17 13:03:41 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2015-06-25 21:56:09 +01:00
|
|
|
name = "vigra-${version}";
|
|
|
|
version = "1.10.0";
|
2010-07-29 15:38:39 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2015-06-25 21:56:09 +01:00
|
|
|
url = "https://github.com/ukoethe/vigra/archive/Version-${stdenv.lib.replaceChars ["."] ["-"] version}.tar.gz";
|
|
|
|
sha256 = "1y3yii8wnyz68n0mzcmjylwd6jchqa3l913v39l2zsd2rv5nyvs0";
|
2010-07-29 15:38:39 +01:00
|
|
|
};
|
|
|
|
|
2015-06-25 21:56:09 +01:00
|
|
|
NIX_CFLAGS_COMPILE = "-I${ilmbase}/include/OpenEXR";
|
|
|
|
|
|
|
|
buildInputs = [ boost cmake fftw fftwSinglePrec hdf5 ilmbase libjpeg libpng
|
|
|
|
libtiff numpy openexr python ];
|
2010-07-29 15:38:39 +01:00
|
|
|
|
2012-02-17 18:50:29 +00:00
|
|
|
preConfigure = "cmakeFlags+=\" -DVIGRANUMPY_INSTALL_DIR=$out/lib/${python.libPrefix}/site-packages\"";
|
2010-07-29 15:38:39 +01:00
|
|
|
|
2015-06-25 21:56:09 +01:00
|
|
|
cmakeFlags = [ "-DWITH_OPENEXR=1" ]
|
|
|
|
++ stdenv.lib.optionals (stdenv.system == "x86_64-linux")
|
|
|
|
[ "-DCMAKE_CXX_FLAGS=-fPIC" "-DCMAKE_C_FLAGS=-fPIC" ];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2010-07-29 15:38:39 +01:00
|
|
|
description = "Novel computer vision C++ library with customizable algorithms and data structures";
|
2014-03-08 12:30:05 +00:00
|
|
|
homepage = http://hci.iwr.uni-heidelberg.de/vigra;
|
2015-06-25 21:56:09 +01:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.viric ];
|
|
|
|
platforms = platforms.linux;
|
2010-07-29 15:38:39 +01:00
|
|
|
};
|
|
|
|
}
|