2014-07-12 12:18:22 +01:00
|
|
|
{ stdenv, cmake, fetchurl, gnumake, pkgconfig
|
|
|
|
, boost, gettext, tclap, wxGTK
|
|
|
|
, freeglut, glew, libXi, libXmu, mesa
|
2015-11-14 20:32:51 +00:00
|
|
|
, autopanosiftc, enblend-enfuse, exiv2, ilmbase, lensfun, libpng, libtiff
|
2014-07-12 12:18:22 +01:00
|
|
|
, openexr, panotools, perlPackages
|
|
|
|
}:
|
2009-04-05 22:41:38 +01:00
|
|
|
|
2009-12-12 18:58:40 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2014-07-12 12:18:22 +01:00
|
|
|
name = "hugin-2013.0.0";
|
2009-04-05 22:41:38 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2011-05-06 23:33:50 +01:00
|
|
|
url = "mirror://sourceforge/hugin/${name}.tar.bz2";
|
2014-07-12 12:18:22 +01:00
|
|
|
sha256 = "1mgbvg09xvf0zcm9jfv5lb65nd292l86ffa23yp4pzm6izaiwkj8";
|
2009-04-05 22:41:38 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
NIX_CFLAGS_COMPILE = "-I${ilmbase}/include/OpenEXR";
|
|
|
|
|
2014-07-12 12:18:22 +01:00
|
|
|
buildInputs = [ boost gettext tclap wxGTK
|
|
|
|
freeglut glew libXi libXmu mesa
|
|
|
|
exiv2 ilmbase lensfun libtiff libpng openexr panotools
|
|
|
|
];
|
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
|
|
|
|
2012-12-28 18:20:09 +00:00
|
|
|
nativeBuildInputs = [ cmake pkgconfig ];
|
2012-02-10 10:13:39 +00:00
|
|
|
|
2014-08-12 20:17:53 +01:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2014-07-12 12:18:22 +01:00
|
|
|
# commandline tools needed by the hugin batch processor
|
|
|
|
# you may have to tell hugin (in the preferences) where these binaries reside
|
2015-11-14 20:32:51 +00:00
|
|
|
propagatedUserEnvPackages = [ autopanosiftc enblend-enfuse gnumake
|
2014-07-12 12:18:22 +01:00
|
|
|
perlPackages.ImageExifTool
|
|
|
|
];
|
2012-02-10 10:13:39 +00:00
|
|
|
|
2009-05-24 11:57:41 +01:00
|
|
|
postInstall = ''
|
2012-02-10 10:13:39 +00:00
|
|
|
mkdir -p "$out/nix-support"
|
|
|
|
echo $propagatedUserEnvPackages > $out/nix-support/propagated-user-env-packages
|
2009-05-24 11:57:41 +01:00
|
|
|
'';
|
2009-04-05 22:41:38 +01:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
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";
|
2014-06-19 05:19:00 +01:00
|
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
2009-11-29 19:22:22 +00:00
|
|
|
maintainers = with stdenv.lib.maintainers; [viric];
|
|
|
|
platforms = with stdenv.lib.platforms; linux;
|
2009-04-05 22:41:38 +01:00
|
|
|
};
|
|
|
|
}
|