2012-03-02 13:47:37 +00:00
|
|
|
{stdenv, fetchurl, mesa, tcl, tk, file, libXmu, automake, autoconf, libtool, qt4,
|
|
|
|
ftgl, freetype}:
|
2009-01-27 08:14:27 +00:00
|
|
|
|
2010-01-27 18:27:55 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2012-12-11 08:52:37 +00:00
|
|
|
name = "opencascade-6.5.4";
|
2009-01-27 08:14:27 +00:00
|
|
|
src = fetchurl {
|
2012-12-11 08:52:37 +00:00
|
|
|
url = http://files.opencascade.com/OCCT/OCC_6.5.4_release/OpenCASCADE654.tar.gz;
|
|
|
|
sha256 = "1di08mc0wly4cdi3rh9kj52bk0bfpyk6dy03c9yfnv04i7z03kmy";
|
2009-01-27 08:14:27 +00:00
|
|
|
};
|
|
|
|
|
2012-03-02 13:47:37 +00:00
|
|
|
buildInputs = [ mesa tcl tk file libXmu automake autoconf libtool qt4 ftgl freetype ];
|
|
|
|
|
|
|
|
preUnpack = ''
|
|
|
|
sourceRoot=`pwd`/ros
|
|
|
|
'';
|
2009-01-27 08:14:27 +00:00
|
|
|
|
2010-02-18 10:25:33 +00:00
|
|
|
preConfigure = ''
|
2012-03-02 13:47:37 +00:00
|
|
|
sh ./build_configure
|
2010-02-18 10:25:33 +00:00
|
|
|
'';
|
2009-01-27 08:14:27 +00:00
|
|
|
|
2012-03-07 13:49:51 +00:00
|
|
|
# -fpermissive helps building opencascade, although gcc detects a flaw in the code
|
|
|
|
# and reports an error otherwise. Further versions may fix that.
|
2012-12-11 08:52:37 +00:00
|
|
|
NIX_CFLAGS_COMPILE = "-fpermissive";
|
2012-03-02 13:47:37 +00:00
|
|
|
|
2012-12-11 08:52:37 +00:00
|
|
|
configureFlags = [ "--with-tcl=${tcl}/lib" "--with-tk=${tk}/lib" "--with-qt=${qt4}" "--with-ftgl=${ftgl}" "--with-freetype=${freetype}" ];
|
2010-02-23 14:20:10 +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}
|
2010-01-27 18:27:55 +00:00
|
|
|
cp -R ../doc $out/share/doc/${name}
|
|
|
|
'';
|
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|