Update of /cvsroot/fink/experimental/alexkhansen/common/finkinfo/sci
In directory vz-cvs-3.sog:/tmp/cvs-serv28041

Added Files:
        qrupdate.info 
Log Message:
Put -ff2c back in non-atlas qrupdate

--- NEW FILE: qrupdate.info ---
Info2: <<
Package: qrupdate%type_pkg[-atlas]
Version: 1.1.1
Revision: 5
Type: -atlas (boolean)
Source: mirror:sourceforge:%{Ni}/1.1/%{Ni}-%v.tar.gz
Source-MD5: 7782c7ee6c234e56a72d6b86c1856fa0
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 <alexkhan...@users.sourceforge.net>
License: GPL

BuildDepends: gcc46-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-4.6|' Makeconf
        if [ "%type_pkg[-atlas]" = "" ]
        then 
                sed -i.orig2 \
                        -e '/FFLAGS/s|-O3|-ff2c -g &|' \
                        -e 's|-lblas||' \
                        -e 's|-llapack||' \
                        -e "/BLAS=/i\
LDFLAGS=$LDFLAGS -framework Accelerate" Makeconf
        else 
                sed -i.orig2 \
                        -e 's,lblas,lf77blas,' \
                        -e "/BLAS=/i\
LDFLAGS=$LDFLAGS -L%p/lib" 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: gcc46-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.
<<
<<


------------------------------------------------------------------------------
BlackBerry&reg; DevCon Americas, Oct. 18-20, San Francisco, CA
http://p.sf.net/sfu/rim-devcon-copy2
_______________________________________________
Fink-commits mailing list
Fink-commits@lists.sourceforge.net
http://news.gmane.org/gmane.os.apple.fink.cvs

Reply via email to