diff options
author | Lluís Batlle i Rossell <viric@vicerveza.homeunix.net> | 2009-04-07 19:15:53 +0000 |
---|---|---|
committer | Lluís Batlle i Rossell <viric@vicerveza.homeunix.net> | 2009-04-07 19:15:53 +0000 |
commit | 2c3aaf09d184ae61dc753c219e786fe6c30307c1 (patch) | |
tree | bf5f277108179205bc1515438ce494ea5a805e38 /pkgs/applications/graphics/autopanosiftc | |
parent | 7ae8544b4c6e96ac088c0481e16c43e66268f3d2 (diff) | |
download | nixpkgs-2c3aaf09d184ae61dc753c219e786fe6c30307c1.tar nixpkgs-2c3aaf09d184ae61dc753c219e786fe6c30307c1.tar.gz nixpkgs-2c3aaf09d184ae61dc753c219e786fe6c30307c1.tar.bz2 nixpkgs-2c3aaf09d184ae61dc753c219e786fe6c30307c1.tar.lz nixpkgs-2c3aaf09d184ae61dc753c219e786fe6c30307c1.tar.xz nixpkgs-2c3aaf09d184ae61dc753c219e786fe6c30307c1.tar.zst nixpkgs-2c3aaf09d184ae61dc753c219e786fe6c30307c1.zip |
Adding autopano-sift-C, a C implementation of autopano-sift, made by the hugin people.
svn path=/nixpkgs/trunk/; revision=14916
Diffstat (limited to 'pkgs/applications/graphics/autopanosiftc')
-rw-r--r-- | pkgs/applications/graphics/autopanosiftc/default.nix | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/pkgs/applications/graphics/autopanosiftc/default.nix b/pkgs/applications/graphics/autopanosiftc/default.nix new file mode 100644 index 00000000000..424d8dcaf97 --- /dev/null +++ b/pkgs/applications/graphics/autopanosiftc/default.nix @@ -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"; + }; +} |