[Lunar-commits] <moonbase> vtk: Making a few adjustments.

Dennis `stumbles` Veatch stumbles at lunar-linux.org
Fri Feb 11 02:21:53 CET 2011


commit 471381560d6dcac4c7ae1c583138f7170b421f1f
Author: Dennis `stumbles` Veatch <stumbles at lunar-linux.org>
Date:   Thu Feb 10 20:21:53 2011 -0500

    vtk: Making a few adjustments.
---
 science/vtk/BUILD   |   16 +++++++++
 science/vtk/DEPENDS |   87 +++++++++++++++++++++++++++++++++++++++++++++++++++
 science/vtk/DETAILS |    2 +-
 3 files changed, 104 insertions(+), 1 deletions(-)

diff --git a/science/vtk/BUILD b/science/vtk/BUILD
index d345c5d..6422229 100644
--- a/science/vtk/BUILD
+++ b/science/vtk/BUILD
@@ -1,12 +1,28 @@
 (
 
+  sedit "s:2.6:2.7:" CMake/FindPythonLibs.cmake &&
+  sedit "s:/usr/local/lib:/usr/lib/R:g" CMake/FindR.cmake &&
+
+  if module_installed sun-jdk ; then
+    . /etc/profile.d/sun-jdk.rc
+   else
+    . /etc/profile.d/sun-jre
+  fi &&
+
   OOSB_DIR="$SOURCE_DIRECTORY/$MODULE-build"  &&
 
   mkdir $OOSB_DIR  &&
   cd $OOSB_DIR     &&
 
+# For now disable or use proj4, odbc and R from VTK 
   cmake $SOURCE_DIRECTORY/ -DCMAKE_INSTALL_PREFIX=$MODULE_PREFIX  \
                            -DCMAKE_BUILD_TYPE=RELEASE             \
+                           -DBUILD_SHARED_LIBS=ON                 \
+                           -DBUILD_EXAMPLES=OFF                   \
+                           -DCMAKE_CXX_FLAGS="-D__STDC_CONSTANT_MACROS" \
+                           -DVTK_USE_SYSTEM_LIBPROJ4=OFF          \ 
+                           -DVTK_USE_GNU_R=OFF                    \
+                           -DVTK_USE_ODBC=OFF                     \
                            $OPTS                                 &&
 
   default_make
diff --git a/science/vtk/DEPENDS b/science/vtk/DEPENDS
index 4014537..6f4b507 100644
--- a/science/vtk/DEPENDS
+++ b/science/vtk/DEPENDS
@@ -1,2 +1,89 @@
 depends cmake
 
+optional_depends netcdf "" "" "for network Common Data Form support"
+
+optional_depends expat "-DVTK_USE_SYSTEM_EXPAT=ON"  \
+                       "-DVTK_USE_SYSTEM_EXPAT=OFF" \
+                       "for expat support"
+
+optional_depends %JPEG "-DVTK_USE_SYSTEM_JPEG=ON"   \
+                       "-DVTK_USE_SYSTEM_JPEG=OFF"  \
+                       "fpr jpeg support"
+
+optional_depends %XMLRENDERER "-DVTK_USE_SYSTEM_LIBXML2=ON"   \
+                              "-DVTK_USE_SYSTEM_LIBXML2=OFF"  \
+                              "for xml support"
+
+optional_depends libpng "-DVTK_USE_SYSTEM_PNG=ON"   \
+                        "-DVTK_USE_SYSTEM_PNG=OFF"  \
+                        "for png graphics support"
+
+optional_depends tiff "-DVTK_USE_SYSTEM_TIFF=ON"   \
+                      "-DVTK_USE_SYSTEM_TIFF=OFF"  \
+                      "for tiff graphics support"
+
+optional_depends freetype2 "-DVTK_USE_SYSTEM_FREETYPE=ON"   \
+                           "-DVTK_USE_SYSTEM_FREETYPE=OFF"  \
+                           "for freetype support"
+
+optional_depends zlib "-DVTK_USE_SYSTEM_ZLIB=ON"    \
+                      "-DVTK_USE_SYSTEM_ZLIB=OFF"   \
+                      "for zlib compression support"
+
+optional_depends %JAVA_SDK "-DVTK_WRAP_JAVA=ON"   \
+                           "-DVTK_WRAP_JAVA=OFF"  \
+                            "for java wrappers support"
+
+optional_depends Python "-DVTK_WRAP_PYTHON=ON"  \
+                        "-DVTK_WRAP_PYTHON=OFF" \
+                        "for python wrappers support"
+
+optional_depends tcl "-DVTK_WRAP_TCL=ON"  \
+                     "-DVTK_WRAP_TCL=OFF" \
+                     "for tcl wrappers support"
+
+optional_depends boost "-DVTK_USE_BOOST=ON"  \
+                       "-DVTK_USE_BOOST=OFF" \
+                       "for boost libraries support"
+
+optional_depends ffmpeg "-DVTK_USE_FFMPEG_ENCODER=ON"  \
+                        "-DVTK_USE_FFMPEG_ENCODER=OFF" \
+                        "for ffmpeg support"
+
+optional_depends gl2ps "-DVTK_USE_GL2PS=ON"  \
+                       "-DVTK_USE_GL2PS=OFF" \
+                       "for postscript printing support"
+
+optional_depends mysql  "-DVTK_USE_MYSQL=ON" \
+                        "-DVTK_USE_MYSQL=OFF" \
+                        "for musql database support"
+
+#optional_depends unixODBC "-DVTK_USE_ODBC=ON"  \
+#                          "-DVTK_USE_ODBC=OFF" \
+#                          "for ODBC support"
+
+optional_depends postgresql "-DVTK_USE_POSTGRES=ON"  \
+                            "-DVTK_USE_POSTGRES=OFF" \
+                            "for postgresql database support"
+
+optional_depends qt4 "-DVTK_USE_QT=ON" \
+                     "-DVTK_USE_QT=OFF" \
+                     "for Qt support"
+
+
+optional_depends OpenSceneGraph "-DVTK_USE_GLSL_SHADERS=ON"  \
+                                "-DVTK_USE_GLSL_SHADERS=OFF" \
+                                "for pixel and vertex shader support"
+
+#optional_depends R    "-DVTK_USE_GNU_R=ON -DVTK_USE_GUISUPPORT=ON       \
+#                       -DR_INCLUDE_DIR=/usr/lib/R/include/              \
+#                       -DR_LIBRARY_BLAS=/usr/lib/R/lib/libRblas.so      \
+#                       -R_LIBRARY_LAPACK=/usr/lib/R/lib/libRlapack.so"  \
+#                      "-DVTK_USE_GNU_R=OFF -DVTK_USE_GUISUPPORT=OFF"    \
+#                      "for R interface support"
+
+
+#optional_depends proj-4 "-DVTK_USE_SYSTEM_LIBPROJ4=ON -DLIBPROJ4_INCLUDE_DIR=/usr/include \
+#                         -DLIBPROJ4_LIBRARIES=/usr/lib"  \
+#                        "-DVTK_USE_SYSTEM_LIBPROJ4=OFF" \
+#                        "for Cartographic Projections support"
diff --git a/science/vtk/DETAILS b/science/vtk/DETAILS
index db33bea..61475a0 100644
--- a/science/vtk/DETAILS
+++ b/science/vtk/DETAILS
@@ -9,7 +9,7 @@ SOURCE_DIRECTORY=$BUILD_DIRECTORY/VTK
          ENTERED=20101121
          UPDATED=20101121
            SHORT="Visualization ToolKit"
-
+PSAFE=no
 cat << EOF
 For 3D computer graphics, image processing and visualization.
 EOF


More information about the Lunar-commits mailing list