Date: Sunday, October 11, 2015 @ 11:12:38 Author: arojas Revision: 248877
community2extra: Moving cblas from community to extra Added: cblas/ cblas/repos/ cblas/trunk/ cblas/trunk/LICENSE cblas/trunk/PKGBUILD cblas/trunk/fPIC.patch cblas/trunk/sdsdot.patch cblas/trunk/shared.patch --------------+ LICENSE | 1 + PKGBUILD | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ fPIC.patch | 23 +++++++++++++++++++++++ sdsdot.patch | 19 +++++++++++++++++++ shared.patch | 11 +++++++++++ 5 files changed, 105 insertions(+) Added: cblas/trunk/LICENSE =================================================================== (Binary files differ) Index: cblas/trunk/LICENSE =================================================================== --- cblas/trunk/LICENSE 2015-10-10 22:43:29 UTC (rev 248876) +++ cblas/trunk/LICENSE 2015-10-11 09:12:38 UTC (rev 248877) Property changes on: cblas/trunk/LICENSE ___________________________________________________________________ Added: svn:mime-type ## -0,0 +1 ## +message/rfc822 \ No newline at end of property Added: cblas/trunk/PKGBUILD =================================================================== --- cblas/trunk/PKGBUILD (rev 0) +++ cblas/trunk/PKGBUILD 2015-10-11 09:12:38 UTC (rev 248877) @@ -0,0 +1,51 @@ +# $Id$ +# Maintainer: Antonio Rojas <[email protected]> +# Contributor: Andreas B. Wagner <[email protected]> +# Contributor: Sebastien Binet <binet@farnsworth>pkgname=cblas + +pkgname=cblas +pkgver=3.5.0 +pkgrel=3 +pkgdesc="C interface to BLAS" +url="http://www.netlib.org/blas" +arch=(i686 x86_64) +license=(custom) +depends=(blas) +makedepends=(gcc-fortran) +options=(staticlibs) # needed by fflas-ffpack +source=('http://www.netlib.org/blas/blast-forum/cblas.tgz' 'shared.patch' 'fPIC.patch' 'sdsdot.patch' 'LICENSE') +md5sums=('1e8830f622d2112239a4a8a83b84209a' + 'e779fc195f8f48672656522bcfd642e4' + 'de4a0cf18b0e748e85d3305845f7f99b' + '733dcdded7ce1ec6d1ec01ceca200426' + '38b6acb8ed5691d25863319d30a8b365') + +prepare() { + cd CBLAS + +# Compile with -fPIC + patch -p1 -i "$srcdir"/fPIC.patch +# Compile shared lib + patch -p0 -i "$srcdir"/shared.patch +# Fix missing variable in sdsdotstub + patch -p1 -i "$srcdir"/sdsdot.patch + + cp Makefile.{LINUX,in} +} + +build() { + cd CBLAS + + make alllib +} + +package() { + install -d "$pkgdir"/usr/lib + install -d "$pkgdir"/usr/include + + install -m644 CBLAS/lib/* "$pkgdir"/usr/lib/ + install -m644 CBLAS/include/*.h "$pkgdir"/usr/include + + install -d "$pkgdir"/usr/share/licenses/cblas + install -m644 LICENSE "$pkgdir"/usr/share/licenses/cblas/ +} Property changes on: cblas/trunk/PKGBUILD ___________________________________________________________________ Added: svn:keywords ## -0,0 +1 ## +Id \ No newline at end of property Added: cblas/trunk/fPIC.patch =================================================================== --- cblas/trunk/fPIC.patch (rev 0) +++ cblas/trunk/fPIC.patch 2015-10-11 09:12:38 UTC (rev 248877) @@ -0,0 +1,23 @@ +--- CBLAS/Makefile.LINUX.orig 2015-06-14 12:25:24.099556681 +0200 ++++ CBLAS/Makefile.LINUX 2015-06-14 12:25:52.819706410 +0200 +@@ -23,7 +23,8 @@ + #----------------------------------------------------------------------------- + + BLLIB = libblas.a +-CBLIB = ../lib/cblas_$(PLAT).a ++CBLIB = ../lib/libcblas.a ++CBSHLIB= ../lib/libcblas.so + + #----------------------------------------------------------------------------- + # Compilers +@@ -37,8 +38,8 @@ + # Flags for Compilers + #----------------------------------------------------------------------------- + +-CFLAGS = -O3 -DADD_ +-FFLAGS = -O3 ++CFLAGS = -O3 -DADD_ -fPIC ++FFLAGS = -O3 -fPIC + + #----------------------------------------------------------------------------- + # Archive programs and flags Added: cblas/trunk/sdsdot.patch =================================================================== --- cblas/trunk/sdsdot.patch (rev 0) +++ cblas/trunk/sdsdot.patch 2015-10-11 09:12:38 UTC (rev 248877) @@ -0,0 +1,19 @@ +--- CBLAS/src/sdsdotsub.f.orig 2015-06-14 13:13:11.353896469 +0200 ++++ CBLAS/src/sdsdotsub.f 2015-06-14 13:13:44.830675890 +0200 +@@ -3,13 +3,13 @@ + c The program is a fortran wrapper for sdsdot. + c Witten by Keita Teranishi. 2/11/1998 + c +- subroutine sdsdotsub(n,x,incx,y,incy,dot) ++ subroutine sdsdotsub(n,sb,x,incx,y,incy,dot) + c + external sdsdot +- real sdsdot,dot ++ real sb,sdsdot,dot + integer n,incx,incy + real x(*),y(*) + c +- dot=sdsdot(n,x,incx,y,incy) ++ dot=sdsdot(n,sb,x,incx,y,incy) + return + end Added: cblas/trunk/shared.patch =================================================================== --- cblas/trunk/shared.patch (rev 0) +++ cblas/trunk/shared.patch 2015-10-11 09:12:38 UTC (rev 248877) @@ -0,0 +1,11 @@ +--- src/Makefile.orig 2011-01-05 11:39:24.000000000 +0100 ++++ src/Makefile 2011-01-05 11:42:20.000000000 +0100 +@@ -234,7 +234,7 @@ + all: $(alev) + $(ARCH) $(ARCHFLAGS) $(CBLIB) $(alev) + $(RANLIB) $(CBLIB) +- ++ $(CC) $(CCFLAGS) -shared -Wl,--allow-multiple-definition -o $(CBSHLIB) $(alev) -lm -lc -lblas + + .SUFFIXES: .o .c .f +
