From 96b3097e548d741fe34bc2b54b5f59c725c06cec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucio=20Andr=C3=A9s=20Illanes=20Albornoz=20=28arab=2C=20vx?= =?UTF-8?q?p=29?= Date: Sun, 7 Feb 2016 16:34:58 +0100 Subject: - Ensure global variable names are consistently capitalised and that no values are inherited when and wherever they should not be. - Remove pointless CFLAGS export in 007.gcc.full.build when doing a runtime or full build. --- 101.gmp.build | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) (limited to '101.gmp.build') diff --git a/101.gmp.build b/101.gmp.build index 91559e99..c0d0fca4 100644 --- a/101.gmp.build +++ b/101.gmp.build @@ -2,32 +2,32 @@ parse_with_pkg_name ${2} gmp mpfr mpc libelf binutils; if is_build_script_done finished; then exit 212; else - fetch ${_pkg_url} ${_pkg_sha256sum}; - set_build_dir ${_pkg_subdir} native; + fetch ${PKG_URL} ${PKG_SHA256SUM}; + set_build_dir ${PKG_SUBDIR} native; fi; if ! is_build_script_done extracted; then - rm_if_exists ${_pkg_subdir}; - tar -axf ${_pkg_fname}; + rm_if_exists ${PKG_SUBDIR}; + tar -axf ${PKG_FNAME}; set_build_script_done extracted -patched; fi; if ! is_build_script_done patched; then - patch -d ${_pkg_subdir} -p1 \ - < portage/${_pkg_subdir}.midipix.patch; - if [ ${_pkg_no_libtool_midipix:-0} -eq 0 ]; then - cp portage/libtool.midipix ${_pkg_subdir}/; + patch -d ${PKG_SUBDIR} -p1 \ + < portage/${PKG_SUBDIR}.midipix.patch; + if [ ${PKG_NO_LIBTOOL_MIDIPIX:-0} -eq 0 ]; then + cp portage/libtool.midipix ${PKG_SUBDIR}/; fi; set_build_script_done patched -configured; fi; if ! is_build_script_done configured; then - rm_if_exists -m -c ${_build_dir}; - ../${_pkg_subdir}/configure \ - ${_pkg_configure_extra_args} \ + rm_if_exists -m -c ${BUILD_DIR}; + ../${PKG_SUBDIR}/configure \ + ${PKG_CONFIGURE_EXTRA_ARGS} \ --host=${HOST_NATIVE} \ - --prefix=${_pkg_prefix:-/} \ + --prefix=${PKG_PREFIX:-/} \ --target=${TARGET}; set_build_script_done configured -built; else - cd ${_build_dir}; + cd ${BUILD_DIR}; fi; if ! is_build_script_done built; then make; @@ -37,12 +37,12 @@ if ! is_build_script_done installed1; then make DESTDIR=${PREFIX_NATIVE} install; set_build_script_done configured installed1 -installed2 -finished; fi; -if [ -n "${_pkg_prefix_extra}" ]; then +if [ -n "${PKG_PREFIX_EXTRA}" ]; then if ! is_build_script_done installed2; then - make DESTDIR=${_pkg_prefix_extra} install; + make DESTDIR=${PKG_PREFIX_EXTRA} install; set_build_script_done configured installed2 -finished; fi; -elif [ "x${_pkg_name}" = "xlibelf" ]; then +elif [ "x${PKG_NAME}" = "xlibelf" ]; then if ! is_build_script_done installed2; then rm -f lib/libelf.def; echo EXPORTS > lib/libelf.def; -- cgit v1.2.3