scripts/build/mpfr.sh
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sat May 03 17:51:16 2008 +0000 (2008-05-03)
changeset 486 92f6149c4275
parent 466 7f9bbf94b0bb
child 522 0ebb814eb9f8
child 525 2d349a79c40d
permissions -rw-r--r--
Some people are reposrting that ftp does not work on their network, probably due to proxies, while http does work.
Some (most) of the sites we use toretrieve tarballs have http equivallent for the ftp service. Use http as a failover.
There's no solution for those sites that do not have such an http equivalent.

/trunk/scripts/build/binutils.sh | 5 2 3 0 ++---
/trunk/scripts/build/libc_glibc.sh | 4 2 2 0 ++--
/trunk/scripts/build/libc_uClibc.sh | 2 1 1 0 +-
/trunk/scripts/build/debug/400-ltrace.sh | 2 1 1 0 +-
/trunk/scripts/build/debug/300-gdb.sh | 8 3 5 0 +++-----
/trunk/scripts/build/kernel_linux.sh | 7 2 5 0 ++-----
/trunk/scripts/build/cc_gcc.sh | 6 2 4 0 ++----
/trunk/scripts/build/gmp.sh | 4 1 3 0 +---
8 files changed, 14 insertions(+), 24 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 }
    16 
    17 # Extract MPFR
    18 do_mpfr_extract() {
    19     CT_ExtractAndPatch "${CT_MPFR_FILE}"
    20 }
    21 
    22 do_mpfr() {
    23     mkdir -p "${CT_BUILD_DIR}/build-mpfr"
    24     cd "${CT_BUILD_DIR}/build-mpfr"
    25 
    26     CT_DoStep INFO "Installing MPFR"
    27 
    28     CT_DoLog EXTRA "Configuring MPFR"
    29     CFLAGS="${CT_CFLAGS_FOR_HOST}"                          \
    30     "${CT_SRC_DIR}/${CT_MPFR_FILE}/configure"               \
    31         --build=${CT_BUILD}                                 \
    32         --host=${CT_HOST}                                   \
    33         --prefix="${CT_PREFIX_DIR}"                         \
    34         --disable-shared --enable-static                    \
    35         --with-gmp="${CT_PREFIX_DIR}"                       2>&1 |CT_DoLog ALL
    36 
    37     CT_DoLog EXTRA "Building MPFR"
    38     make ${PARALLELMFLAGS}  2>&1 |CT_DoLog ALL
    39 
    40     if [ "${CT_MPFR_CHECK}" = "y" ]; then
    41         CT_DoLog EXTRA "Checking MPFR"
    42         make -s check       2>&1 |CT_DoLog ALL
    43     fi
    44 
    45     CT_DoLog EXTRA "Installing MPFR"
    46     make install            2>&1 |CT_DoLog ALL
    47 
    48     CT_EndStep
    49 }
    50 
    51 else # No MPFR
    52 
    53 do_print_filename() { :; }
    54 do_mpfr_get() { :; }
    55 do_mpfr_extract() { :; }
    56 do_mpfr() { :; }
    57 
    58 fi