[Lunar-commits] <moonbase> opencascade: Adding to moonbase.

Dennis `stumbles` Veatch stumbles at lunar-linux.org
Wed Dec 14 02:44:16 CET 2011


commit 579cd64f4a7602805dab9a0a7352a8fd63d78888
Author: Dennis `stumbles` Veatch <stumbles at lunar-linux.org>
Date:   Tue Dec 13 20:44:16 2011 -0500

    opencascade: Adding to moonbase.
---
 zbeta/opencascade/BUILD     |   35 +++++++++++++++++++++++++++++++++++
 zbeta/opencascade/DEPENDS   |   17 +++++++++++++++++
 zbeta/opencascade/DETAILS   |   16 ++++++++++++++++
 zbeta/opencascade/PRE_BUILD |    3 +++
 4 files changed, 71 insertions(+), 0 deletions(-)

diff --git a/zbeta/opencascade/BUILD b/zbeta/opencascade/BUILD
new file mode 100644
index 0000000..536d304
--- /dev/null
+++ b/zbeta/opencascade/BUILD
@@ -0,0 +1,35 @@
+(
+
+  sedit "s@#include <OSD_MAllocHook.hxx>@#include <OSD_MAllocHook.hxx>\n#include <stdlib.h>@g" ros/src/OSD/OSD_MAllocHook.cxx &&
+
+  cd ros &&
+
+  export CFLAGS+=" -fpermissive" &&
+  export CXXFLAGS+=" -fpermissive" &&
+
+  flags+=" $flags $OPTS" &&
+
+  if in_depends $MODULE ftgl ; then
+    sedit "s:FTFont.h:FTGL/ftgl.h:" inc/OpenGl_FontMgr.hxx src/OpenGl/OpenGl_FontMgr.hxx &&
+    sedit "s:FTGLTextureFont.h:FTGL/FTGLTextureFont.h:" src/OpenGl/OpenGl_FontMgr.cxx &&
+    sedit "s:FTLibrary.h:FTGL/FTLibrary.h:" src/OpenGl/OpenGl_FontMgr.cxx &&
+    sedit "s:FTFace.h:FTGL/FTFace.h:" src/OpenGl/OpenGl_FontMgr.cxx &&
+    sedit "s:FTFont.h:FTGL/FTFont.h:" inc/OpenGl_TextRender.hxx 
+  fi &&
+
+  if in_depends $MODULE qt4 ; then
+     . /etc/profile.d/qt4.rc &&
+     sedit "s:\$qt/include:/usr/include/qt4:g" configure   &&
+     sedit "s:\$qt/include/:/usr/include/qt4/:g" configure &&
+     sedit "s:\$qt/lib:/usr/lib/qt4:g" configure
+  fi &&
+
+  sedit "s:FTGL.h:ftgl.h:g" configure &&
+  
+  ./configure $flags --prefix=/usr         \
+                     --disable-debug       \
+                     --enable-production  &&
+
+  default_make
+
+) > $C_FIFO 2>&1
diff --git a/zbeta/opencascade/DEPENDS b/zbeta/opencascade/DEPENDS
new file mode 100644
index 0000000..12c80e5
--- /dev/null
+++ b/zbeta/opencascade/DEPENDS
@@ -0,0 +1,17 @@
+depends libXmu
+
+optional_depends "tk"        "--with-tk" "--without-tk"        "for TK GUI support"
+
+optional_depends "tcl"       "--with-tcl" "--without-tcl"       "for tcl scripting support"
+
+optional_depends "ftgl"      "--with-ftgl=/usr"                     \
+                             "--without-ftgl"      "for OpenGL font rendering support"
+
+optional_depends "gl2ps"     "--with-gl2ps=/usr"    "--without-gl2ps"     "for OpenGL postscript printing support"
+optional_depends "FreeImage" "--with-freeimage=/usr" "--without-freeimage" "for various image file format support"
+optional_depends "qt4"       "--with-qt"        "--without-qt"        "for Qt widget support"
+
+optional_depends "%JAVA_SDK" "--with-java-include=$JAVA_HOME/include" "" "for java bindings support"
+
+optional_depends "tbb"       "--with-tbb-include=/usr/include/tbb --with-tbb-library=/usr/lib"   \
+                             "--without-tbb-include" "for thread bulding blocks support"
diff --git a/zbeta/opencascade/DETAILS b/zbeta/opencascade/DETAILS
new file mode 100644
index 0000000..0faa604
--- /dev/null
+++ b/zbeta/opencascade/DETAILS
@@ -0,0 +1,16 @@
+          MODULE=opencascade
+         VERSION=6.5.1
+          SOURCE=OpenCASCADE651.tar.gz
+SOURCE_DIRECTORY=$BUILD_DIRECTORY/$MODULE-$VERSION
+      SOURCE_URL=http://files.opencascade.com/OCCT/OCC_6.5.1_release/
+      SOURCE_VFY=sha1:4025ba07d2d4192d803e265614c72e5ae5b436ed
+        WEB_SITE=http://www.opencascade.org/
+         ENTERED=20111213
+         UPDATED=20111213
+           SHORT="Open Source alternative to proprietary 3D modeling kernels"
+
+cat << EOF
+Open CASCADE Technology is a software development platform freely available in 
+open source. It includes C++ components for 3D surface and solid modeling, 
+visualization, data exchange and rapid application development.
+EOF
diff --git a/zbeta/opencascade/PRE_BUILD b/zbeta/opencascade/PRE_BUILD
new file mode 100644
index 0000000..1cedbc0
--- /dev/null
+++ b/zbeta/opencascade/PRE_BUILD
@@ -0,0 +1,3 @@
+mkdir $SOURCE_DIRECTORY
+cd $SOURCE_DIRECTORY
+unpack $SOURCE


More information about the Lunar-commits mailing list