Difference between revisions of "MPFR"

From CBLFS
Jump to navigationJump to search
(32Bit)
 
(22 intermediate revisions by 6 users not shown)
Line 2: Line 2:
 
|-
 
|-
 
!Download Source:
 
!Download Source:
| http://www.mpfr.org/mpfr-current/mpfr-2.2.0.tar.bz2
+
| http://www.mpfr.org/mpfr-current/mpfr-{{MPFR-Version}}.tar.bz2
|-
 
!Download Patch:
 
| http://svn.cross-lfs.org/svn/repos/patches/mpfr/mpfr-2.2.0-cumulative_patch-1.patch
 
 
|}
 
|}
  
The MPFR library is a C library for multiple-precision floating-point computations with exact rounding (also called correct rounding).
+
{{Package-Introduction|The MPFR library is a C library for multiple-precision floating-point computations with exact rounding (also called correct rounding).|http://www.mpfr.org/}}
  
 
== Dependencies ==
 
== Dependencies ==
Line 14: Line 11:
 
=== Required ===
 
=== Required ===
 
* [[GMP]]
 
* [[GMP]]
 +
 +
=== Optional ===
 +
* [[TeTeX]] for building documentation.
  
 
== Non-Multilib ==
 
== Non-Multilib ==
 
Apply the cumulative patch from the MPFR Organization:
 
 
patch -Np1 -i ../mpfr-2.2.0-cumulative_patch-1.patch
 
  
 
Compile the package:
 
Compile the package:
  
  ./configure --prefix=/usr &&
+
  ./configure --prefix=/usr --enable-shared &&
 
  make
 
  make
 
Build the optional documentation in one or more formats:
 
 
make info    to produce in the info format
 
make dvi      to produce in the DVI format
 
make mpfr.ps  to produce in the Postscript format
 
  
 
Install the package:
 
Install the package:
Line 39: Line 29:
  
 
=== 32Bit ===
 
=== 32Bit ===
 
Apply the cumulative patch from the MPFR Organization:
 
 
patch -Np1 -i ../mpfr-2.2.0-cumulative_patch-1.patch
 
  
 
Compile the package:
 
Compile the package:
  
  CC="gcc ${BUILD32}" ./configure --prefix=/usr &&
+
  CC="gcc ${BUILD32}" ./configure --prefix=/usr \
 +
    --enable-shared &&
 
  make
 
  make
  
Line 55: Line 42:
 
=== N32 ===
 
=== N32 ===
  
Apply the cumulative patch from the MPFR Organization:
+
Compile the package:
 +
 
 +
CC="gcc ${BUILDN32}" ./configure --prefix=/usr \
 +
    --libdir=/usr/lib32 --enable-shared &&
 +
make
 +
 
 +
Install the package:
 +
 
 +
make install
  
patch -Np1 -i ../mpfr-2.2.0-cumulative_patch-1.patch
+
=== 64Bit ===
  
 
Compile the package:
 
Compile the package:
  
  CC="gcc ${BUILDN32}" ./configure --prefix=/usr --libdir=/usr/lib32 &&
+
  CC="gcc ${BUILD64}" ./configure --prefix=/usr \
 +
    --libdir=/usr/lib64 --enable-shared &&
 
  make
 
  make
  
Line 68: Line 64:
 
  make install
 
  make install
  
=== 64Bit ===
+
== Documentation ==
  
Apply the cumulative patch from the MPFR Organization:
+
Create the directory that the documentation will be installed into:
  
  patch -Np1 -i ../mpfr-2.2.0-cumulative_patch-1.patch
+
  install -d -v -m755 /usr/share/doc/mpfr-{{MPFR-Version}}
  
Compile the package:
+
==== DVI ====
  
  CC="gcc ${BUILD64}" ./configure --prefix=/usr --libdir=/usr/lib64 &&
+
  make dvi &&
make
+
install -v -m644 mpfr.dvi /usr/share/doc/mpfr-{{MPFR-Version}}
  
Build the optional documentation in one or more formats:
+
==== PS ====
  
  make info    to produce in the info format
+
  make mpfr.ps &&
  make dvi      to produce in the DVI format
+
  install -v -m644 mpfr.ps /usr/share/doc/mpfr-{{MPFR-Version}}
make mpfr.ps to produce in the Postscript format
 
  
Install the package:
+
==== PDF ====
  
  make install
+
  make pdf &&
 +
install -v -m644 mpfr.pdf /usr/share/doc/mpfr-{{MPFR-Version}}
  
 
== Contents ==
 
== Contents ==
 +
 +
{| style="text-align: left;"
 +
|-valign="top"
 +
!Installed Directories:
 +
|None
 +
|-valign="top"
 +
!Installed Programs:
 +
|None
 +
|-valign="top"
 +
!Installed Libraries:
 +
|libmpfr.{la,a,so*}
 +
|}
 +
 +
=== Short Descriptions ===
 +
 +
{| style="text-align: left;"
 +
|-valign="top"
 +
!libmpfr
 +
|is a C library for multiple-precision floating-point computations with exact rounding.
 +
|}
 +
 +
[[Category:Programming]]

Latest revision as of 16:00, 19 March 2009

Download Source: http://www.mpfr.org/mpfr-current/mpfr-2.4.1.tar.bz2

Introduction to MPFR

The MPFR library is a C library for multiple-precision floating-point computations with exact rounding (also called correct rounding).

Project Homepage: http://www.mpfr.org/

Dependencies

Required

Optional

  • TeTeX for building documentation.

Non-Multilib

Compile the package:

./configure --prefix=/usr --enable-shared &&
make

Install the package:

make install

Multilib

32Bit

Compile the package:

CC="gcc ${BUILD32}" ./configure --prefix=/usr \
    --enable-shared &&
make

Install the package:

make install

N32

Compile the package:

CC="gcc ${BUILDN32}" ./configure --prefix=/usr \
    --libdir=/usr/lib32 --enable-shared &&
make

Install the package:

make install

64Bit

Compile the package:

CC="gcc ${BUILD64}" ./configure --prefix=/usr \
    --libdir=/usr/lib64 --enable-shared &&
make

Install the package:

make install

Documentation

Create the directory that the documentation will be installed into:

install -d -v -m755 /usr/share/doc/mpfr-2.4.1

DVI

make dvi &&
install -v -m644 mpfr.dvi /usr/share/doc/mpfr-2.4.1

PS

make mpfr.ps && 
install -v -m644 mpfr.ps /usr/share/doc/mpfr-2.4.1

PDF

make pdf && 
install -v -m644 mpfr.pdf /usr/share/doc/mpfr-2.4.1

Contents

Installed Directories: None
Installed Programs: None
Installed Libraries: libmpfr.{la,a,so*}

Short Descriptions

libmpfr is a C library for multiple-precision floating-point computations with exact rounding.
Retrieved from "?title=MPFR&oldid=17638"