2012-02-17 14:03:41 +01:00
|
|
|
{ stdenv, fetchurl, cmake, libtiff, libpng, libjpeg, doxygen, python,
|
|
|
|
fftw, fftwSinglePrec, hdf5, boost, numpy }:
|
|
|
|
stdenv.mkDerivation rec {
|
2013-10-10 13:42:50 +02:00
|
|
|
name = "vigra-1.9.0";
|
2010-07-29 16:38:39 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2014-03-08 13:30:05 +01:00
|
|
|
urls = [
|
|
|
|
"${meta.homepage}/${name}-src.tar.gz"
|
|
|
|
"${meta.homepage}-old-versions/${name}-src.tar.gz"
|
|
|
|
];
|
2013-10-10 13:42:50 +02:00
|
|
|
sha256 = "00fg64da6dj9k42d90dz6y7x91xw1xqppcla14im74m4afswrgcg";
|
2010-07-29 16:38:39 +02:00
|
|
|
};
|
|
|
|
|
2012-02-17 14:03:41 +01:00
|
|
|
buildInputs = [ cmake fftw fftwSinglePrec libtiff libpng libjpeg python boost
|
|
|
|
numpy hdf5 ];
|
2010-07-29 16:38:39 +02:00
|
|
|
|
2012-02-17 19:50:29 +01:00
|
|
|
preConfigure = "cmakeFlags+=\" -DVIGRANUMPY_INSTALL_DIR=$out/lib/${python.libPrefix}/site-packages\"";
|
|
|
|
cmakeFlags = stdenv.lib.optionals (stdenv.system == "x86_64-linux")
|
|
|
|
[ "-DCMAKE_CXX_FLAGS=-fPIC" "-DCMAKE_C_FLAGS=-fPIC" ];
|
2010-07-29 16:38:39 +02:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Novel computer vision C++ library with customizable algorithms and data structures";
|
2014-03-08 13:30:05 +01:00
|
|
|
homepage = http://hci.iwr.uni-heidelberg.de/vigra;
|
2010-07-29 16:38:39 +02:00
|
|
|
license = "MIT";
|
|
|
|
maintainers = with stdenv.lib.maintainers; [viric];
|
|
|
|
platforms = with stdenv.lib.platforms; linux;
|
|
|
|
};
|
|
|
|
}
|