Files
MX_Pmodule/scripts/Compiler/vtk/build
Achim Gsell b129a8d05d - em.xyz renamed to pmodules.xxy
- underscore removed as prefix of function names
- keyword function removed
2015-06-04 20:38:33 +02:00

34 lines
848 B
Bash
Executable File

#!/bin/bash
#
# 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.
#
source "$(dirname $0)/../../../lib/libpmodules.bash"
case ${OS} in
Darwin )
pmodules.pre_configure() {
# for the time being: on Mac OS X we need GL/gl.h from MacPorts:
append_path C_INLCUDE_PATH '/opt/local/include'
append_path CPLUS_INCLUDE_PATH '/opt/local/include'
}
;;
esac
pmodules.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}"
}
pmodules.add_to_group 'Compiler'
pmodules.set_runtime_dependencies "${COMPILER}"
pmodules.set_build_dependencies 'cmake' "${COMPILER}"
pmodules.make_all