sit/packages/libs/nanox-master

80 lines
1.6 KiB
Bash

#!/bin/sh
# sit class file
#
# Christoph Niethammer <niethammer@hlrs.de> (C) 2011
#
# Requirements (see https://pm.bsc.es/projects/nanox/wiki/BuildRequirements)
# general dependencies:
# * >=gcc-4.3
# * >=automake 1.10
# * >=autoconf 2.63
# * >=libtool-2.2.6a
# * >=git-1.7.0
# additional feature:
# * >=CUDA-3.0
# * >=Extrae-2.1.1
# * >=GasNet 1.14.2
CATEGORY="libs"
PACKAGE="nanox"
VERSION="master"
URL="http://nanos.ac.upc.edu"
INSTALLER="Christoph Niethammer <niethammer@hlrs.de>"
# Archive A and package name P
A=${PACKAGE}-${VERSION}.tar.bz2
P=${PACKAGE}-${VERSION}
SRCDIR="$SRC_POOL/nanox/nanox.git"
# enable instrumentation (0|1)
enable_instrumentation=${instrumentation:=0}
# build with ayudame support (0|1)
enable_ayudame=${enable_ayudame:=0}
# build with debugging symbols (0|1)
enable_debug=${enable_debug:=0}
# Other interesting configure options:
CONFIGURE_OPTS=" \
"
if [ $enable_debug == 1 ] ; then
COMPILER_OPTS+=" CFLAGS=-g CXXFLAGS=-g CPPFLAGS=-g LDFLAGS=-g"
fi
if [ $enable_instrumentation == 1 ] ; then
module load performance/extrae
echo "Building with EXTRAE_HOME=$EXTRAE_HOME"
CONFIGURE_OPTS+=" --with-extrae=$EXTRAE_HOME"
fi
if [ $enable_ayudame == 1 ] ; then
module load libs/ayudame
echo "Building with AYUDAME_HOME=$AYUDAME_HOME"
CONFIGURE_OPTS+=" --with-ayudame=$AYUDAME_HOME"
fi
src_unpack() {
# cd $src_dir
# git checkout master
# git pull
/bin/true
}
src_prepare() {
rm -rf autom4te.cache
./autogen.sh
version=$(git rev-list -n 1 master)
}
src_install() {
make install
echo "$PACKAGE: $version" > $PREFIX/VERSION.txt
}
src_pretest() {
/bin/true
}