scripts/build/mpfr.sh
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Tue May 20 21:32:39 2008 +0000 (2008-05-20)
changeset 523 010f6f4e4dd6
parent 468 c310ff1d697f
child 524 5f7fec79ca88
permissions -rw-r--r--
Get rid of all `command` (which is a bashism), and replace them with $(command), which is POSIX.
Get rid of all remaining \"text\" in log messages and replace them with 'text'.
Optimise the progress bar, should go un-noticed at log level DEBUG and below.

/trunk/scripts/build/tools/200-sstrip.sh | 16 8 8 0 ++--
/trunk/scripts/build/libc_glibc.sh | 50 25 25 0 +++++++-------
/trunk/scripts/build/libc_uClibc.sh | 4 2 2 0
/trunk/scripts/build/debug/100-dmalloc.sh | 2 1 1 0
/trunk/scripts/build/debug/400-ltrace.sh | 2 1 1 0
/trunk/scripts/build/debug/300-gdb.sh | 8 4 4 0 +-
/trunk/scripts/build/debug/200-duma.sh | 6 3 3 0 +-
/trunk/scripts/build/kernel_linux.sh | 30 15 15 0 ++++----
/trunk/scripts/build/cc_gcc.sh | 14 7 7 0 ++--
/trunk/scripts/crosstool.sh | 54 27 27 0 ++++++++--------
/trunk/scripts/functions | 128 64 64 0 ++++++++++++++++++------------------
/trunk/scripts/saveSample.sh | 4 2 2 0
/trunk/scripts/tarball.sh.broken | 20 10 10 0 +++---
/trunk/tools/addToolVersion.sh | 8 4 4 0 +-
/trunk/tools/populate.in | 18 9 9 0 ++--
15 files changed, 182 insertions(+), 182 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 if [ "${CT_CC_GCC_GMP_MPFR}" = "y" ]; then
     6 
     7 do_print_filename() {
     8     [ "${CT_CC_GCC_GMP_MPFR}" = "y" ] || return 0
     9     echo "mpfr-${CT_MPFR_VERSION}"
    10 }
    11 
    12 # Download MPFR
    13 do_mpfr_get() {
    14     CT_GetFile "${CT_MPFR_FILE}" http://www.mpfr.org/mpfr-current/          \
    15                                  http://www.mpfr.org/mpfr-${CT_MPFR_VERSION}/
    16 }
    17 
    18 # Extract MPFR
    19 do_mpfr_extract() {
    20     CT_ExtractAndPatch "${CT_MPFR_FILE}"
    21 }
    22 
    23 do_mpfr() {
    24     mkdir -p "${CT_BUILD_DIR}/build-mpfr"
    25     cd "${CT_BUILD_DIR}/build-mpfr"
    26 
    27     CT_DoStep INFO "Installing MPFR"
    28 
    29     CT_DoLog EXTRA "Configuring MPFR"
    30     CFLAGS="${CT_CFLAGS_FOR_HOST}"                          \
    31     "${CT_SRC_DIR}/${CT_MPFR_FILE}/configure"               \
    32         --build=${CT_BUILD}                                 \
    33         --host=${CT_HOST}                                   \
    34         --prefix="${CT_PREFIX_DIR}"                         \
    35         --disable-shared --enable-static                    \
    36         --with-gmp="${CT_PREFIX_DIR}"                       2>&1 |CT_DoLog ALL
    37 
    38     CT_DoLog EXTRA "Building MPFR"
    39     make ${PARALLELMFLAGS}  2>&1 |CT_DoLog ALL
    40 
    41     if [ "${CT_MPFR_CHECK}" = "y" ]; then
    42         CT_DoLog EXTRA "Checking MPFR"
    43         make -s check       2>&1 |CT_DoLog ALL
    44     fi
    45 
    46     CT_DoLog EXTRA "Installing MPFR"
    47     make install            2>&1 |CT_DoLog ALL
    48 
    49     CT_EndStep
    50 }
    51 
    52 else # No MPFR
    53 
    54 do_print_filename() { :; }
    55 do_mpfr_get() { :; }
    56 do_mpfr_extract() { :; }
    57 do_mpfr() { :; }
    58 
    59 fi