2010-01-21 14:39:53 +00:00
|
|
|
{stdenv, fetchurl, qt, bzip2, lib3ds, levmar, muparser, unzip}:
|
2009-05-13 11:21:29 +01:00
|
|
|
|
2010-01-21 14:39:53 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2010-07-07 16:10:05 +01:00
|
|
|
name = "meshlab-1.2.3a";
|
2009-05-13 11:21:29 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2010-07-07 16:10:05 +01:00
|
|
|
url = mirror://sourceforge/meshlab/MeshLabSrc_AllInc_v123a.tgz;
|
|
|
|
sha256 = "09w42q0x1yjr7l9ng952lic7vkb1arsvqg1fld5s297zwzfmsl9v";
|
2009-05-13 11:21:29 +01:00
|
|
|
};
|
|
|
|
|
2010-07-07 16:10:05 +01:00
|
|
|
# I don't know why I need this; without this, the rpath set at the beginning of the
|
|
|
|
# buildPhase gets removed from the 'meshlab' binary
|
|
|
|
dontPatchELF = true;
|
2009-05-13 11:21:29 +01:00
|
|
|
|
2010-07-07 16:10:05 +01:00
|
|
|
buildPhase = ''
|
|
|
|
export NIX_LDFLAGS="-rpath $out/opt/meshlab $NIX_LDFLAGS"
|
2010-01-21 14:39:53 +00:00
|
|
|
cd meshlab/src
|
2009-05-13 11:21:29 +01:00
|
|
|
pushd external
|
2010-07-07 16:10:05 +01:00
|
|
|
qmake -recursive external.pro
|
|
|
|
make
|
2009-05-13 11:21:29 +01:00
|
|
|
popd
|
|
|
|
qmake -recursive meshlabv12.pro
|
|
|
|
make
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
2012-01-18 20:16:00 +00:00
|
|
|
mkdir -p $out/opt/meshlab $out/bin $out/lib
|
2010-07-07 16:10:05 +01:00
|
|
|
pushd distrib
|
|
|
|
cp -R * $out/opt/meshlab
|
2009-05-13 11:21:29 +01:00
|
|
|
popd
|
|
|
|
ln -s $out/opt/meshlab/meshlab $out/bin/meshlab
|
|
|
|
'';
|
|
|
|
|
2010-07-07 16:10:05 +01:00
|
|
|
buildInputs = [ qt unzip ];
|
2009-05-13 11:21:29 +01:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "System for the processing and editing of unstructured 3D triangular meshes";
|
|
|
|
homepage = http://meshlab.sourceforge.net/;
|
|
|
|
license = "GPLv2+";
|
2010-01-21 09:49:10 +00:00
|
|
|
maintainers = with stdenv.lib.maintainers; [viric];
|
|
|
|
platforms = with stdenv.lib.platforms; linux;
|
2009-05-13 11:21:29 +01:00
|
|
|
};
|
|
|
|
}
|