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}" = "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}"
30 mkdir -p "${CT_BUILD_DIR}/build-ppl"
31 cd "${CT_BUILD_DIR}/build-ppl"
33 CT_DoStep INFO "Installing PPL"
35 CT_DoLog EXTRA "Configuring PPL"
37 if [ "${CT_COMPLIBS_SHARED}" = "y" ]; then
38 ppl_opts+=( --enable-shared --disable-static )
40 ppl_opts+=( --disable-shared --enable-static )
43 CFLAGS="${CT_CFLAGS_FOR_HOST}" \
44 CXXFLAGS="${CT_CFLAGS_FOR_HOST}" \
46 "${CT_SRC_DIR}/ppl-${CT_PPL_VERSION}/configure" \
49 --prefix="${CT_COMPLIBS_DIR}" \
50 --with-libgmp-prefix="${CT_COMPLIBS_DIR}" \
51 --with-libgmpxx-prefix="${CT_COMPLIBS_DIR}" \
53 --disable-assertions \
59 # --enable-interfaces=...
60 # --enable-optimization=speed or sspeed (yes, with 2 's')
62 CT_DoLog EXTRA "Building PPL"
63 CT_DoExecLog ALL make ${PARALLELMFLAGS}
65 if [ "${CT_COMPLIBS_CHECK}" = "y" ]; then
66 CT_DoLog EXTRA "Checking PPL"
67 CT_DoExecLog ALL make ${PARALLELMFLAGS} -s check
70 CT_DoLog EXTRA "Installing PPL"
71 CT_DoExecLog ALL make install
73 # Remove spuriously installed file
74 CT_DoExecLog ALL rm -f "${CT_PREFIX_DIR}/bin/ppl-config"