Update of /cvsroot/fink/dists/10.4/stable/main/finkinfo/sci
In directory vz-cvs-3.sog:/tmp/cvs-serv9955/stable/main/finkinfo/sci

Added Files:
        arpack.info arpack.patch fltk-backend-oct-3.2.4.info 
        fltk-backend.patch metis.info qhull6.info qhull6.patch 
        qrupdate.info suitesparse-metis.info suitesparse-metis.patch 
Log Message:
Finish up moving Octave deps to 10.4/stable


--- NEW FILE: arpack.patch ---
diff -Nurd ARPACK/ARmake.inc ARPACK.patched/ARmake.inc
--- ARPACK/ARmake.inc   1996-04-26 15:12:57.000000000 -0400
+++ ARPACK.patched/ARmake.inc   2011-09-15 11:32:22.000000000 -0400
@@ -34,6 +34,11 @@
 #
 PLAT = SUN4
 #
+#  The communication library ( need for parallel library only )
+#  Current availible platforms are: BLACS or MPI
+#
+COMMLIB       = MPI
+#
 #  %------------------------------------------------------%
 #  | The directories to find the various pieces of ARPACK |
 #  %------------------------------------------------------%
@@ -42,6 +47,8 @@
 LAPACKdir    = $(home)/LAPACK
 UTILdir      = $(home)/UTIL
 SRCdir       = $(home)/SRC
+PSRCdir      = $(home)/PARPACK/SRC/$(COMMLIB)
+PUTILdir     = $(home)/PARPACK/UTIL/$(COMMLIB)
 #
 DIRS        = $(BLASdir) $(LAPACKdir) $(UTILdir) $(SRCdir)
 #
@@ -51,17 +58,22 @@
 # | NOTE: ARPACK assumes the use of LAPACK version 2 codes.           |
 # %-------------------------------------------------------------------%
 #
-#DIRS         = $(UTILdir) $(SRCdir)
+DIRS         = $(UTILdir) $(SRCdir)
 #
 # %---------------------------------------------------%
 # | The name of the libraries to be created/linked to |
 # %---------------------------------------------------%
 #
-ARPACKLIB  = $(home)/libarpack_$(PLAT).a
-LAPACKLIB = 
-BLASLIB = 
+ARPACKLIB  = $(home)/libarpack.a
+ARPACKDYLIB = $(home)/libarpack.dylib
+PARPACKLIB = $(home)/libparpack.a
+LAPACKLIB = @LAPACKLIB@
+BLASLIB =  @BLASLIB@
 #
 ALIBS =  $(ARPACKLIB) $(LAPACKLIB) $(BLASLIB) 
+MPILIBS = 
+PLIBS = $(PARPACKLIB) $(ALIBS) $(MPILIBS)
+
 #
 # 
 # %---------------------------------------------------------%
@@ -91,9 +103,9 @@
 # |  Command to build .o files from .f files. |
 # %-------------------------------------------%
 #
-.f.o:
-       @$(ECHO) Making $@ from $<
-       @$(FC) -c $(FFLAGS) $<
+#.f.o:
+#      @$(ECHO) Making $@ from $<
+#      @$(FC) -c $(FFLAGS) $<
 #
 # %-----------------------------------------%
 # | Various compilation programs and flags. |
@@ -101,10 +113,10 @@
 # | for your system.                        |
 # %-----------------------------------------%
 #
-FC      = f77
-FFLAGS = -O -cg89
+FC      = FINKPREFIX/bin/gfortran-fsf-4.6
+FFLAGS = -O -fPIC -single_module @FF2C@
 
-LDFLAGS = 
+LDFLAGS = @LDFLAGS@
 CD      = cd
 
 ECHO    = echo
@@ -112,7 +124,7 @@
 LN      = ln
 LNFLAGS = -s
 
-MAKE    = /bin/make
+MAKE    = make
 
 RM      = rm
 RMFLAGS = -f
diff -Nurd ARPACK/UTIL/second.f ARPACK.patched/UTIL/second.f
--- ARPACK/UTIL/second.f        1995-10-02 14:56:44.000000000 -0400
+++ ARPACK.patched/UTIL/second.f        2011-09-15 10:53:32.000000000 -0400
@@ -20,15 +20,15 @@
       REAL               TARRAY( 2 )
 *     ..
 *     .. External Functions ..
-      REAL               ETIME
-      EXTERNAL           ETIME
+*      REAL               ETIME
+*      EXTERNAL           ETIME
 *     ..
 *     .. Executable Statements ..
 *
 
-      T1 = ETIME( TARRAY )
-      T  = TARRAY( 1 )
-
+*     T1 = ETIME( TARRAY )
+*      T  = TARRAY( 1 )
+      T  = 1
       RETURN
 *
 *     End of SECOND
diff -Nurd ARPACK/Makefile ARPACK.patched/Makefile
--- ARPACK/Makefile     1996-09-24 10:55:31.000000000 -0400
+++ ARPACK.patched/Makefile     2011-09-15 10:53:32.000000000 -0400
@@ -64,6 +64,12 @@
        done );
        $(RANLIB) $(ARPACKLIB)
 
