mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-22 14:45:27 +00:00
Updating opencascade to 6.5.2.
I had to bring an older ftgl in. svn path=/nixpkgs/trunk/; revision=32742
This commit is contained in:
parent
6975b032b1
commit
55fb51c2d1
42
pkgs/development/libraries/ftgl/2.1.2.nix
Normal file
42
pkgs/development/libraries/ftgl/2.1.2.nix
Normal file
|
@ -0,0 +1,42 @@
|
||||||
|
{stdenv, fetchurl, freetype, mesa}:
|
||||||
|
|
||||||
|
let
|
||||||
|
name = "ftgl-2.1.2";
|
||||||
|
in
|
||||||
|
stdenv.mkDerivation {
|
||||||
|
inherit name;
|
||||||
|
|
||||||
|
src = fetchurl {
|
||||||
|
url = "mirror://sourceforge/ftgl/${name}.tar.gz";
|
||||||
|
sha256 = "0xa00fnn6wd3rnkrkcs1wpv21lxdsb83r4hjn3l33dn0zbawnn97";
|
||||||
|
};
|
||||||
|
|
||||||
|
buildInputs = [freetype mesa];
|
||||||
|
|
||||||
|
patches = [ ./gcc.patch ];
|
||||||
|
|
||||||
|
configureFlags = "--enable-shared";
|
||||||
|
|
||||||
|
preConfigure = ''
|
||||||
|
cd unix
|
||||||
|
cd docs
|
||||||
|
tar vxf ../../docs/html.tar.gz
|
||||||
|
cd ..
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
homepage = "http://sourceforge.net/apps/mediawiki/ftgl/";
|
||||||
|
description = "font rendering library for OpenGL applications";
|
||||||
|
license = stdenv.lib.licenses.gpl3Plus;
|
||||||
|
|
||||||
|
longDescription = ''
|
||||||
|
FTGL is a free cross-platform Open Source C++ library that uses
|
||||||
|
Freetype2 to simplify rendering fonts in OpenGL applications. FTGL
|
||||||
|
supports bitmaps, pixmaps, texture maps, outlines, polygon mesh,
|
||||||
|
and extruded polygon rendering modes.
|
||||||
|
'';
|
||||||
|
|
||||||
|
platforms = stdenv.lib.platforms.gnu;
|
||||||
|
maintainers = [];
|
||||||
|
};
|
||||||
|
}
|
13
pkgs/development/libraries/ftgl/gcc.patch
Normal file
13
pkgs/development/libraries/ftgl/gcc.patch
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
diff --git a/include/FTTextureGlyph.h b/include/FTTextureGlyph.h
|
||||||
|
index c263f72..8959cb3 100755
|
||||||
|
--- a/include/FTTextureGlyph.h
|
||||||
|
+++ b/include/FTTextureGlyph.h
|
||||||
|
@@ -52,7 +52,7 @@ class FTGL_EXPORT FTTextureGlyph : public FTGlyph
|
||||||
|
* Reset the currently active texture to zero to get into a known state before
|
||||||
|
* drawing a string. This is to get round possible threading issues.
|
||||||
|
*/
|
||||||
|
- static void FTTextureGlyph::ResetActiveTexture(){ activeTextureID = 0;}
|
||||||
|
+ static void ResetActiveTexture(){ activeTextureID = 0;}
|
||||||
|
|
||||||
|
private:
|
||||||
|
/**
|
|
@ -1,18 +1,25 @@
|
||||||
{stdenv, fetchurl, mesa, tcl, tk, file, libXmu}:
|
{stdenv, fetchurl, mesa, tcl, tk, file, libXmu, automake, autoconf, libtool, qt4,
|
||||||
|
ftgl, freetype}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "opencascade-6.3.0";
|
name = "opencascade-6.5.2";
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = http://files.opencascade.com/OCC_6.3_release/OpenCASCADE_src.tgz;
|
url = http://files.opencascade.com/OCCT/OCC_6.5.2_release/OpenCASCADE652.tar.gz;
|
||||||
md5 = "52778127974cb3141c2827f9d40d1f11";
|
sha256 = "0nsfjhd6rv1fmq8jbyzcs0f13h4xfld487vqs9bwd4lbwcfqxwcy";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ mesa tcl tk file libXmu ];
|
buildInputs = [ mesa tcl tk file libXmu automake autoconf libtool qt4 ftgl freetype ];
|
||||||
|
|
||||||
|
preUnpack = ''
|
||||||
|
sourceRoot=`pwd`/ros
|
||||||
|
'';
|
||||||
|
|
||||||
preConfigure = ''
|
preConfigure = ''
|
||||||
cd ros
|
sh ./build_configure
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
NIX_CFLAGS_COMPILE = "-I${ftgl}/include/FTGL -I${freetype}/include/freetype2";
|
||||||
|
|
||||||
configureFlags = [ "--with-tcl=${tcl}/lib" "--with-tk=${tk}/lib" ];
|
configureFlags = [ "--with-tcl=${tcl}/lib" "--with-tk=${tk}/lib" ];
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
|
@ -21,6 +28,8 @@ stdenv.mkDerivation rec {
|
||||||
cp -R ../doc $out/share/doc/${name}
|
cp -R ../doc $out/share/doc/${name}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "Open CASCADE Technology, libraries for 3D modeling and numerical simulation";
|
description = "Open CASCADE Technology, libraries for 3D modeling and numerical simulation";
|
||||||
homepage = http://www.opencascade.org/;
|
homepage = http://www.opencascade.org/;
|
||||||
|
|
|
@ -700,6 +700,8 @@ let
|
||||||
|
|
||||||
ftgl = callPackage ../development/libraries/ftgl { };
|
ftgl = callPackage ../development/libraries/ftgl { };
|
||||||
|
|
||||||
|
ftgl212 = callPackage ../development/libraries/ftgl/2.1.2.nix { };
|
||||||
|
|
||||||
fuppes = callPackage ../tools/networking/fuppes {
|
fuppes = callPackage ../tools/networking/fuppes {
|
||||||
ffmpeg = ffmpeg_0_6_90;
|
ffmpeg = ffmpeg_0_6_90;
|
||||||
};
|
};
|
||||||
|
@ -4446,7 +4448,9 @@ let
|
||||||
|
|
||||||
openbabel = callPackage ../development/libraries/openbabel { };
|
openbabel = callPackage ../development/libraries/openbabel { };
|
||||||
|
|
||||||
opencascade = callPackage ../development/libraries/opencascade { };
|
opencascade = callPackage ../development/libraries/opencascade {
|
||||||
|
ftgl = ftgl212;
|
||||||
|
};
|
||||||
|
|
||||||
opencsg = callPackage ../development/libraries/opencsg { };
|
opencsg = callPackage ../development/libraries/opencsg { };
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue