2010-01-21 14:39:53 +00:00
|
|
|
{ stdenv, fetchurl }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2015-03-12 20:02:34 +00:00
|
|
|
name = "levmar-2.6";
|
2010-01-21 14:39:53 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://www.ics.forth.gr/~lourakis/levmar/${name}.tgz";
|
2015-03-12 20:02:34 +00:00
|
|
|
sha256 = "1mxsjip9x782z6qa6k5781wjwpvj5aczrn782m9yspa7lhgfzx1v";
|
2010-01-21 14:39:53 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
patchPhase = ''
|
|
|
|
sed -i 's/define HAVE_LAPACK/undef HAVE_LAPACK/' levmar.h
|
|
|
|
sed -i 's/LAPACKLIBS=.*/LAPACKLIBS=/' Makefile
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
2012-01-18 20:16:00 +00:00
|
|
|
mkdir -p $out/include $out/lib
|
2010-01-21 14:39:53 +00:00
|
|
|
cp lm.h $out/include
|
|
|
|
cp liblevmar.a $out/lib
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "ANSI C implementations of Levenberg-Marquardt, usable also from C++";
|
|
|
|
homepage = http://www.ics.forth.gr/~lourakis/levmar/;
|
2014-06-19 04:19:00 +00:00
|
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
2016-08-02 17:50:55 +00:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2010-01-21 14:39:53 +00:00
|
|
|
};
|
|
|
|
}
|