Update of /cvsroot/fink/dists/10.4/stable/main/finkinfo/libs
In directory sfp-cvsdas-3.v30.ch3.sourceforge.com:/tmp/cvs-serv24745/libs

Modified Files:
        gmp.info libmpfr1.info libmpfr1.patch 
Added Files:
        libmpc2.info 
Log Message:
add gcc45 suite to stable...looks pretty sane and functional, needed by 
upcoming gnome/kde suite


Index: libmpfr1.info
===================================================================
RCS file: /cvsroot/fink/dists/10.4/stable/main/finkinfo/libs/libmpfr1.info,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- libmpfr1.info       5 Sep 2009 21:39:40 -0000       1.6
+++ libmpfr1.info       19 Oct 2010 07:04:48 -0000      1.7
@@ -1,31 +1,29 @@
 Info2: <<
 Package: libmpfr1%type_pkg[-64bit]
-Version: 2.4.1
-Revision: 1
+Version: 2.4.2
+Revision: 3
 Type: -64bit (boolean)
 Architecture: ( %type_raw[-64bit] = -64bit ) powerpc, ( %type_raw[-64bit] = 
-64bit ) i386
 Depends: %N-shlibs (= %v-%r), ( %type_raw[-64bit] = -64bit ) 64bit-cpu
 BuildDepends: gmp%type_pkg[-64bit] (>= 4.2.1-1006), fink (>= 0.26.0)
-Conflicts: libmpfr-dev, libmpfr1, libmpfr1-64bit
-Replaces: gmp (<< 4.1.4-1), libmpfr-dev, libmpfr1, libmpfr1-64bit
+Conflicts: libmpfr-dev, libmpfr1, libmpfr1-64bit, libmpfr4, libmpfr4-64bit
+Replaces: gmp (<< 4.1.4-1), libmpfr-dev, libmpfr1, libmpfr1-64bit, libmpfr4, 
libmpfr4-64bit
 Source: http://www.mpfr.org/mpfr-current/mpfr-%v.tar.gz
-Source-MD5: a70bbde2a23d82e8f3314d4293500ae4
+Source-MD5: 0e3dcf9fe2b6656ed417c89aa9159428
 ConfigureParams: --infodir='${prefix}/share/info' --enable-shared
 DocFiles: AUTHORS BUGS COPYING COPYING.LIB ChangeLog NEWS README TODO VERSION
 InfoDocs: mpfr.info
 PatchFile: %{Ni}.patch
-PatchFile-MD5: 6b5ce172b239413ed2c4495549fdd8ed
+PatchFile-MD5: cbad7ef51dc6a608ef1f78a38c6318f9
+# PatchFile-MD5: 6b5ce172b239413ed2c4495549fdd8ed
 BuildDependsOnly: True
 CompileScript: <<
-#! /bin/sh -ev
- if [ "%type_raw[-64bit]" == "." ]; then
+  #! /bin/sh -ev
+  if [ "%type_raw[-64bit]" == "-64bit" ]; then
+    export CC="gcc -m64"
+  fi
   ./configure %c --libdir='${prefix}/%lib'
   make check
- else
- export CC="gcc -m64"
- ./configure %c --libdir='${prefix}/%lib'
- make check
-fi
 <<
 SplitOff: <<
   Package: %N-shlibs
@@ -44,9 +42,11 @@
  floating-point computations with exact rounding (also called
  correct rounding). 
 <<
-Maintainer:  Dave Morrison <[email protected]>
-Homepage: http://www.mpfr.org
+DescPackaging: <<
+  TODO: validate against gmp5
+<<
+Maintainer: David Fang <[email protected]>
+# Former maintainer: Dave Morrison <[email protected]>
+Homepage: http://www.mpfr.org/
 License: LGPL
 <<
-
-                

