2009-01-12 21:12:07 +00:00
|
|
|
{ stdenv, fetchurl, unzip, cmake, libtiff, expat, zlib, libpng, libjpeg }:
|
|
|
|
stdenv.mkDerivation {
|
2013-12-30 14:32:19 +00:00
|
|
|
name = "vxl-1.17.0";
|
2009-01-12 21:12:07 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2013-12-30 14:32:19 +00:00
|
|
|
url = mirror://sourceforge/vxl/vxl-1.17.0.zip;
|
|
|
|
sha256 = "1qg7i8h201pa8jljg7vph4rlxk6n5cj9f9gd1hkkmbw6fh44lsxh";
|
2009-01-12 21:12:07 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ cmake unzip libtiff expat zlib libpng libjpeg ];
|
|
|
|
|
2012-12-21 09:53:10 +00:00
|
|
|
# BUILD_OUL wants old linux headers for videodev.h, not available
|
|
|
|
# in stdenv linux headers
|
2013-12-30 14:32:19 +00:00
|
|
|
# BUILD_BRL fails to find open()
|
|
|
|
cmakeFlags = "-DBUILD_TESTING=OFF -DBUILD_OUL=OFF -DBUILD_BRL=OFF -DBUILD_CONTRIB=OFF "
|
2012-12-28 18:54:15 +00:00
|
|
|
+ (if stdenv.system == "x86_64-linux" then
|
2009-03-13 16:46:10 +00:00
|
|
|
"-DCMAKE_CXX_FLAGS=-fPIC -DCMAKE_C_FLAGS=-fPIC"
|
|
|
|
else
|
2012-03-07 10:16:53 +00:00
|
|
|
"");
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
2009-03-13 16:46:10 +00:00
|
|
|
|
2016-03-22 10:30:37 +00:00
|
|
|
patches = [ ./gcc5.patch ];
|
|
|
|
|
2009-01-12 21:12:07 +00:00
|
|
|
meta = {
|
|
|
|
description = "C++ Libraries for Computer Vision Research and Implementation";
|
|
|
|
homepage = http://vxl.sourceforge.net/;
|
|
|
|
license = "VXL License";
|
2009-10-01 21:18:17 +01:00
|
|
|
maintainers = with stdenv.lib.maintainers; [viric];
|
|
|
|
platforms = with stdenv.lib.platforms; linux;
|
2009-01-12 21:12:07 +00:00
|
|
|
};
|
|
|
|
}
|