diff --git a/packages/compiler/mcxx/mcxx-any b/packages/compiler/mcxx/mcxx-any new file mode 100755 index 0000000..f3c8cbf --- /dev/null +++ b/packages/compiler/mcxx/mcxx-any @@ -0,0 +1,58 @@ +#!/bin/sh +# sit class file +# +# Christoph Niethammer (C) 2013 +# Jose Gracia + +# 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 " + +# 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 +} \ No newline at end of file