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
|
|
|
|
2016-09-05 20:52:04 +01:00
|
|
|
sourceRoot = "ros/adm/cmake";
|
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
"-D3RDPARTY_TCL_DIR=${tcl}"
|
|
|
|
"-D3RDPARTY_FREETYPE_DIR=${freetype.dev}"
|
|
|
|
|
|
|
|
# Not used on Linux but must be defined during configuration.
|
|
|
|
"-D3RDPARTY_FREETYPE_DLL=${freetype.dev}"
|
|
|
|
];
|
2009-01-27 08:14:27 +00:00
|
|
|
|
2015-03-06 13:44:01 +00:00
|
|
|
# https://bugs.freedesktop.org/show_bug.cgi?id=83631
|
|
|
|
NIX_CFLAGS_COMPILE = "-DGLX_GLXEXT_LEGACY";
|
|
|
|
|
2016-02-26 17:38:15 +00:00
|
|
|
hardeningDisable = [ "format" ];
|
2016-02-12 16:10:06 +00:00
|
|
|
|
2016-09-05 20:52:04 +01:00
|
|
|
preConfigure = ''
|
|
|
|
cmakeFlags="$cmakeFlags -DINSTALL_DIR=$out"
|
|
|
|
'';
|
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|