Added new sit classfile for Mercurium compiler (git repository version).

This commit is contained in:
Christoph Niethammer 2011-07-07 23:24:40 +00:00
parent ffa2030f51
commit 5f66718ec8

53
packages/compiler/mcxx-master Executable file
View file

@ -0,0 +1,53 @@
#!/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
}