+arpackdylib:   arpacklib tmp
+       ( cd tmp; ar -x $(ARPACKLIB) )
+       ( $(FC) $(FFLAGS) $(LDFLAGS) -dynamiclib -install_name 
FINKPREFIX/lib/libarpack.0.dylib -compatibility_version 1.1.0 -current_version 
1.1.0 -o $(ARPACKDYLIB) @LAPACKLINK@ @BLASLINK@ -Wl,@LOAD@,$(ARPACKLIB) )
+
+tmp:
+       ( mkdir tmp )
 cleantest:
 
 cleanlib:

--- NEW FILE: qhull6.info ---
Package: qhull6
Version: 2011.1
Revision: 1
Description: Calculate convex hulls and related structures
License: BSD
Maintainer: Alexander Hansen <[email protected]>
DescDetail: <<
Qhull computes convex hulls, Delaunay triangulations, halfspace 
intersections about a point, Voronoi diagrams, furthest-site 
Delaunay triangulations, and furthest-site Voronoi diagrams. 
It runs in 2-d, 3-d, 4-d, and higher dimensions. It implements 
the Quickhull algorithm for computing the convex hull. Qhull 
handles roundoff errors from floating point arithmetic. It 
computes volumes, surface areas, and approximations to the 
convex hull.
<<
DescUsage: <<
This package contains the executables, manpages, and other documentation.
<<
DescPort: <<
        Upstream doesn't appear to grok OS X, so we handcraft the dylib's 
        install_name.
<<
DescPackaging: <<
The prior static-only qhull package was maintained by Stefan Langerman 
<[email protected]>.
<<

Source: http://www.qhull.org/download/qhull-%v-src.tgz
Source-MD5: a65061cf2a6e6581182f4df0f3667a8e
SourceDirectory: qhull-%v

BuildDepends: fink (>= 0.24.12-1)
Depends: %N-shlibs (= %v-%r )
Conflicts: qhull
Replaces: qhull

PatchFile: %n.patch
PatchFile-MD5: 8498f1f42b4aa2c2a47fd70353acb293
PatchScript:  <<
sed -e 's,@INSTPREFIX@,%i,' -e 's,@FINKPREFIX@,%p,' %{PatchFile} | patch -p1
sed -i.orig -e 's|-Wno-sign-conversion||' Makefile
# fangism: g++-4.0 needs qualifier on friend member class, even if 
forward-declared
sed -i.orig -e 
'/friend.*class.*const_iterator;/s|const_iterator|QhullPointSet::&|;' 
src/libqhullcpp/QhullPointSet.h
<<

GCC: 4.0
CompileScript: make

InfoTest: <<
        TestScript: make test || exit 2
<<

InstallScript: <<
        #!/bin/sh -ev
        make -j1 install
        pushd %i/lib
        ln -sf lib%N.2.0.dylib lib%N.dylib
<<

DocFiles: Announce.txt COPYING.txt README.txt REGISTER.txt index.htm
Homepage: http://www.qhull.org/
SplitOff:  <<
        Package: %N-shlibs
        Files: lib/lib%N.2.0.dylib
        Shlibs: %p/lib/lib%N.2.0.dylib 0.0.0 %n (>= 2011.1-1)
        DocFiles: Announce.txt COPYING.txt README.txt REGISTER.txt
        DescUsage: <<
        This package contains the shared library.
        <<
<<
SplitOff2:  <<
        Package: %N-dev
        BuildDependsOnly: true
        Depends: %N-shlibs (= %v-%r)
        Conflicts: qhull 
        Replaces: qhull
        Files: <<
                include
                lib
        <<
        DocFiles: Announce.txt COPYING.txt README.txt REGISTER.txt
        DescUsage:  <<
        This package contains the header files, static libraries, and the 
        unversioned dylib.
        <<
<<
--- NEW FILE: fltk-backend.patch ---
diff -Nurd -x'*~' octave-@[email protected]/src/DLD-FUNCTIONS/__glpk__.cc 
octave-@OCTVERSION@/src/DLD-FUNCTIONS/__glpk__.cc
--- octave-@[email protected]/src/DLD-FUNCTIONS/__glpk__.cc      2009-01-16 
01:46:23.000000000 -0500
+++ octave-@OCTVERSION@/src/DLD-FUNCTIONS/__glpk__.cc   2010-10-15 
17:50:25.000000000 -0400
@@ -59,8 +59,20 @@
 
 #else
 
-void _glp_lib_print_hook (int (*func)(void *info, char *buf), void *info);
-void _glp_lib_fault_hook (int (*func)(void *info, char *buf), void *info);
+void _glp_lib_print_hook (int (*func)(void *info, char *buf), void *info)
+{ /* stolen from glpk-4.26 */
+      int (*hook)(void *, const char *) = (int(*)(void *, const char *))
+         (func);
+      glp_term_hook(hook, info);
+      return;
+}
+
+void _glp_lib_fault_hook (int (*func)(void *info, char *buf), void *info)
+{ /* stolen from glpk-4.26 */
+      assert(func == func);
+      assert(info == info);
+      return;
+}
 
 #endif
 }
