Update of /cvsroot/fink/experimental/jfmertens/main/finkinfo/sci
In directory sc8-pr-cvs17.sourceforge.net:/tmp/cvs-serv15616

Modified Files:
        atlas.info 
Log Message:
for testing on G4

Index: atlas.info
===================================================================
RCS file: /cvsroot/fink/experimental/jfmertens/main/finkinfo/sci/atlas.info,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- atlas.info  8 Nov 2007 19:33:59 -0000       1.7
+++ atlas.info  22 Nov 2007 23:56:14 -0000      1.8
@@ -1,6 +1,6 @@
 Package: atlas
 Version: 3.8.0
-Revision: 4
+Revision: 5
 Description: Portably optimal linear algebra software
 DescDetail: <<
 The current version provides a complete BLAS and LAPACK API.
@@ -9,14 +9,17 @@
 Installs also LAPACK's docs and manpages.
 Headers: cblas.h clapack.h, plus the atlas headers
 Libraries installed:
-liblapack.a    : The LAPACK routines provided by ATLAS,
-               plus the rest of LAPACK from netlib.org.
-libcblas.a     : The ANSI C interface to the BLAS.
-libf77blas.a   : The Fortran77 interface to the BLAS.
-libatlas.a     : The main ATLAS library,
-               providing low-level routines for all interface libs.
-Plus the threaded variants libptcblas.a and libptf77blas.a,
-               and an all-encompassing libatlas.dylib
+liblapack.a            : The LAPACK routines provided by ATLAS,
+                       plus the rest of LAPACK from netlib.org.
+libcblas_unthreaded.a  : The ANSI C interface to the BLAS.
+libf77blas_unthreaded.a        : The Fortran77 interface to the BLAS.
+libatlas.a             : The main ATLAS library,
+                       providing low-level routines for all interface libs.
+  Plus on multiprocessor machines the threaded variants libptcblas.a and
+libptf77blas.a.
+  libcblas.a and libf77blas.a are symlinks pointing to the threaded versions
+if available, else to the unthreaded versions.
+  The dylibs for latlas lcblas lf77bas and llapack are also installed
 <<
 DescPort: <<
 The optimized subset of LAPACK provided by ATLAS is merged
@@ -39,11 +42,10 @@
 Depends: gcc42-shlibs 
 PatchScript: <<
 #!/bin/sh -ev
-## some users have problems with "rm -f" on dirs ...
-# sed -i.bak -e '/rm -f \*\.o x\* config?\.out \*core\*/d' CONFIG/src/Makefile
-###
 # -ftree-loop-linear causes problems with xconfig.
 # -fgcse-after-reload -fsched-interblock -freorder-blocks also _ though 
they're implied by -O3 !
+## Try this : (no: archinfo_linux doesn't seem to be used)
+#perl -pi -e 's,7455,7450,' ATLAS/CONFIG/src/backend/archinfo_linux.c
 cd ..; ln -s lapack-3.1.1 LAPACK
 cd LAPACK
 sed -e 's|g77|gfortran|g' < INSTALL/make.inc.LINUX > make.inc
@@ -62,9 +64,13 @@
  cd BLAS/SRC; make scabs1.o; cd -
  mkdir -p ../bld/lib
  ar cr ../bld/lib/libf77blas.a BLAS/SRC/scabs1.o; ar cr 
../bld/lib/libptf77blas.a BLAS/SRC/scabs1.o
- cd ../bld
- ../ATLAS/configure -v 2 --prefix=%p 
--with-netlib-lapack=%b/../LAPACK/lapack_LINUX.a -b 32 \
-       -C sk gcc-4 -C dk gcc-4 -C sm gcc-4 -C dm gcc-4 -C xc gcc-4 -C ic gcc-4 
-F ic "$iflags" -F if "$iflags"
+ cd ..
+ ln -s %p/bin/gcc-4 gcc
+ export PATH=`pwd`:$PATH
+ cd bld
+ ../ATLAS/configure -v 2 --prefix=%p 
--with-netlib-lapack=%b/../LAPACK/lapack_LINUX.a -b 32 -F ic "$iflags" -F if 
"$iflags"
+ m=`machine`; if test $m = ppc7400 -o $m = ppc7450 ; then \
+       sed -i.bak -e 's,^\( *ARCH =\).*,\1 PPCG432AltiVec,' -e 's,ARCHDEFS =,& 
-DATL_AVgcc' Make.inc ; fi
  make
 <<
 InfoTest: <<