Index: libmpfr1.patch
===================================================================
RCS file: /cvsroot/fink/dists/10.4/stable/main/finkinfo/libs/libmpfr1.patch,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- libmpfr1.patch      16 Jul 2008 03:01:37 -0000      1.2
+++ libmpfr1.patch      19 Oct 2010 07:04:48 -0000      1.3
@@ -12,3 +12,333 @@
  {
 
                 
+diff -Naurd mpfr-2.4.2-a/PATCHES mpfr-2.4.2-b/PATCHES
+--- mpfr-2.4.2-a/PATCHES       2009-12-07 13:37:12.000000000 +0000
++++ mpfr-2.4.2-b/PATCHES       2009-12-07 13:37:12.000000000 +0000
+@@ -0,0 +1 @@
++sin_cos_underflow
+diff -Naurd mpfr-2.4.2-a/VERSION mpfr-2.4.2-b/VERSION
+--- mpfr-2.4.2-a/VERSION       2009-11-30 02:43:08.000000000 +0000
++++ mpfr-2.4.2-b/VERSION       2009-12-07 13:37:12.000000000 +0000
+@@ -1 +1 @@
+-2.4.2
++2.4.2-p1
+diff -Naurd mpfr-2.4.2-a/mpfr.h mpfr-2.4.2-b/mpfr.h
+--- mpfr-2.4.2-a/mpfr.h        2009-11-30 02:43:08.000000000 +0000
++++ mpfr-2.4.2-b/mpfr.h        2009-12-07 13:37:12.000000000 +0000
+@@ -27,7 +27,7 @@
+ #define MPFR_VERSION_MAJOR 2
+ #define MPFR_VERSION_MINOR 4
+ #define MPFR_VERSION_PATCHLEVEL 2
+-#define MPFR_VERSION_STRING "2.4.2"
++#define MPFR_VERSION_STRING "2.4.2-p1"
+ 
+ /* Macros dealing with MPFR VERSION */
+ #define MPFR_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
+diff -Naurd mpfr-2.4.2-a/sin_cos.c mpfr-2.4.2-b/sin_cos.c
+--- mpfr-2.4.2-a/sin_cos.c     2009-11-30 02:43:09.000000000 +0000
++++ mpfr-2.4.2-b/sin_cos.c     2009-12-07 13:37:12.000000000 +0000
+@@ -82,17 +82,19 @@
+       if (y != x)
+         /* y and x differ, thus we can safely try to compute y first */
+         {
+-          MPFR_FAST_COMPUTE_IF_SMALL_INPUT (y, x, -2 * expx, 2, 0, rnd_mode,
+-                                            { inexy = _inexact;
+-                                              goto small_input; });
++          MPFR_FAST_COMPUTE_IF_SMALL_INPUT (
++            y, x, -2 * expx, 2, 0, rnd_mode,
++            { inexy = _inexact;
++              goto small_input; });
+           if (0)
+             {
+             small_input:
+               /* we can go here only if we can round sin(x) */
+-              MPFR_FAST_COMPUTE_IF_SMALL_INPUT (z, __gmpfr_one, -2 * expx,
+-                                                1, 0, rnd_mode,
+-                                                { inexz = _inexact;
+-                                                  goto end; });
++              MPFR_FAST_COMPUTE_IF_SMALL_INPUT (
++                z, __gmpfr_one, -2 * expx, 1, 0, rnd_mode,
++                { inexz = _inexact;
++                  MPFR_SAVE_EXPO_UPDATE_FLAGS (expo, __gmpfr_flags);
++                  goto end; });
+             }
+ 
+           /* if we go here, one of the two MPFR_FAST_COMPUTE_IF_SMALL_INPUT
+@@ -101,18 +103,19 @@
+       else /* y and x are the same variable: try to compute z first, which
+               necessarily differs */
+         {
+-          MPFR_FAST_COMPUTE_IF_SMALL_INPUT (z, __gmpfr_one, -2 * expx,
+-                                            1, 0, rnd_mode,
+-                                            { inexz = _inexact;
+-                                              goto small_input2; });
++          MPFR_FAST_COMPUTE_IF_SMALL_INPUT (
++            z, __gmpfr_one, -2 * expx, 1, 0, rnd_mode,
++            { inexz = _inexact;
++              goto small_input2; });
+           if (0)
+             {
+             small_input2:
+               /* we can go here only if we can round cos(x) */
+-              MPFR_FAST_COMPUTE_IF_SMALL_INPUT (y, x, -2 * expx, 2, 0,
+-                                                rnd_mode,
+-                                                { inexy = _inexact;
+-                                                  goto end; });
++              MPFR_FAST_COMPUTE_IF_SMALL_INPUT (
++                y, x, -2 * expx, 2, 0, rnd_mode,
++                { inexy = _inexact;
++                  MPFR_SAVE_EXPO_UPDATE_FLAGS (expo, __gmpfr_flags);
++                  goto end; });
+             }
+         }
+       m += 2 * (-expx);
+@@ -207,7 +210,6 @@
+   mpfr_clear (xr);
+ 
+  end:
+-  /* FIXME: update the underflow flag if need be. */
+   MPFR_SAVE_EXPO_FREE (expo);
+   mpfr_check_range (y, inexy, rnd_mode);
+   mpfr_check_range (z, inexz, rnd_mode);
+diff -Naurd mpfr-2.4.2-a/tests/tsin_cos.c mpfr-2.4.2-b/tests/tsin_cos.c
+--- mpfr-2.4.2-a/tests/tsin_cos.c      2009-11-30 02:43:08.000000000 +0000
++++ mpfr-2.4.2-b/tests/tsin_cos.c      2009-12-07 13:37:12.000000000 +0000
+@@ -382,23 +382,56 @@
+ consistency (void)
+ {
+   mpfr_t x, s1, s2, c1, c2;
++  mp_exp_t emin, emax;
+   mp_rnd_t rnd;
++  unsigned int flags_sin, flags_cos, flags, flags_before, flags_ref;
++  int inex_sin, inex_cos, inex, inex_ref;
+   int i;
+ 
++  emin = mpfr_get_emin ();
++  emax = mpfr_get_emax ();
++
+   for (i = 0; i <= 10000; i++)
+     {
+       mpfr_init2 (x, MPFR_PREC_MIN + (randlimb () % 8));
+       mpfr_inits2 (MPFR_PREC_MIN + (randlimb () % 8), s1, s2, c1, c2,
+                    (mpfr_ptr) 0);
+-      tests_default_random (x, 256, -5, 50);
+-      rnd = RND_RAND ();
+-      mpfr_sin (s1, x, rnd);
+-      mpfr_cos (c1, x, rnd);
+-      mpfr_sin_cos (s2, c2, x, rnd);
+-      if (!(mpfr_equal_p (s1, s2) && mpfr_equal_p (c1, c2)))
++      if (i < 8 * GMP_RND_MAX)
+         {
+-          printf ("mpfr_sin_cos and mpfr_sin/mpfr_cos disagree on %s,\nx = ",
+-                  mpfr_print_rnd_mode (rnd));
++          int j = i / GMP_RND_MAX;
++          if (j & 1)
++            mpfr_set_emin (MPFR_EMIN_MIN);
++          mpfr_set_si (x, (j & 2) ? 1 : -1, GMP_RNDN);
++          mpfr_set_exp (x, mpfr_get_emin ());
++          rnd = (mpfr_rnd_t) (i % GMP_RND_MAX);
++          flags_before = 0;
++          if (j & 4)
++            mpfr_set_emax (-17);
++        }
++      else
++        {
++          tests_default_random (x, 256, -5, 50);
++          rnd = RND_RAND ();
++          flags_before = (randlimb () & 1) ?
++            (unsigned int) (MPFR_FLAGS_ALL ^ MPFR_FLAGS_ERANGE) :
++            (unsigned int) 0;
++        }
++      __gmpfr_flags = flags_before;
++      inex_sin = mpfr_sin (s1, x, rnd);
++      flags_sin = __gmpfr_flags;
++      __gmpfr_flags = flags_before;
++      inex_cos = mpfr_cos (c1, x, rnd);
++      flags_cos = __gmpfr_flags;
++      __gmpfr_flags = flags_before;
++      inex = !!mpfr_sin_cos (s2, c2, x, rnd);
++      flags = __gmpfr_flags;
++      inex_ref = inex_sin || inex_cos;
++      flags_ref = flags_sin | flags_cos;
++      if (!(mpfr_equal_p (s1, s2) && mpfr_equal_p (c1, c2)) ||
++          inex != inex_ref || flags != flags_ref)
++        {
++          printf ("mpfr_sin_cos and mpfr_sin/mpfr_cos disagree on %s,"
++                  " i = %d\nx = ", mpfr_print_rnd_mode (rnd), i);
+           mpfr_dump (x);
+           printf ("s1 = ");
+           mpfr_dump (s1);
+@@ -408,9 +441,16 @@
+           mpfr_dump (c1);
+           printf ("c2 = ");
+           mpfr_dump (c2);
++          printf ("inex_sin = %d, inex_cos = %d, inex = %d (expected %d)\n",
++                  inex_sin, inex_cos, inex, inex_ref);
++          printf ("flags_sin = 0x%x, flags_cos = 0x%x, "
++                  "flags = 0x%x (expected 0x%x)\n",
++                  flags_sin, flags_cos, flags, flags_ref);
+           exit (1);
+         }
+       mpfr_clears (x, s1, s2, c1, c2, (mpfr_ptr) 0);
++      mpfr_set_emin (emin);
++      mpfr_set_emax (emax);
+     }
+ }
+ 
+diff -Naurd mpfr-2.4.2-a/version.c mpfr-2.4.2-b/version.c
+--- mpfr-2.4.2-a/version.c     2009-11-30 02:43:08.000000000 +0000
++++ mpfr-2.4.2-b/version.c     2009-12-07 13:37:12.000000000 +0000
+@@ -25,5 +25,5 @@
+ const char *
+ mpfr_get_version (void)
+ {
+-  return "2.4.2";
++  return "2.4.2-p1";
+ }
+diff -Naurd mpfr-2.4.2-a/PATCHES mpfr-2.4.2-b/PATCHES
+--- mpfr-2.4.2-a/PATCHES       2009-12-18 12:03:30.000000000 +0000
++++ mpfr-2.4.2-b/PATCHES       2009-12-18 12:05:19.000000000 +0000
+@@ -0,0 +1 @@
++longlong.h
+diff -Naurd mpfr-2.4.2-a/VERSION mpfr-2.4.2-b/VERSION
+--- mpfr-2.4.2-a/VERSION       2009-12-07 13:37:12.000000000 +0000
++++ mpfr-2.4.2-b/VERSION       2009-12-18 12:05:09.000000000 +0000
+@@ -1 +1 @@
+-2.4.2-p1
++2.4.2-p2
+diff -Naurd mpfr-2.4.2-a/mpfr-longlong.h mpfr-2.4.2-b/mpfr-longlong.h
+--- mpfr-2.4.2-a/mpfr-longlong.h       2009-11-30 02:43:08.000000000 +0000
++++ mpfr-2.4.2-b/mpfr-longlong.h       2009-12-18 12:04:29.000000000 +0000
+@@ -1011,7 +1011,15 @@
+ #endif /* __m88000__ */
+ 
+ #if defined (__mips) && W_TYPE_SIZE == 32
+-#if __GNUC__ > 2 || __GNUC_MINOR__ >= 7
++#if (__GNUC__ >= 5) || (__GNUC__ >= 4 && __GNUC_MINOR__ >= 4)
++#define umul_ppmm(w1, w0, u, v) \
++  do {                                                                        
\
++    UDItype _r;                                                       \
++    _r = (UDItype) u * v;                                             \
++    (w1) = _r >> 32;                                                  \
++    (w0) = (USItype) _r;                                              \
++  } while (0)
++#elif __GNUC__ > 2 || __GNUC_MINOR__ >= 7
+ #define umul_ppmm(w1, w0, u, v) \
+   __asm__ ("multu %2,%3" : "=l" (w0), "=h" (w1) : "d" (u), "d" (v))
+ #else
+@@ -1024,7 +1032,16 @@
+ #endif /* __mips */
+ 
+ #if (defined (__mips) && __mips >= 3) && W_TYPE_SIZE == 64
+-#if __GNUC__ > 2 || __GNUC_MINOR__ >= 7
++#if (__GNUC__ >= 5) || (__GNUC__ >= 4 && __GNUC_MINOR__ >= 4)
++typedef unsigned int UTItype __attribute__ ((mode (TI)));
++#define umul_ppmm(w1, w0, u, v) \
++  do {                                                                        
\
++    UTItype _r;                                                       \
++    _r = (UTItype) u * v;                                             \
++    (w1) = _r >> 64;                                                  \
++    (w0) = (UDItype) _r;                                              \
++  } while (0)
++#elif __GNUC__ > 2 || __GNUC_MINOR__ >= 7
+ #define umul_ppmm(w1, w0, u, v) \
+   __asm__ ("dmultu %2,%3" : "=l" (w0), "=h" (w1) : "d" (u), "d" (v))
+ #else
+diff -Naurd mpfr-2.4.2-a/mpfr.h mpfr-2.4.2-b/mpfr.h
+--- mpfr-2.4.2-a/mpfr.h        2009-12-07 13:37:12.000000000 +0000
++++ mpfr-2.4.2-b/mpfr.h        2009-12-18 12:05:09.000000000 +0000
+@@ -27,7 +27,7 @@
+ #define MPFR_VERSION_MAJOR 2
+ #define MPFR_VERSION_MINOR 4
+ #define MPFR_VERSION_PATCHLEVEL 2
+-#define MPFR_VERSION_STRING "2.4.2-p1"
++#define MPFR_VERSION_STRING "2.4.2-p2"
+ 
+ /* Macros dealing with MPFR VERSION */
+ #define MPFR_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
+diff -Naurd mpfr-2.4.2-a/version.c mpfr-2.4.2-b/version.c
+--- mpfr-2.4.2-a/version.c     2009-12-07 13:37:12.000000000 +0000
++++ mpfr-2.4.2-b/version.c     2009-12-18 12:05:09.000000000 +0000
+@@ -25,5 +25,5 @@
+ const char *
+ mpfr_get_version (void)
+ {
+-  return "2.4.2-p1";
++  return "2.4.2-p2";
+ }
+diff -Naurd mpfr-2.4.2-a/PATCHES mpfr-2.4.2-b/PATCHES
+--- mpfr-2.4.2-a/PATCHES       2010-01-11 15:27:18.000000000 +0000
++++ mpfr-2.4.2-b/PATCHES       2010-01-11 15:30:31.000000000 +0000
+@@ -0,0 +1 @@
++gmp5
+diff -Naurd mpfr-2.4.2-a/VERSION mpfr-2.4.2-b/VERSION
+--- mpfr-2.4.2-a/VERSION       2009-12-18 12:05:09.000000000 +0000
++++ mpfr-2.4.2-b/VERSION       2010-01-11 15:29:40.000000000 +0000
+@@ -1 +1 @@
+-2.4.2-p2
++2.4.2-p3
+diff -Naurd mpfr-2.4.2-a/configure mpfr-2.4.2-b/configure
+--- mpfr-2.4.2-a/configure     2009-11-30 02:44:35.000000000 +0000
++++ mpfr-2.4.2-b/configure     2010-01-11 15:28:56.000000000 +0000
+@@ -20449,6 +20449,9 @@
+ main ()
+ {
+ 
++#ifndef BITS_PER_MP_LIMB
++#define BITS_PER_MP_LIMB GMP_LIMB_BITS
++#endif
+   return BITS_PER_MP_LIMB == BYTES_PER_MP_LIMB * CHAR_BIT
+          && sizeof(mp_limb_t) == BYTES_PER_MP_LIMB ? 0 : 1;
+ 
+diff -Naurd mpfr-2.4.2-a/configure.in mpfr-2.4.2-b/configure.in
+--- mpfr-2.4.2-a/configure.in  2009-11-30 02:43:08.000000000 +0000
++++ mpfr-2.4.2-b/configure.in  2009-11-30 02:43:08.000000000 +0000
+@@ -424,6 +424,9 @@
+ #include "gmp.h"
+ #include "gmp-impl.h"
+ ]], [[
++#ifndef BITS_PER_MP_LIMB
++#define BITS_PER_MP_LIMB GMP_LIMB_BITS
++#endif
+   return BITS_PER_MP_LIMB == BYTES_PER_MP_LIMB * CHAR_BIT
+          && sizeof(mp_limb_t) == BYTES_PER_MP_LIMB ? 0 : 1;
+ ]])], [AC_MSG_RESULT(yes)], [
+diff -Naurd mpfr-2.4.2-a/mpfr-impl.h mpfr-2.4.2-b/mpfr-impl.h
+--- mpfr-2.4.2-a/mpfr-impl.h   2009-11-30 02:43:08.000000000 +0000
++++ mpfr-2.4.2-b/mpfr-impl.h   2010-01-11 15:28:01.000000000 +0000
+@@ -65,6 +65,12 @@
+ # ifndef __GMP_IMPL_H__
+ #  include "gmp-impl.h"
+ # endif
++# ifndef BITS_PER_MP_LIMB
++#  define BITS_PER_MP_LIMB GMP_LIMB_BITS
++# endif
++#ifndef mpn_sqr_n
++# define mpn_sqr_n mpn_sqr
++#endif
+ # ifdef MPFR_NEED_LONGLONG_H
+ #  include "longlong.h"
+ # endif
+diff -Naurd mpfr-2.4.2-a/mpfr.h mpfr-2.4.2-b/mpfr.h
+--- mpfr-2.4.2-a/mpfr.h        2009-12-18 12:05:09.000000000 +0000
++++ mpfr-2.4.2-b/mpfr.h        2010-01-11 15:29:40.000000000 +0000
+@@ -27,7 +27,7 @@
+ #define MPFR_VERSION_MAJOR 2
+ #define MPFR_VERSION_MINOR 4
+ #define MPFR_VERSION_PATCHLEVEL 2
+-#define MPFR_VERSION_STRING "2.4.2-p2"
++#define MPFR_VERSION_STRING "2.4.2-p3"
+ 
+ /* Macros dealing with MPFR VERSION */
+ #define MPFR_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
+diff -Naurd mpfr-2.4.2-a/version.c mpfr-2.4.2-b/version.c
+--- mpfr-2.4.2-a/version.c     2009-12-18 12:05:09.000000000 +0000
++++ mpfr-2.4.2-b/version.c     2010-01-11 15:29:40.000000000 +0000
+@@ -25,5 +25,5 @@
+ const char *
+ mpfr_get_version (void)
+ {
+-  return "2.4.2-p2";
++  return "2.4.2-p3";
+ }

Index: gmp.info
===================================================================
RCS file: /cvsroot/fink/dists/10.4/stable/main/finkinfo/libs/gmp.info,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -d -r1.12 -r1.13
--- gmp.info    23 Aug 2009 23:30:23 -0000      1.12
+++ gmp.info    19 Oct 2010 07:04:48 -0000      1.13
@@ -1,20 +1,42 @@
 Info2: <<
 Package: gmp%type_pkg[-64bit]
-Version: 4.3.1
-Revision: 1000
+Version: 4.3.2
+Revision: 5
 GCC: 4.0
 Type: -64bit (boolean)
 Architecture: ( %type_raw[-64bit] = -64bit ) powerpc, ( %type_raw[-64bit] = 
-64bit ) i386
-Source: mirror:gnu:gmp/gmp-%v.tar.gz
-Source-MD5: a8f60ac823a16e61335dba9c08875c06
-Depends: %N-shlibs (= %v-%r), libgmpxx%type_pkg[-64bit]-shlibs (= %v-%r), ( 
%type_raw[-64bit] = -64bit ) 64bit-cpu
+# Source: mirror:gnu:gmp/gmp-%v.tar.gz
+# Source-MD5: 2a431d487dfd76d0f618d241b1e551cc
+Source: http://www.csl.cornell.edu/~fang/sw/%{ni}-%v.20100509.tar.gz
+Source-MD5: 24192251ecddbc26296788bcae110b0c
+SourceDirectory: %{ni}-%v
+# PatchFile: %{ni}.patch
+# PatchFile-MD5: 563171f0732bef3ca6a04ad1f35063fb
+Depends: <<
+  %N-shlibs (= %v-%r),
+  libgmpxx%type_pkg[-64bit]-shlibs (= %v-%r),
+  ( %type_raw[-64bit] = -64bit ) 64bit-cpu
+<<
 BuildDepends: fink (>= 0.26.0), gcc4.0 (>= 4.0.1-1)
-Conflicts: gmp, gmp-64bit
-Replaces: gmp, gmp-64bit
+Conflicts: gmp, gmp-64bit, gmp5, gmp5-64bit
+Replaces: gmp, gmp-64bit, gmp5, gmp5-64bit
 SetCPPFLAGS: -fexceptions
-ConfigureParams: --infodir='${prefix}/share/info' --enable-cxx
+ConfigureParams: <<
+  --infodir='${prefix}/share/info' \
+  --enable-cxx
+<<
 CompileScript: <<
 #! /bin/sh -ev
+ # extra checks for compiler version
+ # darwin8's default compiler is good
+ # darwin9 needs newer compiler
+ # darwin10's default compiler is good
+ darwin_vers=`uname -r | cut -d. -f1`
+ if test "$darwin_vers" = 9 ; then
+   export CC=gcc-4.2
+   export CXX=g++-4.2
+   test -x `which gcc-4.2` || { echo "gcc-4.2 required, but missing!"; exit 1; 
}
+ fi
  if [ "%type_raw[-64bit]" == "." ] ; then
   case "%m" in
     i386 | powerpc) ABI=32 ./configure %c  --libdir='${prefix}/%lib';;