diff -Nurd octave-3.2.4/src/Makefile.in octave-3.2.4.patched/src/Makefile.in
--- octave-3.2.4/src/Makefile.in        2009-06-03 08:32:49.000000000 -0400
+++ octave-3.2.4.patched/src/Makefile.in        2011-09-05 13:35:11.000000000 
-0400
@@ -63,21 +63,7 @@
 OPT_IN := $(addprefix ../liboctave/, $(addsuffix .in, $(OPT_BASE)))
 OPT_INC := $(addprefix ../liboctave/, $(addsuffix .h, $(OPT_BASE)))
 
-DLD_XSRC := amd.cc balance.cc besselj.cc betainc.cc bsxfun.cc \
-       cellfun.cc chol.cc ccolamd.cc colamd.cc colloc.cc \
-       conv2.cc convhulln.cc daspk.cc dasrt.cc dassl.cc det.cc \
-       dispatch.cc dlmread.cc dmperm.cc eig.cc eigs.cc fft.cc \
-       fft2.cc fftn.cc fftw.cc filter.cc find.cc fltk_backend.cc \
-       gammainc.cc gcd.cc getgrent.cc getpwent.cc getrusage.cc \
-       givens.cc hess.cc hex2num.cc inv.cc kron.cc lookup.cc \
-       lsode.cc lu.cc luinc.cc matrix_type.cc max.cc md5sum.cc \
-       pinv.cc qr.cc quad.cc qz.cc rand.cc rcond.cc regexp.cc \
-       schur.cc sparse.cc spparms.cc sqrtm.cc svd.cc syl.cc \
-       symrcm.cc symbfact.cc time.cc tsearch.cc typecast.cc \
-       urlwrite.cc __contourc__.cc __delaunayn__.cc \
-       __dsearchn__.cc __glpk__.cc __lin_interpn__.cc \
-       __magick_read__.cc __pchip_deriv__.cc __qp__.cc \
-       __voronoi__.cc __convn__.cc
+DLD_XSRC := fltk_backend.cc 
 
 DLD_SRC := $(addprefix DLD-FUNCTIONS/, $(DLD_XSRC))
 

--- NEW FILE: metis.info ---
Package: metis
Version: 4.0.3
Revision: 1

Description: Graph partitioning and matrix ordering
DescDetail: <<
METIS is a set of serial programs for partitioning graphs, partitioning 
finite element meshes, and producing fill reducing orderings for sparse 
matrices. The algorithms implemented in METIS are based on the multilevel 
recursive-bisection, multilevel k-way, and multi-constraint partitioning 
schemes developed in the Karypis Lab at the University of Minnesota.

METIS's key features are the following:

Provides high quality partitions!
Experiments on a large number of graphs arising in various domains including
finite element methods, linear programming, VLSI, and transportation show that
METIS produces partitions that are consistently better than those produced by
other widely used algorithms. The partitions produced by METIS are 
consistently 10% to 50% better than those produced by spectral partitioning 
algorithms.

It is extremely fast!
Experiments on a wide range of graphs has shown that METIS is one to two
orders of magnitude faster than other widely used partitioning algorithms. 
Graphs with over 1,000,000 vertices can be partitioned in 256 parts in a few
seconds on current generation workstations and PCs.

Produces low fill orderings!
The fill-reducing orderings produced by METIS are significantly better than
those produced by other widely used algorithms including multiple minimum 
degree. For many classes of problems arising in scientific computations and
linear programming, METIS is able to reduce the storage and computational 
requirements of sparse matrix factorization, by up to an order of magnitude. 
Moreover, unlike multiple minimum degree, the elimination trees produced by 
METIS are suitable for parallel direct factorization. Furthermore, METIS is 
able to compute these orderings very fast. Matrices with over 200,000 rows can
be reordered in just a few seconds on current generation workstations and PCs.
<<

License: OSI-Approved
Maintainer: Alexander Hansen <[email protected]>
Homepage: http://glaros.dtc.umn.edu/gkhome/metis/metis/overview

CustomMirror: <<
nam-US: http://glaros.dtc.umn.edu/gkhome/fetch/sw/%n/OLD
Primary: http://glaros.dtc.umn.edu/gkhome/fetch/sw/%n
<<
Source: mirror:custom:/%n-%v.tar.gz
Source-MD5: d3848b454532ef18dc83e4fb160d1e10

CompileScript: <<
        #!/bin/sh -ev
        pushd Lib
        make 
    popd
    cd Programs
    make 
<<

InfoTest: <<
        TestScript: (cd Test ; make ) || exit 2
<<

