Package: gmp Version: 4.2.1 Revision: 4 GCC: 3.3 Source: mirror:gnu:gmp/gmp-%v.tar.gz Source-MD5: 5603ae75bc0cb1b21ad0187308a23c84 PatchFile: gmp.patch PatchFile-MD5: 791a47972ef252dffe0d12105c446e4b PatchScript: << patch -p1 < %{PatchFile} cd mpn/x86; rm *dive_1* */*dive_1* */*/*dive_1*; rm */*mode1o* */*/*mode1o* << Depends: gmp-shlibs (= %v-%r), libgmpxx4-shlibs (= %v-%r) BuildDepends: fink (>= 0.24.24) Conflicts: gmp, gmp-64bit Replaces: gmp, gmp-64bit NoSetMAKEFLAGS: true SetMAKEFLAGS: -j1 ConfigureParams: --infodir='${prefix}/share/info' --enable-cxx CompileScript: << #! /bin/sh -ev # Thanks to a patch, we no longer need to "turn off" assembly on the Intel # build. However, we still need to pass "ABI=32" during both powerpc # and x86 builds. case "%m" in i386) ABI=32 ./configure %c ;; powerpc) ABI=32 ./configure %c ;; esac make make check << InstallScript: << make install prefix=%i ranlib %i/lib/libgmp.a ranlib %i/lib/libgmpxx.a << DocFiles: COPYING COPYING.LIB README InfoDocs: gmp.info BuildDependsOnly: True SplitOff: << Package: %N-shlibs Replaces: gmp (<< 4.0.1-1) Files: lib/libgmp.*.dylib Shlibs: << %p/lib/libgmp.3.dylib 8.0.0 %n (>= 4.2.1-1) << Description: Shared library for gmp package DocFiles: doc/* AUTHORS COPYING COPYING.LIB ChangeLog INSTALL NEWS README << SplitOff2: << Package: libgmpxx4-shlibs Replaces: gmp (<< 4.0.1-1), gmp-shlibs (<< 4.1.4-1) Files: lib/libgmpxx.*.dylib Shlibs: << %p/lib/libgmpxx.3.dylib 5.0.0 %n (>= 4.2.1-1) << Description: Shared C++ library for gmp package DocFiles: doc/* AUTHORS COPYING COPYING.LIB ChangeLog INSTALL NEWS README << License: LGPL Description: GNU multiple precision arithmetic library DescDetail: << GNU MP is a portable library written in C for arbitrary precision arithmetic on integers, rational numbers, and floating-point numbers. << DescPort: << Patch from Ben Hines to build libgmpxx, as of vers. 4.1-2. As of vers. 4.1.4-1, libgmpxx gets its own splitoff. As of vers. 4.2, mpfr is a separate library, available in fink as the libmpfr1 package. On powerpc, we need to set ABI=32 for gmp and omit it for gmp-64bit to get gmp to build the correct (32-bit or 64-bit) libraries. << Maintainer: Dave Morrison Homepage: http://www.swox.com/gmp/