2019-06-27 04:04:01 +02:00
|
|
|
{ stdenv, cmake, fetchurl, gnumake, makeWrapper, pkgconfig, fetchpatch
|
2016-05-07 16:40:04 +02:00
|
|
|
, autopanosiftc, boost, cairo, enblend-enfuse, exiv2, fftw, flann, gettext
|
|
|
|
, glew, ilmbase, lcms2, lensfun, libjpeg, libpng, libtiff, libX11, libXi
|
2019-11-10 17:44:34 +01:00
|
|
|
, 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 {
|
2019-04-22 21:49:40 +02:00
|
|
|
name = "hugin-2019.0.0";
|
2009-04-05 23:41:38 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2011-05-07 00:33:50 +02:00
|
|
|
url = "mirror://sourceforge/hugin/${name}.tar.bz2";
|
2019-04-22 21:49:40 +02:00
|
|
|
sha256 = "1l925qslp98gg7yzmgps10h6dq0nb60wbfk345anlxsv0g2ifizr";
|
2009-04-05 23:41:38 +02:00
|
|
|
};
|
|
|
|
|
2019-06-27 04:04:01 +02:00
|
|
|
patches = [
|
|
|
|
# Fixes build with exiv2 0.27.1
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://git.archlinux.org/svntogit/community.git/plain/trunk/hugin-exiv2-0.27.1.patch?h=packages/hugin";
|
|
|
|
sha256 = "1yxvlpvrhyrfd2w6kwx1w3mncsvlzdhp0w7xchy8q6kc2kd5nf7r";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2016-05-07 16:40:04 +02:00
|
|
|
buildInputs = [
|
|
|
|
boost cairo exiv2 fftw flann gettext glew ilmbase lcms2 lensfun libjpeg
|
2019-11-10 17:44:34 +01:00
|
|
|
libpng libtiff libX11 libXi libXmu libGLU libGL openexr panotools sqlite vigra
|
2016-05-07 16:40:04 +02:00
|
|
|
wxGTK zlib
|
|
|
|
];
|
2009-04-05 23:41:38 +02:00
|
|
|
|
2016-05-07 16:40:04 +02:00
|
|
|
nativeBuildInputs = [ cmake makeWrapper pkgconfig ];
|
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
|
|
|
|
2014-08-12 21:17:53 +02:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
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
|
|
|
|
2016-05-07 16:40:04 +02:00
|
|
|
meta = with stdenv.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
|
|
|
};
|
|
|
|
}
|