summary refs log tree commit diff
path: root/pkgs/applications/graphics/meshlab
diff options
context:
space:
mode:
authorLluís Batlle i Rossell <viric@vicerveza.homeunix.net>2009-05-13 10:21:29 +0000
committerLluís Batlle i Rossell <viric@vicerveza.homeunix.net>2009-05-13 10:21:29 +0000
commit6e1e2d5aba433751d0d46a55f90ffbff63871046 (patch)
tree8f339c784678ba81fd256a1059d7c2dfd7ced873 /pkgs/applications/graphics/meshlab
parent6094c8436991972791734c337a8c11a8cc802ade (diff)
downloadnixpkgs-6e1e2d5aba433751d0d46a55f90ffbff63871046.tar
nixpkgs-6e1e2d5aba433751d0d46a55f90ffbff63871046.tar.gz
nixpkgs-6e1e2d5aba433751d0d46a55f90ffbff63871046.tar.bz2
nixpkgs-6e1e2d5aba433751d0d46a55f90ffbff63871046.tar.lz
nixpkgs-6e1e2d5aba433751d0d46a55f90ffbff63871046.tar.xz
nixpkgs-6e1e2d5aba433751d0d46a55f90ffbff63871046.tar.zst
nixpkgs-6e1e2d5aba433751d0d46a55f90ffbff63871046.zip
Adding muparser and meshlab.
svn path=/nixpkgs/trunk/; revision=15585
Diffstat (limited to 'pkgs/applications/graphics/meshlab')
-rw-r--r--pkgs/applications/graphics/meshlab/default.nix38
1 files changed, 38 insertions, 0 deletions
diff --git a/pkgs/applications/graphics/meshlab/default.nix b/pkgs/applications/graphics/meshlab/default.nix
new file mode 100644
index 00000000000..10b48b06325
--- /dev/null
+++ b/pkgs/applications/graphics/meshlab/default.nix
@@ -0,0 +1,38 @@
+{stdenv, fetchurl, qt, bzip2}:
+
+stdenv.mkDerivation {
+  name = "meshlab-1.2.0";
+
+  src = fetchurl {
+    url = mirror://sourceforge/meshlab/MeshLabSrc_v120.tgz;
+    sha256 = "0iidp2pzwq96v8zbm8gc67wi1f41anpkncp17ajkv1rrh653nila";
+  };
+
+
+  setSourceRoot = "sourceRoot=`pwd`/meshlab/src";
+
+  buildPhase = ''
+    pushd external
+    qmake -recursive external.pro
+    make
+    popd
+    qmake -recursive meshlabv12.pro
+    make
+  '';
+
+  installPhase = ''
+    ensureDir $out/opt/meshlab $out/bin
+    pushd meshlab
+    cp -R meshlab plugins shaders* textures images $out/opt/meshlab
+    popd
+    ln -s $out/opt/meshlab/meshlab $out/bin/meshlab
+  '';
+
+  buildInputs = [ qt bzip2 ];
+
+  meta = {
+    description = "System for the processing and editing of unstructured 3D triangular meshes";
+    homepage = http://meshlab.sourceforge.net/;
+    license = "GPLv2+";
+  };
+}