/[gentoo-x86]/sci-libs/acml/acml-2.7.0.ebuild
Gentoo

Contents of /sci-libs/acml/acml-2.7.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Mon Jan 8 01:37:12 2007 UTC (13 years, 5 months ago) by kugelfang
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
QA: Removed unused versions.
(Portage version: 2.1.2_pre2-r1)
 (Signed Manifest commit)

1 # Copyright 1999-2006 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sci-libs/acml/acml-2.7.0.ebuild,v 1.3 2006/05/10 18:37:21 kugelfang Exp $
4
5 inherit eutils
6
7 DESCRIPTION="AMD Core Math Library (ACML) for x86 and amd64 CPUs"
8 HOMEPAGE="http://developer.amd.com/acml.aspx"
9
10 MY_PV=${PV//\./\-}
11 S=${WORKDIR}
12
13 SRC_URI="amd64? ( acml-${MY_PV}-gnu-64bit.tgz )
14 x86? ( acml-${MY_PV}-gnu-32bit.tgz )"
15 RESTRICT="fetch nostrip"
16 IUSE="sse sse2"
17 LICENSE="ACML"
18 KEYWORDS="~amd64 ~x86"
19 SLOT="0"
20 RDEPEND="virtual/libc
21 >=app-admin/eselect-1.0_rc2"
22 PROVIDE="virtual/blas
23 virtual/lapack"
24
25 src_unpack() {
26 unpack ${A}
27 if [ "${ARCH}" == "amd64" ] ; then
28 export BITS="64"
29 elif [ "${ARCH}" == "x86" ] ; then
30 export BITS="32"
31 if ! use sse2 ; then
32 use sse \
33 && export SUFFIX="_nosse2" \
34 || export SUFFIX="_nosse"
35 fi
36 fi
37 (DISTDIR="${S}" unpack contents-acml-${MY_PV}-gnu-${BITS}bit.tgz)
38
39 mv Doc doc
40 }
41
42 src_compile() {
43 return
44 }
45
46 src_install() {
47 # Documentation
48 cd ${S}/doc
49 dodoc acml.*
50
51 # Headers
52 mkdir -p ${D}/usr/include/acml/
53 cp ${S}/gnu${BITS}${SUFFIX}/include/* ${D}/usr/include/acml/
54 cd ${D}/usr/include
55 ln -s acml/acml.h acml.h
56
57 # Libraries
58 mkdir -p ${D}/usr/$(get_libdir)/
59 cp ${S}/gnu${BITS}${SUFFIX}/lib/* ${D}/usr/$(get_libdir)/
60 unset SUFFIX
61
62 # Configfiles
63 mkdir -p ${D}/usr/$(get_libdir)/{blas,lapack}
64 for x in ${FILESDIR}/*.{blas,lapack}; do
65 y="$(basename $x)"
66 cp $x ${D}/usr/$(get_libdir)/${y/*\.}/${y/\.*}
67 done
68 }
69
70 pkg_postinst() {
71 einfo "To use ACML's BLAS features, you have to issue (as root):"
72 einfo "\n\t/usr/bin/eselect blas set ACML"
73 einfo "To use ACML's LAPACK features, you have to issue (as root):"
74 einfo "\n\t/usr/bin/eselect lapack set ACML"
75 }

  ViewVC Help
Powered by ViewVC 1.1.20