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