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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Wed Aug 31 21:33:40 2005 UTC (14 years, 10 months ago) by kugelfang
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
Removed version 2.1.0. Marked stable version 2.5.0. Bumped to version 2.7.0.
(Portage version: 2.0.51.22-r2)

1 # Copyright 1999-2005 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.1.0.ebuild,v 1.3 2005/04/03 15:23:48 kugelfang Exp $
4
5 inherit eutils
6
7 DESCRIPTION="AMD Core Math Library (ACML) for x86 and amd64 CPUs"
8 HOMEPAGE="http://www.developwithamd.com/appPartnerProg/acml/forms/index.cfm?action=home"
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
55 # Libraries
56 mkdir -p ${D}/usr/$(get_libdir)/
57 cp ${S}/gnu${SUFFIX}/lib/* ${D}/usr/$(get_libdir)/
58 unset SUFFIX
59
60 # Configfiles
61 mkdir -p ${D}/usr/$(get_libdir)/{blas,lapack}
62 for x in ${FILESDIR}/*.{blas,lapack}; do
63 y="$(basename $x)"
64 cp $x ${D}/usr/$(get_libdir)/${y/*\.}/${y/\.*}
65 done
66 }
67
68 pkg_postinst() {
69 einfo "To use ACML's BLAS features, you have to issue (as root):"
70 einfo "\n\t/usr/bin/blas-config ACML"
71 einfo "To use ACML's LAPACK features, you have to issue (as root):"
72 einfo "\n\t/usr/bin/lapack-config ACML"
73 }

  ViewVC Help
Powered by ViewVC 1.1.20