2013-05-30 18:25:01 +01: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 {
|
2013-05-30 18:25:01 +01:00
|
|
|
name = "opencascade-6.5.4";
|
2009-01-27 08:14:27 +00:00
|
|
|
src = fetchurl {
|
2013-05-30 18:25:01 +01: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
|
|
|
};
|
|
|
|
|
2013-05-30 18:25:01 +01:00
|
|
|
buildInputs = [ mesa tcl tk file libXmu automake autoconf libtool qt4 ftgl freetype ];
|
2012-03-02 13:47:37 +00:00
|
|
|
|
|
|
|
preUnpack = ''
|
2013-05-30 18:25:01 +01:00
|
|
|
sourceRoot=`pwd`/ros
|
2012-03-02 13:47:37 +00:00
|
|
|
'';
|
2009-01-27 08:14:27 +00:00
|
|
|
|
2013-05-30 18:25:01 +01:00
|
|
|
preConfigure = ''
|
|
|
|
sh ./build_configure
|
|
|
|
'';
|
|
|
|
|
|
|
|
# -fpermissive helps building opencascade, although gcc detects a flaw in the code
|
|
|
|
# and reports an error otherwise. Further versions may fix that.
|
|
|
|
NIX_CFLAGS_COMPILE = "-fpermissive";
|
|
|
|
|
|
|
|
configureFlags = [ "--with-tcl=${tcl}/lib" "--with-tk=${tk}/lib" "--with-qt=${qt4}" "--with-ftgl=${ftgl}" "--with-freetype=${freetype}" ];
|
|
|
|
|
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:25:01 +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
|
|
|
};
|
|
|
|
}
|