mirror of the now-defunct rocklinux.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

64 lines
2.3 KiB

  1. # --- ROCK-COPYRIGHT-NOTE-BEGIN ---
  2. #
  3. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  4. # Please add additional copyright information _after_ the line containing
  5. # the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by
  6. # the ./scripts/Create-CopyPatch script. Do not edit this copyright text!
  7. #
  8. # ROCK Linux: rock-src/package/x86/icc/icc.conf
  9. # ROCK Linux is Copyright (C) 1998 - 2005 Clifford Wolf
  10. #
  11. # This program is free software; you can redistribute it and/or modify
  12. # it under the terms of the GNU General Public License as published by
  13. # the Free Software Foundation; either version 2 of the License, or
  14. # (at your option) any later version. A copy of the GNU General Public
  15. # License can be found at Documentation/COPYING.
  16. #
  17. # Many people helped and are helping developing ROCK Linux. Please
  18. # have a look at http://www.rocklinux.org/ and the Documentation/TEAM
  19. # file for details.
  20. #
  21. # --- ROCK-COPYRIGHT-NOTE-END ---
  22. pkg_icc_main() {
  23. mkdir -p rpm_files ; cd rpm_files
  24. echo "Extracting icc package tar ..."
  25. tar xvvf $ROCKCFG_PKG_ICC_FILE_PACKAGE
  26. echo
  27. mkdir -p opt $root/opt/intel
  28. ln -sf $root/opt/intel opt/
  29. for x in *.rpm ; do
  30. echo "Extracting $x ..."
  31. rpm2cpio $x | cpio -id 2> /dev/null
  32. done
  33. echo
  34. mkdir -p $root/opt/intel/licenses
  35. echo "Copying local licence file (will not be packaged) ..."
  36. cp $ROCKCFG_PKG_ICC_FILE_LICENSE $root/opt/intel/licenses/rock.lic
  37. { echo "Copy your license (*.lic) files to this directory."
  38. echo "Sorry - we are not allowed to bundle a license file"
  39. echo "in the Intel CC binary package for ROCK Linux."
  40. } > $root/opt/intel/licenses/README
  41. echo "Creating /opt/intel/{bin,lib} and make final adaptions ..."
  42. for x in $( find $root/opt/intel/compiler60/ia??/bin/ -regex \
  43. '.*[ei][cf]p?c$\|.*cfg$\|.*pcl$\|.*vars[^/]*.c?sh$' ) ; do
  44. sed -i 's@<INSTALLDIR>@/opt/intel@g' $x
  45. done
  46. ( mkdir -p $root/opt/intel/bin ; cd $root/opt/intel/bin
  47. ln -sf ../compiler60/ia32/bin/* .
  48. )
  49. ( mkdir -p $root/opt/intel/lib ; cd $root/opt/intel/lib
  50. ln -sf ../compiler60/ia32/lib/{*.so,*.so.*} .
  51. )
  52. [ $ROCKCFG_DEFAULT_CC = icc ] && ln -sf icc $root/opt/intel/bin/cc
  53. [ $ROCKCFG_DEFAULT_CXX = icc ] && ln -sf icc $root/opt/intel/bin/c++
  54. cp $root/opt/intel/compiler60/ia32/lib/libcxa.so* $root/lib/
  55. }
  56. mainfunction=pkg_icc_main
  57. var_append flist''del '|' "opt/intel/licenses/rock.lic"