InstallScript: <<
        #!/bin/sh -ev
        mkdir -p %i/bin
        cp graphchk kmetis mesh2dual mesh2nodal oemetis onmetis partdmesh 
partnmesh pmetis %i/bin
        mkdir -p %i/lib
        cp libmetis.a %i/lib
        mkdir -p %i/include
        cp Lib/*.h %i/include
<<
BuildDependsOnly: false
DocFiles: LICENSE VERSION CHANGES Graphs Doc
--- NEW FILE: qhull6.patch ---
diff -Nurd qhull-2011.1/Makefile qhull-2011.1.patched/Makefile
--- qhull-2011.1/Makefile       2011-05-14 14:00:48.000000000 -0400
+++ qhull-2011.1.patched/Makefile       2011-08-25 12:07:26.000000000 -0400
@@ -64,12 +64,12 @@
 # You may build the qhull programs without using a library
 # make qhullx
 
-DESTDIR = /usr/local
+DESTDIR = @INSTPREFIX@
 BINDIR = $(DESTDIR)/bin
-DOCDIR = $(DESTDIR)/share/doc/packages/qhull
+DOCDIR = $(DESTDIR)/share/doc/qhull
 INCDIR = $(DESTDIR)/include
 LIBDIR = $(DESTDIR)/lib
-MANDIR = $(DESTDIR)/man/man1
+MANDIR = $(DESTDIR)/share/man/man1
 
 # if you do not have enscript, try a2ps or just use lpr.  The files are text.
 PRINTMAN = enscript -2rl
@@ -80,16 +80,16 @@
 #for Gnu's gcc compiler, -O2 for optimization, -g for debugging
 #   -fno-strict-aliasing not needed for gcc 4.4+ (segfault in qset.c)
 CC        = gcc
-CC_OPTS1  = -O2 -fPIC -ansi -fno-strict-aliasing -Isrc/libqhull $(CC_WARNINGS)
+CC_OPTS1  = -O2 -fPIC -ansi -fno-common -fno-strict-aliasing -Isrc/libqhull 
$(CC_WARNINGS)
 CXX       = g++
 # libqhullcpp must be before libqhull
 CXX_OPTS1 = -O2 -Dqh_QHpointer -Isrc/ -Isrc/libqhullcpp -Isrc/libqhull 
$(CXX_WARNINGS)
 
 # for shared library link
-CC_OPTS3  =
+CC_OPTS3  = -dynamiclib -install_name @FINKPREFIX@/lib/libqhull6.2.0.dylib
 # Define qhull_VERSION in CMakeLists.txt, Makefile, qhull-exports.def, and 
qhull-warn.pri
 qhull_VERSION_MAJOR=6
-SO  = so.6.2.0
+SO  = 2.0.dylib
 
 # On MinGW, 
 #   make SO=dll
@@ -432,7 +432,7 @@
 
 lib/libqhull$(qhull_VERSION_MAJOR).$(SO): $(LIBQHULLSP_OBJS)
        $(CC) -shared -o $@ $(CC_OPTS3) $^
-       cd lib && ln -f -s libqhull$(qhull_VERSION_MAJOR).$(SO) 
libqhull$(qhull_VERSION_MAJOR).so
+       cd lib && ln -f -s libqhull$(qhull_VERSION_MAJOR).$(SO) 
libqhull$(qhull_VERSION_MAJOR).dylib
 
 # don't use ../qconvex.         Does not work on Red Hat Linux
 bin/qconvex: src/qconvex/qconvex.o lib/libqhullstatic.a
@@ -457,7 +457,7 @@
 bin/user_eg: src/user_eg/user_eg.c lib/libqhull$(qhull_VERSION_MAJOR).$(SO)
        echo -e '\n== If user_eg fails to link, switch to -lqhullstatic_p.\n== 
On MinGW/Cygwin, use "make SO=dll"'
        echo -e "\\n==  and copy lib/libqhull$(qhull_VERSION_MAJOR).$(SO) to 
bin\\n\\n"
-       $(CC) -o $@ $< -Dqh_QHpointer  $(CC_OPTS1) $(CC_OPTS3) -Llib 
-lqhull$(qhull_VERSION_MAJOR) -lm
+       $(CC) -o $@ $< -Dqh_QHpointer  $(CC_OPTS1) -Llib 
-lqhull$(qhull_VERSION_MAJOR) -lm
 
 bin/user_eg2: src/user_eg2/user_eg2.o lib/libqhullstatic.a 
        $(CC) -o $@ $< $(CC_OPTS2) -Llib -lqhullstatic -lm

--- NEW FILE: arpack.info ---
Info2: <<
Package: arpack%type_pkg[-atlas]
Version: 96patched
Revision: 6
Type: -atlas (boolean)

Maintainer: Alexander Hansen <[email protected]>
Description: Solve large scale eigenvalue problems
DescDetail: <<
ARPACK is a collection of Fortran77 subroutines designed to solve large scale
eigenvalue problems.
<<
DescUsage: <<
This package contains the header, static libraries, Fortran examples, and
documentation.
<<
BuildDependsOnly: true
Homepage: http://www.caam.rice.edu/software/ARPACK
License: BSD

Source: http://www.caam.rice.edu/software/ARPACK/SRC/arpack96.tar.gz
Source2: http://www.caam.rice.edu/software/ARPACK/SRC/patch.tar.gz
Source2Rename: arpack-patch.tar.gz
Source-MD5: fffaa970198b285676f4156cebc8626e 
Source2-MD5: 14830d758f195f272b8594a493501fa2
SourceDirectory: ARPACK

BuildDepends: <<
(%type_raw[-atlas] != .) atlas,
fink (>=0.30.0),
gcc46-compiler
<<
Depends: %N-shlibs (= %v-%r )
Conflicts: %{Ni}, %{Ni}-atlas
Replaces: %{Ni}, %{Ni}-atlas

PatchFile: %{ni}.patch
PatchFile-MD5:7f2b7e1cc58e18f9705c784a680e71ef
PatchScript: <<
        #!/bin/sh -ev
        sed -e 's|FINKPREFIX|%p|g' %{PatchFile} | patch -p1
        perl -pi -e 's|\$\(HOME\)/ARPACK|%b|' ARmake.inc
        # set appropriate libraries for variant
        if [ "%type_raw[-atlas]" = "-atlas" ] 
        then
                sed -i.bak  -e 's|@FF2C@||' \
                                        -e 
's|@LAPACKLIB@|%p/lib/liblapack.dylib|' \
                                        -e 
's|@BLASLIB@|%p/lib/libf77blas.dylib|' ARmake.inc 
                sed -i.bak      -e 's|@LAPACKLINK@|%p/lib/liblapack.dylib|' \
                                        -e 
's|@BLASLINK@|%p/lib/libf77blas.dylib|' Makefile
        else
                sed -i.bak  -e 's|@FF2C@|-ff2c|' \
                                        -e 's|@LAPACKLIB@|-framework 
Accelerate|' \
                                        -e 's|@BLASLIB@||' ARmake.inc
                sed -i.bak      -e 
's|@LAPACKLINK@|/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLAPACK.dylib|'
 \
                                        -e 
's|@BLASLINK@|/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib|'
 \
                                                Makefile
        fi
        # set LDFLAGS appropriately
        if [ `uname -r | cut -f1 -d.` -ge 9 ]
        then 
                sed -i.bak -e 's|@LDFLAGS@|-Wl,-dead_strip_dylibs|' ARmake.inc
        else 
                sed -i.bak -e 's|@LDFLAGS@||' ARmake.inc
        fi      
        # use OS-appropriate methods to make dylib
        if [ `uname -r | cut -f1 -d.` -le 9 ]
        then 
                sed -i.bak -e 's|@LOAD@|-all_load|' Makefile
        else 
                sed -i.bak -e 's|@LOAD@|-force_load|' Makefile
        fi      
<<

UseMaxBuildJobs: false
CompileScript: <<
        make all
        make arpackdylib
<<
InstallScript:  <<
        #!/bin/sh -ev
        install -d -v %i/lib 
        install -m 644 -v libarpack.a %i/lib
        ranlib %i/lib/libarpack.a
        mv libarpack.dylib libarpack.0.dylib
        install -m 644 -v libarpack.0.dylib %i/lib
        pushd %i/lib
        ln -s libarpack.0.dylib libarpack.dylib
        popd
        install -d -v %i/share
        install -d -v %i/share/%n
        cp -r -v EXAMPLES %i/share/%n
<<

DocFiles: DOCUMENTS
DescPackaging:  <<
        Borrowed liberally from Macports.
        
        Needs a gfortran; I've arbitrarily chosen gcc46, as it's the
        lowest-versioned one available on 10.7.

        Needs -ff2c when using Accelerate.framework, but not when using
        ATLAS.
<<
DescPort: <<
        Dynamic library originally courtesy of Ben Abbot.  I've tweaked it to
        have a nonzero compatibility_version and current_version.  Additional
        tweaks thanks to J-F Mertens and Peter O'Gorman
        
        Fortran files are built at -O0 to avoid runtime crashes--thanks to
        Martin Costabel for bringing this up.
<<

Splitoff: <<
        Package: %N-shlibs
        Files: lib/lib%{Ni}.0.dylib
        Shlibs: %p/lib/lib%{Ni}.0.dylib 1.1.0 %n (>=0.96patched-6)
        Depends: <<
        (%type_raw[-atlas] != .) atlas-shlibs,
        gcc46-shlibs
        <<
        Conflicts: %{Ni}-shlibs, %{Ni}-atlas-shlibs
        Replaces: %{Ni}-shlibs, %{Ni}-atlas-shlibs
        DescDetail: <<
        This package contains a dynamic library.
        <<
        DocFiles: DOCUMENTS/README
<<
<<
--- 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 <[email protected]>
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.
<<
<<

--- NEW FILE: suitesparse-metis.patch ---
diff -urN -x .DS_Store originals/SuiteSparse/KLU/Include/klu_internal.h 
SuiteSparse/KLU/Include/klu_internal.h
--- originals/SuiteSparse/KLU/Include/klu_internal.h    2007-05-04 
17:00:06.000000000 -0400
+++ SuiteSparse/KLU/Include/klu_internal.h      2008-03-22 20:19:59.000000000 
-0400
@@ -9,7 +9,7 @@
 
 #include "klu.h" 
 #include "btf.h"
-#include "klu_version.h"
+/*#include "klu_version.h"*/
 
 /* ========================================================================== 
*/
 /* make sure debugging and printing is turned off */
