Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=d2d1b859887279e82153a6e97b4d003e16071a5e

commit d2d1b859887279e82153a6e97b4d003e16071a5e
Author: Melko <me...@frugalware.org>
Date:   Sun Sep 11 17:46:29 2011 +0200

lapack-3.3.1-4-i686

* enable shared lib

diff --git a/source/lib-extra/lapack/FrugalBuild 
b/source/lib-extra/lapack/FrugalBuild
index 6d15c58..220abb3 100644
--- a/source/lib-extra/lapack/FrugalBuild
+++ b/source/lib-extra/lapack/FrugalBuild
@@ -3,7 +3,7 @@

pkgname=lapack
pkgver=3.3.1
-pkgrel=3
+pkgrel=4
pkgdesc="Linear Algebra PACKage."
url="http://www.netlib.org/lapack";
makedepends=('gcc-gfortran')
@@ -11,9 +11,10 @@ depends=()
groups=('lib-extra')
archs=('i686' 'x86_64')
up2date="Flasttar $url"
-source=(http://netlib.org/$pkgname/$pkgname.tgz make.inc.diff)
+source=(http://netlib.org/$pkgname/$pkgname.tgz make.inc.diff Makefile.patch)
sha1sums=('3ce437e05f0e9a3c8148ec41922f6efeef0ebdac' \
-          '665c9732cae3e554b014d89991fe723a5e7c08a1')
+          '665c9732cae3e554b014d89991fe723a5e7c08a1' \
+          '0396b3ca42d1dfdc9a5d0e21a8b76f47ed6e0e0f')
options=('noversrc')
_F_cd_path="$pkgname-$pkgver"

@@ -26,14 +27,17 @@ subarchs=('i686 x86_64')
build() {
[ "$CARCH" == "x86_64" ] && export CXXFLAGS="$CXXFLAGS -fPIC" && export 
CFLAGS="$CFLAGS -fPIC"
Fcd
-       cp INSTALL/make.inc.gfortran make.inc
-       patch <$Fsrcdir/make.inc.diff
+       cp INSTALL/make.inc.gfortran make.inc || Fdie
+       Fpatchall
Fsed '-O2' "${CFLAGS}" make.inc
make blaslib lapacklib || Fdie
Fmkdir usr/lib
Ffilerel liblapack.a /usr/lib
+       Ffilerel SRC/liblapack.so.$pkgver /usr/lib
Ffilerel BLAS/SRC/libblas.a /usr/lib

+       Fln liblapack.so.$pkgver usr/lib/liblapack.so.3
+       Fln liblapack.so.$pkgver usr/lib/liblapack.so
Fsplit blas /usr/lib/libblas.a
}

diff --git a/source/lib-extra/lapack/Makefile.patch 
b/source/lib-extra/lapack/Makefile.patch
new file mode 100644
index 0000000..0912be8
--- /dev/null
+++ b/source/lib-extra/lapack/Makefile.patch
@@ -0,0 +1,26 @@
+--- lapack-3.3.1/SRC/Makefile  2011-03-07 16:11:26.000000000 +0100
++++ lapack-3.3.1/SRC/Makefile  2011-09-11 17:41:25.091427683 +0200
+@@ -371,7 +371,7 @@
+    zla_heamv.o zla_hercond_c.o zla_hercond_x.o zla_herpvgrw.o         \
+    zla_lin_berr.o zlarscl2.o zlascl2.o zla_wwaddw.o
+
+-all: ../$(LAPACKLIB)
++all: ../$(LAPACKLIB) shared
+
+ ifdef USEXBLAS
+ ALLXOBJ=$(SXLASRC) $(DXLASRC) $(CXLASRC) $(ZXLASRC) $(ALLXAUX)
+@@ -384,6 +384,9 @@
+       $(ARCH) $(ARCHFLAGS) $@ $(ALLOBJ) $(ALLXOBJ)
+       $(RANLIB) $@
+
++shared: $(ALLOBJ) $(ALLXOBJ)
++      cc $(CFLAGS) -shared -Wl,-soname,liblapack.so.3 -o liblapack.so.3.3.1 
$(ALLOBJ) -L.. -lm -lgfortran -lc
++
+ single: $(SLASRC) $(ALLAUX) $(SCLAUX)
+       $(ARCH) $(ARCHFLAGS) ../$(LAPACKLIB) $(SLASRC) $(ALLAUX) \
+       $(SCLAUX) $(DSLASRC)
+@@ -434,4 +437,3 @@
+ dla_wwaddw.o: dla_wwaddw.f ; $(FORTRAN) $(NOOPT) -c $< -o $@
+ cla_wwaddw.o: cla_wwaddw.f ; $(FORTRAN) $(NOOPT) -c $< -o $@
+ zla_wwaddw.o: zla_wwaddw.f ; $(FORTRAN) $(NOOPT) -c $< -o $@
+-
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to