2016-04-17 01:29:52 +02:00
|
|
|
{ stdenv, fetchurl, qt4, bzip2, lib3ds, levmar, muparser, unzip, vcg }:
|
2009-05-13 12:21:29 +02:00
|
|
|
|
2010-01-21 15:39:53 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2015-08-19 23:21:00 +02:00
|
|
|
name = "meshlab-1.3.3";
|
2009-05-13 12:21:29 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2015-08-19 23:21:00 +02:00
|
|
|
url = "mirror://sourceforge/meshlab/meshlab/MeshLab%20v1.3.3/MeshLabSrc_AllInc_v133.tgz";
|
|
|
|
sha256 = "03wqaibfbfag2w1zi1a5z6h546r9d7pg2sjl5pwg24w7yp8rr0n9";
|
2009-05-13 12:21:29 +02:00
|
|
|
};
|
|
|
|
|
2010-07-07 17:10:05 +02: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 12:21:29 +02:00
|
|
|
|
2015-08-19 23:21:00 +02:00
|
|
|
patches = [ ./include-unistd.diff ];
|
2014-04-20 11:30:06 +02:00
|
|
|
|
2016-02-26 18:38:15 +01:00
|
|
|
hardeningDisable = [ "format" ];
|
2016-02-12 13:50:38 +01:00
|
|
|
|
2010-07-07 17:10:05 +02:00
|
|
|
buildPhase = ''
|
2012-08-30 08:18:24 +02:00
|
|
|
mkdir -p "$out/include"
|
2010-07-07 17:10:05 +02:00
|
|
|
export NIX_LDFLAGS="-rpath $out/opt/meshlab $NIX_LDFLAGS"
|
2010-01-21 15:39:53 +01:00
|
|
|
cd meshlab/src
|
2009-05-13 12:21:29 +02:00
|
|
|
pushd external
|
2010-07-07 17:10:05 +02:00
|
|
|
qmake -recursive external.pro
|
|
|
|
make
|
2009-05-13 12:21:29 +02:00
|
|
|
popd
|
2012-08-30 08:18:24 +02:00
|
|
|
qmake -recursive meshlab_full.pro
|
2009-05-13 12:21:29 +02:00
|
|
|
make
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
2012-01-18 21:16:00 +01:00
|
|
|
mkdir -p $out/opt/meshlab $out/bin $out/lib
|
2010-07-07 17:10:05 +02:00
|
|
|
pushd distrib
|
|
|
|
cp -R * $out/opt/meshlab
|
2009-05-13 12:21:29 +02:00
|
|
|
popd
|
|
|
|
ln -s $out/opt/meshlab/meshlab $out/bin/meshlab
|
|
|
|
'';
|
|
|
|
|
2012-08-30 08:18:24 +02:00
|
|
|
sourceRoot = ".";
|
|
|
|
|
2016-04-17 01:29:52 +02:00
|
|
|
buildInputs = [ qt4 unzip vcg ];
|
2009-05-13 12:21:29 +02:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "System for the processing and editing of unstructured 3D triangular meshes";
|
|
|
|
homepage = http://meshlab.sourceforge.net/;
|
2014-06-19 06:19:00 +02:00
|
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
2010-01-21 10:49:10 +01:00
|
|
|
maintainers = with stdenv.lib.maintainers; [viric];
|
|
|
|
platforms = with stdenv.lib.platforms; linux;
|
2017-09-28 23:16:18 +02:00
|
|
|
broken = true;
|
2009-05-13 12:21:29 +02:00
|
|
|
};
|
|
|
|
}
|