diff options
author | Danny van Dyk <kugelfang@gentoo.org> | 2004-09-22 11:55:27 +0000 |
---|---|---|
committer | Danny van Dyk <kugelfang@gentoo.org> | 2004-09-22 11:55:27 +0000 |
commit | 3454506468036633a406e4bcb692b575de165eff (patch) | |
tree | d88b6bb6bb13cff56407dd215a6c82e246a50ede /app-sci/acml | |
parent | version bump (Manifest recommit) (diff) | |
download | gentoo-2-3454506468036633a406e4bcb692b575de165eff.tar.gz gentoo-2-3454506468036633a406e4bcb692b575de165eff.tar.bz2 gentoo-2-3454506468036633a406e4bcb692b575de165eff.zip |
Initial Import.
Diffstat (limited to 'app-sci/acml')
-rw-r--r-- | app-sci/acml/ChangeLog | 11 | ||||
-rw-r--r-- | app-sci/acml/Manifest | 4 | ||||
-rw-r--r-- | app-sci/acml/acml-2.1.0.ebuild | 71 | ||||
-rw-r--r-- | app-sci/acml/files/c-ACML.blas | 14 | ||||
-rw-r--r-- | app-sci/acml/files/digest-acml-2.1.0 | 1 | ||||
-rw-r--r-- | app-sci/acml/files/f77-ACML.blas | 14 | ||||
-rw-r--r-- | app-sci/acml/files/f77-ACML.lapack | 13 | ||||
-rw-r--r-- | app-sci/acml/metadata.xml | 12 |
8 files changed, 140 insertions, 0 deletions
diff --git a/app-sci/acml/ChangeLog b/app-sci/acml/ChangeLog new file mode 100644 index 000000000000..8b17edb8f002 --- /dev/null +++ b/app-sci/acml/ChangeLog @@ -0,0 +1,11 @@ +# ChangeLog for app-sci/acml +# Copyright 1999-2004 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/app-sci/acml/ChangeLog,v 1.1 2004/09/22 11:55:27 kugelfang Exp $ + +*acml-2.1.0 (22 Sep 2004) + + 22 Sep 2004; Danny van Dyk <kugelfang@gentoo.org> +metadata.xml, + +files/c-ACML.blas, +files/f77-ACML.blas, +files/f77-ACML.lapack, + +acml-2.1.0.ebuild: + Initial Import. + diff --git a/app-sci/acml/Manifest b/app-sci/acml/Manifest new file mode 100644 index 000000000000..76d34f930ae8 --- /dev/null +++ b/app-sci/acml/Manifest @@ -0,0 +1,4 @@ +MD5 41b06d0a80915d08c681c65343c5beef skel.ChangeLog 3666 +MD5 53c11476ac2f2668f4c154c1d0055e44 skel.metadata.xml 789 +MD5 c6d884f4f8f94a8fe6a07151e807a4c8 acml-2.1.0.ebuild 579 +MD5 f053683eb9a61c43050985717331ef7b files/digest-acml-2.1.0 67 diff --git a/app-sci/acml/acml-2.1.0.ebuild b/app-sci/acml/acml-2.1.0.ebuild new file mode 100644 index 000000000000..fbeaa5605337 --- /dev/null +++ b/app-sci/acml/acml-2.1.0.ebuild @@ -0,0 +1,71 @@ +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-sci/acml/acml-2.1.0.ebuild,v 1.1 2004/09/22 11:55:27 kugelfang Exp $ + +inherit eutils + +DESCRIPTION="AMD Core Math Library (ACML) for x86 and amd64 CPUs" +HOMEPAGE="http://www.developwithamd.com/appPartnerProg/acml/forms/index.cfm?action=home" + +MY_PV=${PV//\./\-} +S=${WORKDIR} + +SRC_URI="amd64? ( acml-64bit-${MY_PV}.tgz ) + x86? ( acml-32bit-${MY_PV}.tgz )" +RESTRICT="fetch nostrip" +IUSE="" +LICENSE="ACML" +KEYWORDS="~amd64 ~x86" +SLOT="0" +RDEPEND="virtual/glibc" +PROVIDE="virtual/blas + virtual/lapack" + +src_unpack() { + unpack ${A} + if [ "${ARCH}" == "amd64" ]; then + export SUFFIX="64" + else + export SUFFIX="32" + fi + (DISTDIR="${S}" unpack contents${SUFFIX}.tgz) + + # Remove non-gnu libraries... + # TODO: probably a useflag for non-gnu libraries to be used ? + rm -Rf ${S}/pgi* install*.sh README* + mv Doc doc + +} + +src_compile() { + return +} + +src_install() { + # Documentation + cd ${S}/doc + dodoc acml.* + + # Headers + mkdir -p ${D}/usr/include/acml/ + cp ${S}/gnu${SUFFIX}/include/* ${D}/usr/include/acml/ + + # Libraries + mkdir -p ${D}/usr/$(get_libdir)/ + cp ${S}/gnu${SUFFIX}/lib/* ${D}/usr/$(get_libdir)/ + unset SUFFIX + + # Configfiles + mkdir -p ${D}/usr/$(get_libdir)/{blas,lapack} + for x in ${FILESDIR}/*.{blas,lapack}; do + y="$(basename $x)" + cp $x ${D}/usr/$(get_libdir)/${y/*\.}/${y/\.*} + done +} + +pkg_postint() { + einfo "To use ACML's BLAS features, you have to issue (as root):" + einfo "\n\t/usr/bin/blas-config ACML" + einfo "To use ACML's LAPACK features, you have to issue (as root):" + einfo "\n\t/usr/bin/lapack-config ACML" +} diff --git a/app-sci/acml/files/c-ACML.blas b/app-sci/acml/files/c-ACML.blas new file mode 100644 index 000000000000..5a67234a2823 --- /dev/null +++ b/app-sci/acml/files/c-ACML.blas @@ -0,0 +1,14 @@ +CFLAGS="-I/usr/include/acml" +CLIBS="-L/usr/$(get_libdir)/ -lcblas" + +setup() { +MY_LIBDIR="$(get_libdir)" +einfo "/usr/${MY_LIBDIR}/libcblas.so -> libacml.so" +ln -sf /usr/${MY_LIBDIR}/libacml.so /usr/${MY_LIBDIR}/libcblas.so + +einfo "/usr/${MY_LIBDIR}/libcblas.so.0 -> libacml.so" +ln -sf /usr/${MY_LIBDIR}/libacml.so /usr/${MY_LIBDIR}/libcblas.so.0 + +einfo "/usr/${MY_LIBDIR}/libcblas.a -> libacml.a" +ln -sf /usr/${MY_LIBDIR}/libacml.a /usr/${MY_LIBDIR}/libcblas.a +} diff --git a/app-sci/acml/files/digest-acml-2.1.0 b/app-sci/acml/files/digest-acml-2.1.0 new file mode 100644 index 000000000000..e016bc36a026 --- /dev/null +++ b/app-sci/acml/files/digest-acml-2.1.0 @@ -0,0 +1 @@ +MD5 dd459804fb8fbf50005614bfc73e8016 acml-64bit-2-1-0.tgz 25311085 diff --git a/app-sci/acml/files/f77-ACML.blas b/app-sci/acml/files/f77-ACML.blas new file mode 100644 index 000000000000..c200afc3d6a2 --- /dev/null +++ b/app-sci/acml/files/f77-ACML.blas @@ -0,0 +1,14 @@ +F77LIBS="-L/usr/$(get_libdir)/ -lblas" + +setup() { +MY_LIBDIR="$(get_libdir)" +einfo "/usr/${MY_LIBDIR}/libblas.so -> libacml.so" +ln -sf /usr/${MY_LIBDIR}/libacml.so /usr/${MY_LIBDIR}/libblas.so + +einfo "/usr/${MY_LIBDIR}/libblas.so.0 -> libacml.so" +ln -sf /usr/${MY_LIBDIR}/libacml.so /usr/${MY_LIBDIR}/libblas.so.0 + +einfo "/usr/${MY_LIBDIR}/libblas.a -> libacml.a" +ln -sf /usr/${MY_LIBDIR}/libacml.a /usr/${MY_LIBDIR}/libblas.a + +} diff --git a/app-sci/acml/files/f77-ACML.lapack b/app-sci/acml/files/f77-ACML.lapack new file mode 100644 index 000000000000..90122de523b3 --- /dev/null +++ b/app-sci/acml/files/f77-ACML.lapack @@ -0,0 +1,13 @@ +F77LIBS="-L/usr/$(get_libdir)/ -lacml" + +setup() { +MY_LIBDIR="$(get_libdir)" +einfo "/usr/${MY_LIBDIR}/liblapack.so -> libacml.so" +ln -sf /usr/${MY_LIBDIR}/libacml.so /usr/${MY_LIBDIR}/liblapack.so + +einfo "/usr/${MY_LIBDIR}/liblapack.so.0 -> libacml.so" +ln -sf /usr/${MY_LIBDIR}/libacml.so /usr/${MY_LIBDIR}/liblapack.so.0 + +einfo "/usr/${MY_LIBDIR}/liblapack.a -> libacml.a" +ln -sf /usr/${MY_LIBDIR}/libacml.a /usr/${MY_LIBDIR}/liblapack.a +} diff --git a/app-sci/acml/metadata.xml b/app-sci/acml/metadata.xml new file mode 100644 index 000000000000..3389958d3abc --- /dev/null +++ b/app-sci/acml/metadata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>sci</herd> +<maintainer> + <email>kugelfang@gentoo.org</email> +</maintainer> +<longdescription> +AMD Core Math Library provides an implementation of the BLAS, +LAPACK and FFT libraries highly optimized for AMD x86 and amd64 CPUs. +</longdescription> +</pkgmetadata> |