sit/packages/compiler/mcxx-master

53 lines
883 B
Bash
Executable file

#!/bin/sh
# Open MPI sit class file
#
# Christoph Niethammer <niethammer@hlrs.de> (C) 2011
#
CATEGORY="compiler"
PACKAGE="mcxx"
VERSION="master"
URL="http://nanos.ac.upc.edu/content/mercurium-compiler"
INSTALLER="Christoph Niethammer <niethammer@hlrs.de>"
module load libs/nanox
# Archive A and package name P
A=${PACKAGE}-${VERSION}.tar.bz2
P=${PACKAGE}-${VERSION}
SRCDIR="$SRC_POOL/mcxx/mcxx.git"
# build with debugging symbols (0|1)
enable_debug=${enable_debug:=0}
# Other interesting configure options:
CONFIGURE_OPTS=" \
--enable-openmpt \
--with-nanox=$NANOX_HOME \
"
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
}