2016-04-17 00:29:52 +01:00
|
|
|
{ stdenv, fetchurl, qt4, bzip2, lib3ds, levmar, muparser, unzip, vcg }:
|
2009-05-13 11:21:29 +01:00
|
|
|
|
2010-01-21 14:39:53 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2015-08-19 22:21:00 +01:00
|
|
|
name = "meshlab-1.3.3";
|
2009-05-13 11:21:29 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2015-08-19 22:21:00 +01:00
|
|
|
url = "mirror://sourceforge/meshlab/meshlab/MeshLab%20v1.3.3/MeshLabSrc_AllInc_v133.tgz";
|
|
|
|
sha256 = "03wqaibfbfag2w1zi1a5z6h546r9d7pg2sjl5pwg24w7yp8rr0n9";
|
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
|
|
|
|
2015-08-19 22:21:00 +01:00
|
|
|
patches = [ ./include-unistd.diff ];
|
2014-04-20 10:30:06 +01:00
|
|
|
|
2016-02-26 17:38:15 +00:00
|
|
|
hardeningDisable = [ "format" ];
|
2016-02-12 12:50:38 +00:00
|
|
|
|
2010-07-07 16:10:05 +01:00
|
|
|
buildPhase = ''
|
2012-08-30 07:18:24 +01:00
|
|
|
mkdir -p "$out/include"
|
2010-07-07 16:10:05 +01:00
|
|
|
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
|
2012-08-30 07:18:24 +01:00
|
|
|
qmake -recursive meshlab_full.pro
|
2009-05-13 11:21:29 +01:00
|
|
|
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
|
|
|
|
'';
|
|
|
|
|
2012-08-30 07:18:24 +01:00
|
|
|
sourceRoot = ".";
|
|
|
|
|
2016-04-17 00:29:52 +01:00
|
|
|
buildInputs = [ qt4 unzip vcg ];
|
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/;
|
2014-06-19 05:19:00 +01:00
|
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
2010-01-21 09:49:10 +00:00
|
|
|
maintainers = with stdenv.lib.maintainers; [viric];
|
|
|
|
platforms = with stdenv.lib.platforms; linux;
|
2015-09-02 19:26:02 +01:00
|
|
|
broken = stdenv.isLinux && stdenv.isi686;
|
2009-05-13 11:21:29 +01:00
|
|
|
};
|
|
|
|
}
|