diff --git a/packages/libs/nanox-master b/packages/libs/nanox-master new file mode 100644 index 0000000..3a78a4c --- /dev/null +++ b/packages/libs/nanox-master @@ -0,0 +1,69 @@ +#!/bin/sh +# Open MPI sit class file +# +# Christoph Niethammer (C) 2011 +# + +CATEGORY="libs" +PACKAGE="nanox" +VERSION="master" +URL="http://nanos.ac.upc.edu" +INSTALLER="Christoph Niethammer " + +# 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 +} +