2013-05-30 18:26:15 +01:00
|
|
|
{stdenv, fetchurl, mesa, tcl, tk, file, libXmu, cmake, qt4, freetype}:
|
2009-01-27 08:14:27 +00:00
|
|
|
|
2010-01-27 18:27:55 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2013-05-30 18:26:15 +01:00
|
|
|
name = "opencascade-6.6.0";
|
2009-01-27 08:14:27 +00:00
|
|
|
src = fetchurl {
|
2013-05-30 18:26:15 +01:00
|
|
|
url = http://files.opencascade.com/OCCT/OCC_6.6.0_release/OpenCASCADE660.tgz;
|
|
|
|
sha256 = "0q2xn915w9skv9sj74lxnyv9g3b0yi1j04majyzxk6sv4nra97z3";
|
2009-01-27 08:14:27 +00:00
|
|
|
};
|
|
|
|
|
2013-05-30 18:26:15 +01:00
|
|
|
buildInputs = [ cmake mesa tcl tk file libXmu qt4 freetype ];
|
2012-03-02 13:47:37 +00:00
|
|
|
|
|
|
|
preUnpack = ''
|
2013-05-30 18:26:15 +01:00
|
|
|
sourceRoot=`pwd`/ros/adm/cmake
|
|
|
|
cmakeFlags="$cmakeFlags -DINSTALL_DIR=$out -D3RDPARTY_TCL_DIR=${tcl} -D3RDPARTY_FREETYPE_DIR=${freetype}"
|
2012-03-02 13:47:37 +00:00
|
|
|
'';
|
2009-01-27 08:14:27 +00:00
|
|
|
|
2010-01-27 18:27:55 +00:00
|
|
|
postInstall = ''
|
|
|
|
mv $out/inc $out/include
|
2012-01-18 20:16:00 +00:00
|
|
|
mkdir -p $out/share/doc/${name}
|
2013-05-30 18:26:15 +01:00
|
|
|
cp -R ../../../doc $out/share/doc/${name}
|
2010-01-27 18:27:55 +00:00
|
|
|
'';
|
|
|
|
|
2012-03-02 13:47:37 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2009-01-27 08:14:27 +00:00
|
|
|
meta = {
|
|
|
|
description = "Open CASCADE Technology, libraries for 3D modeling and numerical simulation";
|
|
|
|
homepage = http://www.opencascade.org/;
|
2009-10-01 21:18:17 +01:00
|
|
|
maintainers = with stdenv.lib.maintainers; [viric];
|
|
|
|
platforms = with stdenv.lib.platforms; linux;
|
2009-01-27 08:14:27 +00:00
|
|
|
};
|
|
|
|
}
|