# Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License, v2 or later # $Header: /home/cvsroot/gentoo-x86/app-sci/lapack/lapack-3.0.ebuild,v 1.3 2003/02/13 09:23:06 vapier Exp $ S=${WORKDIR}/LAPACK LICENSE="lapack" SLOT="0" KEYWORDS="x86" IUSE="" DESCRIPTION="Linear Algebra PACKage for scientists, engineers, and mathematicians. This contains the libraries for creating programs that use LAPACK." SRC_URI="http://www.netlib.org/lapack/lapack.tgz" HOMEPAGE="http://www.netlib.org/lapack/" DEPEND="virtual/glibc >=dev-libs/atlas-3.4.1" src_compile() { # first sort the makefile out - set BLASLIB to use ATLAS cat INSTALL/make.inc.LINUX | sed s/BLASLIB.*// > make.inc echo "BLASLIB = /usr/lib/libcblas.a /usr/lib/libf77blas.a /usr/lib/libatlas.a" >> make.inc # check that ATLAS is installed corectly make blas_testing # now the proper install can begin # set the path first - need this otherwise make breaks! export PATH="$PATH:./" make install # this builds some install utilities make lib make testing # build optimised LAPACK library using existing minimal liblapack.a # provided by ATLAS - taken from atlas docs mkdir tmp/ cd tmp/ ar x /usr/lib/liblapack.a ar r ../lapack_LINUX.a *.o cd ../ rm -rf tmp/ mv lapack_LINUX.a lapack.a } src_install () { dolib.a lapack.a }