2021-11-07 20:29:51 +00: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 12:18:22 +01:00
|
|
|
}:
|
2009-04-05 22:41:38 +01:00
|
|
|
|
2009-12-12 18:58:40 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2021-11-07 20:29:51 +00:00
|
|
|
pname = "hugin";
|
2022-03-05 16:01:39 +00:00
|
|
|
version = "2021.0.0";
|
2009-04-05 22:41:38 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-11-07 20:29:51 +00:00
|
|
|
url = "mirror://sourceforge/hugin/hugin-${version}.tar.bz2";
|
2022-03-05 16:01:39 +00:00
|
|
|
sha256 = "sha256-BHrqin+keESzTvJ8GdO2l+hJOdyx/bvrLCBGIbZu6tk=";
|
2009-04-05 22:41:38 +01:00
|
|
|
};
|
|
|
|
|
2016-05-07 15:40:04 +01:00
|
|
|
buildInputs = [
|
2021-11-07 20:29:51 +00: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 15:40:04 +01:00
|
|
|
];
|
2009-04-05 22:41:38 +01:00
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ cmake makeWrapper pkg-config ];
|
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
|
|
|
|
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
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +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;
|
2018-07-22 20:50:19 +01:00
|
|
|
maintainers = with maintainers; [ hrdinka ];
|
2016-05-07 15:40:04 +01:00
|
|
|
platforms = platforms.linux;
|
2009-04-05 22:41:38 +01:00
|
|
|
};
|
|
|
|
}
|