diff options
author | Andrzej Giniewicz | 2016-07-30 18:48:51 +0200 |
---|---|---|
committer | Andrzej Giniewicz | 2016-07-30 18:48:51 +0200 |
commit | 286cdb8eafb3756cdb3d63f0f6c6084e55a31169 (patch) | |
tree | 0eb5a539a2467309d5ac72294b197d9ee8099349 | |
parent | c001722ac2ab17e4f7d6dd53c219102484125a23 (diff) | |
download | aur-286cdb8eafb3756cdb3d63f0f6c6084e55a31169.tar.gz |
atlas-lapack: new upstream release
-rw-r--r-- | .SRCINFO | 24 | ||||
-rw-r--r-- | PKGBUILD | 60 | ||||
-rw-r--r-- | makefile.shared.mt | 13 | ||||
-rw-r--r-- | makefile.shared.st | 9 |
4 files changed, 58 insertions, 48 deletions
@@ -1,9 +1,9 @@ # Generated by mksrcinfo v8 -# Thu Feb 25 10:52:36 UTC 2016 +# Sat Jul 30 16:35:26 UTC 2016 pkgbase = atlas-lapack pkgdesc = Complete LAPACK and BLAS implementation using optimised ATLAS routines - pkgver = 3.10.2 - pkgrel = 3 + pkgver = 3.10.3 + pkgrel = 1 url = http://math-atlas.sourceforge.net/ install = atlas-lapack.install arch = i686 @@ -16,28 +16,28 @@ pkgbase = atlas-lapack makedepends = gcc-fortran depends = gcc-libs provides = blas - provides = lapack=3.6.0 + provides = lapack=3.6.1 provides = cblas provides = atlas-lapack-base conflicts = blas conflicts = lapack conflicts = cblas conflicts = atlas-lapack-base - noextract = lapack-3.6.0.tgz - noextract = atlas3.10.2.tar.bz2 + noextract = lapack-3.6.1.tgz + noextract = atlas3.10.3.tar.bz2 options = !makeflags - source = http://www.netlib.org/lapack/lapack-3.6.0.tgz - source = http://downloads.sourceforge.net/math-atlas/atlas3.10.2.tar.bz2 + source = http://www.netlib.org/lapack/lapack-3.6.1.tgz + source = http://downloads.sourceforge.net/math-atlas/atlas3.10.3.tar.bz2 source = blas-license.txt source = atlas-license.txt source = makefile.shared.mt source = makefile.shared.st - md5sums = f2f6c67134e851fe189bb3ca1fbb5101 - md5sums = a4e21f343dec8f22e7415e339f09f6da + md5sums = 421b2cb72e15f237e144428f9c460ee0 + md5sums = d6ce4f16c2ad301837cfb3dade2f7cef md5sums = 38b6acb8ed5691d25863319d30a8b365 md5sums = 4903eb06072dfbf94710691ccb6660bf - md5sums = 2532ea5fdd412414a438b65b49451574 - md5sums = 24dfa225d311585d79dcf2560a9682b5 + md5sums = e293bf3b62b7cc02cb5dcf54f9f40053 + md5sums = 5153cb945e8f386e4d98d4b0fe791776 pkgname = atlas-lapack @@ -3,9 +3,9 @@ # Contributor: iztok pizorn <pizorn___AT___gmail___DOT___com> # Contributor: olivier medoc <o_medoc___AT___yahoo___DOT___fr> pkgname=atlas-lapack -pkgver=3.10.2 -_lapackver=3.6.0 -pkgrel=3 +pkgver=3.10.3 +_lapackver=3.6.1 +pkgrel=1 pkgdesc="Complete LAPACK and BLAS implementation using optimised ATLAS routines" url="http://math-atlas.sourceforge.net/" depends=('gcc-libs') @@ -16,42 +16,51 @@ provides=("blas" "lapack=$_lapackver" 'cblas' 'atlas-lapack-base') license=('custom:blas' 'custom:lapack' 'custom:atlas') options=(!makeflags) install=$pkgname.install -source=(http://www.netlib.org/lapack/lapack-$_lapackver.tgz http://downloads.sourceforge.net/math-atlas/atlas${pkgver}.tar.bz2 blas-license.txt atlas-license.txt makefile.shared.mt makefile.shared.st) +source=(http://www.netlib.org/lapack/lapack-$_lapackver.tgz + http://downloads.sourceforge.net/math-atlas/atlas${pkgver}.tar.bz2 + blas-license.txt atlas-license.txt + makefile.shared.mt makefile.shared.st) noextract=(lapack-$_lapackver.tgz atlas$pkgver.tar.bz2) -md5sums=('f2f6c67134e851fe189bb3ca1fbb5101' - 'a4e21f343dec8f22e7415e339f09f6da' +md5sums=('421b2cb72e15f237e144428f9c460ee0' + 'd6ce4f16c2ad301837cfb3dade2f7cef' '38b6acb8ed5691d25863319d30a8b365' '4903eb06072dfbf94710691ccb6660bf' - '2532ea5fdd412414a438b65b49451574' - '24dfa225d311585d79dcf2560a9682b5') + 'e293bf3b62b7cc02cb5dcf54f9f40053' + '5153cb945e8f386e4d98d4b0fe791776') build() { - cd "$srcdir" - tar -xjf atlas$pkgver.tar.bz2 - - NCPU=`grep "^processor" /proc/cpuinfo | wc -l` - #USE_ARCH_DEFAULTS="yes" msg 'Before building this package, as root you must set the CPU(s)' msg 'governor(s) to "performance".' msg 'See: https://wiki.archlinux.org/index.php/CPU_frequency_scaling' + cd "$srcdir" + tar -xjf atlas$pkgver.tar.bz2 + + unset MAKE + CORE=`cat /proc/cpuinfo | grep "cpu MHz" | head -n 1 | sed "s/.*: \([0-9.]*\).*/\1/"` + NCPU=`grep "^processor" /proc/cpuinfo | wc -l` if [ "$CARCH" = "x86_64" ]; then ARCHITECTURE_BUILD_OPTS="-b 64" # for x86_64 else ARCHITECTURE_BUILD_OPTS="-b 32" # for i686 fi - mkdir -p "$srcdir/ATLAS/build" - cd "$srcdir/ATLAS/build" + cd "$srcdir"/ATLAS + rm -rf build + mkdir -p build + cd build + + msg 'Configuring ATLAS' - msg 'Build ATLAS' - unset MAKE - cd "$srcdir/ATLAS/build" - rm -rf * ../configure --prefix=/usr/ $ARCHITECTURE_BUILD_OPTS -Fa alg -fPIC \ + --shared -D c -DPentiumCPS=$CORE \ --with-netlib-lapack-tarfile="$srcdir/lapack-$_lapackver.tgz" + + msg 'Building ATLAS' + make build - msg 'Build shared libraries' + + msg 'Building shared libraries' cd lib if [ 1 -lt $NCPU ]; then cp "$srcdir/makefile.shared.mt" makefile @@ -62,19 +71,22 @@ build() { } check() { - cd "$srcdir/ATLAS/build" - - msg 'Check...' unset MAKE + + msg 'Checking ATLAS' + make check make ptcheck make time } package() { - cd "$srcdir/ATLAS/build" + unset MAKE + + msg 'Packaging ATLAS' + make DESTDIR="$pkgdir/usr" install cp -d lib/*.so* "$pkgdir/usr/lib" [ -e lib/libptlapack.a ] && cp lib/libptlapack.a "$pkgdir/usr/lib" diff --git a/makefile.shared.mt b/makefile.shared.mt index 9b12b97738ef..048fa456e23b 100644 --- a/makefile.shared.mt +++ b/makefile.shared.mt @@ -1,8 +1,7 @@ include Make.inc all: libatlas.so libf77blas.so libptf77blas.so libstcblas.so libptcblas.so \ - libblas.so libcblas.so liblapack.so.3.4.1 libptlapack.so.3.4.1 liblapack.so.3 - + libblas.so libcblas.so liblapack.so.3.6.1 libptlapack.so.3.6.1 liblapack.so.3 libatlas.so: libatlas.a ld $(LDFLAGS) -shared -soname $@ -o $@ --whole-archive libatlas.a \ @@ -30,13 +29,13 @@ libblas.so: libptf77blas.so libcblas.so: libptcblas.so ln -s $< $@ -liblapack.so.3.4.1 : liblapack.a libstcblas.so libf77blas.so +liblapack.so.3.6.1 : liblapack.a libstcblas.so libf77blas.so ld $(LDFLAGS) -shared -soname libstlapack.so.3 -o $@ --whole-archive \ - liblapack.a --no-whole-archive $(F77SYSLIB) -L. -lstcblas -lf77blas -lgcc_s + liblapack.a --no-whole-archive $(F77SYSLIB) -L. -lstcblas -lf77blas -libptlapack.so.3.4.1 : libptlapack.a libcblas.so libblas.so +libptlapack.so.3.6.1 : libptlapack.a libcblas.so libblas.so ld $(LDFLAGS) -shared -soname liblapack.so.3 -o $@ --whole-archive \ - libptlapack.a --no-whole-archive $(F77SYSLIB) -L. -lcblas -lblas -lgcc_s + libptlapack.a --no-whole-archive $(F77SYSLIB) -L. -lcblas -lblas -liblapack.so.3: libptlapack.so.3.4.1 +liblapack.so.3: libptlapack.so.3.6.1 ln -s $< $@ diff --git a/makefile.shared.st b/makefile.shared.st index d3911dab2acc..5feda573104c 100644 --- a/makefile.shared.st +++ b/makefile.shared.st @@ -1,7 +1,6 @@ include Make.inc -all: libatlas.so libf77blas.so libcblas.so libblas.so liblapack.so.3.4.1 - +all: libatlas.so libf77blas.so libcblas.so libblas.so liblapack.so.3.6.1 libatlas.so: libatlas.a ld $(LDFLAGS) -shared -soname $@ -o $@ --whole-archive libatlas.a \ @@ -18,9 +17,9 @@ libcblas.so : libcblas.a libatlas.so libblas.so libblas.so: libf77blas.so ln -s $< $@ -liblapack.so.3.4.1 : liblapack.a libcblas.so libblas.so +liblapack.so.3.6.1 : liblapack.a libcblas.so libblas.so ld $(LDFLAGS) -shared -soname liblapack.so.3 -o $@ --whole-archive \ - liblapack.a --no-whole-archive $(F77SYSLIB) -L. -lcblas -lblas -lgcc_s + liblapack.a --no-whole-archive $(F77SYSLIB) -L. -lcblas -lblas -liblapack.so.3: liblapack.so.3.4.1 +liblapack.so.3: liblapack.so.3.6.1 ln -s $< $@ |