diff options
author | 2007-08-27 17:47:25 +0000 | |
---|---|---|
committer | 2007-08-27 17:47:25 +0000 | |
commit | 6d9961b37e050173f9a5069dbe8ba9faa0a78f1f (patch) | |
tree | 25e61d612c75b2fde2ba2cd8721ef7c2f10ed3a9 /sci-libs/ipp | |
parent | cleaning (diff) | |
download | sci-6d9961b37e050173f9a5069dbe8ba9faa0a78f1f.tar.gz sci-6d9961b37e050173f9a5069dbe8ba9faa0a78f1f.tar.bz2 sci-6d9961b37e050173f9a5069dbe8ba9faa0a78f1f.zip |
Added ipp
git-svn-id: http://overlays.gentoo.org/svn/proj/science/overlay@715 32389bae-6d03-0410-99cf-db05cde120eb
Diffstat (limited to 'sci-libs/ipp')
-rw-r--r-- | sci-libs/ipp/Manifest | 9 | ||||
-rw-r--r-- | sci-libs/ipp/files/digest-ipp-5.1.1.005 | 3 | ||||
-rw-r--r-- | sci-libs/ipp/files/digest-ipp-5.2.059 | 6 | ||||
-rw-r--r-- | sci-libs/ipp/ipp-5.2.059.ebuild | 114 |
4 files changed, 132 insertions, 0 deletions
diff --git a/sci-libs/ipp/Manifest b/sci-libs/ipp/Manifest new file mode 100644 index 000000000..6a1443a0e --- /dev/null +++ b/sci-libs/ipp/Manifest @@ -0,0 +1,9 @@ +DIST l_ipp_em64t_p_5.2.059.tgz 161964579 RMD160 4e0f4df68d09380f5b8644c366e57813b3ef9fde SHA1 43559dabac3eed24b5a94dc00559466aba885799 SHA256 f71f632f02f307c5e0e38e953184ea286ca2d90c4624dbd205701f9e268ff9a8 +DIST l_ipp_ia32_p_5.2.059.tgz 213000994 RMD160 598e3d92e933546b3e143538985d922624a4335a SHA1 bcf11196a760e54713f59a8a06f58f0a31937853 SHA256 cf7f39231cd56cc04fae8e91cc5c10be155f49a284076714252a3d8d5cce5cac +EBUILD ipp-5.2.059.ebuild 3067 RMD160 87d32f2a9af22b351678366ea91c511a65a8f5b6 SHA1 9eac1f09b14902f1ed4d698cceef5396b1ea3c52 SHA256 5585f06728555afcf6d8c3262133f0abd74738d8bda5b1573a5cb38462800b4d +MD5 4c848f2e1ee66583883f14942bf6c8f5 ipp-5.2.059.ebuild 3067 +RMD160 87d32f2a9af22b351678366ea91c511a65a8f5b6 ipp-5.2.059.ebuild 3067 +SHA256 5585f06728555afcf6d8c3262133f0abd74738d8bda5b1573a5cb38462800b4d ipp-5.2.059.ebuild 3067 +MD5 423a9939e4b92c72158379952dcbb153 files/digest-ipp-5.2.059 527 +RMD160 783b292f0d7d6fe1d7481b654d2c187a80c68949 files/digest-ipp-5.2.059 527 +SHA256 c6108bfd4cfa428678753d98c9247449665b6a86ccf80f38c9c87810af128ed0 files/digest-ipp-5.2.059 527 diff --git a/sci-libs/ipp/files/digest-ipp-5.1.1.005 b/sci-libs/ipp/files/digest-ipp-5.1.1.005 new file mode 100644 index 000000000..af45268ce --- /dev/null +++ b/sci-libs/ipp/files/digest-ipp-5.1.1.005 @@ -0,0 +1,3 @@ +MD5 6d84b3c7e8df63df160045d7be3e4812 l_ipp_em64t_p_5.1.1.005.tgz 140171862 +RMD160 d0b5cf6bdb580794f80ff1156138a7cc014e6340 l_ipp_em64t_p_5.1.1.005.tgz 140171862 +SHA256 514f61ec4507bc88164e04505fe301233dc8cc00f860c918b5abee20538e7ac6 l_ipp_em64t_p_5.1.1.005.tgz 140171862 diff --git a/sci-libs/ipp/files/digest-ipp-5.2.059 b/sci-libs/ipp/files/digest-ipp-5.2.059 new file mode 100644 index 000000000..106daa33e --- /dev/null +++ b/sci-libs/ipp/files/digest-ipp-5.2.059 @@ -0,0 +1,6 @@ +MD5 f6d2daeec931c5b5af2ba039048e6a4e l_ipp_em64t_p_5.2.059.tgz 161964579 +RMD160 4e0f4df68d09380f5b8644c366e57813b3ef9fde l_ipp_em64t_p_5.2.059.tgz 161964579 +SHA256 f71f632f02f307c5e0e38e953184ea286ca2d90c4624dbd205701f9e268ff9a8 l_ipp_em64t_p_5.2.059.tgz 161964579 +MD5 38579c892a5f3a29d28fa5b98e55c112 l_ipp_ia32_p_5.2.059.tgz 213000994 +RMD160 598e3d92e933546b3e143538985d922624a4335a l_ipp_ia32_p_5.2.059.tgz 213000994 +SHA256 cf7f39231cd56cc04fae8e91cc5c10be155f49a284076714252a3d8d5cce5cac l_ipp_ia32_p_5.2.059.tgz 213000994 diff --git a/sci-libs/ipp/ipp-5.2.059.ebuild b/sci-libs/ipp/ipp-5.2.059.ebuild new file mode 100644 index 000000000..a1ba11716 --- /dev/null +++ b/sci-libs/ipp/ipp-5.2.059.ebuild @@ -0,0 +1,114 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit versionator rpm multilib + +PID=721 +PB=${PN} +DESCRIPTION="Intel(R) Integrated Performance Primitive library for multimedia and data processing" +HOMEPAGE="http://developer.intel.com/software/products/ipp/" + +KEYWORDS="~amd64 ~x86" +SRC_URI="amd64? ( http://registrationcenter-download.intel.com/irc_nas/${PID}/l_${PB}_em64t_p_${PV}.tgz ) + x86? ( http://registrationcenter-download.intel.com/irc_nas/${PID}/l_${PB}_ia32_p_${PV}.tgz )" + +MAJOR=$(get_major_version ${PV}) +MINOR=$(get_version_component_range 2 ${PV}) + +SLOT="${MAJOR}.${MINOR}" +LICENSE="${PN}-${MAJOR}.${MINOR}" + +IUSE="" +RESTRICT="strip mirror" + +pkg_setup() { + # setting up license + [[ -z "${IPP_LICENSE}" ]] && [[ -d /opt/intel/licenses ]] && \ + IPP_LICENSE="$(find /opt/intel/licenses -name *IPP*.lic)" + + if [[ -z "${IPP_LICENSE}" ]]; then + eerror "Did not find any valid ipp license." + eerror "Please locate your license file and run:" + eerror "\t IPP_LICENSE=/my/license/dir emerge ${PN}" + eerror "or place your license in /opt/intel/licenses" + eerror "Hint: the license file is in the email Intel sent you" + die "setup ipp license failed" + fi +} + +src_unpack() { + + ewarn + ewarn "Intel ${PN} requires at least 300Mb of disk space" + ewarn "Make sure you have enough in ${PORTAGE_TMPDIR}, /tmp and in /opt" + ewarn + unpack ${A} + + cd l_${PB}_*_${PV}/install + local arch= + if use amd64; then + arch=em64t + elif use x86; then + arch=ia32 + elif use ia64; then + arch=ia64 + fi + # need to make a file to install non-interactively. + # to produce such a file, first do it interactively + # tar xf l_*; ./install.sh --duplicate ipp.ini; + # the file will be instman/ipp.ini + + # binary blob extractor installs crap in /opt/intel + addwrite /opt/intel + cp ${IPP_LICENSE} ${WORKDIR}/ + IPP_LICENSE="$(basename ${IPP_LICENSE})" + cat > ipp.ini << EOF +[IPP_${arch}] +EULA_ACCEPT_REJECT=ACCEPT +FLEXLM_LICENSE_LOCATION=${WORKDIR}/${IPP_LICENSE} +INSTALLMODE_${arch}=NONRPM +INSTALL_DESTINATION=${S} +EOF + einfo "Extracting ..." + ./install \ + --silent ${PWD}/ipp.ini \ + --log log.txt &> /dev/null + + if [[ -z $(find "${S}" -name libippmmx.so) ]]; then + eerror "could not find extracted files" + eerror "see ${PWD}/log.txt to see why" + die "extracting failed" + fi + + rm -rf "${WORKDIR}"/l_* + INSTALL_DIR=/opt/intel/${PN}/${MAJOR}.${MINOR}/${arch} +} + +src_compile() { + einfo "Binary package, nothing to compile" +} + +src_test() { + cd "${S}"/tools/perfsys + for t in ps_ippcce* ps_vm*; do + LD_LIBRARY_PATH="${S}"/sharedlib ./${t} -B || die "test ${t} failed" + done +} + +src_install() { + dodir ${INSTALL_DIR} + # install license + if [ ! -f "/opt/intel/licenses/${IPP_LICENSE}" ]; then + insinto /opt/intel/licenses + doins ${WORKDIR}/${IPP_LICENSE} + fi + + einfo "Copying all files" + cp -pPR "${S}"/* "${D}${INSTALL_DIR}" + + local env_file=36ipp + echo "LDPATH=${INSTALL_DIR}/sharedlib" > ${env_file} + echo "INCLUDE=${INSTALL_DIR}/include" >> ${env_file} + doenvd ${env_file} || die "doenvd ${env_file} failed" +} |