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 MPC library
2 # Copyright 2009 Yann E. MORIN
3 # Licensed under the GPL v2. See COPYING in the root of this package
6 do_mpc_extract() { :; }
9 # Overide functions depending on configuration
10 if [ "${CT_MPC}" = "y" ]; then
14 CT_GetFile "mpc-${CT_MPC_VERSION}" .tar.gz \
15 http://www.multiprecision.org/mpc/download
20 CT_Extract "mpc-${CT_MPC_VERSION}"
21 CT_Patch "mpc" "${CT_MPC_VERSION}"
25 mkdir -p "${CT_BUILD_DIR}/build-mpc"
26 cd "${CT_BUILD_DIR}/build-mpc"
28 CT_DoStep INFO "Installing MPC"
30 CT_DoLog EXTRA "Configuring MPC"
33 CFLAGS="${CT_CFLAGS_FOR_HOST}" \
34 "${CT_SRC_DIR}/mpc-${CT_MPC_VERSION}/configure" \
37 --prefix="${CT_COMPLIBS_DIR}" \
38 --with-gmp="${CT_COMPLIBS_DIR}" \
39 --with-mpfr="${CT_COMPLIBS_DIR}" \
43 CT_DoLog EXTRA "Building MPC"
44 CT_DoExecLog ALL make ${JOBSFLAGS}
46 if [ "${CT_COMPLIBS_CHECK}" = "y" ]; then
47 CT_DoLog EXTRA "Checking MPC"
48 CT_DoExecLog ALL make ${JOBSFLAGS} -s check
51 CT_DoLog EXTRA "Installing MPC"
52 CT_DoExecLog ALL make install