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
6 do_ppl_extract() { :; }
10 # Overide functions depending on configuration
11 if [ "${CT_PPL_CLOOG}" = "y" ]; then
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}
22 CT_Extract "ppl-${CT_PPL_VERSION}"
23 CT_Patch "ppl-${CT_PPL_VERSION}"
27 mkdir -p "${CT_BUILD_DIR}/build-ppl"
28 cd "${CT_BUILD_DIR}/build-ppl"
30 CT_DoStep INFO "Installing PPL"
32 CT_DoLog EXTRA "Configuring PPL"
33 CFLAGS="${CT_CFLAGS_FOR_HOST}" \
35 "${CT_SRC_DIR}/ppl-${CT_PPL_VERSION}/configure" \
38 --prefix="${CT_PREFIX_DIR}" \
39 --with-libgmp-prefix="${CT_PREFIX_DIR}" \
40 --with-libgmpxx-prefix="${CT_PREFIX_DIR}" \
44 --disable-assertions \
49 # --enable-interfaces=...
50 # --enable-optimization=speed or sspeed (yes, with 2 's')
52 CT_DoLog EXTRA "Building PPL"
53 CT_DoExecLog ALL make ${PARALLELMFLAGS}
55 if [ "${CT_PPL_CHECK}" = "y" ]; then
56 CT_DoLog EXTRA "Checking PPL"
57 CT_DoExecLog ALL make ${PARALLELMFLAGS} -s check
60 CT_DoLog EXTRA "Installing PPL"
61 CT_DoExecLog ALL make install