Difference between revisions of "MPFR"
From CBLFS
Jump to navigationJump to searchWeibullguy (talk | contribs) |
|||
Line 3: | Line 3: | ||
!Download Source: | !Download Source: | ||
| http://www.mpfr.org/mpfr-current/mpfr-{{MPFR-Version}}.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-{{MPFR-Version}}-cumulative-1.patch | ||
|} | |} | ||
Line 9: | Line 12: | ||
== Dependencies == | == Dependencies == | ||
− | {{Note| | + | {{Note|MPFR 2.3.1 requires GMP 4.1.0 or higher.}} |
=== Required === | === Required === | ||
Line 16: | Line 19: | ||
== Non-Multilib == | == Non-Multilib == | ||
− | + | Apply the upstream cumulative patch and compile the package: | |
− | patch -Np1 -Z -i ../ | + | patch -Np1 -Z -i ../mpfr-{{MPFR-Version}}-cumulative-1.patch && |
./configure --prefix=/usr --enable-shared && | ./configure --prefix=/usr --enable-shared && | ||
make | make | ||
Line 30: | Line 33: | ||
=== 32Bit === | === 32Bit === | ||
− | + | Apply the upstream cumulative patch and compile the package: | |
− | patch -Np1 -Z -i ../ | + | patch -Np1 -Z -i ../mpfr-{{MPFR-Version}}-cumulative-1.patch && |
CC="gcc ${BUILD32}" ./configure --prefix=/usr \ | CC="gcc ${BUILD32}" ./configure --prefix=/usr \ | ||
--enable-shared && | --enable-shared && | ||
Line 43: | Line 46: | ||
=== N32 === | === N32 === | ||
− | + | Apply the upstream cumulative patch and compile the package: | |
− | patch -Np1 -Z -i ../ | + | patch -Np1 -Z -i ../mpfr-{{MPFR-Version}}-cumulative-1.patch && |
CC="gcc ${BUILDN32}" ./configure --prefix=/usr \ | CC="gcc ${BUILDN32}" ./configure --prefix=/usr \ | ||
--libdir=/usr/lib32 --enable-shared && | --libdir=/usr/lib32 --enable-shared && | ||
Line 56: | Line 59: | ||
=== 64Bit === | === 64Bit === | ||
− | + | Apply the upstream cumulative patch and compile the package: | |
− | patch -Np1 -Z -i ../ | + | patch -Np1 -Z -i ../mpfr-{{MPFR-Version}}-cumulative-1.patch && |
CC="gcc ${BUILD64}" ./configure --prefix=/usr \ | CC="gcc ${BUILD64}" ./configure --prefix=/usr \ | ||
--libdir=/usr/lib64 --enable-shared && | --libdir=/usr/lib64 --enable-shared && | ||
Line 90: | Line 93: | ||
== Contents == | == Contents == | ||
− | + | {| style="text-align: left;" | |
+ | |-valign="top" | ||
+ | !Installed Directories: | ||
+ | |None | ||
+ | |-valign="top" | ||
+ | !Installed Programs: | ||
+ | |None | ||
+ | |-valign="top" | ||
+ | !Installed Libraries: | ||
+ | |libmpfr.{la,a,so,so.1,so.1.0.1} | ||
+ | |} | ||
+ | |||
+ | === Short Descriptions === | ||
+ | |||
+ | {| style="text-align: left;" | ||
+ | |-valign="top" | ||
+ | !libmpfr | ||
+ | |is a C library for multiple-precision floating-point computations with exact rounding. | ||
+ | |} |
Revision as of 15:46, 25 June 2008
Download Source: | http://www.mpfr.org/mpfr-current/mpfr-2.4.1.tar.bz2 |
---|---|
Download Patch: | http://svn.cross-lfs.org/svn/repos/patches/mpfr/mpfr-2.4.1-cumulative-1.patch |
Contents
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
- GMP >= 4.1.0
Non-Multilib
Apply the upstream cumulative patch and compile the package:
patch -Np1 -Z -i ../mpfr-2.4.1-cumulative-1.patch && ./configure --prefix=/usr --enable-shared && make
Install the package:
make install
Multilib
32Bit
Apply the upstream cumulative patch and compile the package:
patch -Np1 -Z -i ../mpfr-2.4.1-cumulative-1.patch && CC="gcc ${BUILD32}" ./configure --prefix=/usr \ --enable-shared && make
Install the package:
make install
N32
Apply the upstream cumulative patch and compile the package:
patch -Np1 -Z -i ../mpfr-2.4.1-cumulative-1.patch && CC="gcc ${BUILDN32}" ./configure --prefix=/usr \ --libdir=/usr/lib32 --enable-shared && make
Install the package:
make install
64Bit
Apply the upstream cumulative patch and compile the package:
patch -Np1 -Z -i ../mpfr-2.4.1-cumulative-1.patch && 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
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,so.1,so.1.0.1} |
Short Descriptions
libmpfr | is a C library for multiple-precision floating-point computations with exact rounding. |
---|