@@ -36,6 +36,8 @@
 #include <limits.h>
 #include <stdlib.h>
 #include <math.h>
+/* moved klu_version.h after math.h to circumvent compile error on ppc */
+#include "klu_version.h"
 
 #undef ASSERT
 #ifndef NDEBUG
diff -Nurd SuiteSparse/UFconfig/UFconfig.mk 
SuiteSparse.patched//UFconfig/UFconfig.mk
--- SuiteSparse/UFconfig/UFconfig.mk    2011-05-10 16:47:15.000000000 -0400
+++ SuiteSparse.patched//UFconfig/UFconfig.mk   2011-08-24 15:14:47.000000000 
-0400
@@ -33,8 +33,8 @@
 # C compiler and compiler flags:  These will normally not give you optimal
 # performance.  You should select the optimization parameters that are best
 # for your system.  On Linux, use "CFLAGS = -O3 -fexceptions" for example.
-CC = cc
-CFLAGS = -O3 -fexceptions
+#CC = cc
+#CFLAGS = -O3 -fexceptions
 
 # C++ compiler (also uses CFLAGS)
 CPLUSPLUS = g++
@@ -54,7 +54,7 @@
 F77LIB =
 
 # C and Fortran libraries
-LIB = -lm
+#LIB = -lm
 
 # For compiling MATLAB mexFunctions (MATLAB 7.5 or later)
 MEX = mex -O -largeArrayDims -lmwlapack -lmwblas
