diff options
author | Lluís Batlle i Rossell <viric@vicerveza.homeunix.net> | 2009-04-08 20:05:59 +0000 |
---|---|---|
committer | Lluís Batlle i Rossell <viric@vicerveza.homeunix.net> | 2009-04-08 20:05:59 +0000 |
commit | 813a3b6c6d761f4d472f45515ada421972f4f137 (patch) | |
tree | be598b6cd49e30c311681c1eebc67827c56f8e48 /pkgs/applications/graphics/freepv | |
parent | 47217f9ada79f4d8173a78becf47b50c187e30ec (diff) |
Adding freepv, without its mozilla plug-in.
svn path=/nixpkgs/trunk/; revision=14954
Diffstat (limited to 'pkgs/applications/graphics/freepv')
-rw-r--r-- | pkgs/applications/graphics/freepv/default.nix | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/pkgs/applications/graphics/freepv/default.nix b/pkgs/applications/graphics/freepv/default.nix new file mode 100644 index 0000000000000..1e414faf2f0cd --- /dev/null +++ b/pkgs/applications/graphics/freepv/default.nix @@ -0,0 +1,45 @@ +{ stdenv, fetchurl, libjpeg, mesa, freeglut, zlib, cmake, libX11, libxml2, libpng, + libXxf86vm }: + +stdenv.mkDerivation { + name = "freepv-0.3.0_beta1"; + + src = fetchurl { + url = mirror://sourceforge/freepv/freepv-0.3.0_beta1.tar.gz; + sha256 = "084qqa361np73anvqrv78ngw8hjxglmdm3akkpszbwnzniw89qla"; + }; + + buildInputs = [ libjpeg mesa freeglut zlib cmake libX11 libxml2 libpng + libXxf86vm ]; + + patchPhase = '' + sed -i -e '/GECKO/d' CMakeLists.txt + sed -i -e '/mozilla/d' src/CMakeLists.txt + ''; + + # 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_EXE_LINKER_FLAGS=\"" + + " -lpng12 -lXxf86vm -ljpeg -lz -lglut -lGLU -lxml2 -lX11\"" + + " -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 = { + description = "Open source panorama viewer using GL"; + homepage = http://freepv.sourceforge.net/; + license = "LGPL"; + }; +} |