blob: a119763ede4df456093b871b074217f338ef3037 (
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
|
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# $Header: /var/cvsroot/gentoo-x86/dev-libs/atlas/atlas-3.4.1.ebuild,v 1.2 2003/04/06 07:39:47 george Exp $
IUSE=""
S="${WORKDIR}/ATLAS"
DESCRIPTION="automatically tuned linear algebra software"
SRC_URI="http://unc.dl.sourceforge.net/sourceforge/math-atlas/${PN}${PV}.tar.bz2"
HOMEPAGE="http://math-atlas.sourceforge.net"
KEYWORDS="x86 sparc"
LICENSE="BSD"
#not sure if this is a best choice, as this is a lib,
#but setting SLOT to 0, following previous version
SLOT="0"
DEPEND="virtual/glibc"
src_compile() {
# create a file answer to be redirected to make
echo "023" > answer
echo "" >> answer
echo "" >> answer
echo "" >> answer
echo "" >> answer
# the architecture of the processor is determined from the CFLAGS
case $CFLAGS in
*athlon*)
echo "AMD Athlon Processor Identified"
echo 2 >> answer;;
*pentiumpro*)
echo "Pentium Pro Processor Identified"
echo 3 >> answer;;
*pentium2*)
echo "Pentium II Processor Identified"
echo 4 >> answer;;
*pentium3*)
echo "Pentium III Processor Identified"
echo 5 >> answer;;
*pentium4*)
echo "Pentium IV Processor Identified"
echo 6 >> answer;;
*)
echo "Unknown Processor"
echo 1 >> answer;;
esac
echo "" >> answer
echo "" >> answer
echo "" >> answer
echo "" >> answer
echo "" >> answer
echo "" >> answer
echo "" >> answer
make < answer || die
TMPSTR=$(ls Make.Linux*)
ATLAS_ARCH=${TMPSTR#'Make.'}
make install arch=${ATLAS_ARCH} || die
}
src_install () {
# almost completely copied from the atlas-3.2.1-r1 ebuild
cd ${S}/lib/${ATLAS_ARCH}
insinto /usr/lib
dolib.a libatlas.a libcblas.a libf77blas.a liblapack.a
cd ${S}/include
insinto /usr/include
doins cblas.h clapack.h
cd ${S}
dodoc README INSTALL.txt
dodoc doc/*.txt
insinto /usr/share/doc/${PN}-${PV}
doins doc/*.ps
dodoc bin/${ATLAS_ARCH}/INSTALL_LOG/SUMMARY.LOG
}
|