2021-12-06 16:07:01 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, cmake
|
|
|
|
, fetchurl
|
2023-10-09 19:29:22 +00:00
|
|
|
, fetchpatch
|
2021-12-06 16:07:01 +00:00
|
|
|
, gnumake
|
|
|
|
, makeWrapper
|
|
|
|
, pkg-config
|
|
|
|
, autopanosiftc
|
|
|
|
, boost
|
|
|
|
, cairo
|
|
|
|
, enblend-enfuse
|
|
|
|
, exiv2
|
|
|
|
, fftw
|
|
|
|
, flann
|
|
|
|
, gettext
|
2022-12-17 10:02:37 +00:00
|
|
|
, glew-egl
|
2021-12-06 16:07:01 +00:00
|
|
|
, ilmbase
|
|
|
|
, lcms2
|
|
|
|
, lensfun
|
|
|
|
, libjpeg
|
|
|
|
, libpng
|
|
|
|
, libtiff
|
|
|
|
, libX11
|
|
|
|
, libXi
|
|
|
|
, libXmu
|
|
|
|
, libGLU
|
|
|
|
, libGL
|
|
|
|
, openexr
|
|
|
|
, panotools
|
|
|
|
, perlPackages
|
|
|
|
, sqlite
|
|
|
|
, vigra
|
2023-03-27 19:17:25 +00:00
|
|
|
, wrapGAppsHook
|
2021-12-06 16:07:01 +00:00
|
|
|
, wxGTK
|
|
|
|
, zlib
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-12-06 16:07:01 +00:00
|
|
|
pname = "hugin";
|
2023-01-11 07:51:40 +00:00
|
|
|
version = "2022.0.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-12-06 16:07:01 +00:00
|
|
|
url = "mirror://sourceforge/hugin/hugin-${version}.tar.bz2";
|
2023-10-09 19:29:22 +00:00
|
|
|
hash = "sha256-l8hWKgupp0PguVWkPf3gSLHGDNnl8u4rad4agWRuBac=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
name = "hugin-2022.0.0-exiv2-0.28.patch";
|
|
|
|
url = "https://gitweb.gentoo.org/repo/gentoo.git/plain/media-gfx/hugin/files/hugin-2022.0.0-exiv2-0.28.patch?id=d18335caa756f5e5c1478d5fe3ba17f011a78c80";
|
|
|
|
hash = "sha256-Y+79bFb926GW5oLOL0e5y7kLhqU/vZcry+kLL4H2fUE=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [
|
2021-12-06 16:07:01 +00:00
|
|
|
boost
|
|
|
|
cairo
|
|
|
|
exiv2
|
|
|
|
fftw
|
|
|
|
flann
|
|
|
|
gettext
|
2022-12-17 10:02:37 +00:00
|
|
|
glew-egl
|
2021-12-06 16:07:01 +00:00
|
|
|
ilmbase
|
|
|
|
lcms2
|
|
|
|
lensfun
|
|
|
|
libjpeg
|
|
|
|
libpng
|
|
|
|
libtiff
|
|
|
|
libX11
|
|
|
|
libXi
|
|
|
|
libXmu
|
|
|
|
libGLU
|
|
|
|
libGL
|
|
|
|
openexr
|
|
|
|
panotools
|
|
|
|
sqlite
|
|
|
|
vigra
|
|
|
|
wxGTK
|
|
|
|
zlib
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2023-03-27 19:17:25 +00:00
|
|
|
nativeBuildInputs = [ cmake makeWrapper pkg-config wrapGAppsHook ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
# disable installation of the python scripting interface
|
|
|
|
cmakeFlags = [ "-DBUILD_HSI:BOOl=OFF" ];
|
|
|
|
|
2023-03-04 12:14:45 +00:00
|
|
|
env.NIX_CFLAGS_COMPILE = "-I${ilmbase.dev}/include/OpenEXR";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
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
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "http://hugin.sourceforge.net/";
|
|
|
|
description = "Toolkit for stitching photographs and assembling panoramas, together with an easy to use graphical front end";
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
maintainers = with maintainers; [ hrdinka ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|