summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sci-libs/lapack-atlas/lapack-atlas-3.8.0.ebuild')
-rw-r--r--sci-libs/lapack-atlas/lapack-atlas-3.8.0.ebuild18
1 files changed, 8 insertions, 10 deletions
diff --git a/sci-libs/lapack-atlas/lapack-atlas-3.8.0.ebuild b/sci-libs/lapack-atlas/lapack-atlas-3.8.0.ebuild
index 36be70a183c7..7c0cc392e1d9 100644
--- a/sci-libs/lapack-atlas/lapack-atlas-3.8.0.ebuild
+++ b/sci-libs/lapack-atlas/lapack-atlas-3.8.0.ebuild
@@ -1,8 +1,8 @@
-# Copyright 1999-2008 Gentoo Foundation
+# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sci-libs/lapack-atlas/lapack-atlas-3.8.0.ebuild,v 1.15 2008/11/28 09:37:05 bicatali Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/lapack-atlas/lapack-atlas-3.8.0.ebuild,v 1.16 2010/12/16 14:32:39 jlec Exp $
-inherit eutils flag-o-matic toolchain-funcs fortran autotools versionator
+inherit eutils flag-o-matic toolchain-funcs autotools versionator
MY_PN="${PN/lapack-/}"
PATCH_V="3.7.39"
@@ -33,8 +33,6 @@ DEPEND="${CDEPEND}
RDEPEND="${CDEPEND}
doc? ( app-doc/lapack-docs )"
-FORTRAN="g77 gfortran ifc"
-
S="${WORKDIR}/ATLAS"
S_LAPACK="${WORKDIR}/${L_PN}-lite-${L_PV}"
BLD_DIR="${S}/gentoo-build"
@@ -78,7 +76,7 @@ src_unpack() {
--libdir="${D}/${DESTTREE}"/$(get_libdir)/atlas \
--incdir="${D}/${DESTTREE}"/include \
-C ac "$(tc-getCC)" -F ac "${CFLAGS}" \
- -C if ${FORTRANC} -F if "${FFLAGS:--O2}" \
+ -C if $(tc-getFC) -F if "${FFLAGS:--O2}" \
-Ss pmake "\$(MAKE) ${MAKEOPTS}" \
-Si cputhrchk 0 ${archselect} \
|| die "configure failed"
@@ -89,7 +87,7 @@ src_unpack() {
eautoreconf
# set up the testing routines
- sed -e "s:g77:${FORTRANC}:" \
+ sed -e "s:g77:$(tc-getFC):" \
-e "s:-funroll-all-loops -O3:${FFLAGS} $(pkg-config --cflags blas cblas):" \
-e "s:LOADOPTS =:LOADOPTS = ${LDFLAGS} $(pkg-config --cflags blas cblas):" \
-e "s:../../blas\$(PLAT).a:$(pkg-config --libs blas cblas):" \
@@ -123,9 +121,9 @@ src_compile() {
RPATH="${DESTTREE}"/$(get_libdir)/${L_PN}/${MY_PN}
local flibs
- [[ ${FORTRANC} == gfortran ]] && flibs=-lgfortran
- [[ ${FORTRANC} == g77 ]] && flibs=-lg2c
- ../libtool --mode=link --tag=F77 ${FORTRANC} \
+ [[ $(tc-getFC) == gfortran ]] && flibs=-lgfortran
+ [[ $(tc-getFC) == g77 ]] && flibs=-lg2c
+ ../libtool --mode=link --tag=F77 $(tc-getFC) \
$(pkg-config --libs blas cblas) -latlas ${flibs} \
-o liblapack.la *.lo -rpath "${RPATH}" \
|| die "Failed to create liblapack.la"