build 810 Bytes
Newer Older
gsell's avatar
gsell committed
1
#!/usr/bin/env modbuild
gsell's avatar
gsell committed
2 3 4 5 6 7 8 9 10
#
# 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 )
gsell's avatar
gsell committed
11
	pbuild::pre_configure() {
gsell's avatar
gsell committed
12
		# for the time being: on Mac OS X we need GL/gl.h from MacPorts:
gsell's avatar
gsell committed
13 14
		std::append_path C_INLCUDE_PATH '/opt/local/include'
		std::append_path CPLUS_INCLUDE_PATH '/opt/local/include'
gsell's avatar
gsell committed
15 16 17 18
	}
	;;
esac

gsell's avatar
gsell committed
19
pbuild::configure() {
gsell's avatar
gsell committed
20 21 22 23
	cmake -DCMAKE_INSTALL_PREFIX:PATH=$PREFIX \
		-DVTK_INSTALL_INCLUDE_DIR:PATH=include \
		-DVTK_INSTALL_LIB_DIR:PATH=lib \
		-DVTK_USE_COCOA:BOOL=OFF \
24
		"${MODULE_SRCDIR}"
gsell's avatar
gsell committed
25 26
}

gsell's avatar
gsell committed
27 28 29 30
pbuild::add_to_group 'Compiler'
pbuild::set_runtime_dependencies "${COMPILER}"
pbuild::set_build_dependencies 'cmake' "${COMPILER}"
pbuild::make_all
gsell's avatar
gsell committed
31