Commit 24749741 authored by abveritas's avatar abveritas

updated blas & lapack, reverted r & python-numpy back to blas/lapack

parent 61345fdc
#
# Chakra Packages for Chakra, part of chakra-project.org
#
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
# include global config
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
pkgname=blas
pkgver=20070405
pkgrel=2
pkgdesc="Basic Linear Algebra Subprograms"
arch=('i686' 'x86_64')
url="http://www.netlib.org/blas"
license=('custom')
depends=('gcc-libs>=4.3.2')
makedepends=('gcc-fortran')
source=(http://www.netlib.org/blas/blas.tgz
make.inc
license.txt)
md5sums=('7e6af7022440d8688d16be86d55fb358'
'c9822d4699733bdee98f417565181f9c'
'38b6acb8ed5691d25863319d30a8b365')
build() {
cd "${srcdir}/BLAS"
# Build with Position Independent Code (PIC) FS#12464 (i686), required for x86_64
CFLAGS="${CFLAGS} -fPIC"
cp "${srcdir}/make.inc" "${srcdir}/BLAS/" || return 1
make OPTS="${CFLAGS}" NOOPT="${CFLAGS/-O?/-O0}" || return 1
install -m755 -d "${pkgdir}/usr/lib"
install -m755 libblas.so.3.0.3 "${pkgdir}/usr/lib/" || return 1
ln -sf libblas.so.3.0.3 "${pkgdir}/usr/lib/libblas.so"
ln -sf libblas.so.3.0.3 "${pkgdir}/usr/lib/libblas.so.3"
# Install custom license
install -d ${pkgdir}/usr/share/licenses/${pkgname}
install -m644 ${srcdir}/license.txt ${pkgdir}/usr/share/licenses/${pkgname}/ || return 1
}
include ../../make.inc
#######################################################################
# This is the makefile to create a library for the BLAS.
# The files are grouped as follows:
#
# SBLAS1 -- Single precision real BLAS routines
# CBLAS1 -- Single precision complex BLAS routines
# DBLAS1 -- Double precision real BLAS routines
# ZBLAS1 -- Double precision complex BLAS routines
#
# CB1AUX -- Real BLAS routines called by complex routines
# ZB1AUX -- D.P. real BLAS routines called by d.p. complex
# routines
#
# ALLBLAS -- Auxiliary routines for Level 2 and 3 BLAS
#
# SBLAS2 -- Single precision real BLAS2 routines
# CBLAS2 -- Single precision complex BLAS2 routines
# DBLAS2 -- Double precision real BLAS2 routines
# ZBLAS2 -- Double precision complex BLAS2 routines
#
# SBLAS3 -- Single precision real BLAS3 routines
# CBLAS3 -- Single precision complex BLAS3 routines
# DBLAS3 -- Double precision real BLAS3 routines
# ZBLAS3 -- Double precision complex BLAS3 routines
#
# The library can be set up to include routines for any combination
# of the four precisions. To create or add to the library, enter make
# followed by one or more of the precisions desired. Some examples:
# make single
# make single complex
# make single double complex complex16
# Note that these commands are not safe for parallel builds.
#
# Alternatively, the commands
# make all
# or
# make
# without any arguments creates a library of all four precisions.
# The name of the library is held in BLASLIB, which is set in the
# top-level make.inc
#
# To remove the object files after the library is created, enter
# make clean
# To force the source files to be recompiled, enter, for example,
# make single FRC=FRC
#
#---------------------------------------------------------------------
#
# Edward Anderson, University of Tennessee
# March 26, 1990
# Susan Ostrouchov, Last updated September 30, 1994
# ejr, May 2006.
#
#######################################################################
all: $(BLASLIB)
#---------------------------------------------------------
# Comment out the next 6 definitions if you already have
# the Level 1 BLAS.
#---------------------------------------------------------
SBLAS1 = isamax.o sasum.o saxpy.o scopy.o sdot.o snrm2.o \
srot.o srotg.o sscal.o sswap.o sdsdot.o srotmg.o srotm.o
$(SBLAS1): $(FRC)
CBLAS1 = scabs1.o scasum.o scnrm2.o icamax.o caxpy.o ccopy.o \
cdotc.o cdotu.o csscal.o crotg.o cscal.o cswap.o csrot.o
$(CBLAS1): $(FRC)
DBLAS1 = idamax.o dasum.o daxpy.o dcopy.o ddot.o dnrm2.o \
drot.o drotg.o dscal.o dsdot.o dswap.o drotmg.o drotm.o
$(DBLAS1): $(FRC)
ZBLAS1 = dcabs1.o dzasum.o dznrm2.o izamax.o zaxpy.o zcopy.o \
zdotc.o zdotu.o zdscal.o zrotg.o zscal.o zswap.o zdrot.o
$(ZBLAS1): $(FRC)
CB1AUX = isamax.o sasum.o saxpy.o scopy.o snrm2.o sscal.o
$(CB1AUX): $(FRC)
ZB1AUX = idamax.o dasum.o daxpy.o dcopy.o dnrm2.o dscal.o
$(ZB1AUX): $(FRC)
#---------------------------------------------------------------------
# The following line defines auxiliary routines needed by both the
# Level 2 and Level 3 BLAS. Comment it out only if you already have
# both the Level 2 and 3 BLAS.
#---------------------------------------------------------------------
ALLBLAS = lsame.o xerbla.o xerbla_array.o
$(ALLBLAS) : $(FRC)
#---------------------------------------------------------
# Comment out the next 4 definitions if you already have
# the Level 2 BLAS.
#---------------------------------------------------------
SBLAS2 = sgemv.o sgbmv.o ssymv.o ssbmv.o sspmv.o \
strmv.o stbmv.o stpmv.o strsv.o stbsv.o stpsv.o \
sger.o ssyr.o sspr.o ssyr2.o sspr2.o
$(SBLAS2): $(FRC)
CBLAS2 = cgemv.o cgbmv.o chemv.o chbmv.o chpmv.o \
ctrmv.o ctbmv.o ctpmv.o ctrsv.o ctbsv.o ctpsv.o \
cgerc.o cgeru.o cher.o chpr.o cher2.o chpr2.o
$(CBLAS2): $(FRC)
DBLAS2 = dgemv.o dgbmv.o dsymv.o dsbmv.o dspmv.o \
dtrmv.o dtbmv.o dtpmv.o dtrsv.o dtbsv.o dtpsv.o \
dger.o dsyr.o dspr.o dsyr2.o dspr2.o
$(DBLAS2): $(FRC)
ZBLAS2 = zgemv.o zgbmv.o zhemv.o zhbmv.o zhpmv.o \
ztrmv.o ztbmv.o ztpmv.o ztrsv.o ztbsv.o ztpsv.o \
zgerc.o zgeru.o zher.o zhpr.o zher2.o zhpr2.o
$(ZBLAS2): $(FRC)
#---------------------------------------------------------
# Comment out the next 4 definitions if you already have
# the Level 3 BLAS.
#---------------------------------------------------------
SBLAS3 = sgemm.o ssymm.o ssyrk.o ssyr2k.o strmm.o strsm.o
$(SBLAS3): $(FRC)
CBLAS3 = cgemm.o csymm.o csyrk.o csyr2k.o ctrmm.o ctrsm.o \
chemm.o cherk.o cher2k.o
$(CBLAS3): $(FRC)
DBLAS3 = dgemm.o dsymm.o dsyrk.o dsyr2k.o dtrmm.o dtrsm.o
$(DBLAS3): $(FRC)
ZBLAS3 = zgemm.o zsymm.o zsyrk.o zsyr2k.o ztrmm.o ztrsm.o \
zhemm.o zherk.o zher2k.o
$(ZBLAS3): $(FRC)
ALLOBJ=$(SBLAS1) $(SBLAS2) $(SBLAS3) $(DBLAS1) $(DBLAS2) $(DBLAS3) \
$(CBLAS1) $(CBLAS2) $(CBLAS3) $(ZBLAS1) \
$(ZBLAS2) $(ZBLAS3) $(ALLBLAS)
clean:
rm -f *.o libblas.a libblas.so*
static: $(ALLOBJ)
ar ruv libblas.a $(ALLOBJ)
ranlib libblas.a
shared: $(ALLOBJ)
cc $(CFLAGS) -shared -Wl,-soname,libblas.so.3 -o libblas.so.3.3.0 $(ALLOBJ) -lm -lgfortran -lc
This diff is collapsed.
# $Id: PKGBUILD 43318 2009-06-22 10:13:38Z ronald $
# Maintainer: Ronald van Haren <ronald.archlinux.org>
# Contributor: damir <damir@archlinux.org>
# Contributor: Jason Taylor <jftaylor21@gmail.com>
#
# Chakra Packages for Chakra, part of chakra-project.org
#
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
pkgname=lapack
pkgver=3.2.1
# include global config
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
pkgbase=lapack
pkgname=('blas' 'lapack')
pkgver=3.3.0
pkgrel=1
pkgdesc="Linear Algebra PACKage"
url="http://www.netlib.org/lapack"
makedepends=('gcc-fortran')
arch=('i686' 'x86_64')
license=("custom")
depends=('blas>=20070405-2')
source=(http://www.netlib.org/${pkgname}/${pkgname}-${pkgver}.tgz
make.inc.archlinux blas-link.patch)
md5sums=('a3202a4f9e2f15ffd05d15dab4ac7857'
'cc368c407e396227c473db5bac92cf02'
'd396697499466389f5bbea6b5ec9b489')
source=(http://www.netlib.org/${pkgbase}/${pkgbase}-${pkgver}.tgz
lapack-3.1.1-make.inc.patch
Makefile.blas
Makefile.lapack
LICENSE.blas)
md5sums=('84213fca70936cc5f1b59a7b1bf71697'
'cdfcb9d9b162c18d9acbf63c5579ea26'
'748440ae656402241d053dadb14425ee'
'aa359e9b7cc717fb1230cfbb4e1d206b'
'38b6acb8ed5691d25863319d30a8b365')
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
install -d "${pkgdir}/usr/lib" || return 1
# install -d "${pkgdir}/usr/share/man/man1" || return 1
cd "${srcdir}/${pkgbase}-${pkgver}"
patch -Np1 -i "${srcdir}/lapack-3.1.1-make.inc.patch"
cp -f INSTALL/make.inc.gfortran make.inc
cp -f "${srcdir}/Makefile.blas" BLAS/SRC/Makefile
cp -f "${srcdir}/Makefile.lapack" SRC/Makefile
cp "${srcdir}/make.inc.archlinux" make.inc || return 1
# fix blas linking FS#13093
patch -Np1 -i ${srcdir}/blas-link.patch || return 1
# Build with Position Independent Code (PIC) FS#12464 (i686), required for x86_64
CFLAGS="${CFLAGS} -fPIC"
export FC=gfortran
pushd BLAS/SRC
make clean
FFLAGS="${CFLAGS/-O?/-O0}" make dcabs1.o
FFLAGS="${CFLAGS} -fPIC" CFLAGS="${CFLAGS} -fPIC" make shared
cp libblas.so.${pkgver} "${srcdir}/${pkgbase}-${pkgver}/"
popd
ln -s libblas.so.${pkgver} libblas.so
pushd INSTALL
make clean
make NOOPT="${CFLAGS/-O?/-O0} -fPIC" OPTS="${CFLAGS} -fPIC"
popd
# make sure no files with '_', *vxx.o *vfx.o and *2.O as defined in *ASRC
# are in OBJS
pushd SRC
make clean
make lib OPTS="${CFLAGS}" NOOPT="${CFLAGS/-O?/-O0}" || return 1
install -m755 *.so* "${startdir}/pkg/usr/lib/" || return 1
ln -sf liblapack.so.3 "${pkgdir}/usr/lib/liblapack.so"
ln -sf libtmglib.so.3 "${pkgdir}/usr/lib/libtmglib.so"
# upstream does not provide manpages for this release
# you can browse them online: http://www.netlib.org/lapack/explore-html/
# Manpages
#for _file in manpages/man/manl/* manpages/blas/man/manl/*; do
# install -m644 "${_file}" "${pkgdir}/usr/share/man/man1/$(basename ${_file} .l).1" || return 1
#done
# Install custom license
install -Dm644 ${srcdir}/${pkgname}-${pkgver}/LICENSE \
"${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" || return 1
make FFLAGS="${CFLAGS} -fPIC" CFLAGS="${CFLAGS} -fPIC" shared
cp liblapack.so.${pkgver} "${srcdir}/${pkgbase}-${pkgver}/"
popd
}
package_blas() {
pkgdesc="Basic Linear Algebra Subprograms"
depends=('gcc-libs')
options=('force')
install -m755 -d "${pkgdir}/usr/lib"
install -m755 "${srcdir}/${pkgbase}-${pkgver}/libblas.so.${pkgver}" \
"${pkgdir}/usr/lib/"
ln -sf libblas.so.${pkgver} "${pkgdir}/usr/lib/libblas.so"
ln -sf libblas.so.${pkgver} "${pkgdir}/usr/lib/libblas.so.3"
install -m755 -d "${pkgdir}/usr/share/licenses/blas"
install -m644 "${srcdir}/LICENSE.blas" \
"${pkgdir}/usr/share/licenses/blas/LICENSE"
}
package_lapack() {
pkgdesc="Linear Algebra PACKage"
depends=("blas=${pkgver}")
install -m755 -d "${pkgdir}/usr/lib"
install -m755 "${srcdir}/${pkgbase}-${pkgver}/liblapack.so.${pkgver}" \
"${pkgdir}/usr/lib/"
ln -sf liblapack.so.${pkgver} "${pkgdir}/usr/lib/liblapack.so"
ln -sf liblapack.so.${pkgver} "${pkgdir}/usr/lib/liblapack.so.3"
install -m755 -d "${pkgdir}/usr/share/licenses/lapack"
install -m644 "${srcdir}/${pkgbase}-${pkgver}/LICENSE" \
"${pkgdir}/usr/share/licenses/lapack/"
}
diff -Naur lapack-3.2.old/SRC/Makefile lapack-3.2/SRC/Makefile
--- lapack-3.2.old/SRC/Makefile 2009-02-04 11:33:35.006839507 +0100
+++ lapack-3.2/SRC/Makefile 2009-02-04 11:33:51.987551506 +0100
@@ -367,7 +367,7 @@
$(ALLAUX)
../$(LAPACKLIB): $(ALLOBJ) $(ALLXOBJ)
- $(ARCH) $(ARCHFLAGS) $@ $(ALLOBJ) $(ALLXOBJ)
+ $(ARCH) $(ARCHFLAGS) $@ $(ALLOBJ) $(ALLXOBJ) -lblas
$(RANLIB) $@
single: $(SLASRC) $(ALLAUX) $(SCLAUX)
diff -Naur lapack-3.2.old/TESTING/MATGEN/Makefile lapack-3.2/TESTING/MATGEN/Makefile
--- lapack-3.2.old/TESTING/MATGEN/Makefile 2009-02-04 11:35:10.426806473 +0100
+++ lapack-3.2/TESTING/MATGEN/Makefile 2009-02-04 11:34:42.850565181 +0100
@@ -60,7 +60,7 @@
../../$(TMGLIB): $(SMATGEN) $(CMATGEN) $(SCATGEN) $(DMATGEN) \
$(ZMATGEN) $(DZATGEN)
- $(ARCH) $(ARCHFLAGS) $@ $(ALLOBJ)
+ $(ARCH) $(ARCHFLAGS) $@ $(ALLOBJ) -lblas
$(RANLIB) $@
single: $(SMATGEN) $(SCATGEN)
--- lapack-3.1.1/INSTALL/make.inc.gfortran.BAD 2007-05-25 15:34:55.000000000 -0500
+++ lapack-3.1.1/INSTALL/make.inc.gfortran 2007-05-25 15:35:51.000000000 -0500
@@ -8,7 +8,7 @@ SHELL = /bin/sh
#
# The machine (platform) identifier to append to the library names
#
-PLAT = _LINUX
+PLAT =
#
# Modify the FORTRAN and OPTS definitions to refer to the
# compiler and desired compiler options for your machine. NOOPT
@@ -17,9 +17,9 @@ PLAT = _LINUX
# desired load options for your machine.
#
FORTRAN = gfortran
-OPTS = -O2
+#OPTS = -O2
DRVOPTS = $(OPTS)
-NOOPT = -O0
+NOOPT =
LOADER = gfortran
LOADOPTS =
#
# make include file addapted for archlinux - damir@archlinux.org 20061212
####################################################################
# LAPACK make include file. #
# LAPACK, Version 3.0 #
# June 30, 1999 #
####################################################################
#
# See the INSTALL/ directory for more examples.
#
SHELL = /bin/sh
#
# The machine (platform) identifier to append to the library names
#
PLAT =
#
# Modify the FORTRAN and OPTS definitions to refer to the
# compiler and desired compiler options for your machine. NOOPT
# refers to the compiler options desired when NO OPTIMIZATION is
# selected. Define LOADER and LOADOPTS to refer to the loader and
# desired load options for your machine.
#
FORTRAN = gfortran
OPTS = -O2
DRVOPTS = $(OPTS)
NOOPT = -O0
LOADER = gfortran
LOADOPTS =
#
# Timer for the SECOND and DSECND routines
#
TIMER = INT_ETIME
#
# The archiver and the flag(s) to use when building archive (library)
# If you system has no ranlib, set RANLIB = echo.
#
ARCH = gfortran
# ar
ARCHFLAGS= -shared -o
# cr
RANLIB = echo
# ranlib
#
# The location of the libraries to which you will link. (The
# machine-specific, optimized BLAS library should be used whenever
# possible.)
#
BLASLIB = -lblas
LAPACKLIB = liblapack.so.3
TMGLIB = libtmglib.so.3
EIGSRCLIB = libeigsrc.so.3
LINSRCLIB = liblinsrc.so.3
......@@ -2,12 +2,12 @@
pkgname=python-numpy
pkgver=1.5.1
pkgrel=5
pkgrel=6
pkgdesc="Scientific tools for Python"
arch=('i686' 'x86_64')
license=('custom')
url="http://numpy.scipy.org/"
depends=('gotoblas2' 'lapack4goto')
depends=('blas' 'lapack')
makedepends=('python-nose' 'gcc-fortran')
optdepends=('python-nose: test suite')
source=(http://downloads.sourceforge.net/numpy/numpy-${pkgver}.tar.gz)
......
......@@ -6,12 +6,12 @@
pkgname=r
pkgver=2.13.0
pkgrel=2
pkgrel=3
pkgdesc="R is a language and environment for statistical computing and graphics"
arch=('i686' 'x86_64')
license=('GPL')
url=('http://www.r-project.org/')
depends=('gotoblas2' 'lapack4goto' 'bzip2' 'libpng' 'libjpeg' 'libtiff'
depends=('blas' 'lapack' 'bzip2' 'libpng' 'libjpeg' 'libtiff'
'ncurses' 'pcre' 'readline' 'zlib' 'perl' 'gcc-libs'
'tk' 'libxt' 'libxmu' 'pango')
makedepends=('openjdk6' 'gcc-fortran')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment