2009-05-13 12:21:29 +02:00
|
|
|
{stdenv, fetchurl, qt, bzip2}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2010-01-21 10:49:10 +01:00
|
|
|
name = "meshlab-1.2.2";
|
2009-05-13 12:21:29 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2010-01-21 10:49:10 +01:00
|
|
|
url = mirror://sourceforge/meshlab/MeshLabSrc_v122.tar.gz;
|
|
|
|
sha256 = "166a8mx72wf3r84pnpr0ssqkd2xw6y5brviywlj8rjk6w9cy8fdc";
|
2009-05-13 12:21:29 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
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+";
|
2010-01-21 10:49:10 +01:00
|
|
|
maintainers = with stdenv.lib.maintainers; [viric];
|
|
|
|
platforms = with stdenv.lib.platforms; linux;
|
2009-05-13 12:21:29 +02:00
|
|
|
};
|
|
|
|
}
|