2016-05-07 15:40:04 +01:00
|
|
|
{ stdenv, cmake, fetchurl, gnumake, makeWrapper, pkgconfig
|
|
|
|
, autopanosiftc, boost, cairo, enblend-enfuse, exiv2, fftw, flann, gettext
|
|
|
|
, glew, ilmbase, lcms2, lensfun, libjpeg, libpng, libtiff, libX11, libXi
|
|
|
|
, libXmu, mesa, openexr, panotools, perlPackages, sqlite, vigra, wxGTK, zlib
|
2014-07-12 12:18:22 +01:00
|
|
|
}:
|
2009-04-05 22:41:38 +01:00
|
|
|
|
2009-12-12 18:58:40 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2016-09-22 02:26:34 +01:00
|
|
|
name = "hugin-2016.2.0";
|
2009-04-05 22:41:38 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2011-05-06 23:33:50 +01:00
|
|
|
url = "mirror://sourceforge/hugin/${name}.tar.bz2";
|
2016-09-22 02:26:34 +01:00
|
|
|
sha256 = "058zd63vx29yrx2pphbbll7kzcxkai22q26lpw13rn4lvp41pasl";
|
2009-04-05 22:41:38 +01:00
|
|
|
};
|
|
|
|
|
2016-05-07 15:40:04 +01:00
|
|
|
buildInputs = [
|
|
|
|
boost cairo exiv2 fftw flann gettext glew ilmbase lcms2 lensfun libjpeg
|
|
|
|
libpng libtiff libX11 libXi libXmu mesa openexr panotools sqlite vigra
|
|
|
|
wxGTK zlib
|
|
|
|
];
|
2009-04-05 22:41:38 +01:00
|
|
|
|
2016-05-07 15:40:04 +01:00
|
|
|
nativeBuildInputs = [ cmake makeWrapper pkgconfig ];
|
2009-04-05 22:41:38 +01:00
|
|
|
|
2014-07-12 12:18:22 +01:00
|
|
|
# disable installation of the python scripting interface
|
|
|
|
cmakeFlags = [ "-DBUILD_HSI:BOOl=OFF" ];
|
2009-12-10 22:19:52 +00:00
|
|
|
|
2014-08-12 20:17:53 +01:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2016-09-01 17:11:21 +01:00
|
|
|
NIX_CFLAGS_COMPILE = "-I${ilmbase.dev}/include/OpenEXR";
|
2016-05-07 15:40:04 +01:00
|
|
|
|
2009-05-24 11:57:41 +01:00
|
|
|
postInstall = ''
|
2015-06-18 20:46:36 +01:00
|
|
|
for p in $out/bin/*; do
|
|
|
|
wrapProgram "$p" \
|
|
|
|
--suffix PATH : ${autopanosiftc}/bin \
|
|
|
|
--suffix PATH : ${enblend-enfuse}/bin \
|
|
|
|
--suffix PATH : ${gnumake}/bin \
|
|
|
|
--suffix PATH : ${perlPackages.ImageExifTool}/bin
|
|
|
|
done
|
2009-05-24 11:57:41 +01:00
|
|
|
'';
|
2009-04-05 22:41:38 +01:00
|
|
|
|
2016-05-07 15:40:04 +01:00
|
|
|
meta = with stdenv.lib; {
|
2009-04-05 22:41:38 +01:00
|
|
|
homepage = http://hugin.sourceforge.net/;
|
2009-04-06 10:19:51 +01:00
|
|
|
description = "Toolkit for stitching photographs and assembling panoramas, together with an easy to use graphical front end";
|
2016-05-07 15:40:04 +01:00
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
maintainers = with maintainers; [ viric hrdinka ];
|
|
|
|
platforms = platforms.linux;
|
2009-04-05 22:41:38 +01:00
|
|
|
};
|
|
|
|
}
|