Difference between revisions of "MPFR"

From CBLFS
Jump to navigationJump to search
m
Line 5: Line 5:
 
|-
 
|-
 
!Download Patch:
 
!Download Patch:
| http://svn.cross-lfs.org/svn/repos/patches/mpfr/mpfr-2.2.0-cumulative_patch-1.patch
+
| http://svn.cross-lfs.org/svn/repos/patches/mpfr/mpfr-{{MPFR-Version}}-cumulative_patch-1.patch
 
|}
 
|}
  
Line 21: Line 21:
 
Apply the cumulative patch from the MPFR Organization:
 
Apply the cumulative patch from the MPFR Organization:
  
  patch -Np1 -i ../mpfr-2.2.0-cumulative_patch-1.patch
+
  patch -Np1 -i ../mpfr-{{MPFR-Version}}-cumulative_patch-1.patch
  
 
Compile the package:
 
Compile the package:
Line 38: Line 38:
 
Apply the cumulative patch from the MPFR Organization:
 
Apply the cumulative patch from the MPFR Organization:
  
  patch -Np1 -i ../mpfr-2.2.0-cumulative_patch-1.patch
+
  patch -Np1 -i ../mpfr-{{MPFR-Version}}-cumulative_patch-1.patch
  
 
Compile the package:
 
Compile the package:
Line 54: Line 54:
 
Apply the cumulative patch from the MPFR Organization:
 
Apply the cumulative patch from the MPFR Organization:
  
  patch -Np1 -i ../mpfr-2.2.0-cumulative_patch-1.patch
+
  patch -Np1 -i ../mpfr-{{MPFR-Version}}-cumulative_patch-1.patch
  
 
Compile the package:
 
Compile the package:
Line 70: Line 70:
 
Apply the cumulative patch from the MPFR Organization:
 
Apply the cumulative patch from the MPFR Organization:
  
  patch -Np1 -i ../mpfr-2.2.0-cumulative_patch-1.patch
+
  patch -Np1 -i ../mpfr-{{MPFR-Version}}-cumulative_patch-1.patch
  
 
Compile the package:
 
Compile the package:
Line 86: Line 86:
 
Create the directory that the documentation will be installed into:
 
Create the directory that the documentation will be installed into:
  
  install -d -v -m755 /usr/share/doc/mpfr-2.2.0
+
  install -d -v -m755 /usr/share/doc/mpfr-{{MPFR-Version}}
  
 
==== DVI ====
 
==== DVI ====
  
 
  make dvi &&
 
  make dvi &&
  install -v -m644 mpfr.dvi /usr/share/doc/mpfr-2.2.0
+
  install -v -m644 mpfr.dvi /usr/share/doc/mpfr-{{MPFR-Version}}
  
 
==== PS ====
 
==== PS ====
  
 
  make mpfr.ps &&  
 
  make mpfr.ps &&  
  install -v -m644 mpfr.ps /usr/share/doc/mpfr-2.2.0
+
  install -v -m644 mpfr.ps /usr/share/doc/mpfr-{{MPFR-Version}}
  
 
==== PDF ====
 
==== PDF ====
  
 
  make pdf &&  
 
  make pdf &&  
  install -v -m644 mpfr.pdf /usr/share/doc/mpfr-2.2.0
+
  install -v -m644 mpfr.pdf /usr/share/doc/mpfr-{{MPFR-Version}}
  
 
== Contents ==
 
== Contents ==
  
 
* Installed Libraries: libmpfr.{la,a}
 
* Installed Libraries: libmpfr.{la,a}

Revision as of 22:59, 16 December 2006

Download Source: http://www.mpfr.org/mpfr-2.2.0/mpfr-2.4.1.tar.bz2
Download Patch: http://svn.cross-lfs.org/svn/repos/patches/mpfr/mpfr-2.4.1-cumulative_patch-1.patch

Introduction to MPFR

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

Dependencies

Required

Non-Multilib

Apply the cumulative patch from the MPFR Organization:

patch -Np1 -i ../mpfr-2.4.1-cumulative_patch-1.patch

Compile the package:

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

Install the package:

make install

Multilib

32Bit

Apply the cumulative patch from the MPFR Organization:

patch -Np1 -i ../mpfr-2.4.1-cumulative_patch-1.patch

Compile the package:

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

Install the package:

make install

N32

Apply the cumulative patch from the MPFR Organization:

patch -Np1 -i ../mpfr-2.4.1-cumulative_patch-1.patch

Compile the package:

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

Install the package:

make install

64Bit

Apply the cumulative patch from the MPFR Organization:

patch -Np1 -i ../mpfr-2.4.1-cumulative_patch-1.patch

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 Libraries: libmpfr.{la,a}