# --- ROCK-COPYRIGHT-NOTE-BEGIN --- # # This copyright note is auto-generated by ./scripts/Create-CopyPatch. # Please add additional copyright information _after_ the line containing # the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by # the ./scripts/Create-CopyPatch script. Do not edit this copyright text! # # ROCK Linux: rock-src/package/x86/icc/icc.conf # ROCK Linux is Copyright (C) 1998 - 2006 Clifford Wolf # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. A copy of the GNU General Public # License can be found at Documentation/COPYING. # # Many people helped and are helping developing ROCK Linux. Please # have a look at https://www.rocklinux.org/ and the Documentation/TEAM # file for details. # # --- ROCK-COPYRIGHT-NOTE-END --- pkg_icc_main() { mkdir -p rpm_files ; cd rpm_files echo "Extracting icc package tar ..." tar xvvf $ROCKCFG_PKG_ICC_FILE_PACKAGE echo mkdir -p opt $root/opt/intel ln -sf $root/opt/intel opt/ for x in *.rpm ; do echo "Extracting $x ..." rpm2cpio $x | cpio -id 2> /dev/null done echo mkdir -p $root/opt/intel/licenses echo "Copying local licence file (will not be packaged) ..." cp $ROCKCFG_PKG_ICC_FILE_LICENSE $root/opt/intel/licenses/rock.lic { echo "Copy your license (*.lic) files to this directory." echo "Sorry - we are not allowed to bundle a license file" echo "in the Intel CC binary package for ROCK Linux." } > $root/opt/intel/licenses/README echo "Creating /opt/intel/{bin,lib} and make final adaptions ..." for x in $( find $root/opt/intel/compiler60/ia??/bin/ -regex \ '.*[ei][cf]p?c$\|.*cfg$\|.*pcl$\|.*vars[^/]*.c?sh$' ) ; do sed -i 's@@/opt/intel@g' $x done ( mkdir -p $root/opt/intel/bin ; cd $root/opt/intel/bin ln -sf ../compiler60/ia32/bin/* . ) ( mkdir -p $root/opt/intel/lib ; cd $root/opt/intel/lib ln -sf ../compiler60/ia32/lib/{*.so,*.so.*} . ) [ $ROCKCFG_DEFAULT_CC = icc ] && ln -sf icc $root/opt/intel/bin/cc [ $ROCKCFG_DEFAULT_CXX = icc ] && ln -sf icc $root/opt/intel/bin/c++ cp $root/opt/intel/compiler60/ia32/lib/libcxa.so* $root/lib/ } mainfunction=pkg_icc_main var_append flist''del '|' "opt/intel/licenses/rock.lic"