the Fink project is an effort to port
popular Unix programs to Mac OS X
Info2: <<
Package: qrupdate%type_pkg[-atlas]
Version: 1.1.2
Revision: 2
Type: -atlas (boolean), gcc (4.7)
Source: mirror:sourceforge:%{Ni}/1.1/%{Ni}-%v.tar.gz
Source-MD5: 6d073887c6e858c24aeda5b54c57a8c4
Description: QR and Cholesky decomposition library
DescDetail: <<
qrupdate is a Fortran library for fast updates of QR, Cholesky decompositions.
<<
DescUsage: <<
This package contains a static library, header, and unversioned dylib.
<<
DescPackaging: <<
Patch out hardcoded /usr/local.
Uses GNU 'install -D', so we patch that out and use 'mkdir -p' first to avoid
BuildDepends: coreutils-default.
Use -ff2c on the non-ATLAS variant to be compatible with Accelerate.
<<
Maintainer: Alexander Hansen
License: GPL
Homepage: http://qrupdate.sourceforge.net/
BuildDepends: <<
(%type_raw[-atlas] != .) atlas,
gcc%type_pkg[gcc]-compiler
<<
Depends: %N-shlibs (=%v-%r)
BuildDependsOnly: true
Conflicts: qrupdate, qrupdate-atlas
Replaces: qrupdate, qrupdate-atlas
PatchScript: <<
#!/bin/sh -ev
if [ `uname -r | cut -f1 -d.` -ge 9 ]
then
LDFLAGS="-Wl,-dead_strip_dylibs"
else LDFLAGS=""
fi
sed -i.orig -e 's|/usr/local|%p|g' \
-e '/FC/s|gfortran|&-fsf-%type_raw[gcc]|' Makeconf
if [ "%type_pkg[-atlas]" = "" ]
then
sed -i.orig2 \
-e '/FFLAGS/s|-O3|-ff2c -g &|' \
-e 's|-lblas||' \
-e 's|-llapack||' Makeconf
perl -pi -e "s|^(BLAS=)|LDFLAGS=$LDFLAGS -framework Accelerate\n\1|" Makeconf
else
sed -i.orig2 -e 's,lblas,lf77blas,' Makeconf
perl -pi -e "s|^(BLAS=.*)|LDFLAGS=$LDFLAGS -L%p/lib\n\1|" Makeconf
fi
sed -i.orig -e 's|install -D|install|g' src/Makefile
# recursive parallel Makefiles please -- fangism
sed -i.orig -e '/make -C/s|make|+&|' Makefile
sed -i.orig -e '/FFLAGS.*LIBS/s|(FFLAGS)|& $(LDFLAGS)|' test/Makefile
<<
CompileScript: <<
make solib && make lib
<<
InfoTest: <<
TestScript: make test || exit 2
<<
InstallScript: <<
mkdir -p %i/lib
make -j1 install-shlib install-staticlib DESTDIR=%d
<<
DocFiles: COPYING README
SplitOff: <<
Package: %N-shlibs
Depends: <<
(%type_raw[-atlas] != .) atlas-shlibs,
gcc%type_pkg[gcc]-shlibs
<<
Conflicts: qrupdate-atlas-shlibs, qrupdate-shlibs
Replaces: qrupdate-atlas-shlibs, qrupdate-shlibs
Files: lib/lib%{Ni}.1*.dylib
DocFiles: COPYING README
Shlibs: %p/lib/lib%{Ni}.1.dylib 0.0.0 %n (>= 1.1.1-1)
DescUsage: This package contains a shared library.
<<
<<