scripts/build/companion_libs/ppl.sh
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Wed May 13 18:10:47 2009 +0000 (2009-05-13)
changeset 1336 bc8b9381f637
child 1369 4a5ef2b08e81
permissions -rw-r--r--
Add a new action: show-tuple
- in a directory containing a crosstool-NG configuration,
prints the tuple of the configured target to stdout.

-------- diffstat follows --------
/trunk/Makefile.in | 4 3 1 0 +++-
/trunk/scripts/showTuple.sh.in | 30 30 0 0 ++++++++++++++++++++++++++++++
/trunk/ct-ng.comp | 2 1 1 0 +-
/trunk/ct-ng.in | 10 9 1 0 +++++++++-
4 files changed, 43 insertions(+), 3 deletions(-)
     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 }
    19 
    20 # Extract PPL
    21 do_ppl_extract() {
    22     CT_Extract "ppl-${CT_PPL_VERSION}"
    23     CT_Patch "ppl-${CT_PPL_VERSION}"
    24 }
    25 
    26 do_ppl() {
    27     mkdir -p "${CT_BUILD_DIR}/build-ppl"
    28     cd "${CT_BUILD_DIR}/build-ppl"
    29 
    30     CT_DoStep INFO "Installing PPL"
    31 
    32     CT_DoLog EXTRA "Configuring PPL"
    33     CFLAGS="${CT_CFLAGS_FOR_HOST}"                  \
    34     CT_DoExecLog ALL                                \
    35     "${CT_SRC_DIR}/ppl-${CT_PPL_VERSION}/configure" \
    36         --build=${CT_BUILD}                         \
    37         --host=${CT_HOST}                           \
    38         --prefix="${CT_PREFIX_DIR}"                 \
    39         --with-libgmp-prefix="${CT_PREFIX_DIR}"     \
    40         --with-libgmpxx-prefix="${CT_PREFIX_DIR}"   \
    41         --disable-shared                            \
    42         --enable-static                             \
    43         --disable-debugging                         \
    44         --disable-assertions                        \
    45         --disable-ppl_lcdd                          \
    46         --disable-ppl_lpsol
    47 
    48     # Maybe-options:
    49     # --enable-interfaces=...
    50     # --enable-optimization=speed  or sspeed (yes, with 2 's')
    51 
    52     CT_DoLog EXTRA "Building PPL"
    53     CT_DoExecLog ALL make ${PARALLELMFLAGS}
    54 
    55     if [ "${CT_PPL_CHECK}" = "y" ]; then
    56         CT_DoLog EXTRA "Checking PPL"
    57         CT_DoExecLog ALL make ${PARALLELMFLAGS} -s check
    58     fi
    59 
    60     CT_DoLog EXTRA "Installing PPL"
    61     CT_DoExecLog ALL make install
    62 
    63     CT_EndStep
    64 }
    65 
    66 fi # CT_PPL_CLOOG