sit/packages/compiler/mcxx/mcxx-any

58 lines
1.6 KiB
Bash
Executable file

#!/bin/sh
# sit class file
#
# Christoph Niethammer <niethammer@hlrs.de> (C) 2013
# Jose Gracia <gracia@hlrs.de>
# libs/nanox and compiler/mcxx **together** form the package compiler/ompss
#
# install instructions:
# * decide on a version number for the user-visible package,
# e.g. the nanox version, and set OMPSS_VERSION=xxx
# * choose mcxx version
# * install libs/nanox (see there) and set NANOX_HOME pointing to it
# * install compilers/mcxx with:
# MCXX_VERSION=1.99.1-2014-05-21 VERSION=$OMPSS_VERSION COMPILER=gnu PREFIX_BASE=$YOUR_PREFIX_BASE NANOX_HOME=$NANOX_HOME ./sit compiler/mcxx/mcxx-any
: ${CATEGORY:="compiler"}
: ${PACKAGE:="ompss"}
# if VERSIOn not set assume one
: ${VERSION:="0.7a-2014-04-10"} # this is the OmpSs version!! (often nanox version)
: ${MCXX_PACKAGE:="mcxx"}
# if VERSIOn not set assume 1.0
: ${MCXX_VERSION:="1.99.1-2014-05-21"}
URL="http://nanos.ac.upc.edu/content/mercurium-compiler"
INSTALLER="Christoph Niethammer <niethammer@hlrs.de>"
# Archive A and package name P
A=${MCXX_PACKAGE}-${MCXX_VERSION}.tar.gz
P=${MCXX_PACKAGE}-${MCXX_VERSION%%-*} # remove date suffix starting from the first '-'
# build with debugging symbols (0|1)
enable_debug=${enable_debug:=0}
# fortran support (requires recent sqlite3 dev)
enable_fortran=${enable_fortran:=1}
# Other interesting configure options:
CONFIGURE_OPTS=" \
--enable-ompss \
--with-nanox=$NANOX_HOME \
"
if [ $enable_fortran == 1 ] ; then
echo "Building with Fortran support"
CONFIGURE_OPTS+=" --enable-fortran "
else
CONFIGURE_OPTS+=" --enable-fortran=no "
fi
src_pretest() {
/bin/true
}
#src_install() {
# make DESTDIR=$HOME/destdir2 install
#}