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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Mon Jan 8 01:37:12 2007 UTC (13 years, 6 months ago) by kugelfang
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +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.5.0.ebuild,v 1.4 2006/05/15 15:41:59 spyderous 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-64bit-${MY_PV}.tgz )
14 x86? ( acml-32bit-${MY_PV}.tgz )"
15 RESTRICT="fetch nostrip"
16 IUSE=""
17 LICENSE="ACML"
18 KEYWORDS="amd64 x86"
19 SLOT="0"
20 RDEPEND="virtual/libc
21 sci-libs/blas-config
22 sci-libs/lapack-config"
23 PROVIDE="virtual/blas
24 virtual/lapack"
25
26 src_unpack() {
27 unpack ${A}
28 if [ "${ARCH}" == "amd64" ]; then
29 export SUFFIX="64"
30 else
31 export SUFFIX="32"
32 fi
33 (DISTDIR="${S}" unpack contents${SUFFIX}.tgz)
34
35 # Remove non-gnu libraries...
36 # TODO: probably a useflag for non-gnu libraries to be used ?
37 rm -Rf ${S}/pgi* install*.sh README*
38 mv Doc doc
39
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${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${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