@@ -91,8 +91,8 @@
 # naming the BLAS and LAPACK library (*.a or *.so) files.
 
 # This is probably slow ... it might connect to the Standard Reference BLAS:
-BLAS = -lblas -lgfortran
-LAPACK = -llapack
+#BLAS = -lblas -lgfortran
+#LAPACK = -llapack
 
 # NOTE: this next option for the "Goto BLAS" has nothing to do with a "goto"
 # statement.  Rather, the Goto BLAS is written by Dr. Kazushige Goto.
@@ -132,13 +132,13 @@
 # The path is relative to where it is used, in CHOLMOD/Lib, CHOLMOD/MATLAB, 
etc.
 # You may wish to use an absolute path.  METIS is optional.  Compile
 # CHOLMOD with -DNPARTITION if you do not wish to use METIS.
-METIS_PATH = ../../metis-4.0
-METIS = ../../metis-4.0/libmetis.a
+#METIS_PATH = ../../metis-4.0
+#METIS = ../../metis-4.0/libmetis.a
 
 # If you use CHOLMOD_CONFIG = -DNPARTITION then you must use the following
 # options:
-# METIS_PATH =
-# METIS =
+METIS_PATH = @METISPREFIX@
+METIS = @METISPREFIX@/lib/libmetis.a
 
 #------------------------------------------------------------------------------
 # UMFPACK configuration:
@@ -194,7 +194,7 @@
 # -DNSUNPERF       for Solaris only.  If defined, do not use the Sun
 #                      Performance Library
 
-CHOLMOD_CONFIG =
+CHOLMOD_CONFIG = 
 
 #------------------------------------------------------------------------------
 # SuiteSparseQR configuration:
@@ -232,7 +232,7 @@
 #------------------------------------------------------------------------------
 
 # Using default compilers:
-# CC = gcc
+CC = gcc
 # CFLAGS = -O3 -fexceptions
 
 # alternatives:
@@ -286,10 +286,10 @@
 
 # As recommended by macports, http://suitesparse.darwinports.com/
 # I've tested them myself on Mac OSX 10.6.1 (Snow Leopard), on my MacBook Air.
-# F77 = gfortran
-# CFLAGS = -O3 -fno-common -no-cpp-precomp -fexceptions
-# BLAS = -framework Accelerate
-# LAPACK = -framework Accelerate
+F77 = gfortran
+CFLAGS = -O3 -fno-common -no-cpp-precomp -fexceptions
+BLAS = -framework Accelerate
+LAPACK = -framework Accelerate
 
 # Using netlib.org LAPACK and BLAS compiled by gfortran, with and without
 # optimzation:

