blob: e034dff90fae0db4dc304b282788a23658f8be9a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# /home/cvsroot/gentoo-x86/skel.build,v 1.7 2001/08/25 21:15:08 chadh Exp
S=${WORKDIR}/ATLAS
DESCRIPTION="Automatically Tuned Linear Algebra Software (BLAS implementation)."
SRC_URI="http://www.netlib.org/atlas/${PN}${PV}.tgz"
HOMEPAGE="http://math-atlas.sourceforge.net/"
DEPEND="virtual/glibc"
src_compile() {
#Make is actually an interactive configuration step.
#The configuration is highly sensitive to your specific machine.
#Although it is quite good, it will default to accuracy over speed.
#Powertweakers might want to configure interactively (also for cross-compile)
# by uncommenting the next line and commenting the yes ""| make || die line .
# make || die
#atlas will automatically do a parallel make if possible.
yes "" | make || die
#Let's go grab the architecture determined by the configure
cd ${S}/bin
#There might be a better way to do this!?!
#We can assume "Linux" for a Gentoo Linux system.
#Need ATLAS_ARCH in src_install too.
ATLAS_ARCH=$(ls -d Linux*)
cd ${S}
#This doesn't install into the live / file system.
#It installs into ${S}/lib/Linux*
make install arch=${ATLAS_ARCH} || die
}
src_install () {
cd ${S}/lib/${ATLAS_ARCH}
insinto /usr/lib
dolib.a libatlas.a libcblas.a libf77blas.a libtstatlas.a
#the atlas liblapack.a library is not a complete lapack library,
#just the atlas optimizable objects. Store it some place safe
#where we can grab it when building the complete lapack library.
insinto /usr/share/${PN}
doins liblapack.a
cd ${S}/include/${ATLAS_ARCH}
insinto /usr/include
doins *.h
cd ${S}
dodoc README INSTALL.txt
dodoc doc/*.txt
insinto /usr/share/doc/${P}/ps
doins doc/*.ps
dodoc bin/${ATLAS_ARCH}/INSTALL_LOG/SUMMARY.LOG
}
|