@@ -101,29 +107,39 @@
        else rm libptf77blas.a
             for C in c f77; do ln -s lib${C}blas.a lib${C}blas_unthreaded.a; 
done
  fi
- # we first make a shared lib; easier to just write the command here than to 
fix lib/Makefile ...
+ # we now make shared libs (experimental); easier to just write the command 
here than to fix lib/Makefile ...
  # put this here to make sure it is after the testscript, else dylib might 
affect timings.
- # dylib just made to experiment; not sure this should stay.
  # The '-m' flag at the end is dirty trick to get around an "undefined symbol" 
for _MAIN__, from -lgfortranbegin;
  # _ it swallows the immediately following -lgfortranbegin in the command 
transmitted to /usr/bin/libtool ...
  # There are no undefined symbols w/o "from ..." in the resulting dylib.
  # Is it the -all_load flag that causes the symbol "_main" from 
libgfortranbegin.a to be loaded ?
- ###
- # for now, we make an exported symbols list out of the external symbols of 
liblapack, libptcblas and libptf77blas
-  nm -mfg liblapack.a libf77blas.a libcblas.a|fgrep ' (__TEXT,__text) external 
'|cut -f4 -d' ' > lst
-  gfortran -dynamiclib -single_module -all_load -install_name 
%p/lib/liblapack_atlas.dylib -o liblapack_atlas.dylib \
-       liblapack.a libf77blas.a libcblas.a libatlas.a -Wl,-x -dead_strip 
-exported_symbols_list lst -m
- # lib still has %p/lib/gcc4.2/lib/libgcc_s.1.dylib unnecessarily among its 
load commands _
- # don't know yet how to remove that cleanly (except by issuing the ld command 
myself ..)
-#### changed the dylib's name from libatlas to something un-recognisable,
-#### to prevent octave linking with it, and becoming a different pkg  
+ flags="-dynamiclib -single_module -Wl,-x -dead_strip -all_load -install_name"
+ if test `uname -r|sed -e 's,\..*,,'` -ge 9; then flags="-dead_strip_dylibs 
$flags"; fi
+ gcc $flags %p/lib/libatlas.dylib -o libatlas.dylib libatlas.a
+ gcc $flags %p/lib/libcblas.dylib -o libcblas.dylib libcblas.a libatlas.dylib
+ gfortran $flags %p/lib/libf77blas.dylib -o libf77blas.dylib libf77blas.a 
libatlas.dylib -m
+ gfortran $flags %p/lib/liblapack.dylib -o liblapack.dylib liblapack.a 
libcblas.dylib libf77blas.dylib libatlas.dylib -m
+ #### the rest is optional _ no idea of a correct exported symbols list for 
libatlas...
+ nm -mfgu liblapack.dylib libcblas.dylib libf77blas.dylib|fgrep ' (from 
libatlas'|sed -e 's, (from .*,,' -e 's,.* ,,'|sort -u > lst
+ install_name_tool -id %p/lib/libatlas_full.dylib libatlas.dylib
+ mv libatlas.dylib libatlas_full.dylib
+ gcc $flags %p/lib/libatlas.dylib -o libatlas.dylib libatlas.a 
-exported_symbols_list lst
+ # fortran libs still have %p/lib/gcc4.2/lib/libgcc_s.1.dylib unnecessarily 
among their load commands (not on 10.5)
+ # _ don't know yet how to remove that cleanly (except by issuing the ld 
command myself ..)
  cd ..
  make install DESTDIR=%i
- ranlib %i/lib/*.a
- cp -p lib/*.dylib %i/lib
+ cp -pPR lib/*.{a,dylib} %i/lib
+ find %i/lib -type f -name '*.a' -exec ranlib \{\} \;
+ chmod -R a-x %i/lib
  chmod -R a+rX %i/share
 <<
-Shlibs: !%p/lib/liblapack_%n.dylib
+Shlibs: <<
+!%p/lib/liblapack.dylib
+!%p/lib/libcblas.dylib
+!%p/lib/libf77blas.dylib
+!%p/lib/libatlas.dylib
+!%p/lib/libatlas_full.dylib
+<<
 SplitOff: <<
        Package: %N-doc
        Files: share/man share/doc/%N/LAPACK


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Fink-commits mailing list
Fink-commits@lists.sourceforge.net
http://news.gmane.org/gmane.os.apple.fink.cvs

Reply via email to