all buildblocks moved one level up
This commit is contained in:
31
Compiler/vtk/build
Executable file
31
Compiler/vtk/build
Executable file
@@ -0,0 +1,31 @@
|
||||
#!/usr/bin/env modbuild
|
||||
#
|
||||
# Notes:
|
||||
# On Mac OS X VTK does not compile out of the box with self-compiled GCC.
|
||||
# grep vor "long-branch" and "pascal-string" in the cmake configuration
|
||||
# and remove these strings.
|
||||
#
|
||||
|
||||
case ${OS} in
|
||||
Darwin )
|
||||
pbuild::pre_configure() {
|
||||
# for the time being: on Mac OS X we need GL/gl.h from MacPorts:
|
||||
std::append_path C_INLCUDE_PATH '/opt/local/include'
|
||||
std::append_path CPLUS_INCLUDE_PATH '/opt/local/include'
|
||||
}
|
||||
;;
|
||||
esac
|
||||
|
||||
pbuild::configure() {
|
||||
cmake -DCMAKE_INSTALL_PREFIX:PATH=$PREFIX \
|
||||
-DVTK_INSTALL_INCLUDE_DIR:PATH=include \
|
||||
-DVTK_INSTALL_LIB_DIR:PATH=lib \
|
||||
-DVTK_USE_COCOA:BOOL=OFF \
|
||||
"${MODULE_SRCDIR}"
|
||||
}
|
||||
|
||||
pbuild::add_to_group 'Compiler'
|
||||
pbuild::set_runtime_dependencies "${COMPILER}"
|
||||
pbuild::set_build_dependencies 'cmake' "${COMPILER}"
|
||||
pbuild::make_all
|
||||
|
||||
15
Compiler/vtk/modulefile
Normal file
15
Compiler/vtk/modulefile
Normal file
@@ -0,0 +1,15 @@
|
||||
#%Module1.0
|
||||
|
||||
set whatis "Visualization ToolKit"
|
||||
set url "http://www.vtk.org"
|
||||
set license "Kitware, Inc., Insight Software Consortium (BSD-like)"
|
||||
set maintainer "Achim Gsell <achim.gsell@psi.ch>"
|
||||
|
||||
set help "
|
||||
The Visualization Toolkit (VTK) is an open-source, freely available
|
||||
software system for 3D computer graphics, image processing and
|
||||
visualization. VTK consists of a C++ class library and several
|
||||
interpreted interface layers including Tcl/Tk, Java, and Python.
|
||||
"
|
||||
|
||||
source $env(PSI_LIBMODULES)
|
||||
Reference in New Issue
Block a user