2021-11-07 21:29:51 +01:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, cmake
|
|
|
|
, fetchurl
|
|
|
|
, gnumake
|
|
|
|
, makeWrapper
|
|
|
|
, pkg-config
|
|
|
|
, autopanosiftc
|
|
|
|
, boost
|
|
|
|
, cairo
|
|
|
|
, enblend-enfuse
|
|
|
|
, exiv2
|
|
|
|
, fftw
|
|
|
|
, flann
|
|
|
|
, gettext
|
|
|
|
, glew
|
|
|
|
, ilmbase
|
|
|
|
, lcms2
|
|
|
|
, lensfun
|
|
|
|
, libjpeg
|
|
|
|
, libpng
|
|
|
|
, libtiff
|
|
|
|
, libX11
|
|
|
|
, libXi
|
|
|
|
, libXmu
|
|
|
|
, libGLU
|
|
|
|
, libGL
|
|
|
|
, openexr
|
|
|
|
, panotools
|
|
|
|
, perlPackages
|
|
|
|
, sqlite
|
|
|
|
, vigra
|
|
|
|
, wxGTK
|
|
|
|
, zlib
|
2014-07-12 13:18:22 +02:00
|
|
|
}:
|
2009-04-05 23:41:38 +02:00
|
|
|
|
2009-12-12 19:58:40 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2021-11-07 21:29:51 +01:00
|
|
|
pname = "hugin";
|
2022-03-05 17:01:39 +01:00
|
|
|
version = "2021.0.0";
|
2009-04-05 23:41:38 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-11-07 21:29:51 +01:00
|
|
|
url = "mirror://sourceforge/hugin/hugin-${version}.tar.bz2";
|
2022-03-05 17:01:39 +01:00
|
|
|
sha256 = "sha256-BHrqin+keESzTvJ8GdO2l+hJOdyx/bvrLCBGIbZu6tk=";
|
2009-04-05 23:41:38 +02:00
|
|
|
};
|
|
|
|
|
2016-05-07 16:40:04 +02:00
|
|
|
buildInputs = [
|
2021-11-07 21:29:51 +01:00
|
|
|
boost
|
|
|
|
cairo
|
|
|
|
exiv2
|
|
|
|
fftw
|
|
|
|
flann
|
|
|
|
gettext
|
|
|
|
glew
|
|
|
|
ilmbase
|
|
|
|
lcms2
|
|
|
|
lensfun
|
|
|
|
libjpeg
|
|
|
|
libpng
|
|
|
|
libtiff
|
|
|
|
libX11
|
|
|
|
libXi
|
|
|
|
libXmu
|
|
|
|
libGLU
|
|
|
|
libGL
|
|
|
|
openexr
|
|
|
|
panotools
|
|
|
|
sqlite
|
|
|
|
vigra
|
|
|
|
wxGTK
|
|
|
|
zlib
|
2016-05-07 16:40:04 +02:00
|
|
|
];
|
2009-04-05 23:41:38 +02:00
|
|
|
|
2021-01-19 07:50:56 +01:00
|
|
|
nativeBuildInputs = [ cmake makeWrapper pkg-config ];
|
2009-04-05 23:41:38 +02:00
|
|
|
|
2014-07-12 13:18:22 +02:00
|
|
|
# disable installation of the python scripting interface
|
|
|
|
cmakeFlags = [ "-DBUILD_HSI:BOOl=OFF" ];
|
2009-12-10 23:19:52 +01:00
|
|
|
|
2016-09-01 18:11:21 +02:00
|
|
|
NIX_CFLAGS_COMPILE = "-I${ilmbase.dev}/include/OpenEXR";
|
2016-05-07 16:40:04 +02:00
|
|
|
|
2009-05-24 12:57:41 +02:00
|
|
|
postInstall = ''
|
2015-06-18 21:46:36 +02: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 12:57:41 +02:00
|
|
|
'';
|
2009-04-05 23:41:38 +02:00
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "http://hugin.sourceforge.net/";
|
2009-04-06 11:19:51 +02:00
|
|
|
description = "Toolkit for stitching photographs and assembling panoramas, together with an easy to use graphical front end";
|
2016-05-07 16:40:04 +02:00
|
|
|
license = licenses.gpl2Plus;
|
2018-07-22 21:50:19 +02:00
|
|
|
maintainers = with maintainers; [ hrdinka ];
|
2016-05-07 16:40:04 +02:00
|
|
|
platforms = platforms.linux;
|
2009-04-05 23:41:38 +02:00
|
|
|
};
|
|
|
|
}
|