Include the full version number in the directory paths installed.
Change the version string so that it does not break 'make', and so that it has no '/' (it would be a hell if installed directories would mirror the SVN branches... :-/ )
Do not use implicit rules for the Makefile.
Simplify and enc=hance the --local test to refuse (un)installing.
Double-quotes variables, they are based on user input.
Eye-candy in the 'compile' and install messages.
/trunk/configure | 26 14 12 0 ++++++++++---------
/trunk/Makefile.in | 83 45 38 0 +++++++++++++++++++++++++++++++++---------------------------
2 files changed, 59 insertions(+), 50 deletions(-)
1 # This file adds the functions to build the MPFR library
2 # Copyright 2008 Yann E. MORIN
3 # Licensed under the GPL v2. See COPYING in the root of this package
5 if [ "${CT_CC_GCC_GMP_MPFR}" = "y" ]; then
8 [ "${CT_CC_GCC_GMP_MPFR}" = "y" ] || return 0
9 echo "mpfr-${CT_MPFR_VERSION}"
14 CT_GetFile "${CT_MPFR_FILE}" http://www.mpfr.org/mpfr-current/ \
15 http://www.mpfr.org/mpfr-${CT_MPFR_VERSION}/
20 CT_ExtractAndPatch "${CT_MPFR_FILE}"
24 mkdir -p "${CT_BUILD_DIR}/build-mpfr"
25 cd "${CT_BUILD_DIR}/build-mpfr"
27 CT_DoStep INFO "Installing MPFR"
29 CT_DoLog EXTRA "Configuring MPFR"
30 CFLAGS="${CT_CFLAGS_FOR_HOST}" \
31 "${CT_SRC_DIR}/${CT_MPFR_FILE}/configure" \
34 --prefix="${CT_PREFIX_DIR}" \
35 --enable-thread-safe \
36 --disable-shared --enable-static \
37 --with-gmp="${CT_PREFIX_DIR}" 2>&1 |CT_DoLog ALL
39 CT_DoLog EXTRA "Building MPFR"
40 make ${PARALLELMFLAGS} 2>&1 |CT_DoLog ALL
42 if [ "${CT_MPFR_CHECK}" = "y" ]; then
43 CT_DoLog EXTRA "Checking MPFR"
44 make -s check 2>&1 |CT_DoLog ALL
47 CT_DoLog EXTRA "Installing MPFR"
48 make install 2>&1 |CT_DoLog ALL
55 do_print_filename() { :; }
57 do_mpfr_extract() { :; }