summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD1246
1 files changed, 574 insertions, 672 deletions
diff --git a/PKGBUILD b/PKGBUILD
index f90cf45e99e..698b9880938 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
# Maintainer: Ignat Harczuk: ignathe -at- gmail com
# Previous Maintainer: Mark Wells: mwellsa -at- gmail com
# Contributor: simone riva: siomone.rva -a- gmail com
-# Intel Parallel Studio XE 2016 for Linux - ( Intel compiler icc suite )
+# Intel Parallel Studio XE 2017 for Linux - ( Intel compiler icc suite )
##########################################################################
# this PKGBUILD splits the main Parallel Studio XE package in 9 sub-packages:
#
@@ -16,26 +16,26 @@
# intel-inspector: Intel Inspector
###########################################################################
-# Parallel Studio XE
-# Copyright (C) 2016 Ignat Harczuk
-#
-# 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 3 of the License, or
-# (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
+# Parallel Studio XE
+# Copyright (C) 2016 Ignat Harczuk
+#
+# 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 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
pkgbase="intel-parallel-studio-xe"
pkgname=('intel-compiler-base' 'intel-fortran-compiler' 'intel-ipp' 'intel-mkl' 'intel-mpi' 'intel-tbb_psxe' 'intel-vtune-amplifier-xe' 'intel-inspector' 'intel-advisor' )
-PKGEXT='.pkg.tar.gz'
-packager="Ignat Harczuk <ignathe@gmail.com>"
+PKGEXT='.pkg.tar.lzo'
+packager="Alexander Phinikarides"
########################################
#OPTIONS begin
@@ -53,31 +53,27 @@ _remove_static_objects_ipp=false
_year='2017'
_v_a='1'
-_v_b='132'
+_v_b='132'
# year, version a and version b found in /opt/intel/compilers_and_libraries_YEAR_A_B
_update='1'
-pkgrel=1
+pkgrel=2
#http://registrationcenter-download.intel.com/akdlm/irc_nas/9651/parallel_studio_xe_2017_update1.tgz
_sp=''
_icc_ver='17.0.1' # intel-ccompxe-${_v_b}-${_icc_ver}.noarch.rpm
-#_openmp_ver='16.0.1' # intel-openmp-${_v_b}-${_openmp_ver}.${arch}.rpm
-# omp was merged together with the icc compiler
# _ipp_ver='9.0.3' # intel-ipp-ac-${_v_b}-${_ipp_ver}.${arch}.rpm
# ipp ver not seen in rpm's
_mpi_ver='5.1.3' # intel-mpi-${_v_b}-${_ipp_ver}.${arch}.rpm
-# mpi ver not needed
+# mpi ver not needed
_mkl_ver="11.3.3" # intel-mkl-cluster-${_v_b}-${_mkl_ver}.${arch}.rpm
_tbb_ver='4.4.3' # intel-tbb-${_v_b_}-${_tbb_ver}.noarch.rpm
-#_gdb_ver='7.8.0' # intel-gdb-${_gdb_ver}-${_v_b}.x86_64.rpm
-#_gdb_gt_ver='7.6.0' # intel-gdb-gt-${_gdb_gt_ver}-{_v_b}.x86_64.rpm
_vtune_ver='17.1.486011' # intel-vtune-amplifier-xe-${year}-*-${_vtune_ver}.${arch}.rpm
_inspector_ver='17.1.484836' # intel-inspector-${year}-*-${_inspector_ver}.${arch}.rpm
_advisor_ver='17.1.486553' # intel-advisor-${year}-*-${_advisor_ver}.${arch}.rpm
@@ -88,7 +84,6 @@ _inspector_man_ver='1.1.484836'
_advisor_man_ver='1.1.486553'
-
pkgver=${_year}.${_icc_ver}.${_v_a}.${_v_b}
_dir_nr='10973'
@@ -103,62 +98,59 @@ makedepends=('libarchive' 'sed' 'gzip')
_parallel_studio_xe_dir="parallel_studio_xe${_year:+_${_year}}${_sp:+_${_sp}}${_update:+_update${_update}}"
source=(
- "http://registrationcenter-download.intel.com/akdlm/irc_nas/${_dir_nr}/${_parallel_studio_xe_dir}.tgz"
- 'intel_compilers.sh'
- 'intel_vtune-amplifier-xe.sh'
- 'intel_advisor.sh'
- 'intel_inspector.sh'
- 'intel-composer.install'
- 'intel-compiler-base.conf'
- 'intel-fortran.conf'
- #'intel-gdb.conf'
- 'intel-openmp.conf'
- 'intel-mkl.conf'
- 'intel-mpi.conf'
- 'intel-ipp.conf'
- 'intel-tbb.conf'
- 'intel-mkl.sh'
- 'intel-mkl.install'
- 'intel-mkl-th.conf'
- 'intel-tbb.install'
- 'EULA.txt'
- )
-
-
-sha256sums=(
- 'c808be744c98f7471c61258144859e8e8fc92771934281a16135803e941fd9b0' # parallel_studio_xe_2017_update1.tgz
- '75fcdfc246949341afddcf51b2037f606f25612a04c199ac1a743247aa7c4ea5' # intel_compilers.sh
- '35c06af80885c3a49501652c24939df3bd073afbb19d3635928439d25a9e2bea' # intel_vtune-amplifier-xe.sh
- '11b2bd13666145592448d3ba2519dfb8c8f3e62787045ff0b83c2556059c675f' # intel_advisor.sh
- '49802a3eafe5d005de6f067a3b957a904723028990f636e22cf06f771b94d082' # intel_inspector.sh
- '3f96dec03111e69d16bb363acf4d0570e8a9526c09e5e542a7558f1b26d043ef' # intel-composer.install
- '31ac4d0f30a93fe6393f48cb13761d7d1ce9719708c76a377193d96416bed884' # intel-compiler-base.conf
- 'c165386ba33b25453d4f5486b7fefcdba7d31e156ad280cbdfa13ed924b01bef' # intel-fortran.conf
- '99cc9683cc75934cc21bb5a09f6ad83365ee48712719bfd914de9444695eed13' # intel-openmp.conf
- 'a856326362e9b80c19dc237cbf66bf3d96a69bd7ad1baff99ec9849f8208348c' # intel-mkl.conf
- 'f32ad4fbaaab40001dc7a8b5cf06dcb9f1ec3cdf210eda3ea649fa15fbf4a93d' # intel-mpi.conf
- 'da6f41c2e002c9a793c75a18c8d1c85ef7ef5bf83a7a0a158ff144481491aac8' # intel-ipp.conf
- 'aee2ae7f87f12f4af38d52423b40d547fd5bbe77e18694b9847e9f2a96d33c6e' # intel-tbb.conf
- '5e68c529c65cac54218026c869e54b2ddb268179725fc1e6b56d920470dad999' # intel-mkl.sh
- '11398c0ae2e2011902b1d6356d916d41bb8b54d39d090c6c83630f4b0e84e93a' # intel-mkl.install
- 'e515cb28bf40cdb0db818db6a2688a0028575153a1b9d5acfb0bc5f13fe45722' # intel-mkl-th.conf
- '8c6a1f7b1b12d498e68b3085d8b2fcd050505209b7c0f2b870ba5f65ee135a90' # intel-tbb.install
- '228ac25e147adb9b872e1a562e522d2fd48809ccae89b765112009896a6d55a5' # EULA.txt
- )
+ "http://registrationcenter-download.intel.com/akdlm/irc_nas/${_dir_nr}/${_parallel_studio_xe_dir}.tgz"
+ 'intel_compilers.sh'
+ 'intel_vtune-amplifier-xe.sh'
+ 'intel_advisor.sh'
+ 'intel_inspector.sh'
+ 'intel-composer.install'
+ 'intel-compiler-base.conf'
+ 'intel-fortran.conf'
+ 'intel-openmp.conf'
+ 'intel-mkl.conf'
+ 'intel-mpi.conf'
+ 'intel-ipp.conf'
+ 'intel-tbb.conf'
+ 'intel-mkl.sh'
+ 'intel-mkl.install'
+ 'intel-mkl-th.conf'
+ 'intel-tbb.install'
+ 'EULA.txt'
+)
+
+
+sha256sums=('c808be744c98f7471c61258144859e8e8fc92771934281a16135803e941fd9b0'
+ '75fcdfc246949341afddcf51b2037f606f25612a04c199ac1a743247aa7c4ea5'
+ '278f9545d14c1fbec737bbfbcafb1b9090d35aab0dfeddc99d4c6e296b56057b'
+ 'e3103fb1c5e2ec9f0cc4090abb7e273563e735d88e185f527c66b2aebd52e733'
+ '3978b721722db7e3127828caf00e6e98539724daffd0a0bdaa287b27bc61b97a'
+ '3f96dec03111e69d16bb363acf4d0570e8a9526c09e5e542a7558f1b26d043ef'
+ '31ac4d0f30a93fe6393f48cb13761d7d1ce9719708c76a377193d96416bed884'
+ '6151bc273b6f741a4ce93d8160b6f167c8ad499dbc6e8e3f6e08d48571d6a52a'
+ '99cc9683cc75934cc21bb5a09f6ad83365ee48712719bfd914de9444695eed13'
+ 'a856326362e9b80c19dc237cbf66bf3d96a69bd7ad1baff99ec9849f8208348c'
+ 'ed02ea4a0ebc9c32b53155bc5e442c46257f8185ae17833be0b975558bbc951a'
+ 'da6f41c2e002c9a793c75a18c8d1c85ef7ef5bf83a7a0a158ff144481491aac8'
+ '5d3ac1ba31d7fc5795821d95b17956b0c977c8f3576b02f664f8ebf476213a43'
+ '5e68c529c65cac54218026c869e54b2ddb268179725fc1e6b56d920470dad999'
+ '11398c0ae2e2011902b1d6356d916d41bb8b54d39d090c6c83630f4b0e84e93a'
+ 'e515cb28bf40cdb0db818db6a2688a0028575153a1b9d5acfb0bc5f13fe45722'
+ 'fde83eb0071a5bd2887de127b56cc573a254e30131ec7b2d956987512c3e90c2'
+ '228ac25e147adb9b872e1a562e522d2fd48809ccae89b765112009896a6d55a5')
#_archive=l_ccompxe${_comp}_p_${pkgver}
if [ "$CARCH" = "i686" ]; then
- _i_arch='ia32'
- _i_arch2='i486'
+ _i_arch='ia32'
+ _i_arch2='i486'
- _not_arch='intel64'
- _not_arch2='x86_64'
+ _not_arch='intel64'
+ _not_arch2='x86_64'
else
- _i_arch='intel64'
- _i_arch2='x86_64'
+ _i_arch='intel64'
+ _i_arch2='x86_64'
- _not_arch='ia32'
- _not_arch2='i486'
+ _not_arch='ia32'
+ _not_arch2='i486'
fi
@@ -166,7 +158,7 @@ extract_rpms() {
cd $2
for rpm_file in ${rpm_dir}/$1 ; do
echo -e " Extracting: ${rpm_file}"
- bsdtar -xf ${rpm_file}
+ bsdtar -xf ${rpm_file}
done
}
@@ -182,731 +174,641 @@ set_build_vars() {
build() {
- set_build_vars
- echo ${xe_build_dir}
+ set_build_vars
+ echo ${xe_build_dir}
- # clean the builds dirs
- if [ -d ${srcdir}/opt ] ; then
- rm -rf ${srcdir}/opt
- fi
+ # clean the builds dirs
+ if [ -d ${srcdir}/opt ] ; then
+ rm -rf ${srcdir}/opt
+ fi
- if [ -d ${srcdir}/etc ] ; then
- rm -rf ${srcdir}/etc
- fi
+ if [ -d ${srcdir}/etc ] ; then
+ rm -rf ${srcdir}/etc
+ fi
- if [ -d ${srcdir}/usr ] ; then
- rm -rf ${srcdir}/usr
- fi
-
- if [ -d ${xe_build_dir} ] ; then
- rm -rf ${xe_build_dir}
- fi
+ if [ -d ${srcdir}/usr ] ; then
+ rm -rf ${srcdir}/usr
+ fi
- echo ${srcdir}
+ if [ -d ${xe_build_dir} ] ; then
+ rm -rf ${xe_build_dir}
+ fi
- mkdir -p ${xe_build_dir}
+ echo ${srcdir}
- # START !
- cd ${xe_build_dir}
- mkdir -p ${xe_build_dir}/etc/profile.d
+ mkdir -p ${xe_build_dir}
- if [ "$CARCH" = "i686" ]; then
- sed 's/<arch>/ia32/' < ${srcdir}/intel_compilers.sh > ${xe_build_dir}/etc/profile.d/intel_compilers.sh
- else
- sed 's/<arch>/intel64/' < ${srcdir}/intel_compilers.sh > ${xe_build_dir}/etc/profile.d/intel_compilers.sh
- fi
+ # START !
+ cd ${xe_build_dir}
+ mkdir -p ${xe_build_dir}/etc/profile.d
- #sed -i 's/<tbb_arch>/cc4\.1\.0_libc2\.4_kernel2\.6\.16\.21/' ${xe_build_dir}/etc/profile.d/intel_compilers.sh
+ if [ "$CARCH" = "i686" ]; then
+ sed 's/<arch>/ia32/' < ${srcdir}/intel_compilers.sh > ${xe_build_dir}/etc/profile.d/intel_compilers.sh
+ else
+ sed 's/<arch>/intel64/' < ${srcdir}/intel_compilers.sh > ${xe_build_dir}/etc/profile.d/intel_compilers.sh
+ fi
- chmod a+x ${xe_build_dir}/etc/profile.d/intel_compilers.sh
+ chmod a+x ${xe_build_dir}/etc/profile.d/intel_compilers.sh
- mkdir -p ${xe_build_dir}/etc/ld.so.conf.d
+ mkdir -p ${xe_build_dir}/etc/ld.so.conf.d
- _cnt=0
- for files in ${base_dir}/*.lic ; do
- _lic_file[_cnt]=${files}
- _cnt=$(($_cnt+1))
- done
+ _cnt=0
+ for files in ${base_dir}/*.lic ; do
+ _lic_file[_cnt]=${files}
+ _cnt=$(($_cnt+1))
+ done
+ echo -e ""
+ echo -e "-----------------------------------------------------------------------------------"
+ mkdir -p ${xe_build_dir}/opt/intel/licenses
+ if [ -f "${_lic_file[0]}" ]; then
+ cp ${base_dir}/*.lic ${xe_build_dir}/opt/intel/licenses
+ echo -e "\e[1mFound license files in ${base_dir}."
+ echo -e "These will be installed into /opt/intel/licenses ...\e[0m"
+ else
+ echo -e "\e[1mNo license files found in ${base_dir}."
+ echo -e "Remember to place license files in one of these locations:"
+ echo -e " /opt/intel/licenses"
+ echo -e " ~/intel/licenses"
+ echo -e "Or the compiler will not work!\e[0m"
+ fi
+ echo -e "-----------------------------------------------------------------------------------"
+ echo -e ""
+
+ cp ${srcdir}/${_parallel_studio_xe_dir}/license.txt ${xe_build_dir}/opt/intel/license.txt
+
+ echo -e ""
+ echo -e "-----------------------------------------------------------------------------------"
+ echo -e "\e[1mIMPORTANT - READ BEFORE COPYING, INSTALLING, OR USING.\e[0m"
+ echo -e ""
+ echo -e "Do not copy, install, or use the \"Materials\" provided under this license agreement (\"Agreement\"), until you"
+ echo -e "have carefully read the following terms and conditions."
+ echo -e ""
+ echo -e "By copying, installing, or otherwise using the Materials, you agree to be bound by the terms of this"
+ echo -e "Agreement. If you do not agree to the terms of this Agreement, do not copy, install, or use the Materials."
+ echo -e " - A copy of the EULA has been copied in the PKGBUILD directory; plase read carefully the terms and "
+ echo -e " - conditions of the Intel license before installing the packages. "
+ echo -e "-----------------------------------------------------------------------------------"
+ echo -e ""
+ echo -e "-----------------------------------------------------------------------------------"
+ echo -e " ATTENTION: This PKGBUILD may need up to 20 minutes if you use XZ as a compressor!"
+ echo -e " - The build of the packages: intel-mkl and intel-ipp is particularly slow - "
+ echo -e "-----------------------------------------------------------------------------------"
+ echo -e ""
+ echo -e ""
+ echo -e "-----------------------------------------------------------------------------------"
+ echo -e " \e[1m\e[5mATTENTION: \e[0m \e[1m\e[31mThis PKGBUILD works with yaourt, "
+ echo -e "but consumes a lot of RAM! \e[0m "
+ echo -e " Using the makepkg command for building this package is recommended."
+ echo -e "-----------------------------------------------------------------------------------"
+ echo -e ""
+ echo -e ""
+ echo -e "-----------------------------------------------------------------------------------"
+ echo -e "\e[1m #################### \e[0m"
+ echo -e "\e[1m ##### Options: ##### \e[0m"
+ if ${_remove_docs} ; then
+ echo -e " Remove Documentation: YES "
+ else
+ echo -e " Remove Documentation: NO "
+ fi
+
+ if ${_remove_static_objects_mkl} ; then
echo -e ""
- echo -e "-----------------------------------------------------------------------------------"
- mkdir -p ${xe_build_dir}/opt/intel/licenses
- if [ -f "${_lic_file[0]}" ]; then
- cp ${base_dir}/*.lic ${xe_build_dir}/opt/intel/licenses
- echo -e "\e[1mFound license files in ${base_dir}."
- echo -e "These will be installed into /opt/intel/licenses ...\e[0m"
- else
- echo -e "\e[1mNo license files found in ${base_dir}."
- echo -e "Remember to place license files in one of these locations:"
- echo -e " /opt/intel/licenses"
- echo -e " ~/intel/licenses"
- echo -e "Or the compiler will not work!\e[0m"
- fi
- echo -e "-----------------------------------------------------------------------------------"
+ echo -e "\e[1m Remove Static Objects from MKL: YES \e[0m \e[1m\e[5m\e[31m ATTENTION !!!! \e[0m "
+ echo -e "\e[1m If your software is based on the static objects edit the option at the line 50 of this PKGBUILD \e[0m "
+ else
+ echo -e " Remove Static Objects: NO "
+ fi
+ echo -e "-----------------------------------------------------------------------------------"
+ echo -e ""
+ if ${_remove_static_objects_ipp} ; then
echo -e ""
-
- cp ${srcdir}/${_parallel_studio_xe_dir}/license.txt ${xe_build_dir}/opt/intel/license.txt
-
- echo -e ""
- echo -e "-----------------------------------------------------------------------------------"
- echo -e "\e[1mIMPORTANT - READ BEFORE COPYING, INSTALLING, OR USING.\e[0m"
- echo -e ""
- echo -e "Do not copy, install, or use the \"Materials\" provided under this license agreement (\"Agreement\"), until you"
- echo -e "have carefully read the following terms and conditions."
- echo -e ""
- echo -e "By copying, installing, or otherwise using the Materials, you agree to be bound by the terms of this"
- echo -e "Agreement. If you do not agree to the terms of this Agreement, do not copy, install, or use the Materials."
- echo -e " - A copy of the EULA has been copied in the PKGBUILD directory; plase read carefully the terms and "
- echo -e " - conditions of the Intel license before installing the packages. "
- echo -e "-----------------------------------------------------------------------------------"
- echo -e ""
- echo -e "-----------------------------------------------------------------------------------"
- echo -e " ATTENTION: This PKGBUILD may need up to 20 minutes if you use XZ as a compressor!"
- echo -e " - The build of the packages: intel-mkl and intel-ipp is particularly slow - "
- echo -e "-----------------------------------------------------------------------------------"
- echo -e ""
- echo -e ""
- echo -e "-----------------------------------------------------------------------------------"
- echo -e " \e[1m\e[5mATTENTION: \e[0m \e[1m\e[31mThis PKGBUILD works with yaourt, "
- echo -e "but consumes a lot of RAM! \e[0m "
- echo -e " Using the makepkg command for building this package is recommended."
- echo -e "-----------------------------------------------------------------------------------"
- echo -e ""
- echo -e ""
- echo -e "-----------------------------------------------------------------------------------"
- echo -e "\e[1m #################### \e[0m"
- echo -e "\e[1m ##### Options: ##### \e[0m"
- if ${_remove_docs} ; then
- echo -e " Remove Documentation: YES "
- else
- echo -e " Remove Documentation: NO "
- fi
-
- if ${_remove_static_objects_mkl} ; then
- echo -e ""
- echo -e "\e[1m Remove Static Objects from MKL: YES \e[0m \e[1m\e[5m\e[31m ATTENTION !!!! \e[0m "
- echo -e "\e[1m If your software is based on the static objects edit the option at the line 50 of this PKGBUILD \e[0m "
- else
- echo -e " Remove Static Objects: NO "
- fi
- echo -e "-----------------------------------------------------------------------------------"
- echo -e ""
- if ${_remove_static_objects_ipp} ; then
- echo -e ""
- echo -e "\e[1m Remove Static Objects from IPP: YES \e[0m \e[1m\e[5m\e[31m ATTENTION !!!! \e[0m "
- echo -e "\e[1m If your software is based on the static objects edit the option at the line 50 of this PKGBUILD \e[0m "
- else
- echo -e " Remove Static Objects: NO "
- fi
- echo -e "-----------------------------------------------------------------------------------"
- echo -e ""
- echo -e ""
-
-
- cd ${xe_build_dir}/opt/intel
- ln -s ./${_composer_xe_dir} composerxe
-
- ln -s ./composerxe/linux/bin/${_i_arch} bin
- ln -s ./composerxe/linux/pkg_bin pkg_bin
-
- ln -s ./composerxe/linux/ipp/ ipp
- ln -s ./composerxe/linux/compiler/lib/${_i_arch} lib
- ln -s ./composerxe/linux/debugger/lib/${_i_arch} debugger_lib
- ln -s ./composerxe/linux/man/ man
- ln -s ./composerxe/linux/mkl/ mkl
- ln -s ./composerxe/linux/tbb/ tbb
-
- _current_dir=`pwd`
- if [ -d ${pkgdir}/opt ] ; then
- cd ${pkgdir}
- rm -rf opt
- cd $_current_dir
- fi ;
-
- cd ${srcdir}/${_parallel_studio_xe_dir}/rpm
- rm -v -f *.${_not_arch2}.rpm
- cd $_current_dir
+ echo -e "\e[1m Remove Static Objects from IPP: YES \e[0m \e[1m\e[5m\e[31m ATTENTION !!!! \e[0m "
+ echo -e "\e[1m If your software is based on the static objects edit the option at the line 50 of this PKGBUILD \e[0m "
+ else
+ echo -e " Remove Static Objects: NO "
+ fi
+ echo -e "-----------------------------------------------------------------------------------"
+ echo -e ""
+ echo -e ""
+
+
+ cd ${xe_build_dir}/opt/intel
+ ln -s ./${_composer_xe_dir} composerxe
+
+ ln -s ./composerxe/linux/bin/${_i_arch} bin
+ ln -s ./composerxe/linux/pkg_bin pkg_bin
+
+ ln -s ./composerxe/linux/ipp/ ipp
+ ln -s ./composerxe/linux/compiler/lib/${_i_arch} lib
+ # ln -s ./composerxe/linux/debugger/lib/${_i_arch} debugger_lib
+ # ln -s ./composerxe/linux/man/ man
+ ln -s ./composerxe/linux/mkl/ mkl
+ ln -s ./composerxe/linux/tbb/ tbb
+
+ _current_dir=`pwd`
+ if [ -d ${pkgdir}/opt ] ; then
+ cd ${pkgdir}
+ rm -rf opt
+ cd $_current_dir
+ fi ;
+
+ cd ${srcdir}/${_parallel_studio_xe_dir}/rpm
+ rm -v -f *.${_not_arch2}.rpm
+ cd $_current_dir
}
package_intel-compiler-base() {
- set_build_vars
+ set_build_vars
- pkgdesc="Intel C/C++ $_icc_ver"
- pkgver=${_pkg_ver}
- install=intel-composer.install
-
- echo -e " # intel_compiler-base: Start Building"
+ pkgdesc="Intel C/C++ $_icc_ver"
+ pkgver=${_pkg_ver}
+ install=intel-composer.install
- mkdir -p ${xe_build_dir}/opt
- mkdir -p ${xe_build_dir}/etc/profile.d
- mkdir -p ${_man_dir}
+ echo -e " # intel_compiler-base: Start Building"
+ mkdir -p ${xe_build_dir}/opt
+ mkdir -p ${xe_build_dir}/etc/profile.d
+ mkdir -p ${_man_dir}
- cp ${srcdir}/intel-compiler-base.conf ${xe_build_dir}/etc/ld.so.conf.d
- cd ${xe_build_dir}
- echo -e " # intel_compiler-base: Extracting RPMS"
-
+ cp ${srcdir}/intel-compiler-base.conf ${xe_build_dir}/etc/ld.so.conf.d
- extract_rpms 'intel-icc*.rpm' $xe_build_dir
- extract_rpms 'intel-comp*.rpm' $xe_build_dir
- extract_rpms 'intel-ccomp*.rpm' $xe_build_dir
- extract_rpms 'intel-openmp*.rpm' $xe_build_dir
+ cd ${xe_build_dir}
+ echo -e " # intel_compiler-base: Extracting RPMS"
- echo -e " # intel_compiler-base: Editing variables"
- cd ${xe_build_dir}/opt/intel/${_composer_xe_dir}/linux/bin
+ extract_rpms 'intel-icc*.rpm' $xe_build_dir
+ extract_rpms 'intel-comp*.rpm' $xe_build_dir
+ extract_rpms 'intel-ccomp*.rpm' $xe_build_dir
+ extract_rpms 'intel-openmp*.rpm' $xe_build_dir
- #rm uninstall.sh
- rm *.csh
- for f in *.sh ; do
- sed -i 's/<PRODDIR>/\/opt\/intel/g' $f
- sed -i 's/<INSTALLDIR>/\/opt\/intel\/composerxe\/linux/g' $f
- done
+ echo -e " # intel_compiler-base: Editing variables"
+ cd ${xe_build_dir}/opt/intel/${_composer_xe_dir}/linux/bin
- cd $_i_arch
- sed -i 's/<INSTALLDIR>/\/opt\/intel\/composerxe\/linux/g' loopprofileviewer.sh
- chmod a+x loopprofileviewer.sh
- rm loopprofileviewer.csh
+ #rm uninstall.sh
+ rm *.csh
- if $_remove_docs ; then
- echo -e " # intel_compiler-base: Remove docs"
- rm -rf ${xe_build_dir}/opt/intel/${_composer_xe_dir}/linux/documentation
- rm -rf ${xe_build_dir}/opt/intel/${_composer_xe_dir}/linux/Documentation
- rm -rf ${xe_build_dir}/opt/intel/${_composer_xe_dir}/linux/Samples
- fi
+ for f in *.sh ; do
+ sed -i 's/<PRODDIR>/\/opt\/intel/g' $f
+ sed -i 's/<INSTALLDIR>/\/opt\/intel\/composerxe\/linux/g' $f
+ done
- echo -e " # intel_compiler-base: Coping man pages"
- mv ${xe_build_dir}/opt/intel/documentation_${_year}/en/man/common/man1/*.1 ${_man_dir}
+ cd $_i_arch
+ sed -i 's/<INSTALLDIR>/\/opt\/intel\/composerxe\/linux/g' loopprofileviewer.sh
+ chmod a+x loopprofileviewer.sh
+ rm loopprofileviewer.csh
- cd ${_man_dir}
- for f in *.1 ; do
- gzip $f
- done
+ if $_remove_docs ; then
+ echo -e " # intel_compiler-base: Remove docs"
+ rm -rf ${xe_build_dir}/opt/intel/${_composer_xe_dir}/linux/documentation
+ rm -rf ${xe_build_dir}/opt/intel/${_composer_xe_dir}/linux/Documentation
+ rm -rf ${xe_build_dir}/opt/intel/${_composer_xe_dir}/linux/Samples
+ fi
- cd ${xe_build_dir}
+ echo -e " # intel_compiler-base: Coping man pages"
+ mv ${xe_build_dir}/opt/intel/documentation_${_year}/en/man/common/man1/*.1 ${_man_dir}
- echo -e " # intel_compiler-base: Move package"
- mv ${xe_build_dir}/opt ${pkgdir}
- mv ${xe_build_dir}/etc ${pkgdir}
- mv ${xe_build_dir}/usr ${pkgdir}
-}
+ cd ${_man_dir}
+ for f in *.1 ; do
+ gzip $f
+ done
-#package_intel-openmp() {
-#
-# set_build_vars
-#
-# pkgdesc="Intel OpenMP Library"
-# pkgver=${_year}.${_openmp_ver}.${_v_b}
-# depends=('intel-compiler-base')
-# install=intel-composer.install
-#
-# echo -e " # intel-openmp: Start Building"
-#
-# mkdir -p ${xe_build_dir}/opt
-# mkdir -p ${xe_build_dir}/etc/ld.so.conf.d
-#
-# cp ${srcdir}/intel-openmp.conf ${xe_build_dir}/etc/ld.so.conf.d
-#
-# cd ${xe_build_dir}
-# echo -e " # intel_openmp: Extracting RPMS"
-#
-# extract_rpms 'intel-openmp*.rpm' $xe_build_dir
-#
-# echo -e " # intel_openmp: Move package"
-# mv ${xe_build_dir}/opt ${pkgdir}
-# mv ${xe_build_dir}/etc ${pkgdir}
-#}
+ cd ${xe_build_dir}
+
+ echo -e " # intel_compiler-base: Move package"
+ mv ${xe_build_dir}/opt ${pkgdir}
+ mv ${xe_build_dir}/etc ${pkgdir}
+ mv ${xe_build_dir}/usr ${pkgdir}
+}
package_intel-fortran-compiler() {
- set_build_vars
-
- pkgdesc="Intel Fortran compiler $_icc_ver"
- pkgver=${_pkg_ver}
- depends=('intel-compiler-base')
- install=intel-composer.install
-
- echo -e " # intel-fortran-compiler: Start Building"
-
- mkdir -p ${xe_build_dir}/opt
- mkdir -p ${xe_build_dir}/etc/profile.d
- mkdir -p ${xe_build_dir}/etc/ld.so.conf.d
- mkdir -p ${_man_dir}
-
- if [ "$CARCH" = "i686" ]; then
- sed 's/<arch>/ia32/' < ${srcdir}/intel-fortran.conf > ${xe_build_dir}/etc/ld.so.conf.d/intel-fortran.conf
- else
- sed 's/<arch>/intel64/' < ${srcdir}/intel-fortran.conf > ${xe_build_dir}/etc/ld.so.conf.d/intel-fortran.conf
- fi
-
- cd ${xe_build_dir}
-
- echo -e " # intel-fortran-compiler: Extracting RPMS"
-
- extract_rpms 'intel-ifort*.rpm' $xe_build_dir
-
- echo -e " # intel-fortran-compiler: Editing variables"
- cd ${xe_build_dir}/opt/intel/${_composer_xe_dir}/linux/bin
-
- rm *.csh
-
- #Remove duplicate logo and .css found in intel base
- rm ${xe_build_dir}/opt/intel/documentation_${_year}/en/compiler_f/ps${_year}/resources/intel_gsp_styles.css
- rm ${xe_build_dir}/opt/intel/documentation_${_year}/en/compiler_f/ps${_year}/resources/intel_logo.png
-
- if $_remove_docs ; then
- echo -e " # intel-fortran-compiler: Remove documentation"
- rm -rf ${xe_build_dir}/opt/intel/${_composer_xe_dir}/linux/documentation
- rm -rf ${xe_build_dir}/opt/intel/${_composer_xe_dir}/linux/Documentation
- rm -rf ${xe_build_dir}/opt/intel/${_composer_xe_dir}/linux/Samples
- fi
-
- echo -e " # intel-fortran-compiler: Coping man pages"
- mv ${xe_build_dir}/opt/intel/documentation_${_year}/en/man/common/man1/*.1 ${_man_dir}
-
- cd ${_man_dir}
- for f in *.1 ; do
- gzip $f
- done
-
- cd ${xe_build_dir}
-
- echo -e " # intel-fortran-compiler: Move package"
- mv ${xe_build_dir}/opt ${pkgdir}
- mv ${xe_build_dir}/etc ${pkgdir}
- mv ${xe_build_dir}/usr ${pkgdir}
-}
+ set_build_vars
-package_intel-gdb() {
+ pkgdesc="Intel Fortran compiler $_icc_ver"
+ pkgver=${_pkg_ver}
+ depends=('intel-compiler-base')
+ install=intel-composer.install
- set_build_vars
+ echo -e " # intel-fortran-compiler: Start Building"
- pkgdesc="Intel C/C++ debugger"
- pkgver=${_pkg_ver}
- depends=('intel-compiler-base')
- replaces=('intel-idb')
-
- install=intel-composer.install
- echo -e " # intel-idb: Start Building"
+ mkdir -p ${xe_build_dir}/opt
+ mkdir -p ${xe_build_dir}/etc/profile.d
+ mkdir -p ${xe_build_dir}/etc/ld.so.conf.d
+ mkdir -p ${_man_dir}
- mkdir -p ${xe_build_dir}/opt
- mkdir -p ${xe_build_dir}/etc/ld.so.conf.d
- mkdir -p ${_man_dir}
+ if [ "$CARCH" = "i686" ]; then
+ sed 's/<arch>/ia32/' < ${srcdir}/intel-fortran.conf > ${xe_build_dir}/etc/ld.so.conf.d/intel-fortran.conf
+ else
+ sed 's/<arch>/intel64/' < ${srcdir}/intel-fortran.conf > ${xe_build_dir}/etc/ld.so.conf.d/intel-fortran.conf
+ fi
- if [ "$CARCH" = "i686" ]; then
- sed 's/<arch>/ia32/' < ${srcdir}/intel-gdb.conf > ${xe_build_dir}/etc/ld.so.conf.d/intel-gdb.conf
- else
- sed 's/<arch>/intel64/' < ${srcdir}/intel-gdb.conf > ${xe_build_dir}/etc/ld.so.conf.d/intel-gdb.conf
- fi
+ cd ${xe_build_dir}
- cd ${xe_build_dir}
-
- echo -e " # intel-gdb: Extracting RPS"
- extract_rpms 'intel-gdb*.rpm' $xe_build_dir
+ echo -e " # intel-fortran-compiler: Extracting RPMS"
- echo -e " # intel-gdb: Editing variables"
- cd ${xe_build_dir}/opt/intel/${_composer_xe_dir}/linux/debugger_lib
- rm debuggervars.csh
- sed -i 's/<INSTALLDIR>/\/opt\/intel\/composerxe\/linux/g' debuggervars.sh
+ extract_rpms 'intel-ifort*.rpm' $xe_build_dir
- #cd $_i_arch
- #rm debuggervars.csh
- #sed -i 's/<INSTALLDIR>/\/opt\/intel\/composerxe/g' debuggervars.sh
- #sed -i 's/<INSTALLDIR>/\/opt\/intel\/composerxe/g' gdb
- #sed -i 's/<INSTALLDIR>/\/opt\/intel\/composerxe/g' gdbc
+ echo -e " # intel-fortran-compiler: Editing variables"
+ cd ${xe_build_dir}/opt/intel/${_composer_xe_dir}/linux/bin
- if $_remove_docs ; then
- echo -e " # intel-gdb: Remove documentation"
- rm -rf ${xe_build_dir}/opt/intel/${_composer_xe_dir}/linux/Documentation
- fi
+ rm *.csh
- echo -e " # intel-gdb: Coping man pages"
- mv ${xe_build_dir}/opt/intel/${_composer_xe_dir}/debugger/gdb/${_i_arch}/en/man/common/man1/*.1 ${_man_dir}
+ #Remove duplicate logo and .css found in intel base
+ rm ${xe_build_dir}/opt/intel/documentation_${_year}/en/compiler_f/ps${_year}/resources/intel_gsp_styles.css
+ rm ${xe_build_dir}/opt/intel/documentation_${_year}/en/compiler_f/ps${_year}/resources/intel_logo.png
- cd ${_man_dir}
- for f in *.1 ; do
- gzip $f
- done
+ if $_remove_docs ; then
+ echo -e " # intel-fortran-compiler: Remove documentation"
+ rm -rf ${xe_build_dir}/opt/intel/${_composer_xe_dir}/linux/documentation
+ rm -rf ${xe_build_dir}/opt/intel/${_composer_xe_dir}/linux/Documentation
+ rm -rf ${xe_build_dir}/opt/intel/${_composer_xe_dir}/linux/Samples
+ fi
- cd ${xe_build_dir}
+ echo -e " # intel-fortran-compiler: Coping man pages"
+ mv ${xe_build_dir}/opt/intel/documentation_${_year}/en/man/common/man1/*.1 ${_man_dir}
- echo -e " # intel-gdb: Move package"
+ cd ${_man_dir}
+ for f in *.1 ; do
+ gzip $f
+ done
+
+ cd ${xe_build_dir}
- mv ${xe_build_dir}/opt ${pkgdir}
- mv ${xe_build_dir}/etc ${pkgdir}
- mv ${xe_build_dir}/usr ${pkgdir}
+ echo -e " # intel-fortran-compiler: Move package"
+ mv ${xe_build_dir}/opt ${pkgdir}
+ mv ${xe_build_dir}/etc ${pkgdir}
+ mv ${xe_build_dir}/usr ${pkgdir}
}
package_intel-ipp() {
- set_build_vars
+ set_build_vars
- pkgdesc="Intel Integrated Performance Primitives $_ipp_ver"
- pkgver=${_pkg_ver}
- #depends=('intel-compiler-base')
- install=intel-composer.install
+ pkgdesc="Intel Integrated Performance Primitives $_ipp_ver"
+ pkgver=${_pkg_ver}
+ #depends=('intel-compiler-base')
+ install=intel-composer.install
- echo -e " # intel-ipp: Start Building"
+ echo -e " # intel-ipp: Start Building"
- mkdir -p ${xe_build_dir}/opt
+ mkdir -p ${xe_build_dir}/opt
- mkdir -p ${xe_build_dir}/etc/ld.so.conf.d
+ mkdir -p ${xe_build_dir}/etc/ld.so.conf.d
- if [ "$CARCH" = "i686" ]; then
- sed 's/<arch>/ia32/' < ${srcdir}/intel-ipp.conf > ${xe_build_dir}/etc/ld.so.conf.d/intel-ipp.conf
- else
- sed 's/<arch>/intel64/' < ${srcdir}/intel-ipp.conf > ${xe_build_dir}/etc/ld.so.conf.d/intel-ipp.conf
- fi
+ if [ "$CARCH" = "i686" ]; then
+ sed 's/<arch>/ia32/' < ${srcdir}/intel-ipp.conf > ${xe_build_dir}/etc/ld.so.conf.d/intel-ipp.conf
+ else
+ sed 's/<arch>/intel64/' < ${srcdir}/intel-ipp.conf > ${xe_build_dir}/etc/ld.so.conf.d/intel-ipp.conf
+ fi
- cd ${xe_build_dir}
- echo -e " # intel-ipp: Extracting RPMS"
+ cd ${xe_build_dir}
+ echo -e " # intel-ipp: Extracting RPMS"
- extract_rpms 'intel-ipp-*.rpm' $xe_build_dir
+ extract_rpms 'intel-ipp-*.rpm' $xe_build_dir
- echo -e " # intel-ipp: Editing variables"
- cd ${xe_build_dir}/opt/intel/${_composer_xe_dir}/linux/ipp/bin
- rm ippvars.csh
- sed -i 's/<INSTALLDIR>/\/opt\/intel\/composerxe\/linux/g' ippvars.sh
+ echo -e " # intel-ipp: Editing variables"
+ cd ${xe_build_dir}/opt/intel/${_composer_xe_dir}/linux/ipp/bin
+ rm ippvars.csh
+ sed -i 's/<INSTALLDIR>/\/opt\/intel\/composerxe\/linux/g' ippvars.sh
- #cd $_i_arch
- #rm ippvars_${_i_arch}.csh
- #sed -i 's/<INSTALLDIR>/\/opt\/intel\/composerxe\/linux/g' ippvars_${_i_arch}.sh
+ #cd $_i_arch
+ #rm ippvars_${_i_arch}.csh
+ #sed -i 's/<INSTALLDIR>/\/opt\/intel\/composerxe\/linux/g' ippvars_${_i_arch}.sh
- # remove the unneeded and problematic ipp_minigzip and ipp_gzip
- #for _z_dir_name in 'ipp_zlib' 'ipp_gzip' 'ipp_bzip2' ; do
- # rm -rf ${xe_build_dir}/opt/intel/${_composer_xe_dir}/bin/ipp/interfaces/data-compression/${_z_dir_name}/bin/${_not_arch}
- #done
+ # remove the unneeded and problematic ipp_minigzip and ipp_gzip
+ #for _z_dir_name in 'ipp_zlib' 'ipp_gzip' 'ipp_bzip2' ; do
+ # rm -rf ${xe_build_dir}/opt/intel/${_composer_xe_dir}/bin/ipp/interfaces/data-compression/${_z_dir_name}/bin/${_not_arch}
+ #done
- if ${_remove_docs} ; then
- echo -e " # intel-ipp: Remove documentation"
- rm -rf ${xe_build_dir}/opt/intel/${_composer_xe_dir}/linux/Documentation
- fi
+ if ${_remove_docs} ; then
+ echo -e " # intel-ipp: Remove documentation"
+ rm -rf ${xe_build_dir}/opt/intel/${_composer_xe_dir}/linux/Documentation
+ fi
- if ${_remove_static_objects_ipp} ; then
- echo -e " # intel-ipp: Remove static objects"
- rm -f ${xe_build_dir}/opt/intel/${_composer_xe_dir}/linux/ipp/lib/${_i_arch}/libipp*.a
- rm -f ${xe_build_dir}/opt/intel/${_composer_xe_dir}/linux/ipp/lib/${_i_arch}/nonpic/libipp*.a
- rmdir ${xe_build_dir}/opt/intel/${_composer_xe_dir}/linux/ipp/lib/${_i_arch}/nonpic/
- fi
+ if ${_remove_static_objects_ipp} ; then
+ echo -e " # intel-ipp: Remove static objects"
+ rm -f ${xe_build_dir}/opt/intel/${_composer_xe_dir}/linux/ipp/lib/${_i_arch}/libipp*.a
+ rm -f ${xe_build_dir}/opt/intel/${_composer_xe_dir}/linux/ipp/lib/${_i_arch}/nonpic/libipp*.a
+ rmdir ${xe_build_dir}/opt/intel/${_composer_xe_dir}/linux/ipp/lib/${_i_arch}/nonpic/
+ fi
- echo -e " # intel-ipp: Move package"
- mv ${xe_build_dir}/opt ${pkgdir}
- mv ${xe_build_dir}/etc ${pkgdir}
+ echo -e " # intel-ipp: Move package"
+ mv ${xe_build_dir}/opt ${pkgdir}
+ mv ${xe_build_dir}/etc ${pkgdir}
}
package_intel-mkl() {
- set_build_vars
+ set_build_vars
+
+ pkgdesc="Intel Math Kernel Library (IntelĀ® MKL) $_mkl_ver"
+ pkgver=${_pkg_ver}
+ #depends=('intel-compiler-base')
+ install=intel-mkl.install
+ backup=('etc/intel-mkl-th.conf')
- pkgdesc="Intel Math Kernel Library (IntelĀ® MKL) $_mkl_ver"
- pkgver=${_pkg_ver}
- #depends=('intel-compiler-base')
- install=intel-mkl.install
- backup=('etc/intel-mkl-th.conf')
+ echo -e " # intel-mkl: Start Building"
- echo -e " # intel-mkl: Start Building"
+ mkdir -p ${xe_build_dir}/opt
+ mkdir -p ${xe_build_dir}/etc/ld.so.conf.d
+ mkdir -p ${xe_build_dir}/etc/profile.d
- mkdir -p ${xe_build_dir}/opt
- mkdir -p ${xe_build_dir}/etc/ld.so.conf.d
-
- mkdir -p ${xe_build_dir}/etc/profile.d
+ cp ${srcdir}/intel-mkl.sh ${xe_build_dir}/etc/profile.d/
+ chmod a+x ${xe_build_dir}/etc/profile.d/intel-mkl.sh
- cp ${srcdir}/intel-mkl.sh ${xe_build_dir}/etc/profile.d
- chmod a+x ${xe_build_dir}/etc/profile.d/intel-mkl.sh
+ cp ${srcdir}/intel-mkl-th.conf ${xe_build_dir}/etc/
- cp ${srcdir}/intel-mkl-th.conf ${xe_build_dir}/etc/
+ if [ "$CARCH" = "i686" ]; then
+ sed 's/<arch>/ia32/' < ${srcdir}/intel-mkl.conf > ${xe_build_dir}/etc/ld.so.conf.d/intel-mkl.conf
+ else
+ sed 's/<arch>/intel64/' < ${srcdir}/intel-mkl.conf > ${xe_build_dir}/etc/ld.so.conf.d/intel-mkl.conf
+ fi
- if [ "$CARCH" = "i686" ]; then
- sed 's/<arch>/ia32/' < ${srcdir}/intel-mkl.conf > ${xe_build_dir}/etc/ld.so.conf.d/intel-mkl.conf
- else
- sed 's/<arch>/intel64/' < ${srcdir}/intel-mkl.conf > ${xe_build_dir}/etc/ld.so.conf.d/intel-mkl.conf
- fi
+ cd ${xe_build_dir}
- cd ${xe_build_dir}
-
- echo -e " # intel-mkl: Extracting RPMS"
- extract_rpms 'intel-mkl-*.rpm' $xe_build_dir
+ echo -e " # intel-mkl: Extracting RPMS"
+ extract_rpms 'intel-mkl-*.rpm' $xe_build_dir
- echo -e " # intel-mkl: Editing variables"
- cd ${xe_build_dir}/opt/intel/${_composer_xe_dir}/linux/mkl/bin
- rm mklvars.csh
- sed -i 's/<INSTALLDIR>/\/opt\/intel\/composerxe\/linux/g' mklvars.sh
+ echo -e " # intel-mkl: Editing variables"
+ cd ${xe_build_dir}/opt/intel/${_composer_xe_dir}/linux/mkl/bin
+ rm mklvars.csh
+ sed -i 's/<INSTALLDIR>/\/opt\/intel\/composerxe\/linux/g' mklvars.sh
- rm -rf ./${_not_arch}
+ rm -rf ./${_not_arch}
- #cd $_i_arch
- #rm mklvars_${_i_arch}.csh
- #sed -i 's/<INSTALLDIR>/\/opt\/intel\/composerxe\/linux/g' mklvars_${_i_arch}.sh
+ #cd $_i_arch
+ #rm mklvars_${_i_arch}.csh
+ #sed -i 's/<INSTALLDIR>/\/opt\/intel\/composerxe\/linux/g' mklvars_${_i_arch}.sh
- if ${_remove_docs} ; then
- echo -e " # intel-mkl: remove documentation"
- #rm -rf ${xe_build_dir}/opt/intel/${_composer_xe_dir}/linux/Documentation
- rm -rf ${xe_build_dir}/opt/intel/${_composer_xe_dir}/linux/mkl/examples
- rm -rf ${xe_build_dir}/opt/intel/${_composer_xe_dir}/linux/mkl/benchmarks
- fi
+ if ${_remove_docs} ; then
+ echo -e " # intel-mkl: remove documentation"
+ #rm -rf ${xe_build_dir}/opt/intel/${_composer_xe_dir}/linux/Documentation
+ rm -rf ${xe_build_dir}/opt/intel/${_composer_xe_dir}/linux/mkl/examples
+ rm -rf ${xe_build_dir}/opt/intel/${_composer_xe_dir}/linux/mkl/benchmarks
+ fi
- if ${_remove_static_objects_mkl} ; then
- echo -e " # intel-mkl: remove static objects"
- rm -f ${xe_build_dir}/opt/intel/${_composer_xe_dir}/linux/mkl/lib/${_i_arch}/libmkl_*.a
- rm -f ${xe_build_dir}/opt/intel/${_composer_xe_dir}/linux/mkl/lib/mic/libmkl_*.a
- fi
+ if ${_remove_static_objects_mkl} ; then
+ echo -e " # intel-mkl: remove static objects"
+ rm -f ${xe_build_dir}/opt/intel/${_composer_xe_dir}/linux/mkl/lib/${_i_arch}/libmkl_*.a
+ rm -f ${xe_build_dir}/opt/intel/${_composer_xe_dir}/linux/mkl/lib/mic/libmkl_*.a
+ fi
- echo -e " # intel-mkl: Move package"
- mv ${xe_build_dir}/opt ${pkgdir}
- mv ${xe_build_dir}/etc ${pkgdir}
+ echo -e " # intel-mkl: Move package"
+ mv ${xe_build_dir}/opt ${pkgdir}
+ mv ${xe_build_dir}/etc ${pkgdir}
}
package_intel-mpi() {
- set_build_vars
+ set_build_vars
- pkgdesc="Intel MPI library $_mpi_ver"
- pkgver=${_pkg_ver}
- #depends=('intel-compiler-base')
- #install=intel-mpi.install
+ pkgdesc="Intel MPI library $_mpi_ver"
+ pkgver=${_pkg_ver}
+ #depends=('intel-compiler-base')
+ #install=intel-mpi.install
- echo -e " # intel-mpi: Start Building "
+ echo -e " # intel-mpi: Start Building "
- mkdir -p ${xe_build_dir}/opt
- mkdir -p ${xe_build_dir}/bin
- mkdir -p ${xe_build_dir}/etc/ld.so.conf.d
+ mkdir -p ${xe_build_dir}/opt
+ mkdir -p ${xe_build_dir}/bin
+ mkdir -p ${xe_build_dir}/etc/ld.so.conf.d
- if [ "$CARCH" = "i686" ]; then
- sed 's/<arch>/ia32/' < ${srcdir}/intel-mpi.conf > ${xe_build_dir}/etc/ld.so.conf.d/intel-mpi.conf
- else
- sed 's/<arch>/intel64/' < ${srcdir}/intel-mpi.conf > ${xe_build_dir}/etc/ld.so.conf.d/intel-mpi.conf
- fi
+ if [ "$CARCH" = "i686" ]; then
+ sed 's/<arch>/ia32/' < ${srcdir}/intel-mpi.conf > ${xe_build_dir}/etc/ld.so.conf.d/intel-mpi.conf
+ else
+ sed 's/<arch>/intel64/' < ${srcdir}/intel-mpi.conf > ${xe_build_dir}/etc/ld.so.conf.d/intel-mpi.conf
+ fi
- cd ${xe_build_dir}
-
- echo -e " # intel-mpi: Extracting RPMS "
- extract_rpms 'intel-mpi-*.rpm' $xe_build_dir
+ cd ${xe_build_dir}
+ echo -e " # intel-mpi: Extracting RPMS "
+ extract_rpms 'intel-mpi-*.rpm' $xe_build_dir
- echo -e " # intel-mpi: Editing variables "
- cd ${xe_build_dir}/opt/intel/${_composer_xe_dir}/linux/mpi/${_i_arch}/bin
- rm mpivars.csh
- #for i in mpd* mpi* no mpd longer since 2017?
- for i in mpi*
- do
- sed -i 's/I_MPI_SUBSTITUTE_INSTALLDIR/\/opt\/intel\/composerxe\/linux\/mpi/g' $i
- done
+ echo -e " # intel-mpi: Editing variables "
+ cd ${xe_build_dir}/opt/intel/${_composer_xe_dir}/linux/mpi/${_i_arch}/bin
+ rm mpivars.csh
+
+ #for i in mpd* mpi* no mpd longer since 2017?
+ for i in mpi*
+ do
+ sed -i 's/I_MPI_SUBSTITUTE_INSTALLDIR/\/opt\/intel\/composerxe\/linux\/mpi/g' $i
+ done
- chmod a+x mpivars.sh
+ chmod a+x mpivars.sh
- #echo -e " # intel-mpi: Remove unneeded libs and bin "
- #rm -rf ${xe_build_dir}/opt/intel/${_composer_xe_dir}/linux/mpi/bin64/${_not_arch}
- #rm -rf ${xe_build_dir}/opt/intel/${_composer_xe_dir}/linux/mpi/lib/${_not_arch}
-
- #if $_remove_docs ; then
- # echo -e " # intel-tbb: remove documentation "
- # rm -rf ${xe_build_dir}/opt/intel/${_composer_xe_dir}/linux/Documentation
- # rm -rf ${xe_build_dir}/opt/intel/${_composer_xe_dir}/linux/tbb/examples
- #fi
+ #echo -e " # intel-mpi: Remove unneeded libs and bin "
+ #rm -rf ${xe_build_dir}/opt/intel/${_composer_xe_dir}/linux/mpi/bin64/${_not_arch}
+ #rm -rf ${xe_build_dir}/opt/intel/${_composer_xe_dir}/linux/mpi/lib/${_not_arch}
- echo -e " # intel-mpi: Move package "
- mv ${xe_build_dir}/opt ${pkgdir}
- mv ${xe_build_dir}/etc ${pkgdir}
+ #if $_remove_docs ; then
+ # echo -e " # intel-tbb: remove documentation "
+ # rm -rf ${xe_build_dir}/opt/intel/${_composer_xe_dir}/linux/Documentation
+ # rm -rf ${xe_build_dir}/opt/intel/${_composer_xe_dir}/linux/tbb/examples
+ #fi
+
+ echo -e " # intel-mpi: Move package "
+ mv ${xe_build_dir}/opt ${pkgdir}
+ mv ${xe_build_dir}/etc ${pkgdir}
}
package_intel-tbb_psxe() {
- set_build_vars
+ set_build_vars
+
+ pkgdesc="Intel Threading Building Blocks (TBB) $_tbb_ver"
+ pkgver=${_pkg_ver}
+ #depends=('intel-compiler-base')
+ install=intel-tbb.install
- pkgdesc="Intel Threading Building Blocks (TBB) $_tbb_ver"
- pkgver=${_pkg_ver}
- #depends=('intel-compiler-base')
- install=intel-tbb.install
+ echo -e " # intel-tbb: Start Building "
- echo -e " # intel-tbb: Start Building "
+ mkdir -p ${xe_build_dir}/opt
+ mkdir -p ${xe_build_dir}/etc/ld.so.conf.d
- mkdir -p ${xe_build_dir}/opt
- mkdir -p ${xe_build_dir}/etc/ld.so.conf.d
+ if [ "$CARCH" = "i686" ]; then
+ sed 's/<arch>/ia32/' < ${srcdir}/intel-tbb.conf > ${xe_build_dir}/etc/ld.so.conf.d/intel-tbb.conf
+ sed -i 's/<INSTALLDIR>/\/opt\/intel\/composerxe/g' ${xe_build_dir}/etc/ld.so.conf.d/intel-tbb.conf
+ else
+ sed 's/<arch>/intel64/' < ${srcdir}/intel-tbb.conf > ${xe_build_dir}/etc/ld.so.conf.d/intel-tbb.conf
+ sed -i 's/<INSTALLDIR>/\/opt\/intel\/composerxe/g' ${xe_build_dir}/etc/ld.so.conf.d/intel-tbb.conf
+ fi
- if [ "$CARCH" = "i686" ]; then
- sed 's/<arch>/ia32/' < ${srcdir}/intel-tbb.conf > ${xe_build_dir}/etc/ld.so.conf.d/intel-tbb.conf
- sed -i 's/<INSTALLDIR>/\/opt\/intel\/composerxe/g' ${xe_build_dir}/etc/ld.so.conf.d/intel-tbb.conf
- else
- sed 's/<arch>/intel64/' < ${srcdir}/intel-tbb.conf > ${xe_build_dir}/etc/ld.so.conf.d/intel-tbb.conf
- sed -i 's/<INSTALLDIR>/\/opt\/intel\/composerxe/g' ${xe_build_dir}/etc/ld.so.conf.d/intel-tbb.conf
- fi
+ cd ${xe_build_dir}
- cd ${xe_build_dir}
-
- echo -e " # intel-tbb: Extracting RPMS "
- extract_rpms 'intel-tbb-*.rpm' $xe_build_dir
+ echo -e " # intel-tbb: Extracting RPMS "
+ extract_rpms 'intel-tbb-*.rpm' $xe_build_dir
- echo -e " # intel-tbb: Editing variables "
- cd ${xe_build_dir}/opt/intel/${_composer_xe_dir}/linux/tbb/bin
- rm tbbvars.csh
+ echo -e " # intel-tbb: Editing variables "
+ cd ${xe_build_dir}/opt/intel/${_composer_xe_dir}/linux/tbb/bin
+ rm tbbvars.csh
- sed -i 's/SUBSTITUTE_INSTALL_DIR_HERE/\/opt\/intel\/composerxe\/linux\/tbb/g' tbbvars.sh
+ sed -i 's/SUBSTITUTE_INSTALL_DIR_HERE/\/opt\/intel\/composerxe\/linux\/tbb/g' tbbvars.sh
- chmod a+x tbbvars.sh
+ chmod a+x tbbvars.sh
- #cd ${xe_build_dir}/opt/intel/${_composer_xe_dir}/linux/tbb/bin
- #rm tbbvars.csh
- #sed -i 's/SUBSTITUTE_INSTALL_DIR_HERE/\/opt\/intel\/composerxe\/linux\/tbb/g' tbbvars.sh
- #chmod a+x tbbvars.sh
+ echo -e " # intel-tbb: Remove unneeded libs and bin "
+ rm -rf ${xe_build_dir}/opt/intel/${_composer_xe_dir}/linux/tbb/bin/${_not_arch}
+ rm -rf ${xe_build_dir}/opt/intel/${_composer_xe_dir}/linux/tbb/lib/${_not_arch}
- echo -e " # intel-tbb: Remove unneeded libs and bin "
- rm -rf ${xe_build_dir}/opt/intel/${_composer_xe_dir}/linux/tbb/bin/${_not_arch}
- rm -rf ${xe_build_dir}/opt/intel/${_composer_xe_dir}/linux/tbb/lib/${_not_arch}
-
- if $_remove_docs ; then
- echo -e " # intel-tbb: remove documentation "
- rm -rf ${xe_build_dir}/opt/intel/${_composer_xe_dir}/linux/Documentation
- rm -rf ${xe_build_dir}/opt/intel/${_composer_xe_dir}/linux/tbb/examples
- fi
+ if $_remove_docs ; then
+ echo -e " # intel-tbb: remove documentation "
+ rm -rf ${xe_build_dir}/opt/intel/${_composer_xe_dir}/linux/Documentation
+ rm -rf ${xe_build_dir}/opt/intel/${_composer_xe_dir}/linux/tbb/examples
+ fi
- echo -e " # intel-tbb: Move package "
- mv ${xe_build_dir}/opt ${pkgdir}
- mv ${xe_build_dir}/etc ${pkgdir}
+ echo -e " # intel-tbb: Move package "
+ mv ${xe_build_dir}/opt ${pkgdir}
+ mv ${xe_build_dir}/etc ${pkgdir}
}
package_intel-vtune-amplifier-xe() {
- set_build_vars
-
- pkgdesc="Performance profiler for serial and parallel performance analysis $_vtune_ver"
- pkgver=${_pkg_ver}
- depends=('pangox-compat')
-
- echo -e " # intel-vtune-amplifier-xe: Start building"
- mkdir -p ${xe_build_dir}/opt
- mkdir -p ${xe_build_dir}/etc/ld.so.conf.d
- mkdir -p ${_man_dir}
-
- echo -e " # intel-vtune-amplifier-xe: Editing variables "
- if [ "$CARCH" = "i686" ]; then
- sed -i 's/<arch>/bin32/g' ${srcdir}/intel_vtune-amplifier-xe.sh
- else
- sed -i 's/<arch>/bin64/g' ${srcdir}/intel_vtune-amplifier-xe.sh
- fi
- cp ${srcdir}/intel_vtune-amplifier-xe.sh ${xe_build_dir}/etc/ld.so.conf.d
- chmod a+x ${xe_build_dir}/etc/ld.so.conf.d/intel_vtune-amplifier-xe.sh
-
- cd ${xe_build_dir}
- echo -e " # intel-vtune-amplifier-xe: Extracting RPMS "
- extract_rpms 'intel-vtune-amplifier-xe-*.rpm' $xe_build_dir
-
- echo -e " # intel-vtune-amplifier-xe: Coping man pages"
- mv ${xe_build_dir}/opt/intel/vtune_amplifier_xe_${_year}.${_vtune_man_ver}/man/man1/*.1 ${_man_dir}
- #mv ${xe_build_dir}/opt/intel/vtune_amplifier_xe_${_year}.${_vtune_ver}/man/man1/*.1 ${_man_dir}
-
- cd ${_man_dir}
- for f in *.1 ; do
- gzip $f
- done
-
- if $_remove_docs ; then
- echo -e " # intel-vtune-amplifier-xe: remove documentation "
- rm -rf ${xe_build_dir}/opt/intel/vtune_amplifier_xe_${_year}.${_vtune_ver}/samples
- rm -rf ${xe_build_dir}/opt/intel/vtune_amplifier_xe_${_year}.${_vtune_ver}/documentation
- fi
-
- echo -e " # intel-vtune-amplifier-xe: Move package"
- mv ${xe_build_dir}/opt ${pkgdir}
- mv ${xe_build_dir}/etc ${pkgdir}
- mv ${xe_build_dir}/usr ${pkgdir}
+ set_build_vars
+
+ pkgdesc="Performance profiler for serial and parallel performance analysis $_vtune_ver"
+ pkgver=${_pkg_ver}
+ depends=('pangox-compat')
+
+ echo -e " # intel-vtune-amplifier-xe: Start building"
+ mkdir -p ${xe_build_dir}/opt
+ mkdir -p ${xe_build_dir}/etc/ld.so.conf.d
+ mkdir -p ${xe_build_dir}/etc/profile.d
+ mkdir -p ${_man_dir}
+
+ echo -e " # intel-vtune-amplifier-xe: Editing variables "
+ if [ "$CARCH" = "i686" ]; then
+ sed -i 's/<arch>/bin32/g' ${srcdir}/intel_vtune-amplifier-xe.sh
+ else
+ sed -i 's/<arch>/bin64/g' ${srcdir}/intel_vtune-amplifier-xe.sh
+ fi
+ cp ${srcdir}/intel_vtune-amplifier-xe.sh ${xe_build_dir}/etc/profile.d/
+ chmod a+x ${xe_build_dir}/etc/profile.d/intel_vtune-amplifier-xe.sh
+
+ cd ${xe_build_dir}
+ echo -e " # intel-vtune-amplifier-xe: Extracting RPMS "
+ extract_rpms 'intel-vtune-amplifier-xe-*.rpm' $xe_build_dir
+
+ echo -e " # intel-vtune-amplifier-xe: Coping man pages"
+ mv ${xe_build_dir}/opt/intel/vtune_amplifier_xe_${_year}.${_vtune_man_ver}/man/man1/*.1 ${_man_dir}
+ #mv ${xe_build_dir}/opt/intel/vtune_amplifier_xe_${_year}.${_vtune_ver}/man/man1/*.1 ${_man_dir}
+
+ cd ${_man_dir}
+ for f in *.1 ; do
+ gzip $f
+ done
+
+ if $_remove_docs ; then
+ echo -e " # intel-vtune-amplifier-xe: remove documentation "
+ rm -rf ${xe_build_dir}/opt/intel/vtune_amplifier_xe_${_year}.${_vtune_ver}/samples
+ rm -rf ${xe_build_dir}/opt/intel/vtune_amplifier_xe_${_year}.${_vtune_ver}/documentation
+ fi
+
+ echo -e " # intel-vtune-amplifier-xe: Move package"
+ mv ${xe_build_dir}/opt ${pkgdir}
+ mv ${xe_build_dir}/etc ${pkgdir}
+ mv ${xe_build_dir}/usr ${pkgdir}
}
package_intel-advisor() {
- set_build_vars
-
- pkgdesc="Threading design and prototyping tool for software architects $_advisor_ver"
- pkgver=${_pkg_ver}
- conflicts=( 'intel-advisor-xe' )
-
- echo -e " # intel-advisor: Start building"
- mkdir -p ${xe_build_dir}/opt
- mkdir -p ${xe_build_dir}/etc/ld.so.conf.d
- mkdir -p ${_man_dir}
-
- echo -e " # intel-advisor: Editing variables "
- if [ "$CARCH" = "i686" ]; then
- sed -i 's/<arch>/bin32/g' ${srcdir}/intel_advisor.sh
- else
- sed -i 's/<arch>/bin64/g' ${srcdir}/intel_advisor.sh
- fi
- cp ${srcdir}/intel_advisor.sh ${xe_build_dir}/etc/ld.so.conf.d
- chmod a+x ${xe_build_dir}/etc/ld.so.conf.d/intel_advisor.sh
-
- cd ${xe_build_dir}
- echo -e " # intel-advisor: Extracting RPMS "
- extract_rpms 'intel-advisor-*.rpm' $xe_build_dir
-
- echo -e " # intel-advisor: Coping man pages"
- #mv ${xe_build_dir}/opt/intel/advisor_${_year}.${_advisor_ver}/man/man1/*.1 ${_man_dir}
- mv ${xe_build_dir}/opt/intel/advisor_${_year}.${_advisor_man_ver}/man/man1/*.1 ${_man_dir}
-
- cd ${_man_dir}
- for f in *.1 ; do
- gzip $f
- done
-
- if $_remove_docs ; then
- echo -e " # intel-vtune-amplifier-xe: remove documentation "
- rm -rf ${xe_build_dir}/opt/intel/advisor_${_year}.${_advisor_ver}/samples
- rm -rf ${xe_build_dir}/opt/intel/advisor_${_year}.${_advisor_ver}/documentation
- fi
-
- echo -e " # intel-advisor: Move package"
- mv ${xe_build_dir}/opt ${pkgdir}
- mv ${xe_build_dir}/etc ${pkgdir}
- mv ${xe_build_dir}/usr ${pkgdir}
+ set_build_vars
+
+ pkgdesc="Threading design and prototyping tool for software architects $_advisor_ver"
+ pkgver=${_pkg_ver}
+ conflicts=( 'intel-advisor-xe' )
+
+ echo -e " # intel-advisor: Start building"
+ mkdir -p ${xe_build_dir}/opt
+ mkdir -p ${xe_build_dir}/etc/ld.so.conf.d
+ mkdir -p ${xe_build_dir}/etc/profile.d
+ mkdir -p ${_man_dir}
+
+ echo -e " # intel-advisor: Editing variables "
+ if [ "$CARCH" = "i686" ]; then
+ sed -i 's/<arch>/bin32/g' ${srcdir}/intel_advisor.sh
+ else
+ sed -i 's/<arch>/bin64/g' ${srcdir}/intel_advisor.sh
+ fi
+ cp ${srcdir}/intel_advisor.sh ${xe_build_dir}/etc/profile.d/
+ chmod a+x ${xe_build_dir}/etc/profile.d/intel_advisor.sh
+
+ cd ${xe_build_dir}
+ echo -e " # intel-advisor: Extracting RPMS "
+ extract_rpms 'intel-advisor-*.rpm' $xe_build_dir
+
+ echo -e " # intel-advisor: Coping man pages"
+ #mv ${xe_build_dir}/opt/intel/advisor_${_year}.${_advisor_ver}/man/man1/*.1 ${_man_dir}
+ mv ${xe_build_dir}/opt/intel/advisor_${_year}.${_advisor_man_ver}/man/man1/*.1 ${_man_dir}
+
+ cd ${_man_dir}
+ for f in *.1 ; do
+ gzip $f
+ done
+
+ if $_remove_docs ; then
+ echo -e " # intel-vtune-amplifier-xe: remove documentation "
+ rm -rf ${xe_build_dir}/opt/intel/advisor_${_year}.${_advisor_ver}/samples
+ rm -rf ${xe_build_dir}/opt/intel/advisor_${_year}.${_advisor_ver}/documentation
+ fi
+
+ echo -e " # intel-advisor: Move package"
+ mv ${xe_build_dir}/opt ${pkgdir}
+ mv ${xe_build_dir}/etc ${pkgdir}
+ mv ${xe_build_dir}/usr ${pkgdir}
}
package_intel-inspector() {
- set_build_vars
- pkgdesc="Memory and thread debugger $_inspector_ver"
- pkgver=${_pkg_ver}
- conflicts=('intel-inspector-xe')
-
- echo -e " # intel-inspector: Start building"
- mkdir -p ${xe_build_dir}/opt
- mkdir -p ${xe_build_dir}/etc/ld.so.conf.d
- mkdir -p ${_man_dir}
-
- echo -e " # intel-inspector: Editing variables "
- if [ "$CARCH" = "i686" ]; then
- sed -i 's/<arch>/bin32/g' ${srcdir}/intel_inspector.sh
- else
- sed -i 's/<arch>/bin64/g' ${srcdir}/intel_inspector.sh
- fi
- cp ${srcdir}/intel_inspector.sh ${xe_build_dir}/etc/ld.so.conf.d
- chmod a+x ${xe_build_dir}/etc/ld.so.conf.d/intel_inspector.sh
-
- cd ${xe_build_dir}
- echo -e " # intel-inspector: Extracting RPMS "
- extract_rpms 'intel-inspector-*.rpm' $xe_build_dir
-
- echo -e " # intel-inspector: Coping man pages"
- mv ${xe_build_dir}/opt/intel/inspector_${_year}.${_inspector_man_ver}/man/man1/*.1 ${_man_dir}
-
- cd ${_man_dir}
- for f in *.1 ; do
- gzip $f
- done
-
- if $_remove_docs ; then
- echo -e " # intel-vtune-amplifier-xe: remove documentation "
- rm -rf ${xe_build_dir}/opt/intel/inspector_${_year}.${_inspector_ver}/samples
- rm -rf ${xe_build_dir}/opt/intel/inspector_${_year}.${_inspector_ver}/documentation
- fi
-
- echo -e " # intel-inspector: Move package"
- mv ${xe_build_dir}/opt ${pkgdir}
- mv ${xe_build_dir}/etc ${pkgdir}
- mv ${xe_build_dir}/usr ${pkgdir}
+ set_build_vars
+ pkgdesc="Memory and thread debugger $_inspector_ver"
+ pkgver=${_pkg_ver}
+ conflicts=('intel-inspector-xe')
+
+ echo -e " # intel-inspector: Start building"
+ mkdir -p ${xe_build_dir}/opt
+ mkdir -p ${xe_build_dir}/etc/ld.so.conf.d
+ mkdir -p ${xe_build_dir}/etc/profile.d
+ mkdir -p ${_man_dir}
+
+ echo -e " # intel-inspector: Editing variables "
+ if [ "$CARCH" = "i686" ]; then
+ sed -i 's/<arch>/bin32/g' ${srcdir}/intel_inspector.sh
+ else
+ sed -i 's/<arch>/bin64/g' ${srcdir}/intel_inspector.sh
+ fi
+ cp ${srcdir}/intel_inspector.sh ${xe_build_dir}/etc/profile.d/
+ chmod a+x ${xe_build_dir}/etc/profile.d/intel_inspector.sh
+
+ cd ${xe_build_dir}
+ echo -e " # intel-inspector: Extracting RPMS "
+ extract_rpms 'intel-inspector-*.rpm' $xe_build_dir
+
+ echo -e " # intel-inspector: Coping man pages"
+ mv ${xe_build_dir}/opt/intel/inspector_${_year}.${_inspector_man_ver}/man/man1/*.1 ${_man_dir}
+
+ cd ${_man_dir}
+ for f in *.1 ; do
+ gzip $f
+ done
+
+ if $_remove_docs ; then
+ echo -e " # intel-vtune-amplifier-xe: remove documentation "
+ rm -rf ${xe_build_dir}/opt/intel/inspector_${_year}.${_inspector_ver}/samples
+ rm -rf ${xe_build_dir}/opt/intel/inspector_${_year}.${_inspector_ver}/documentation
+ fi
+
+ echo -e " # intel-inspector: Move package"
+ mv ${xe_build_dir}/opt ${pkgdir}
+ mv ${xe_build_dir}/etc ${pkgdir}
+ mv ${xe_build_dir}/usr ${pkgdir}
}
pkgdesc="Intel C++ C and FORTRAN compiler - Intel Parallel Studio XE - Cluster Edition - icc icpc ifort ipp mkl"
depends=('bash' 'gcc')
+