build 590 Bytes
Newer Older
gsell's avatar
gsell committed
1
#!/usr/bin/env modbuild
gsell's avatar
gsell committed
2

gsell's avatar
gsell committed
3
pbuild::configure() {
4 5
	(cd "${MODULE_SRCDIR}" && ./autogen.sh)
	"${MODULE_SRCDIR}"/configure \
gsell's avatar
gsell committed
6 7 8 9 10 11 12 13
		--prefix="${PREFIX}" \
		--enable-debug \
		--enable-vtkconverter \
		--with-hdf5="${HDF5_SERIAL_PREFIX}" \
		--with-pic \
		|| exit 1
}

gsell's avatar
gsell committed
14
pbuild::build() {
gsell's avatar
gsell committed
15 16 17 18
	make -C src
	make -C tools 
}

gsell's avatar
gsell committed
19
pbuild::install() {
gsell's avatar
gsell committed
20 21 22 23
	make -C src install
	make -C tools install
}

gsell's avatar
gsell committed
24 25 26 27
pbuild::add_to_group 'HDF5_serial'
pbuild::set_runtime_dependencies "${COMPILER}" 'hdf5_serial'
pbuild::set_build_dependencies   "autoconf" "automake" "libtool" "${COMPILER}" "vtk" "hdf5_serial"
pbuild::make_all
gsell's avatar
gsell committed
28