@@ -67,6 +89,13 @@
  called libgmpxx4.  To work around this, the splitoff is now called
  libgmpxx (with no number); note that the next time the major version of
  this library changes, the splitoff should go to libgmpxx5.
+ Future major versions should be installed to private pkglib dirs so
+ that multiple versions may coexist without conflict.
+
+ The source was regenerated from a checkout from upstream that contains
+ the cumulative patches relative to 4.3.2, which added support for
+ corei family of CPUs.  Re-rolling the dist was much easier than trying to
+ create a working patch.
 <<
 DescPort: <<
  Patch from Ben Hines to build libgmpxx, as of vers. 4.1-2.  As of vers.
@@ -82,6 +111,7 @@
  ppl library that will be used in gcc 4.4.x.  (Suggested by Jack Howarth;
  see http://www.cs.unipr.it/ppl/ and http://gcc.gnu.org/wiki/Graphite .)
 <<
-Maintainer: Dave Morrison <[email protected]>
+Maintainer: David Fang <[email protected]>
+# Former maintainer: Dave Morrison <[email protected]>
 Homepage: http://gmplib.org
 <<

--- NEW FILE: libmpc2.info ---
Info2: <<
Package: libmpc2%type_pkg[-64bit]
Version: 0.8.2
Revision: 1
Type: -64bit (boolean)
Architecture: ( %type_raw[-64bit] = -64bit ) powerpc, ( %type_raw[-64bit] = 
-64bit ) i386
Maintainer: David Fang <[email protected]>
Source: http://www.multiprecision.org/mpc/download/mpc-%v.tar.gz
Source-MD5: e98267ebd5648a39f881d66797122fb6
License: LGPL
Homepage: http://www.multiprecision.org/
Description: %type_pkg[-64bit] Multi-precision complex lib
DescDetail: <<
MPC is a C library for the arithmetic of complex numbers with arbitrarily 
high precision and correct rounding of the result. It is built upon and 
follows the same principles as MPFR. 
.
The library is written by Andreas Enge, Philippe Th\'{e}veny and Paul 
Zimmermann and is distributed under the Gnu Lesser General Public License, 
either version 2.1 of the licence, or (at your option) any later version. 
The Mpc library has been registered in France by the Agence pour la 
Protection des Programmes on 2003-02-05 under the number 
IDDN FR 001 060029 000 R P 2003 000 10000. 
<<
# DescPort:
BuildDepends: gmp%type_pkg[-64bit] (>= 4.2.0), libmpfr1%type_pkg[-64bit] (>= 
2.3.1)
Depends: %N-shlibs (= %v-%r), ( %type_raw[-64bit] = -64bit ) 64bit-cpu
BuildDependsOnly: true
Conflicts: libmpc2, libmpc2-64bit
Replaces: libmpc2, libmpc2-64bit
ConfigureParams: <<
  --infodir=%p/share/info \
  --with-gmp=%p \
  --with-mpfr=%p \
  -C
<<
CompileScript: <<
#! /bin/sh -ev
  mkdir build
  cd build
  if [ "%type_raw[-64bit]" != "." ]; then
    export CC="gcc -m64"
  fi
  ../configure %c --libdir='${prefix}/%lib'
  make
<<
InfoTest: <<
  TestScript: <<
    #!/bin/sh -ev
    cd build
    make -k check || exit 2
  <<
  TestSuiteSize: small
<<
InstallScript: <<
  #/bin/sh -ev
  cd build && make DESTDIR=%d install
<<
DocFiles: COPYING.LIB AUTHORS NEWS README TODO
InfoDocs: mpc.info
SplitOff: <<
  Package: %N-shlibs
  Depends: gmp%type_pkg[-64bit]-shlibs (>= 4.2), 
libmpfr1%type_pkg[-64bit]-shlibs (>= 2.3.1), ( %type_raw[-64bit] = -64bit ) 
64bit-cpu
  Files: %lib/libmpc.*.dylib
  Shlibs: %p/%lib/libmpc.2.dylib 3.0.0 %n (>= 0.8-1) %type_num[-64bit]
  DocFiles: COPYING.LIB
<<
<<


------------------------------------------------------------------------------
Download new Adobe(R) Flash(R) Builder(TM) 4
The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly 
Flex(R) Builder(TM)) enable the development of rich applications that run
across multiple browsers and platforms. Download your free trials today!
http://p.sf.net/sfu/adobe-dev2dev
_______________________________________________
Fink-commits mailing list
[email protected]
http://news.gmane.org/gmane.os.apple.fink.cvs

Reply via email to