diff options
author | bicatali <bicatali@32389bae-6d03-0410-99cf-db05cde120eb> | 2007-08-16 16:00:47 +0000 |
---|---|---|
committer | bicatali <bicatali@32389bae-6d03-0410-99cf-db05cde120eb> | 2007-08-16 16:00:47 +0000 |
commit | c399feead1b8d9ea84e3940a60a02f6b056d5df5 (patch) | |
tree | 9c6487ff15eb20e050bd3959e766f0daa43f010f /sci-libs/blas-atlas | |
parent | added new virtual blas, cblas and lapack (diff) | |
download | sci-c399feead1b8d9ea84e3940a60a02f6b056d5df5.tar.gz sci-c399feead1b8d9ea84e3940a60a02f6b056d5df5.tar.bz2 sci-c399feead1b8d9ea84e3940a60a02f6b056d5df5.zip |
added many updates to blas/lapack packages
git-svn-id: http://overlays.gentoo.org/svn/proj/science/overlay@691 32389bae-6d03-0410-99cf-db05cde120eb
Diffstat (limited to 'sci-libs/blas-atlas')
-rw-r--r-- | sci-libs/blas-atlas/Manifest | 45 | ||||
-rw-r--r-- | sci-libs/blas-atlas/blas-atlas-3.7.37.ebuild | 208 | ||||
-rw-r--r-- | sci-libs/blas-atlas/files/atlas-asm-gentoo.patch | 12 | ||||
-rw-r--r-- | sci-libs/blas-atlas/files/blas.pc.in | 11 | ||||
-rw-r--r-- | sci-libs/blas-atlas/files/cblas.pc.in | 12 | ||||
-rw-r--r-- | sci-libs/blas-atlas/files/digest-blas-atlas-3.7.37 | 6 | ||||
-rw-r--r-- | sci-libs/blas-atlas/files/eselect.blas.atlas | 4 | ||||
-rw-r--r-- | sci-libs/blas-atlas/files/eselect.blas.threaded-atlas | 4 | ||||
-rw-r--r-- | sci-libs/blas-atlas/files/eselect.cblas.atlas | 5 | ||||
-rw-r--r-- | sci-libs/blas-atlas/files/eselect.cblas.threaded-atlas | 5 | ||||
-rw-r--r-- | sci-libs/blas-atlas/files/war | 26 | ||||
-rw-r--r-- | sci-libs/blas-atlas/metadata.xml | 14 |
12 files changed, 352 insertions, 0 deletions
diff --git a/sci-libs/blas-atlas/Manifest b/sci-libs/blas-atlas/Manifest new file mode 100644 index 000000000..3fa4b3f4e --- /dev/null +++ b/sci-libs/blas-atlas/Manifest @@ -0,0 +1,45 @@ +AUX atlas-asm-gentoo.patch 408 RMD160 3cea2f4a5a96ec22a4d0cfc78d691198a2d1a0da SHA1 493d066be68c66cca1f0c906d588da8983ec7afa SHA256 00f9247d422c758ef8ff43446a36a6dbb7962f94e5d01307318c87a90a78355b +MD5 fb9ca923b595b67967a744339e7a32a6 files/atlas-asm-gentoo.patch 408 +RMD160 3cea2f4a5a96ec22a4d0cfc78d691198a2d1a0da files/atlas-asm-gentoo.patch 408 +SHA256 00f9247d422c758ef8ff43446a36a6dbb7962f94e5d01307318c87a90a78355b files/atlas-asm-gentoo.patch 408 +AUX blas.pc.in 301 RMD160 e82627c38aa09c8eb2581a4dd8a38c1670ed6098 SHA1 e8c80353ba72bee2848767b70f7575b723b84f15 SHA256 cb993e61b03514c4c69fac43540e45e759cf57635e2a8d6900118543d06ff433 +MD5 b3e049b36e34287f6482a9122dccd604 files/blas.pc.in 301 +RMD160 e82627c38aa09c8eb2581a4dd8a38c1670ed6098 files/blas.pc.in 301 +SHA256 cb993e61b03514c4c69fac43540e45e759cf57635e2a8d6900118543d06ff433 files/blas.pc.in 301 +AUX cblas.pc.in 312 RMD160 a4a66d41736ba1c5fb669c8a96c48f952fb7fcf5 SHA1 85b24f0257e79e8adc8abea3e1117809cc6cf253 SHA256 df3a0733085883397c37fa273d239b0e8c9d875521383f581fdf473013c3b5c3 +MD5 eef01fd3138262258bae911fd6921837 files/cblas.pc.in 312 +RMD160 a4a66d41736ba1c5fb669c8a96c48f952fb7fcf5 files/cblas.pc.in 312 +SHA256 df3a0733085883397c37fa273d239b0e8c9d875521383f581fdf473013c3b5c3 files/cblas.pc.in 312 +AUX eselect.blas.atlas 197 RMD160 fc69bacf24979485653a2d61298fdbf21464c089 SHA1 68de5da171fdd3e0ff5a7773b36cee86bce5b76c SHA256 72e659f90bb5734b50a5ea02d92348dfcf99868ecbabdcf4cb64bf3bded4e3bb +MD5 a21c4702fce8fdfea0541c2e47f5e348 files/eselect.blas.atlas 197 +RMD160 fc69bacf24979485653a2d61298fdbf21464c089 files/eselect.blas.atlas 197 +SHA256 72e659f90bb5734b50a5ea02d92348dfcf99868ecbabdcf4cb64bf3bded4e3bb files/eselect.blas.atlas 197 +AUX eselect.blas.threaded-atlas 233 RMD160 eb70808c9a2e6a27b4f10f991b5c59a693e75914 SHA1 93c8a25e4e0b1e8168bafcd8fb62109e656f56ad SHA256 85d98b8a4b8eb75927eac32623dc3c6a7ee55a259176196d075f6b112ae35726 +MD5 8a1f2685e5080a6d02239e4cf0f74f75 files/eselect.blas.threaded-atlas 233 +RMD160 eb70808c9a2e6a27b4f10f991b5c59a693e75914 files/eselect.blas.threaded-atlas 233 +SHA256 85d98b8a4b8eb75927eac32623dc3c6a7ee55a259176196d075f6b112ae35726 files/eselect.blas.threaded-atlas 233 +AUX eselect.cblas.atlas 240 RMD160 08dd3aba18a1c0c5a6a9e925a506cd8a6118c906 SHA1 92184db3b149e0225b3f09b02cc29f9eea0d6869 SHA256 44234a398340b79873cf40548c0b67179d42235ddae7ef7c9b8caf7cf2f20ac9 +MD5 adbbbf334d670c397d79db05eae7a5a3 files/eselect.cblas.atlas 240 +RMD160 08dd3aba18a1c0c5a6a9e925a506cd8a6118c906 files/eselect.cblas.atlas 240 +SHA256 44234a398340b79873cf40548c0b67179d42235ddae7ef7c9b8caf7cf2f20ac9 files/eselect.cblas.atlas 240 +AUX eselect.cblas.threaded-atlas 279 RMD160 86b5feb044f2abc3760aa93abc9dcf5d5120d36f SHA1 d5d36f5d475585ef1ef556fc7de20e3688e9bcee SHA256 abb808af099e7ff410186e69ce7e8ada90f6482bc7ebe306bc8b98a00298d82c +MD5 419b3217f2446bbebef90cce8ff3f8e8 files/eselect.cblas.threaded-atlas 279 +RMD160 86b5feb044f2abc3760aa93abc9dcf5d5120d36f files/eselect.cblas.threaded-atlas 279 +SHA256 abb808af099e7ff410186e69ce7e8ada90f6482bc7ebe306bc8b98a00298d82c files/eselect.cblas.threaded-atlas 279 +AUX war 545 RMD160 6f44c25e739703f988180959608094aa633db7bf SHA1 d90a66e57395e01b94bac9b444590de8fef77aca SHA256 696a8e1cc3918ce5d19f0aa41250d5f052244527a5e3804b025db7938f06ae7b +MD5 13d26350d75e6993f1b3ec48ca97f14e files/war 545 +RMD160 6f44c25e739703f988180959608094aa633db7bf files/war 545 +SHA256 696a8e1cc3918ce5d19f0aa41250d5f052244527a5e3804b025db7938f06ae7b files/war 545 +DIST atlas-3.7.37-shared-libs.patch.bz2 6373 RMD160 bcfb01319951b8ea5def473f47e6b8f3ea37906a SHA1 c8ca108f50a7968ad98be64a70ea1b0b5e87ad5d SHA256 17cd5fe09733eff63f3c332d63ca42bc62d461830027de9052eb24c48dadc9ec +DIST atlas3.7.37.tar.bz2 2282682 RMD160 33f728d2d25c396179748c43aeff9ab71107ddc8 SHA1 32ea739fc4682fb2a9b6625d1a912baaf8f31e1a SHA256 bbc56b6355c07666d8021f640da00a35838e87ec4cb4cf52bdbb25336635fd65 +EBUILD blas-atlas-3.7.37.ebuild 6419 RMD160 bb79fdc24607130731c86a97a7d569a81a1e32f9 SHA1 fda65a08d1915a70d2a6be736a513897ebbc23c9 SHA256 2af670e81baa74ddee2dc59b0cea62d8dc85efd50fc8731a0a091e2d0bb424e4 +MD5 4fdcc54130d4e0b5853a9ace559ebdaa blas-atlas-3.7.37.ebuild 6419 +RMD160 bb79fdc24607130731c86a97a7d569a81a1e32f9 blas-atlas-3.7.37.ebuild 6419 +SHA256 2af670e81baa74ddee2dc59b0cea62d8dc85efd50fc8731a0a091e2d0bb424e4 blas-atlas-3.7.37.ebuild 6419 +MISC metadata.xml 580 RMD160 7ce0902e03a760caed898006d33e2b7a02889a4a SHA1 79f4b164312be4ef4997f45bc565245d7e38cf23 SHA256 cdf15df04609b262f0bb8f6b8dad7a5b4c60851d943b4b5112b3e890bc18772c +MD5 10420bb4a733d750626ceda5880997ad metadata.xml 580 +RMD160 7ce0902e03a760caed898006d33e2b7a02889a4a metadata.xml 580 +SHA256 cdf15df04609b262f0bb8f6b8dad7a5b4c60851d943b4b5112b3e890bc18772c metadata.xml 580 +MD5 9dd949834c39796593d9379b1440f42b files/digest-blas-atlas-3.7.37 518 +RMD160 8fa70a56e5f74fd5eb968c2ba9c0b117e7390e09 files/digest-blas-atlas-3.7.37 518 +SHA256 c757a062137352420e0219f5f9787c73a73fc617d3a1e78b3a4410e3fbaf5e3a files/digest-blas-atlas-3.7.37 518 diff --git a/sci-libs/blas-atlas/blas-atlas-3.7.37.ebuild b/sci-libs/blas-atlas/blas-atlas-3.7.37.ebuild new file mode 100644 index 000000000..0a2305d63 --- /dev/null +++ b/sci-libs/blas-atlas/blas-atlas-3.7.37.ebuild @@ -0,0 +1,208 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit eutils toolchain-funcs fortran + +DESCRIPTION="Automatically Tuned Linear Algebra Software BLAS implementation" +HOMEPAGE="http://math-atlas.sourceforge.net/" +MY_PN=${PN/blas-/} +SRC_URI="mirror://sourceforge/math-atlas/${MY_PN}${PV}.tar.bz2 + http://dev.gentoo.org/~bicatali/${MY_PN}-${PV}-shared-libs.patch.bz2" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~sparc ~x86" +IUSE="doc" + +RDEPEND="app-admin/eselect-blas + app-admin/eselect-cblas + dev-util/pkgconfig + doc? ( app-doc/blas-docs )" + +DEPEND="app-admin/eselect-blas + app-admin/eselect-cblas + >=sys-devel/libtool-1.5" + +S="${WORKDIR}/ATLAS" +BLD_DIR="${S}/gentoo-build" +RPATH="${DESTTREE}/$(get_libdir)/blas" + +pkg_setup() { + # icc won't compile (as of icc-10.0.025) + # and will blow out $PORTAGE_TMPDIR + if [[ $(tc-getCC) = icc* ]]; then + eerror "icc compiler is not supported with sci-libs/blas-atlas" + die "blas-atlas won't compile with icc" + fi + + FORTRAN="g77 gfortran ifc" + fortran_pkg_setup + echo + ewarn "Please make sure to disable CPU throttling completely" + ewarn "during the compile of blas-atlas. Otherwise, all atlas" + ewarn "generated timings will be completely random and the" + ewarn "performance of the resulting libraries will be degraded" + ewarn "considerably." + echo + ewarn "For users of <=gcc-4.1.1 only:" + ewarn "If you experience failing SANITY tests during" + ewarn "atlas' compile please try passing -mfpmath=387; this" + ewarn "option might also result in much better performance" + ewarn "than using then sse instruction set depending on your" + ewarn "CPU." + echo + epause 10 +} + +src_unpack() { + unpack ${A} + cd ${S} + + epatch "${DISTDIR}"/${MY_PN}-${PV}-shared-libs.patch.bz2 + epatch "${FILESDIR}"/${MY_PN}-asm-gentoo.patch + + # increase amount of workspace to improve threaded performance + sed -e "s:16777216:167772160:" -i include/atlas_lvl3.h || \ + die "Failed to fix ATL_MaxMalloc" + + sed -e "s:= gcc:= $(tc-getCC) ${CFLAGS}:" \ + -i CONFIG/src/SpewMakeInc.c || die "Failed to fix Spewmake" + + mkdir ${BLD_DIR} || die "failed to generate build directory" + cd ${BLD_DIR} + cp "${FILESDIR}"/war . && chmod a+x war || \ + die "failed to install war" + + local archselect + if [[ "${ARCH}" == "amd64" || "${ARCH}" == "ppc64" ]]; then + archselect="-b 64" + elif [ "${ARCH}" == "alpha" ]; then + archselect="" + else + archselect="-b 32" + fi + + ../configure \ + --cc="$(tc-getCC)" \ + --cflags="${CFLAGS}" \ + --prefix="${D}/${DESTTREE}" \ + --libdir="${D}/${DESTTREE}/$(get_libdir)/atlas" \ + --incdir="${D}/${DESTTREE}/include" \ + -C ac "$(tc-getCC)" -F ac "${CFLAGS}" \ + -C if "${FORTRANC}" -F if "${FFLAGS}" \ + -Ss pmake "\$(MAKE) ${MAKEOPTS}" \ + -Si cputhrchk 0 ${archselect} \ + || die "configure failed" +} + +src_compile() { + cd ${BLD_DIR} + emake -j1 || die "emake failed" + + make shared LIBDIR="$(get_libdir)" RPATH="${RPATH}/atlas" || \ + die "failed to build shared libraries" + + # build shared libraries of threaded libraries if applicable + if [ -d gentoo/libptcblas.a ]; then + make ptshared LIBDIR="$(get_libdir)" RPATH="${RPATH}/threaded-atlas" || \ + die "failed to build threaded shared libraries" + fi +} + +src_test() { + # make check does not work because + # we don't build lapack libs + for i in F77 C; do + einfo "Testing ${i} interface" + cd ${BLD_DIR}/interfaces/blas/${i}/testing + make sanity_test || die "make tests for ${i} failed" + if [ -d ${BLD_DIR}/gentoo/libptf77blas.a ]; then + make ptsanity_test || die "make tests threaded for ${i}failed" + fi + done + echo "Timing ATLAS" + cd ${BLD_DIR} + make time || die "make time failed" +} + +src_install () { + dodir "${RPATH}"/atlas + cd ${BLD_DIR}/gentoo/libs + cp -P libatlas* "${D}/${DESTTREE}/$(get_libdir)" || \ + die "Failed to install libatlas" + + # pkgconfig files + local extlibs="-lm" + local threadlibs + [[ ${FORTRANC} == "gfortran" ]] && extlibs="${extlibs} -lgfortran" + [[ ${FORTRANC} == "g77" ]] && extlibs="${extlibs} -lg2c" + cp "${FILESDIR}"/blas.pc.in blas.pc + cp "${FILESDIR}"/cblas.pc.in cblas.pc + sed -i \ + -e "s:@LIBDIR@:$(get_libdir):" \ + -e "s:@PV@:${PV}:" \ + -e "s:@EXTLIBS@:${extlibs}:g" \ + -e "s:@THREADLIBS@:${threadlibs}:g" \ + *blas.pc || die "sed *blas.pc failed" + + cp -P *blas* "${D}/${RPATH}"/atlas || \ + die "Failed to install blas/cblas" + eselect blas add $(get_libdir) "${FILESDIR}"/eselect.blas.atlas atlas + eselect cblas add $(get_libdir) "${FILESDIR}"/eselect.cblas.atlas atlas + + if [ -d ${BLD_DIR}/gentoo/threaded-libs ] + then + dodir "${RPATH}"/threaded-atlas + cd ${BLD_DIR}/gentoo/threaded-libs + + # pkgconfig files + cp ${FILESDIR}/blas.pc.in blas.pc + cp ${FILESDIR}/cblas.pc.in cblas.pc + threadlibs="-lpthread" + sed -i \ + -e "s:@LIBDIR@:$(get_libdir):" \ + -e "s:@PV@:${PV}:" \ + -e "s:@EXTLIBS@:${extlibs}:g" \ + -e "s:@THREADLIBS@:${threadlibs}:g" \ + *blas.pc || die "sed *blas.pc failed" + + cp -P * "${D}/${RPATH}"/threaded-atlas || \ + die "Failed to install threaded atlas" + eselect blas add $(get_libdir) "${FILESDIR}"/eselect.blas.threaded-atlas threaded-atlas + eselect cblas add $(get_libdir) "${FILESDIR}"/eselect.cblas.threaded-atlas threaded-atlas + fi + + insinto "${DESTTREE}"/include/atlas + doins "${S}"/include/cblas.h "${S}"/include/atlas_misc.h \ + "${S}"/include/atlas_enum.h || \ + die "failed to install headers" + + # These headers contain the architecture-specific + # optimizations determined by ATLAS. The atlas-lapack build + # is much shorter if they are available, so save them: + doins ${BLD_DIR}/include/*.h || \ + die "failed to install timing headers" + + # some docs + cd "${S}"/doc + dodoc INDEX.txt AtlasCredits.txt ChangeLog || die "dodoc failed" + # atlas specific doc (blas generic docs installed by blas-docs) + if use doc; then + insinto /usr/share/doc/${PF} + doins atlas*pdf cblasqref.pdf || die "doins docs failed" + fi +} + +pkg_postinst() { + local THREADED + [ -f "${RPATH}"/threaded-atlas/libcblas.a ] && THREADED="threaded-" + [[ -z "$(eselect blas show)" ]] && eselect blas set ${THREADED}atlas + [[ -z "$(eselect cblas show)" ]] && eselect cblas set ${THREADED}atlas + + elog "Use 'eselect blas' and 'eselect cblas' (as root) to select" + elog "one of the ATLAS blas and cblas profiles." + elog "Use 'pkg-config --libs blas' to link with ATLAS blas." + elog "Use 'pkg-config --cflags cblas' and 'pkg-config --libs cblas'" + elog "to compile and link with ATLAS cblas" +} diff --git a/sci-libs/blas-atlas/files/atlas-asm-gentoo.patch b/sci-libs/blas-atlas/files/atlas-asm-gentoo.patch new file mode 100644 index 000000000..ca5a7a8ee --- /dev/null +++ b/sci-libs/blas-atlas/files/atlas-asm-gentoo.patch @@ -0,0 +1,12 @@ +diff -Naur ATLAS/include/contrib/camm_dpa.h ATLAS-new/include/contrib/camm_dpa.h +--- ATLAS/include/contrib/camm_dpa.h 2006-09-09 15:33:15.000000000 -0400 ++++ ATLAS-new/include/contrib/camm_dpa.h 2006-09-26 10:18:24.000000000 -0400 +@@ -1619,7 +1619,7 @@ + #if defined(SCPLX) || (defined(DCPLX) && defined(ATL_SSE2)) + ,"m" (w) + #endif +- :"ax","bx","cx","dx","si","di"); ++ :"ax","cx","dx","si","di"); + + + } diff --git a/sci-libs/blas-atlas/files/blas.pc.in b/sci-libs/blas-atlas/files/blas.pc.in new file mode 100644 index 000000000..8c0eefe28 --- /dev/null +++ b/sci-libs/blas-atlas/files/blas.pc.in @@ -0,0 +1,11 @@ +prefix=/usr +exec_prefix=${prefix} +libdir=/usr/@LIBDIR@ +includedir=${prefix}/include + +Name: blas +Description: Automatically Tuned Linear Algebra Software F77 BLAS implementation +Version: @PV@ +URL: http://math-atlas.sourceforge.net/ +Libs: -L${libdir} -lblas -latlas @THREADLIBS@ +Libs.private: @EXTLIBS@ diff --git a/sci-libs/blas-atlas/files/cblas.pc.in b/sci-libs/blas-atlas/files/cblas.pc.in new file mode 100644 index 000000000..d40314043 --- /dev/null +++ b/sci-libs/blas-atlas/files/cblas.pc.in @@ -0,0 +1,12 @@ +prefix=/usr +exec_prefix=${prefix} +libdir=/usr/@LIBDIR@ +includedir=${prefix}/include + +Name: cblas +Description: Automatically Tuned Linear Algebra Software C BLAS implementation +Version: @PV@ +URL: http://math-atlas.sourceforge.net/ +Libs: -L${libdir} -lcblas -latlas +Libs.private: @EXTLIBS@ +Cflags: -I${includedir} diff --git a/sci-libs/blas-atlas/files/digest-blas-atlas-3.7.37 b/sci-libs/blas-atlas/files/digest-blas-atlas-3.7.37 new file mode 100644 index 000000000..2df04aa01 --- /dev/null +++ b/sci-libs/blas-atlas/files/digest-blas-atlas-3.7.37 @@ -0,0 +1,6 @@ +MD5 88fe3d5e7eb9cda6f87be1264d5995b4 atlas-3.7.37-shared-libs.patch.bz2 6373 +RMD160 bcfb01319951b8ea5def473f47e6b8f3ea37906a atlas-3.7.37-shared-libs.patch.bz2 6373 +SHA256 17cd5fe09733eff63f3c332d63ca42bc62d461830027de9052eb24c48dadc9ec atlas-3.7.37-shared-libs.patch.bz2 6373 +MD5 5c3fb9a4c74e8426105558a23b2215ff atlas3.7.37.tar.bz2 2282682 +RMD160 33f728d2d25c396179748c43aeff9ab71107ddc8 atlas3.7.37.tar.bz2 2282682 +SHA256 bbc56b6355c07666d8021f640da00a35838e87ec4cb4cf52bdbb25336635fd65 atlas3.7.37.tar.bz2 2282682 diff --git a/sci-libs/blas-atlas/files/eselect.blas.atlas b/sci-libs/blas-atlas/files/eselect.blas.atlas new file mode 100644 index 000000000..a6f69f03d --- /dev/null +++ b/sci-libs/blas-atlas/files/eselect.blas.atlas @@ -0,0 +1,4 @@ +blas/atlas/libblas.so /usr/@LIBDIR@/libblas.so +blas/atlas/libblas.so.0 /usr/@LIBDIR@/libblas.so.0 +blas/atlas/libblas.a /usr/@LIBDIR@/libblas.a +../blas/atlas/blas.pc /usr/@LIBDIR@/pkgconfig/blas.pc diff --git a/sci-libs/blas-atlas/files/eselect.blas.threaded-atlas b/sci-libs/blas-atlas/files/eselect.blas.threaded-atlas new file mode 100644 index 000000000..501e89e07 --- /dev/null +++ b/sci-libs/blas-atlas/files/eselect.blas.threaded-atlas @@ -0,0 +1,4 @@ +blas/threaded-atlas/libblas.so /usr/@LIBDIR@/libblas.so +blas/threaded-atlas/libblas.so.0 /usr/@LIBDIR@/libblas.so.0 +blas/threaded-atlas/libblas.a /usr/@LIBDIR@/libblas.a +../blas/threaded-atlas/blas.pc /usr/@LIBDIR@/pkgconfig/blas.pc diff --git a/sci-libs/blas-atlas/files/eselect.cblas.atlas b/sci-libs/blas-atlas/files/eselect.cblas.atlas new file mode 100644 index 000000000..a8e0b74fb --- /dev/null +++ b/sci-libs/blas-atlas/files/eselect.cblas.atlas @@ -0,0 +1,5 @@ +blas/atlas/libcblas.so /usr/@LIBDIR@/libcblas.so +blas/atlas/libcblas.so.0 /usr/@LIBDIR@/libcblas.so.0 +blas/atlas/libcblas.a /usr/@LIBDIR@/libcblas.a +../blas/atlas/cblas.pc /usr/@LIBDIR@/pkgconfig/cblas.pc +atlas/cblas.h /usr/include/cblas.h diff --git a/sci-libs/blas-atlas/files/eselect.cblas.threaded-atlas b/sci-libs/blas-atlas/files/eselect.cblas.threaded-atlas new file mode 100644 index 000000000..1af2a211e --- /dev/null +++ b/sci-libs/blas-atlas/files/eselect.cblas.threaded-atlas @@ -0,0 +1,5 @@ +blas/threaded-atlas/libcblas.so /usr/@LIBDIR@/libcblas.so +blas/threaded-atlas/libcblas.so.0 /usr/@LIBDIR@/libcblas.so.0 +blas/threaded-atlas/libcblas.so.0 /usr/@LIBDIR@/libcblas.a +../blas/threaded-atlas/cblas.pc /usr/@LIBDIR@/pkgconfig/cblas.pc +cblas/cblas.h /usr/include/cblas.h diff --git a/sci-libs/blas-atlas/files/war b/sci-libs/blas-atlas/files/war new file mode 100644 index 000000000..2093f033a --- /dev/null +++ b/sci-libs/blas-atlas/files/war @@ -0,0 +1,26 @@ +#! /bin/bash +# +# war -- wrapper for the archiver +# +# Executed by ATLAS build as: +# full_path/war ARCHIVER ARFLAGS LIBNAME.a OBJS.lo + +TOPDIR=$(echo $0 | sed 's/\(.*\)\/.*/\1/') +PWD=$(pwd) + +ARCHIVER=$1 +LIBRARY=$(echo $3 | sed 's/.*\/\(.*\)/\1/') +OBJ_DIR=${TOPDIR}/gentoo/$LIBRARY + +if [ ! -x $OBJ_DIR ]; then mkdir -p ${OBJ_DIR}/.libs; fi + +$ARCHIVER $@ + +shift 3 +for obj in $@ ; do + lobj=$(echo $obj | sed 's/\.o/\.lo/') + ln -sf ${PWD}/$obj ${OBJ_DIR}/$obj + ln -sf ${PWD}/$lobj ${OBJ_DIR}/$lobj + ln -sf ${PWD}/.libs/$obj ${OBJ_DIR}/.libs/$obj +done + diff --git a/sci-libs/blas-atlas/metadata.xml b/sci-libs/blas-atlas/metadata.xml new file mode 100644 index 000000000..dc7cebf64 --- /dev/null +++ b/sci-libs/blas-atlas/metadata.xml @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>sci</herd> +<longdescription lang="en"> +ATLAS is an approach for the automatic generation and optimization of +numerical software. Currently ATLAS supplies optimized versions for +the complete set of linear algebra kernels known as the Basic Linear +Algebra Subroutines (BLAS), and a subset of the linear algebra +routines in the LAPACK library. +The libraries in this package contain BLAS FORTRAN77 and C +implementations +</longdescription> +</pkgmetadata> |