2015-06-18 22:46:36 +03:00
|
|
|
{ stdenv, cmake, fetchurl, gnumake, pkgconfig, makeWrapper
|
2014-07-12 15:18:22 +04:00
|
|
|
, boost, gettext, tclap, wxGTK
|
2016-03-26 18:14:38 +03:00
|
|
|
, freeglut, glew, libX11, libXi, libXmu, mesa, cairo
|
2015-06-18 22:46:36 +03:00
|
|
|
, autopanosiftc, enblend-enfuse, exiv2, fftw, ilmbase, lensfun, libpng, libtiff
|
|
|
|
, openexr, panotools, perlPackages, sqlite, vigra
|
2014-07-12 15:18:22 +04:00
|
|
|
}:
|
2009-04-06 01:41:38 +04:00
|
|
|
|
2009-12-12 21:58:40 +03:00
|
|
|
stdenv.mkDerivation rec {
|
2015-06-18 22:46:36 +03:00
|
|
|
name = "hugin-2015.0.0";
|
2009-04-06 01:41:38 +04:00
|
|
|
|
|
|
|
src = fetchurl {
|
2011-05-07 02:33:50 +04:00
|
|
|
url = "mirror://sourceforge/hugin/${name}.tar.bz2";
|
2015-06-18 22:46:36 +03:00
|
|
|
sha256 = "1gfblax9rxay8xskz5r8bips4nfh70vkyrb8ksgl6pg91c8krn9c";
|
2009-04-06 01:41:38 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
NIX_CFLAGS_COMPILE = "-I${ilmbase}/include/OpenEXR";
|
|
|
|
|
2014-07-12 15:18:22 +04:00
|
|
|
buildInputs = [ boost gettext tclap wxGTK
|
2016-03-26 18:14:38 +03:00
|
|
|
freeglut glew libX11 libXi libXmu mesa cairo
|
2015-06-18 22:46:36 +03:00
|
|
|
exiv2 fftw ilmbase lensfun libtiff libpng openexr panotools
|
|
|
|
sqlite vigra
|
|
|
|
perlPackages.ImageExifTool makeWrapper
|
2014-07-12 15:18:22 +04:00
|
|
|
];
|
2009-04-06 01:41:38 +04:00
|
|
|
|
2014-07-12 15:18:22 +04:00
|
|
|
# disable installation of the python scripting interface
|
|
|
|
cmakeFlags = [ "-DBUILD_HSI:BOOl=OFF" ];
|
2009-12-11 01:19:52 +03:00
|
|
|
|
2012-12-28 22:20:09 +04:00
|
|
|
nativeBuildInputs = [ cmake pkgconfig ];
|
2012-02-10 14:13:39 +04:00
|
|
|
|
2014-08-12 23:17:53 +04:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2009-05-24 14:57:41 +04:00
|
|
|
postInstall = ''
|
2015-06-18 22:46:36 +03: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 14:57:41 +04:00
|
|
|
'';
|
2009-04-06 01:41:38 +04:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://hugin.sourceforge.net/;
|
2009-04-06 13:19:51 +04:00
|
|
|
description = "Toolkit for stitching photographs and assembling panoramas, together with an easy to use graphical front end";
|
2014-06-19 08:19:00 +04:00
|
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
2015-06-18 22:46:36 +03:00
|
|
|
maintainers = with stdenv.lib.maintainers; [ viric hrdinka ];
|
2009-11-29 22:22:22 +03:00
|
|
|
platforms = with stdenv.lib.platforms; linux;
|
2009-04-06 01:41:38 +04:00
|
|
|
};
|
|
|
|
}
|