scripts/build/mpfr.sh
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Fri May 02 21:59:14 2008 +0000 (2008-05-02)
changeset 479 05c62432ec19
parent 466 7f9bbf94b0bb
child 522 0ebb814eb9f8
child 525 2d349a79c40d
permissions -rw-r--r--
For tools/ and debug/ build scripts, annd a numeric prefix, so that they always get built in the same order, in case of library dependencies.

/trunk/scripts/build/debug.sh | 2 1 1 0 +-
/trunk/scripts/build/tools.sh | 2 1 1 0 +-
2 files changed, 2 insertions(+), 2 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