sit/packages/compiler/mcxx/mcxx-master
Christoph Niethammer 068686efb3 Moved sit class files into sub directories for all the packages.
Moved packages into sub directories easing the use of additional
installation files (e.g. patches).

Calling sit now with the following syntax:

[OPTIONS] ./sit <category>/<package>/<package>-<version>
2024-03-28 02:43:56 +01:00

53 lines
875 B
Bash
Executable file

#!/bin/sh
# 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-ompss \
--with-nanox=$NANOX_HOME \
"
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
}