/[gentoo-x86]/sci-libs/blas-reference/blas-reference-19940131.ebuild
Gentoo

Contents of /sci-libs/blas-reference/blas-reference-19940131.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Wed Sep 13 18:08:34 2006 UTC (13 years, 10 months ago) by kugelfang
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +1 -1 lines
FILE REMOVED
Marked -r3 stable on amd64,ia64. Keyworded -r3 ~ia64. Removed -r0 and -r2.

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/blas-reference/blas-reference-19940131.ebuild,v 1.5 2006/01/29 16:22:30 blubb Exp $
4
5 inherit eutils
6
7 Name="blas"
8 DESCRIPTION="FORTRAN reference implementation of the BLAS (linear algebra lib)"
9 HOMEPAGE="http://www.netlib.org/blas/"
10 SRC_URI="http://www.netlib.org/blas/${Name}.tgz"
11
12 LICENSE="public-domain"
13 SLOT="0"
14 KEYWORDS="~x86 amd64"
15 IUSE="ifc"
16
17 DEPEND="sci-libs/blas-config
18 >=sys-devel/libtool-1.5
19 ifc? ( dev-lang/ifc )"
20
21 RDEPEND="ifc? ( dev-lang/ifc )" # Need ifc runtime libraries
22
23 PROVIDE="virtual/blas"
24
25 S=${WORKDIR}
26
27 ifc_info() {
28 if [ -z "${IFCFLAGS}" ]
29 then
30 einfo
31 einfo "You may want to set some ifc optimization flags by running this"
32 einfo "ebuild as, for example, \`IFCFLAGS=\"-O3 -tpp7 -xW\" emerge blas\`"
33 einfo "(Pentium 4 exclusive optimizations)."
34 einfo
35 einfo "ifc defaults to -O2, with code tuned for Pentium 4, but that"
36 einfo "will run on any processor."
37 einfo
38 einfo "Beware that ifc's -O3 is very aggressive, sometimes resulting in"
39 einfo "significantly worse performance."
40 einfo
41 epause 5
42 fi
43 }
44
45 pkg_setup() {
46 use ifc || if [ -z `which g77` ]; then
47 #if ifc is defined then the dep was already checked
48 eerror "No fortran compiler found on the system!"
49 eerror "Please add g77 to your USE flags and reemerge gcc!"
50 die
51 fi
52 }
53
54 src_unpack() {
55 unpack ${A}
56 cd ${S}
57 cp ${FILESDIR}/Makefile .
58 }
59
60 src_compile() {
61 # Profile information will be installed in TOP_PATH:
62 TOP_PATH=${DESTTREE}/lib/blas
63 # Libraries will be installed in RPATH:
64 RPATH=${TOP_PATH}/reference
65
66 if use ifc
67 then
68 ifc_info
69 make static FC="ifc" FFLAGS="${IFCFLAGS}"
70 ifc -shared ${IFCFLAGS} \
71 -Wl,-soname,libblas.so.0 -o libblas.so.0.0.0 *.lo
72 else
73 # libg2c is required to link to libblas.so using ifc:
74 make libs \
75 FC="g77" \
76 FFLAGS="${CFLAGS}" \
77 LIBTOOL_FLAGS="-rpath ${RPATH} -lg2c" \
78 || die
79 fi
80 }
81
82 src_install() {
83 if use ifc
84 then
85 strip --strip-unneeded libblas.so.0.0.0
86 strip --strip-debug libblas.a
87
88 exeinto ${RPATH}
89 doexe libblas.so.0.0.0
90 dosym libblas.so.0.0.0 ${RPATH}/libblas.so.0
91 dosym libblas.so.0.0.0 ${RPATH}/libblas.so
92
93 insinto ${RPATH}
94 doins libblas.a
95 else
96 dodir ${RPATH}
97 libtool install -s libblas.la ${D}/${RPATH}
98 fi
99
100 insinto ${TOP_PATH}
101 doins ${FILESDIR}/f77-reference
102 }
103
104 pkg_postinst() {
105 blas-config f77-reference
106 }

  ViewVC Help
Powered by ViewVC 1.1.20