[samples] Don't mix canadian samples with non-canadian ones.
- save the canadian smples in their own way, so as not to
mix non-canadian samples with canadian ones
- list canadian samples with the host information
1 # This file adds the functions to build the GMP library
2 # Copyright 2008 Yann E. MORIN
3 # Licensed under the GPL v2. See COPYING in the root of this package
6 do_gmp_extract() { :; }
10 # Overide functions depending on configuration
11 if [ "${CT_GMP_MPFR}" = "y" ]; then
15 CT_GetFile "gmp-${CT_GMP_VERSION}" {ftp,http}://{ftp.sunet.se/pub,ftp.gnu.org}/gnu/gmp
20 CT_Extract "gmp-${CT_GMP_VERSION}"
21 CT_Patch "gmp-${CT_GMP_VERSION}"
26 mkdir -p "${CT_BUILD_DIR}/build-gmp"
27 cd "${CT_BUILD_DIR}/build-gmp"
29 CT_DoStep INFO "Installing GMP"
31 CT_DoLog EXTRA "Configuring GMP"
33 CFLAGS="${CT_CFLAGS_FOR_HOST} -fexceptions" \
35 "${CT_SRC_DIR}/gmp-${CT_GMP_VERSION}/configure" \
38 --prefix="${CT_PREFIX_DIR}" \
45 CT_DoLog EXTRA "Building GMP"
46 CT_DoExecLog ALL make ${PARALLELMFLAGS}
48 if [ "${CT_COMP_LIBS_CHECK}" = "y" ]; then
49 CT_DoLog EXTRA "Checking GMP"
50 CT_DoExecLog ALL make ${PARALLELMFLAGS} -s check
53 CT_DoLog EXTRA "Installing GMP"
54 CT_DoExecLog ALL make install
59 if [ "${CT_COMP_LIBS_TARGET}" = "y" ]; then
62 mkdir -p "${CT_BUILD_DIR}/build-gmp-target"
63 cd "${CT_BUILD_DIR}/build-gmp-target"
65 CT_DoStep INFO "Installing GMP for the target"
67 CT_DoLog EXTRA "Configuring GMP"
68 CFLAGS="${CT_CFLAGS_FOR_TARGET}" \
70 "${CT_SRC_DIR}/gmp-${CT_GMP_VERSION}/configure" \
79 CT_DoLog EXTRA "Building GMP"
80 CT_DoExecLog ALL make ${PARALLELMFLAGS}
82 # Not possible to check MPFR while X-compiling
84 CT_DoLog EXTRA "Installing GMP"
85 CT_DoExecLog ALL make DESTDIR="${CT_SYSROOT_DIR}" install
90 fi # CT_GMP_MPFR_TARGET == y