scripts/build/mpfr.sh
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Wed Apr 30 10:43:41 2008 +0000 (2008-04-30)
changeset 466 7f9bbf94b0bb
child 468 c310ff1d697f
permissions -rw-r--r--
Merge the fortran stuff to trunk now it works!
Fortran is not supported for all targets, though. ARM at least does not work.

/trunk/scripts/build/binutils.sh | 8 8 0 0 ++++++++
/trunk/scripts/build/cc_gcc.sh | 11 6 5 0 ++++++-----
/trunk/scripts/crosstool.sh | 10 9 1 0 +++++++++-
/trunk/tools/addToolVersion.sh | 3 3 0 0 +++
/trunk/steps.mk | 2 2 0 0 ++
/trunk/config/cc/gcc.in | 16 16 0 0 ++++++++++++++++
6 files changed, 44 insertions(+), 6 deletions(-)
     1 # This file adds the functions to build the MPFR library
     2 # Copyright 2008 Yann E. MORIN
     3 # Licensed under the GPL v2. See COPYING in the root of this package
     4 
     5 do_print_filename() {
     6     [ "${CT_CC_GCC_GMP_MPFR}" = "y" ] || return 0
     7     echo "mpfr-${CT_MPFR_VERSION}"
     8 }
     9 
    10 # Download MPFR
    11 do_mpfr_get() {
    12     CT_GetFile "${CT_MPFR_FILE}" http://www.mpfr.org/mpfr-current/
    13 }
    14 
    15 # Extract MPFR
    16 do_mpfr_extract() {
    17     CT_ExtractAndPatch "${CT_MPFR_FILE}"
    18 }
    19 
    20 do_mpfr() {
    21     mkdir -p "${CT_BUILD_DIR}/build-mpfr"
    22     cd "${CT_BUILD_DIR}/build-mpfr"
    23 
    24     CT_DoStep INFO "Installing MPFR"
    25 
    26     CT_DoLog EXTRA "Configuring MPFR"
    27     CFLAGS="${CT_CFLAGS_FOR_HOST}"                          \
    28     "${CT_SRC_DIR}/${CT_MPFR_FILE}/configure"               \
    29         --build=${CT_BUILD}                                 \
    30         --host=${CT_HOST}                                   \
    31         --prefix="${CT_PREFIX_DIR}"                         \
    32         --disable-shared --enable-static                    \
    33         --with-gmp="${CT_PREFIX_DIR}"                       2>&1 |CT_DoLog ALL
    34 
    35     CT_DoLog EXTRA "Building MPFR"
    36     make ${PARALLELMFLAGS}  2>&1 |CT_DoLog ALL
    37 
    38     if [ "${CT_MPFR_CHECK}" = "y" ]; then
    39         CT_DoLog EXTRA "Checking MPFR"
    40         make -s check       2>&1 |CT_DoLog ALL
    41     fi
    42 
    43     CT_DoLog EXTRA "Installing MPFR"
    44     make install            2>&1 |CT_DoLog ALL
    45 
    46     CT_EndStep
    47 }