Commit 1434c8a8 authored by gsell's avatar gsell
Browse files

build-block:

- use modbuild in shebang
- refactor function calls
parent bc9e6379
#!/bin/bash
#!/usr/bin/env modbuild
source $(dirname $0)/../../../lib/libpmodules.bash
pmodules.pre_configure() {
pbuild::pre_configure() {
./autogen.sh
}
pmodules.configure() {
pbuild::configure() {
"${MODULE_SRCDIR}"/configure \
--prefix="${PREFIX}" \
--enable-h5hut \
......@@ -15,8 +13,8 @@ pmodules.configure() {
--with-pic
}
pmodules.add_to_group 'Compiler'
pmodules.set_runtime_dependencies "${COMPILER}" 'hdf5_serial' 'root'
pmodules.set_build_dependencies 'autoconf' 'automake' 'libtool' "${COMPILER}" 'hdf5_serial' 'H5hut_serial' 'root'
pmodules.make_all
pbuild::add_to_group 'Compiler'
pbuild::set_runtime_dependencies "${COMPILER}" 'hdf5_serial' 'root'
pbuild::set_build_dependencies 'autoconf' 'automake' 'libtool' "${COMPILER}" 'hdf5_serial' 'H5hut_serial' 'root'
pbuild::make_all
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment