Adding autopano-sift-C, a C implementation of autopano-sift, made by the hugin people.

svn path=/nixpkgs/trunk/; revision=14916
This commit is contained in:
Lluís Batlle i Rossell 2009-04-07 19:15:53 +00:00
parent 7ae8544b4c
commit 2c3aaf09d1
2 changed files with 43 additions and 0 deletions

View File

@ -0,0 +1,39 @@
{stdenv, fetchurl, cmake, libpng, libtiff, libjpeg, panotools, libxml2 }:
stdenv.mkDerivation {
name = "autopano-sift-C-2.5.0";
src = fetchurl {
url = mirror://sourceforge/hugin/autopano-sift-C-2.5.0.tar.gz;
sha256 = "0pvkapjg7qdkjg151wjc7islly9ag8fg6bj0g5nbllv981ixjql3";
};
buildInputs = [ cmake libpng libtiff libjpeg panotools libxml2 ];
# I added these flags to get all the rpaths right, which I guess they are
# taken from the qt4 sources. Not very nice.
cmakeFlags = "-DCMAKE_SHARED_LINKER_FLAGS=\"-Wl,-rpath,$out/lib\"" +
" -DCMAKE_EXE_LINKER_FLAGS=\"-Wl,-rpath,$out/lib" +
" -lpng12 -lpano13 -ljpeg -ltiff -lz -lxml2 \"" +
" -DCMAKE_SKIP_BUILD_RPATH=ON" +
" -DCMAKE_BUILD_TYPE=Release" +
" -DCMAKE_INSTALL_PREFIX=$out";
dontUseCmakeConfigure = true;
# I rewrote the configure phase to get the $out references evaluated in
# cmakeFlags
configurePhase = ''
set -x
mkdir -p build;
cd build
eval -- "cmake .. $cmakeFlags"
set +x
'';
meta = {
homepage = http://hugin.sourceforge.net/;
description = "Implementation in C of the autopano-sift algorithm for automatically stitching panoramas";
license = "GPLv2";
};
}

View File

@ -7728,6 +7728,10 @@ let
gtkGUI = false;
};
autopanosiftc = import ../applications/graphics/autopanosiftc {
inherit fetchurl stdenv cmake libpng libtiff libjpeg panotools libxml2;
};
batik = import ../applications/graphics/batik {
inherit fetchurl stdenv unzip;
};