#!/bin/sh # sit class file # # Christoph Niethammer (C) 2013 # Jose Gracia # CATEGORY=${CATEGORY:-"performance"} PACKAGE=${PACKAGE:-"dlb"} # if VERSION not set assume 1.0 VERSION=${VERSION:-"3.2"} URL="hhttps://pm.bsc.es" INSTALLER="Jose Gracia " # Archive A and package name P A=${PACKAGE}-${VERSION}.tar.gz P=${PACKAGE}-${VERSION} # remove date suffix starting from first '-' # enable hwloc (0|1) enable_hwloc=${enable_hwloc:-1} # enable mpi enable_mpi=${enable_mpi:-1} CONFIGURE_OPTS=" " if [ $enable_hwloc == 1 ] ; then echo "Building with hwloc" HWLOC_DIR=$(dirname $(dirname $(which hwloc-ls))) CONFIGURE_OPTS+=" --with-hwloc=$HWLOC_DIR" fi if [ $enable_mpi == 1 ] ; then CONFIGURE_OPTS+=" --with-mpi" fi