sit/packages/libs/nanox/nanox-master

84 lines
1.7 KiB
Text
Raw Permalink Normal View History

#!/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_extrae=${enable_extrae:=1}
2013-07-10 08:57:38 +00:00
# build with temanejo support (0|1)
enable_temanejo=${enable_temanejo:=1}
# build with debugging symbols (0|1)
enable_debug=${enable_debug:=0}
# Other interesting configure options:
CONFIGURE_OPTS=" \
--enable-static \
--enable-shared \
"
if [ $enable_debug == 1 ] ; then
COMPILER_OPTS+=" CFLAGS=-g CXXFLAGS=-g CPPFLAGS=-g LDFLAGS=-g"
fi
if [ $enable_extrae == 1 ] ; then
module load performance/extrae
echo "Building with EXTRAE_HOME=$EXTRAE_HOME"
CONFIGURE_OPTS+=" --with-extrae=$EXTRAE_HOME"
fi
2013-07-10 08:57:38 +00:00
if [ $enable_temanejo == 1 ] ; then
module load debugger/temanejo
echo "Building with AYUDAME_HOME=$TEMANEJO_HOME"
CONFIGURE_OPTS+=" --with-ayudame=$TEMANEJO_HOME"
#LDFLAGS+=" -L$TEMANEJO_HOME"
fi
src_unpack() {
# cd $src_dir
# git checkout master
# git pull
/bin/true
}
src_prepare() {
rm -rf autom4te.cache
autoreconf -vif
version=$(git rev-list -n 1 master)
}
src_install() {
make install
echo "$PACKAGE: $version" > $PREFIX/VERSION.txt
}
src_pretest() {
/bin/true
}