scripts/build/companion_libs/ppl.sh
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sun May 24 21:44:21 2009 +0000 (2009-05-24)
branchgcc-4.4
changeset 1374 f7f01af63a02
parent 1324 48c12c696778
child 1377 c111616f8f63
permissions -rw-r--r--
/trunk:
- TODO: add MPC as a gcc-4.4 pre-requisite

-------- diffstat follows --------
/devel/gcc-4.4/TODO | 1 1 0 0 +
1 file changed, 1 insertion(+)
     1 # This file adds the functions to build the PPL library
     2 # Copyright 2009 Yann E. MORIN
     3 # Licensed under the GPL v2. See COPYING in the root of this package
     4 
     5 do_ppl_get() { :; }
     6 do_ppl_extract() { :; }
     7 do_ppl() { :; }
     8 do_ppl_target() { :; }
     9 
    10 # Overide functions depending on configuration
    11 if [ "${CT_PPL_CLOOG}" = "y" ]; then
    12 
    13 # Download PPL
    14 do_ppl_get() {
    15     CT_GetFile "ppl-${CT_PPL_VERSION}"                                      \
    16         http://www.cs.unipr.it/ppl/Download/ftp/releases/${CT_PPL_VERSION}  \
    17         ftp://ftp.cs.unipr.it/pub/ppl/releases/${CT_PPL_VERSION}            \
    18         ftp://gcc.gnu.org/pub/gcc/infrastructure
    19 }
    20 
    21 # Extract PPL
    22 do_ppl_extract() {
    23     CT_Extract "ppl-${CT_PPL_VERSION}"
    24     CT_Patch "ppl-${CT_PPL_VERSION}"
    25 }
    26 
    27 do_ppl() {
    28     mkdir -p "${CT_BUILD_DIR}/build-ppl"
    29     cd "${CT_BUILD_DIR}/build-ppl"
    30 
    31     CT_DoStep INFO "Installing PPL"
    32 
    33     CT_DoLog EXTRA "Configuring PPL"
    34     CFLAGS="${CT_CFLAGS_FOR_HOST}"                  \
    35     CT_DoExecLog ALL                                \
    36     "${CT_SRC_DIR}/ppl-${CT_PPL_VERSION}/configure" \
    37         --build=${CT_BUILD}                         \
    38         --host=${CT_HOST}                           \
    39         --prefix="${CT_PREFIX_DIR}"                 \
    40         --with-libgmp-prefix="${CT_PREFIX_DIR}"     \
    41         --with-libgmpxx-prefix="${CT_PREFIX_DIR}"   \
    42         --disable-shared                            \
    43         --enable-static                             \
    44         --disable-debugging                         \
    45         --disable-assertions                        \
    46         --disable-ppl_lcdd                          \
    47         --disable-ppl_lpsol
    48 
    49     # Maybe-options:
    50     # --enable-interfaces=...
    51     # --enable-optimization=speed  or sspeed (yes, with 2 's')
    52 
    53     CT_DoLog EXTRA "Building PPL"
    54     CT_DoExecLog ALL make ${PARALLELMFLAGS}
    55 
    56     if [ "${CT_PPL_CHECK}" = "y" ]; then
    57         CT_DoLog EXTRA "Checking PPL"
    58         CT_DoExecLog ALL make ${PARALLELMFLAGS} -s check
    59     fi
    60 
    61     CT_DoLog EXTRA "Installing PPL"
    62     CT_DoExecLog ALL make install
    63 
    64     CT_EndStep
    65 }
    66 
    67 fi # CT_PPL_CLOOG