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_MPC}" = "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} \
18 ftp://gcc.gnu.org/pub/gcc/infrastructure
23 CT_Extract "ppl-${CT_PPL_VERSION}"
24 CT_Patch "ppl-${CT_PPL_VERSION}"
28 mkdir -p "${CT_BUILD_DIR}/build-ppl"
29 cd "${CT_BUILD_DIR}/build-ppl"
31 CT_DoStep INFO "Installing PPL"
33 CT_DoLog EXTRA "Configuring PPL"
34 CFLAGS="${CT_CFLAGS_FOR_HOST}" \
35 CXXFLAGS="${CT_CFLAGS_FOR_HOST}" \
37 "${CT_SRC_DIR}/ppl-${CT_PPL_VERSION}/configure" \
40 --prefix="${CT_PREFIX_DIR}" \
41 --with-libgmp-prefix="${CT_PREFIX_DIR}" \
42 --with-libgmpxx-prefix="${CT_PREFIX_DIR}" \
46 --disable-assertions \
51 # --enable-interfaces=...
52 # --enable-optimization=speed or sspeed (yes, with 2 's')
54 CT_DoLog EXTRA "Building PPL"
55 CT_DoExecLog ALL make ${PARALLELMFLAGS}
57 if [ "${CT_COMP_LIBS_CHECK}" = "y" ]; then
58 CT_DoLog EXTRA "Checking PPL"
59 CT_DoExecLog ALL make ${PARALLELMFLAGS} -s check
62 CT_DoLog EXTRA "Installing PPL"
63 CT_DoExecLog ALL make install
65 # Remove spuriously installed file
66 CT_DoExecLog ALL rm -f "${CT_PREFIX_DIR}/bin/ppl-config"