mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-27 13:57:10 +03:00
Updating opencascade to 6.6.0
This commit is contained in:
parent
316e78098c
commit
6c4c1c4fb6
@ -1,33 +1,23 @@
|
||||
{stdenv, fetchurl, mesa, tcl, tk, file, libXmu, automake, autoconf, libtool, qt4,
|
||||
ftgl, freetype}:
|
||||
{stdenv, fetchurl, mesa, tcl, tk, file, libXmu, cmake, qt4, freetype}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "opencascade-6.5.4";
|
||||
name = "opencascade-6.6.0";
|
||||
src = fetchurl {
|
||||
url = http://files.opencascade.com/OCCT/OCC_6.5.4_release/OpenCASCADE654.tar.gz;
|
||||
sha256 = "1di08mc0wly4cdi3rh9kj52bk0bfpyk6dy03c9yfnv04i7z03kmy";
|
||||
url = http://files.opencascade.com/OCCT/OCC_6.6.0_release/OpenCASCADE660.tgz;
|
||||
sha256 = "0q2xn915w9skv9sj74lxnyv9g3b0yi1j04majyzxk6sv4nra97z3";
|
||||
};
|
||||
|
||||
buildInputs = [ mesa tcl tk file libXmu automake autoconf libtool qt4 ftgl freetype ];
|
||||
buildInputs = [ cmake mesa tcl tk file libXmu qt4 freetype ];
|
||||
|
||||
preUnpack = ''
|
||||
sourceRoot=`pwd`/ros
|
||||
sourceRoot=`pwd`/ros/adm/cmake
|
||||
cmakeFlags="$cmakeFlags -DINSTALL_DIR=$out -D3RDPARTY_TCL_DIR=${tcl} -D3RDPARTY_FREETYPE_DIR=${freetype}"
|
||||
'';
|
||||
|
||||
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}" ];
|
||||
|
||||
postInstall = ''
|
||||
mv $out/inc $out/include
|
||||
mkdir -p $out/share/doc/${name}
|
||||
cp -R ../doc $out/share/doc/${name}
|
||||
cp -R ../../../doc $out/share/doc/${name}
|
||||
'';
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
@ -4816,10 +4816,7 @@ let
|
||||
|
||||
openbabel = callPackage ../development/libraries/openbabel { };
|
||||
|
||||
opencascade = callPackage ../development/libraries/opencascade {
|
||||
automake = automake111x;
|
||||
ftgl = ftgl212;
|
||||
};
|
||||
opencascade = callPackage ../development/libraries/opencascade { };
|
||||
|
||||
opencascade_oce = callPackage ../development/libraries/opencascade/oce.nix { };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user