summary refs log tree commit diff
path: root/pkgs/development/libraries/vigra/default.nix
blob: 04bef5ef41c306ff5c86b6851097ec555cbe9d24 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{ stdenv, fetchurl, cmake, libtiff, libpng, libjpeg, doxygen, python,
  fftw, fftwSinglePrec, hdf5, boost, numpy }:
stdenv.mkDerivation rec {
  name = "vigra-1.9.0";

  src = fetchurl {
    urls = [
      "${meta.homepage}/${name}-src.tar.gz"
      "${meta.homepage}-old-versions/${name}-src.tar.gz"
      ];
    sha256 = "00fg64da6dj9k42d90dz6y7x91xw1xqppcla14im74m4afswrgcg";
  };

  buildInputs = [ cmake fftw fftwSinglePrec libtiff libpng libjpeg python boost
    numpy hdf5 ];

  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" ];

  meta = {
    description = "Novel computer vision C++ library with customizable algorithms and data structures";
    homepage = http://hci.iwr.uni-heidelberg.de/vigra;
    license = stdenv.lib.licenses.mit;
    maintainers = with stdenv.lib.maintainers; [viric];
    platforms = with stdenv.lib.platforms; linux;
  };
}