2012-03-02 14:47:37 +01:00
|
|
|
{stdenv, fetchurl, mesa, tcl, tk, file, libXmu, automake, autoconf, libtool, qt4,
|
|
|
|
ftgl, freetype}:
|
2009-01-27 09:14:27 +01:00
|
|
|
|
2010-01-27 19:27:55 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2012-03-02 14:47:37 +01:00
|
|
|
name = "opencascade-6.5.2";
|
2009-01-27 09:14:27 +01:00
|
|
|
src = fetchurl {
|
2012-03-02 14:47:37 +01:00
|
|
|
url = http://files.opencascade.com/OCCT/OCC_6.5.2_release/OpenCASCADE652.tar.gz;
|
|
|
|
sha256 = "0nsfjhd6rv1fmq8jbyzcs0f13h4xfld487vqs9bwd4lbwcfqxwcy";
|
2009-01-27 09:14:27 +01:00
|
|
|
};
|
|
|
|
|
2012-03-02 14:47:37 +01:00
|
|
|
buildInputs = [ mesa tcl tk file libXmu automake autoconf libtool qt4 ftgl freetype ];
|
|
|
|
|
|
|
|
preUnpack = ''
|
|
|
|
sourceRoot=`pwd`/ros
|
|
|
|
'';
|
2009-01-27 09:14:27 +01:00
|
|
|
|
2010-02-18 11:25:33 +01:00
|
|
|
preConfigure = ''
|
2012-03-02 14:47:37 +01:00
|
|
|
sh ./build_configure
|
2010-02-18 11:25:33 +01:00
|
|
|
'';
|
2009-01-27 09:14:27 +01:00
|
|
|
|
2012-03-02 14:47:37 +01:00
|
|
|
NIX_CFLAGS_COMPILE = "-I${ftgl}/include/FTGL -I${freetype}/include/freetype2";
|
|
|
|
|
2010-02-23 15:20:10 +01:00
|
|
|
configureFlags = [ "--with-tcl=${tcl}/lib" "--with-tk=${tk}/lib" ];
|
|
|
|
|
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}
|
2010-01-27 19:27:55 +01:00
|
|
|
cp -R ../doc $out/share/doc/${name}
|
|
|
|
'';
|
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|