Date: Friday, December 19, 2014 @ 22:37:06 Author: arojas Revision: 124129
Splitting sage-mathematics Added: cblas/ cblas/trunk/ cblas/trunk/LICENSE cblas/trunk/Makefile.in cblas/trunk/PKGBUILD cblas/trunk/cblas.patch -------------+ LICENSE | 1 + Makefile.in | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++ PKGBUILD | 41 +++++++++++++++++++++++++++++++++++++++++ cblas.patch | 11 +++++++++++ 4 files changed, 105 insertions(+) Added: cblas/trunk/LICENSE =================================================================== (Binary files differ) Index: cblas/trunk/LICENSE =================================================================== --- cblas/trunk/LICENSE 2014-12-19 21:06:09 UTC (rev 124128) +++ cblas/trunk/LICENSE 2014-12-19 21:37:06 UTC (rev 124129) Property changes on: cblas/trunk/LICENSE ___________________________________________________________________ Added: svn:mime-type ## -0,0 +1 ## +message/rfc822 \ No newline at end of property Added: cblas/trunk/Makefile.in =================================================================== --- cblas/trunk/Makefile.in (rev 0) +++ cblas/trunk/Makefile.in 2014-12-19 21:37:06 UTC (rev 124129) @@ -0,0 +1,52 @@ +# +# Makefile.LINUX +# +# +# If you compile, change the name to Makefile.in. +# +# + +#----------------------------------------------------------------------------- +# Shell +#----------------------------------------------------------------------------- + +SHELL = /bin/sh + +#----------------------------------------------------------------------------- +# Platform +#----------------------------------------------------------------------------- + +PLAT = LINUX + +#----------------------------------------------------------------------------- +# Libraries and includs +#----------------------------------------------------------------------------- + +BLLIB = libblas.so +CBDIR = $(PWD) +CBLIBDIR = $(CBDIR)/lib +CBLIB = $(CBLIBDIR)/libcblas.a +CBSHLIB = $(CBLIBDIR)/libcblas.so + +#----------------------------------------------------------------------------- +# Compilers +#----------------------------------------------------------------------------- + +CC = gcc +FC = gfortran +LOADER = $(FC) + +#----------------------------------------------------------------------------- +# Flags for Compilers +#----------------------------------------------------------------------------- + +CFLAGS = -O3 -DADD_ -fPIC +FFLAGS = -O3 -fPIC + +#----------------------------------------------------------------------------- +# Archive programs and flags +#----------------------------------------------------------------------------- + +ARCH = ar +ARCHFLAGS = r +RANLIB = echo Added: cblas/trunk/PKGBUILD =================================================================== --- cblas/trunk/PKGBUILD (rev 0) +++ cblas/trunk/PKGBUILD 2014-12-19 21:37:06 UTC (rev 124129) @@ -0,0 +1,41 @@ +# $Id$ +# Maintainer: Antonio Rojas <aro...@archlinux.org> +# Contributor: Andreas B. Wagner <andreasbwag...@pointfree.net> +# Contributor: Sebastien Binet <binet@farnsworth>pkgname=cblas + +pkgname=cblas +pkgver=3.5.0 +pkgrel=1 +pkgdesc="C interface to BLAS" +url="http://www.netlib.org/blas" +arch=('i686' 'x86_64') +license=('custom') +depends=('glibc' 'blas') +makedepends=('gcc-fortran') +source=('http://www.netlib.org/blas/blast-forum/cblas.tgz' 'cblas.patch' 'Makefile.in' 'LICENSE') + +prepare() { + cd CBLAS + + /bin/cp $srcdir/Makefile.in . + patch -p0 -i $srcdir/cblas.patch + + install -d CBLAS/src/lib +} + +build() { + cd BLAS + make alllib +} + +package() { + install -d "$pkgdir"/usr/lib + install -d "$pkgdir"/usr/include + + install -m755 CBLAS/src/lib/* "$pkgdir"/usr/lib + install -m644 CBLAS/include/cblas.h "$pkgdir"/usr/include + + install -m755 -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/cblas.patch =================================================================== --- cblas/trunk/cblas.patch (rev 0) +++ cblas/trunk/cblas.patch 2014-12-19 21:37:06 UTC (rev 124129) @@ -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 +