diff options
author | bicatali <bicatali@32389bae-6d03-0410-99cf-db05cde120eb> | 2005-12-14 09:42:46 +0000 |
---|---|---|
committer | bicatali <bicatali@32389bae-6d03-0410-99cf-db05cde120eb> | 2005-12-14 09:42:46 +0000 |
commit | e3451871c5132f7a0bd2cf46b22287dabd2c43b8 (patch) | |
tree | 59da79823d0e276f3d1be4ad4646a0649eebf8a3 /sci-libs/umfpack/umfpack-4.4.ebuild | |
parent | change gdl category to dev-lang + slight ebuild update (diff) | |
download | sci-e3451871c5132f7a0bd2cf46b22287dabd2c43b8.tar.gz sci-e3451871c5132f7a0bd2cf46b22287dabd2c43b8.tar.bz2 sci-e3451871c5132f7a0bd2cf46b22287dabd2c43b8.zip |
added umfpack-4.4.ebuild
git-svn-id: http://overlays.gentoo.org/svn/proj/science/overlay@33 32389bae-6d03-0410-99cf-db05cde120eb
Diffstat (limited to 'sci-libs/umfpack/umfpack-4.4.ebuild')
-rw-r--r-- | sci-libs/umfpack/umfpack-4.4.ebuild | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/sci-libs/umfpack/umfpack-4.4.ebuild b/sci-libs/umfpack/umfpack-4.4.ebuild new file mode 100644 index 000000000..e58855307 --- /dev/null +++ b/sci-libs/umfpack/umfpack-4.4.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit toolchain-funcs + +MY_PV="v${PV}" +MY_PN="`echo \"${PN}\" | tr a-z A-Z`" + +DESCRIPTION="Library for unsymmetric sparse linear algebra using the Unsymmetric MultiFrontal method" +HOMEPAGE="http://www.cise.ufl.edu/research/sparse/${PN}/" +SRC_URI="http://www.cise.ufl.edu/research/sparse/${PN}/${MY_PV}/${MY_PN}${MY_PV}.tar.gz" +LICENSE="UMFPACK" +SLOT="0" +KEYWORDS="~x86 ~amd64" +IUSE="blas doc" +DEPEND="blas? ( virtual/blas )" + +S="${WORKDIR}/${MY_PN}${MY_PV}" + +src_compile() { + local MYCONFIG="-DNBLAS" + local MYLIB="-lm" + local MYCFLAGS=${CFLAGS} + if use blas; then + MYCFLAGS="${MYCFLAGS} $(blas-config --cflags)" + MYCONFIG="-DCBLAS" + MYLIB="${MYLIB} $(blas-config --clibs)" + fi + + cd ${MY_PN} + emake -j1 \ + CC="$(tc-getCC)" \ + CFLAGS="${MYCFLAGS}" \ + LIB="${MYLIB}" \ + CONFIG="${MYCONFIG}" lib || die "emake failed" +} + +src_install() { + dolib.a {AMD,UMFPACK}/Lib/*.a + insinto /usr/include/umfpack + doins {AMD,UMFPACK}/Include/*.h + docinto amd + dodoc AMD/ChangeLog + docinto umfpack + dodoc UMFPACK/ChangeLog + if use doc; then + insinto /usr/share/doc/${PF}/amd + doins AMD/Doc/*.pdf + insinto /usr/share/doc/${PF}/umfpack + doins UMFPACK/Doc/*.pdf + fi +} |