49 lines
1.3 KiB
Text
49 lines
1.3 KiB
Text
|
#!/bin/sh
|
||
|
# sit class file
|
||
|
#
|
||
|
# Christoph Niethammer <niethammer@hlrs.de> (C) 2013
|
||
|
# Jose Gracia <gracia@hlrs.de>
|
||
|
|
||
|
# libs/nanos6 and compiler/mcxx **together** form the package compiler/ompss2
|
||
|
#
|
||
|
|
||
|
# install instructions:
|
||
|
# * set user-visible package version to ompss-2 release version
|
||
|
# e.g. OMPSS2_VERSION=2022.11
|
||
|
|
||
|
# * install libs/nanos6/nanos6-from-ompss2-release (see there)
|
||
|
# and set NANOS6_HOME pointing to it
|
||
|
# * install compilers/mcxx with:
|
||
|
# VERSION=$OMPSS2_VERSION
|
||
|
# COMPILER=gnu COMPILER_VERSION=xx
|
||
|
# PREFIX_BASE=$YOUR_PREFIX_BASE NANOX_HOME=$NANOX_HOME ./sit compiler/mcxx/mcxx-from-ompss2-release
|
||
|
|
||
|
: ${CATEGORY:="compiler"}
|
||
|
: ${PACKAGE:="ompss2"}
|
||
|
: ${TAR_PACKAGE:="ompss-2"}
|
||
|
# if VERSIOn not set assume one
|
||
|
: ${VERSION:="2022.11"}
|
||
|
|
||
|
URL="https://pm.bsc.es/ompss-2"
|
||
|
INSTALLER="Jose Gracia <gracia@hlrs.de>"
|
||
|
|
||
|
# Archive A and package name P
|
||
|
A=${TAR_PACKAGE}-${VERSION}.tar.gz
|
||
|
P=${TAR_PACKAGE}-${VERSION%%-*} # remove date suffix starting from first '-'
|
||
|
|
||
|
# build with debugging symbols (0|1)
|
||
|
enable_debug=${enable_debug:=0}
|
||
|
|
||
|
# Other interesting configure options:
|
||
|
CONFIGURE_OPTS=" \
|
||
|
--enable-ompss-2 \
|
||
|
--with-nanos6=$NANOS6_HOME \
|
||
|
--disable-static "
|
||
|
|
||
|
src_unpack() {
|
||
|
unpack
|
||
|
# SRCDIR=$SRCDIR/mcxx-2.3.0
|
||
|
# echo "Redefinig SRCDIR: " $SRCDIR
|
||
|
mv $SRCDIR/mcxx-*/* $SRCDIR/
|
||
|
}
|