diff options
author | Lucio Andrés Illanes Albornoz (arab, vxp) <lucio@lucioillanes.de> | 2017-11-29 00:23:39 +0000 |
---|---|---|
committer | Lucio Andrés Illanes Albornoz (arab, vxp) <lucio@lucioillanes.de> | 2017-11-29 00:26:09 +0000 |
commit | 8a4338c602d8ee1eeddb8ede6b42414a6ccf7410 (patch) | |
tree | c7a0921b5d9b0442cca7ffb56627b64f4ff15ee5 /subr | |
parent | 72d45af25cd2267526c9dc95f244e5529f9caf30 (diff) | |
download | midipix_build-8a4338c602d8ee1eeddb8ede6b42414a6ccf7410.tar.bz2 midipix_build-8a4338c602d8ee1eeddb8ede6b42414a6ccf7410.tar.xz |
subr/pkg_configure_autotools.subr: create ${PKG_BUILD_DIR}/config.cache from ${PKG_CONFIG_CACHE{,_EXTRA}}.
etc/config.cache, vars/*.vars: split into vars/*.vars.
Diffstat (limited to 'subr')
-rw-r--r-- | subr/pkg_configure_autotools.subr | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/subr/pkg_configure_autotools.subr b/subr/pkg_configure_autotools.subr index 6b6b3125..e6445002 100644 --- a/subr/pkg_configure_autotools.subr +++ b/subr/pkg_configure_autotools.subr @@ -37,7 +37,12 @@ pkg_configure_autotools() { -exec echo install -m 0700 "${MIDIPIX_BUILD_PWD}/etc/config.sub" {} \; \ -exec install -m 0700 "${MIDIPIX_BUILD_PWD}/etc/config.sub" {} \;; if [ "${PKG_BUILD_TYPE}" != host ]; then - ex_build_fileop cp "${MIDIPIX_BUILD_PWD}/etc/config.cache" "${PKG_BUILD_DIR}/"; + if [ -n "${PKG_CONFIG_CACHE}" ]; then + echo "${PKG_CONFIG_CACHE}" > "${PKG_BUILD_DIR}/config.cache"; + if [ -n "${PKG_CONFIG_CACHE_EXTRA}" ]; then + echo "${PKG_CONFIG_CACHE_EXTRA}" >> "${PKG_BUILD_DIR}/config.cache"; + fi; + fi; sed -i"" "s,%PREFIX%,${PKG_PREFIX},g" "${PKG_BUILD_DIR}/config.cache"; fi; fi; |