complibs/ppl: update GMP location configuration argument for PPL v0.11 and later
'configure' for PPL 0.11 (and later) needs "--with-gmp-prefix" to
provide the location of the GMP toolkit; the previous switches were
"--with-libgmp-prefix" and "--with-libgmpxx-prefix".
The upstream log message is:
commit 08dfb6fea094f8c5a533575a3ea2095edce99a6d
Author: Roberto Bagnara <bagnara@cs.unipr.it>
Date: Sun Jul 12 21:39:46 2009 +0200
New configure option --with-gmp-prefix supersedes the (now removed)
options --with-libgmp-prefix and --with-libgmpxx-prefix.
Link: http://www.cs.unipr.it/git/gitweb.cgi?p=ppl/ppl.git;a=commit;h=08dfb6fea094f8c5a533575a3ea2095edce99a6d
Since PPL's 'configure' ignores unknown switches, we use all three so we
don't have to conditionalize the ppl.sh build script itself.
Signed-Off-By: Anthony Foiani <anthony.foiani@gmail.com>
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() { :; }
9 # Overide functions depending on configuration
10 if [ "${CT_PPL}" = "y" ]; then
14 CT_GetFile "ppl-${CT_PPL_VERSION}" \
15 http://www.cs.unipr.it/ppl/Download/ftp/releases/${CT_PPL_VERSION} \
16 ftp://ftp.cs.unipr.it/pub/ppl/releases/${CT_PPL_VERSION} \
17 ftp://gcc.gnu.org/pub/gcc/infrastructure
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"
36 CFLAGS="${CT_CFLAGS_FOR_HOST}" \
37 CXXFLAGS="${CT_CFLAGS_FOR_HOST}" \
38 "${CT_SRC_DIR}/ppl-${CT_PPL_VERSION}/configure" \
41 --prefix="${CT_COMPLIBS_DIR}" \
42 --with-libgmp-prefix="${CT_COMPLIBS_DIR}" \
43 --with-libgmpxx-prefix="${CT_COMPLIBS_DIR}" \
44 --with-gmp-prefix="${CT_COMPLIBS_DIR}" \
48 --disable-assertions \
55 # --enable-interfaces=...
56 # --enable-optimization=speed or sspeed (yes, with 2 's')
58 CT_DoLog EXTRA "Building PPL"
59 CT_DoExecLog ALL make ${JOBSFLAGS}
61 if [ "${CT_COMPLIBS_CHECK}" = "y" ]; then
62 CT_DoLog EXTRA "Checking PPL"
63 CT_DoExecLog ALL make ${JOBSFLAGS} -s check
66 CT_DoLog EXTRA "Installing PPL"
67 CT_DoExecLog ALL make install
69 # Remove spuriously installed file
70 CT_DoExecLog ALL rm -f "${CT_PREFIX_DIR}/bin/ppl-config"