--- NEW FILE: suitesparse-metis.info ---
Package: suitesparse-metis
Version: 3.6.1
Revision: 1
Source: 
http://www.cise.ufl.edu/research/sparse/SuiteSparse/SuiteSparse-%v.tar.gz
Source-MD5: 88a44890e8f61cdbb844a76b7259d876
SourceDirectory: SuiteSparse
BuildDepends: fink (>= 0.24.12)
BuildConflicts: coreutils-default
Conflicts: suitesparse
Replaces: suitesparse
Depends: metis

PatchFile: %n.patch
PatchFile-MD5: 86e123887db5bcc19880b49fe4ffe2e6
PatchScript: <<
        #!/bin/sh -ev
        sed -e 's,@METISPREFIX@,%p,g' %{PatchFile} | patch -p1
        sed -i.bak -e 's,^CFLAGS = -O,&3 -fstrict-aliasing,' 
C{,X}Sparse/Lib/Makefile
        sed -i -e 's,I$(METIS_PATH)/Lib,I$(METIS_PATH)/include,' 
CHOLMOD/Lib/Makefile
        sed -i -e 's|-no-cpp-precomp||g' ./UFconfig/UFconfig.mk
<<

# avoid race condidtion
UseMaxBuildJobs: false
CompileScript: <<
#! /bin/sh -ev
# Compile SuiteSparse with METIS.
export CHOLMOD_CONFIG=''
echo **** Start: Message from SuiteSparse CompileScript ****
echo CHOLMOD_CONFIG = $CHOLMOD_CONFIG
echo **** Stop: Message from SuiteSparse CompileScript ****
make default
<<

InstallScript: <<
#! /bin/sh -ev

install -d %i/lib
find . -name 'lib*.a' -exec install -m 644 \{\} %i/lib \;
rm %i/lib/libcsparse.a
ranlib %i/lib/lib*.a

install -d %i/include/suitesparse
install -p -m 644 \
        `find . -name '*.h'|egrep -v 
'^\./(CSparse/|CXSparse_n|UMFPACK/Source/)|/(MATLAB|Demo|Tcov)/|_(internal|version)\.h$'`
 \
        %i/include/suitesparse

