[arch-commits] Commit in cblas/repos (12 files)

Antonio Rojas arojas at archlinux.org
Sun Oct 11 09:13:01 UTC 2015


    Date: Sunday, October 11, 2015 @ 11:13:00
  Author: arojas
Revision: 248878

archrelease: copy trunk to extra-i686, extra-x86_64

Added:
  cblas/repos/extra-i686/
  cblas/repos/extra-i686/LICENSE
    (from rev 248877, cblas/trunk/LICENSE)
  cblas/repos/extra-i686/PKGBUILD
    (from rev 248877, cblas/trunk/PKGBUILD)
  cblas/repos/extra-i686/fPIC.patch
    (from rev 248877, cblas/trunk/fPIC.patch)
  cblas/repos/extra-i686/sdsdot.patch
    (from rev 248877, cblas/trunk/sdsdot.patch)
  cblas/repos/extra-i686/shared.patch
    (from rev 248877, cblas/trunk/shared.patch)
  cblas/repos/extra-x86_64/
  cblas/repos/extra-x86_64/LICENSE
    (from rev 248877, cblas/trunk/LICENSE)
  cblas/repos/extra-x86_64/PKGBUILD
    (from rev 248877, cblas/trunk/PKGBUILD)
  cblas/repos/extra-x86_64/fPIC.patch
    (from rev 248877, cblas/trunk/fPIC.patch)
  cblas/repos/extra-x86_64/sdsdot.patch
    (from rev 248877, cblas/trunk/sdsdot.patch)
  cblas/repos/extra-x86_64/shared.patch
    (from rev 248877, cblas/trunk/shared.patch)

---------------------------+
 extra-i686/PKGBUILD       |   51 ++++++++++++++++++++++++++++++++++++++++++++
 extra-i686/fPIC.patch     |   23 +++++++++++++++++++
 extra-i686/sdsdot.patch   |   19 ++++++++++++++++
 extra-i686/shared.patch   |   11 +++++++++
 extra-x86_64/PKGBUILD     |   51 ++++++++++++++++++++++++++++++++++++++++++++
 extra-x86_64/fPIC.patch   |   23 +++++++++++++++++++
 extra-x86_64/sdsdot.patch |   19 ++++++++++++++++
 extra-x86_64/shared.patch |   11 +++++++++
 8 files changed, 208 insertions(+)

Copied: cblas/repos/extra-i686/LICENSE (from rev 248877, cblas/trunk/LICENSE)
===================================================================
(Binary files differ)

Copied: cblas/repos/extra-i686/PKGBUILD (from rev 248877, cblas/trunk/PKGBUILD)
===================================================================
--- extra-i686/PKGBUILD	                        (rev 0)
+++ extra-i686/PKGBUILD	2015-10-11 09:13:00 UTC (rev 248878)
@@ -0,0 +1,51 @@
+# $Id$
+# Maintainer: Antonio Rojas <arojas at archlinux.org>
+# Contributor: Andreas B. Wagner <AndreasBWagner at pointfree.net>
+# Contributor: Sebastien Binet <binet at 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/
+}

Copied: cblas/repos/extra-i686/fPIC.patch (from rev 248877, cblas/trunk/fPIC.patch)
===================================================================
--- extra-i686/fPIC.patch	                        (rev 0)
+++ extra-i686/fPIC.patch	2015-10-11 09:13:00 UTC (rev 248878)
@@ -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

Copied: cblas/repos/extra-i686/sdsdot.patch (from rev 248877, cblas/trunk/sdsdot.patch)
===================================================================
--- extra-i686/sdsdot.patch	                        (rev 0)
+++ extra-i686/sdsdot.patch	2015-10-11 09:13:00 UTC (rev 248878)
@@ -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      

Copied: cblas/repos/extra-i686/shared.patch (from rev 248877, cblas/trunk/shared.patch)
===================================================================
--- extra-i686/shared.patch	                        (rev 0)
+++ extra-i686/shared.patch	2015-10-11 09:13:00 UTC (rev 248878)
@@ -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
+ 

Copied: cblas/repos/extra-x86_64/LICENSE (from rev 248877, cblas/trunk/LICENSE)
===================================================================
(Binary files differ)

Copied: cblas/repos/extra-x86_64/PKGBUILD (from rev 248877, cblas/trunk/PKGBUILD)
===================================================================
--- extra-x86_64/PKGBUILD	                        (rev 0)
+++ extra-x86_64/PKGBUILD	2015-10-11 09:13:00 UTC (rev 248878)
@@ -0,0 +1,51 @@
+# $Id$
+# Maintainer: Antonio Rojas <arojas at archlinux.org>
+# Contributor: Andreas B. Wagner <AndreasBWagner at pointfree.net>
+# Contributor: Sebastien Binet <binet at 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/
+}

Copied: cblas/repos/extra-x86_64/fPIC.patch (from rev 248877, cblas/trunk/fPIC.patch)
===================================================================
--- extra-x86_64/fPIC.patch	                        (rev 0)
+++ extra-x86_64/fPIC.patch	2015-10-11 09:13:00 UTC (rev 248878)
@@ -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

Copied: cblas/repos/extra-x86_64/sdsdot.patch (from rev 248877, cblas/trunk/sdsdot.patch)
===================================================================
--- extra-x86_64/sdsdot.patch	                        (rev 0)
+++ extra-x86_64/sdsdot.patch	2015-10-11 09:13:00 UTC (rev 248878)
@@ -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      

Copied: cblas/repos/extra-x86_64/shared.patch (from rev 248877, cblas/trunk/shared.patch)
===================================================================
--- extra-x86_64/shared.patch	                        (rev 0)
+++ extra-x86_64/shared.patch	2015-10-11 09:13:00 UTC (rev 248878)
@@ -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
+ 



More information about the arch-commits mailing list