2012-02-17 13:03:41 +00:00
|
|
|
{ stdenv, fetchurl, cmake, libtiff, libpng, libjpeg, doxygen, python,
|
|
|
|
fftw, fftwSinglePrec, hdf5, boost, numpy }:
|
|
|
|
stdenv.mkDerivation rec {
|
2013-10-10 12:42:50 +01:00
|
|
|
name = "vigra-1.9.0";
|
2010-07-29 15:38:39 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2014-03-08 12:30:05 +00:00
|
|
|
urls = [
|
|
|
|
"${meta.homepage}/${name}-src.tar.gz"
|
|
|
|
"${meta.homepage}-old-versions/${name}-src.tar.gz"
|
|
|
|
];
|
2013-10-10 12:42:50 +01:00
|
|
|
sha256 = "00fg64da6dj9k42d90dz6y7x91xw1xqppcla14im74m4afswrgcg";
|
2010-07-29 15:38:39 +01:00
|
|
|
};
|
|
|
|
|
2012-02-17 13:03:41 +00:00
|
|
|
buildInputs = [ cmake fftw fftwSinglePrec libtiff libpng libjpeg python boost
|
|
|
|
numpy hdf5 ];
|
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\"";
|
|
|
|
cmakeFlags = stdenv.lib.optionals (stdenv.system == "x86_64-linux")
|
|
|
|
[ "-DCMAKE_CXX_FLAGS=-fPIC" "-DCMAKE_C_FLAGS=-fPIC" ];
|
2010-07-29 15:38:39 +01:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
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;
|
2014-06-19 05:19:00 +01:00
|
|
|
license = stdenv.lib.licenses.mit;
|
2010-07-29 15:38:39 +01:00
|
|
|
maintainers = with stdenv.lib.maintainers; [viric];
|
|
|
|
platforms = with stdenv.lib.platforms; linux;
|
|
|
|
};
|
|
|
|
}
|