for f in `ls -1 {,*/,CHOLMOD/*/}*.txt|egrep -v '_newfiles|MATLAB'|sed -e 
's,^,./,' -e 's,/[^/]*$,,'|sort -u`
        do install -d %i/share/doc/suitesparse/$f; install -p -m 644 $f/*.txt 
%i/share/doc/suitesparse/$f; done
for f in `ls -1d */Doc|fgrep -v _newfiles|sed -e 's,/[^/]*$,,'`
        do install -d %i/share/doc/suitesparse/$f; install -p -m 644 $f/Doc/* 
%i/share/doc/suitesparse/$f; done

cd %i/share/doc/suitesparse
# replace duplicates by symlinks
for n in lesser gpl; do
        l=`ls -1 {,*/}*/$n.txt`
        target=`tail -n1<<<"$l"`
        list=`sed -e '$d'<<<"$l"`
        for f in $list; do g=`sed -e 's,[^/]\+,..,g' -e 's,\.\.$,,' <<<"$f"`; 
ln -fs $g$target $f; done
done
# clean up
find .  \( -name Makefile \
        -o -name '*.bib' -o -name '*.tex' -o -name '*.stex' -o -name '*.sed*' 
-o -name '*.awk' -o -name '*diff' -o -name '*proto' \
        \) -exec rm \{\} \;
cd -
<<

Description: Suite of Sparse matrix packages
DescUsage:  <<
This version of SuiteSparse uses the METIS libraries.  Packages that link
against libcholmod.a from this one will also need to use -lmetis.
<<

License: GPL/LGPL
Maintainer: Alexander Hansen <[email protected]>
Homepage: http://www.cise.ufl.edu/research/sparse/SuiteSparse/

--- NEW FILE: fltk-backend-oct-3.2.4.info ---
Info2: <<
Package: fltk-backend-%type_pkg[ui]-oct%type_pkg[oct]
Type: ui (x11 aqua), oct(3.2.4)
Version: 3.2.4
Revision: 2
Maintainer: Alexander Hansen <[email protected]>
Description: Graphics backend for octave-%type_raw[oct]
DescDetail:  <<
We build fltk-backend.oct separately to allow for variants that use Aqua and
X11.  Install fltk-backend-aqua-oct%type_pkg[oct] if you want the Aqua 
interface or fltk-backend-x11-oct%type_pkg[oct] if you want the X11 one.
<<

Source: mirror:gnu:octave/octave-%v.tar.gz
Source-MD5: 90c39fa9e241ad2e978bcee4682a2ba9
SourceDirectory: octave-%v

BuildDepends: <<
        (%type_pkg[ui] = x11) fltk-x11, 
        (%type_pkg[ui] = x11) x11-dev,
        (%type_pkg[ui] = aqua) fltk13-aqua,
        arpack, glpk-dev, hdf5.7, readline5, libncurses5, fftw3 (>= 3.1.1-7), 
    libcurl4, libftgl2, qhull6-dev, qrupdate | qrupdate-atlas, flag-sort,
        pcre, gcc46-compiler, suitesparse-metis, fink (>= 0.30.0), sed,
        graphicsmagick-dev, freetype219, libftgl2
<<
Depends: <<
        (%type_pkg[ui] = x11) fltk-x11-shlibs,  
        (%type_pkg[ui] = x11) x11,
        (%type_pkg[ui] = aqua) fltk13-aqua-shlibs
<<
BuildConflicts: coot-dev, broken-gcc, lammpi-dev, fort77, 4ti2-dev, 
imagemagick10-dev
GCC: 4.0
Conflicts: fltk-backend-aqua-oct%type_pkg[oct], 
fltk-backend-x11-oct%type_pkg[oct]
Replaces: fltk-backend-aqua-oct%type_pkg[oct], 
fltk-backend-x11-oct%type_pkg[oct]
UseMaxBuildJobs: false

PatchFile: fltk-backend.patch
PatchFile-MD5: 1df437597f67ce17b321534513e5946f

PatchScript: <<
        #!/bin/sh -ev
        sed -e 's/@OCTVERSION@/%v/g' %{PatchFile} | patch -p1 
        # fix lib name for qhull6
        perl -pi -e 's|(qhull[/.])|lib\1|g ; s|lqhull|lqhull6|' configure
        # wrong include dir for qhull6
        for f in `grep -l -r "qhull_a\.h" src`
                do sed -i.orig -e '/include/s|qhull/|lib&|' $f
        done
        # more patching by fangism
        # silence some warnings
        sed -i.orig -e '/ibasea/s|\*ibasea, ||' \
                -e '/ibasea/s| ibasea =.*||' \
                liboctave/oct-sort.cc
        # should this accompany -D_THREAD_SAFE? in CFLAGS,CXXFLAGS
        sed -i.orig '/#include.*Range\.h/i\
#define _REENTRANT' liboctave/lo-specfun.cc
        # need size_t from <cstddef>
        sed -i.orig -e '/#define octave_oct_alloc_h/a\
using std::size_t;' liboctave/oct-alloc.h
        # needed by clang++, safe for g++: using-declaration as typedef
        for f in liboctave/DiagArray2.h liboctave/intNDArray.h
        do sed -i.orig -e '/using.*element_type;/s|using|& typename|' $f
        done
        # missing qualifier to dependent-name member-function
        sed -i.orig -e '/truncate_int/s|\(return\) \(truncate_int\)|\1 
octave_int_base<T>::\2|' liboctave/oct-inttypes.h
    perl -pi -e 's/scripts doc/scripts/; s/INSTALL.OCTAVE//' Makefile
<<

SetCC: flag-sort -r gcc
SetCXX: flag-sort -r g++
SetLDFLAGS: -Wl,-dead_strip_dylibs
SetLIBS: -lGraphicsMagick -lmetis
ConfigureParams: <<
        F77=%p/bin/gfortran-fsf-4.6 --host=%m-apple-darwin 
--build=%m-apple-darwin \
        --infodir='${prefix}/share/info' --mandir='${prefix}/share/man' 
--libexecdir='${prefix}/lib' \
        --enable-shared --enable-dl  --without-mpi --with-hdf5 --with-fftw \
        (%type_pkg[ui] = x11 ) --with-x \
        (%type_pkg[ui] = x11 ) --x-libraries=/usr/X11/lib \ 
        (%type_pkg[ui] = x11 ) --x-includes=/usr/X11/include \ 
        (%type_pkg[ui] = x11 ) --without-framework-carbon \
        (%type_pkg[ui] = aqua ) --without-x \
        (%type_pkg[ui] = aqua ) --with-framework-carbon \
        --disable-static
<<

CompileScript: <<
 #!/bin/sh -ev
 export CFLAGS='-O3 -MD'
 export CXXFLAGS='-O3 -MD'
 export FFLAGS='-O3'
 
a='--with-lapack=-Wl,-framework,Accelerate,-dylib_file,/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLAPACK.dylib:/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLAPACK.dylib
 
--with-blas=-Wl,-framework,Accelerate,-dylib_file,/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib:/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib'
 FLIBDIR="%p/lib/gcc4.6/lib"
 ./configure FLIBS="${FLIBDIR}/libgfortran.dylib" %c $a
 #make
 pushd libcruft
 make all
 popd
 pushd liboctave
 make all
 popd
 pushd src
 make all
<<

InstallScript: <<
 mkdir -p %i/lib/octave/%type_raw[oct]/oct/%m-apple-darwin
 cp src/fltk_backend.oct %i/lib/octave/%type_raw[oct]/oct/%m-apple-darwin/
<<
DocFiles: COPYING
Homepage: http://www.octave.org/
License: GPL
DescPackaging:  <<
        Currently we build all of octave and then only install 
fltk_backend.oct.  
<<
<<


------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
_______________________________________________
Fink-commits mailing list
[email protected]
http://news.gmane.org/gmane.os.apple.fink.cvs

Reply via email to