2018-02-24 13:12:44 +00:00
|
|
|
{stdenv, fetchurl, libGLU_combined, tcl, tk, file, libXmu, cmake, libtool, qt4,
|
2017-09-21 22:46:02 +01:00
|
|
|
ftgl, freetype}:
|
2009-01-27 08:14:27 +00:00
|
|
|
|
2010-01-27 18:27:55 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2018-11-19 04:02:29 +00:00
|
|
|
name = "opencascade-oce-0.18.3";
|
2009-01-27 08:14:27 +00:00
|
|
|
src = fetchurl {
|
2018-11-19 04:02:29 +00:00
|
|
|
url = https://github.com/tpaviot/oce/archive/OCE-0.18.3.tar.gz;
|
|
|
|
sha256 = "0v4ny0qhr5hiialb2ss25bllfnd6j4g7mfxnqfmr1xsjpykxcly5";
|
2009-01-27 08:14:27 +00:00
|
|
|
};
|
|
|
|
|
2018-02-24 13:12:44 +00:00
|
|
|
buildInputs = [ libGLU_combined tcl tk file libXmu libtool qt4 ftgl freetype cmake ];
|
2016-02-12 16:10:06 +00:00
|
|
|
|
2017-11-13 08:44:04 +00:00
|
|
|
# Fix for glibc 2.26
|
|
|
|
postPatch = ''
|
|
|
|
sed -i -e 's/^\( *#include <\)x\(locale.h>\)//' \
|
|
|
|
src/Standard/Standard_CLocaleSentry.hxx
|
|
|
|
'';
|
|
|
|
|
2016-09-05 20:52:04 +01:00
|
|
|
preConfigure = ''
|
2017-09-21 22:46:02 +01:00
|
|
|
cmakeFlags="$cmakeFlags -DOCE_INSTALL_PREFIX=$out"
|
2016-09-05 20:52:04 +01:00
|
|
|
'';
|
|
|
|
|
2017-09-21 22:46:02 +01:00
|
|
|
# https://bugs.freedesktop.org/show_bug.cgi?id=83631
|
|
|
|
NIX_CFLAGS_COMPILE = "-DGLX_GLXEXT_LEGACY";
|
2010-01-27 18:27:55 +00:00
|
|
|
|
2012-03-02 13:47:37 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2018-10-25 20:56:50 +01:00
|
|
|
meta = with stdenv.lib; {
|
2009-01-27 08:14:27 +00:00
|
|
|
description = "Open CASCADE Technology, libraries for 3D modeling and numerical simulation";
|
|
|
|
homepage = http://www.opencascade.org/;
|
2018-10-25 20:56:50 +01:00
|
|
|
maintainers = [ maintainers.viric ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
license = licenses.lgpl21;
|
2009-01-27 08:14:27 +00:00
|
|
|
};
|
|
|
|
}
|