sit/packages/performance/dlb/dlb-any
2024-03-28 03:14:18 +01:00

39 lines
795 B
Bash

#!/bin/sh
# sit class file
#
# Christoph Niethammer <niethammer@hlrs.de> (C) 2013
# Jose Gracia <gracia@hlrs.de>
#
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 <gracia@hlrs.de>"
# 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