2012-02-17 14:03:41 +01:00
|
|
|
{ stdenv, fetchurl, cmake, libtiff, libpng, libjpeg, doxygen, python,
|
|
|
|
fftw, fftwSinglePrec, hdf5, boost, numpy }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "vigra-1.8.0";
|
2010-07-29 16:38:39 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2012-02-17 14:03:41 +01:00
|
|
|
url = "${meta.homepage}/${name}-src.tar.gz";
|
|
|
|
sha256 = "0542qy1bqaq73l7i8aqdhwdbhd6m1wldsn1w2sfyf8yf4398ffpw";
|
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
|
|
|
|
|
|
|
cmakeFlags = if (stdenv.system == "x86_64-linux") then
|
|
|
|
"-DCMAKE_CXX_FLAGS=-fPIC -DCMAKE_C_FLAGS=-fPIC"
|
|
|
|
else
|
|
|
|
"";
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Novel computer vision C++ library with customizable algorithms and data structures";
|
|
|
|
homepage = http://hci.iwr.uni-heidelberg.de/vigra/;
|
|
|
|
license = "MIT";
|
|
|
|
maintainers = with stdenv.lib.maintainers; [viric];
|
|
|
|
platforms = with stdenv.lib.platforms; linux;
|
|
|
|
};
|
|
|
|
}
|