diff options
author | Lucio Andrés Illanes Albornoz (arab, vxp) <lucio@lucioillanes.de> | 2017-11-20 15:27:06 +0000 |
---|---|---|
committer | Lucio Andrés Illanes Albornoz (arab, vxp) <lucio@lucioillanes.de> | 2017-11-20 20:20:51 +0000 |
commit | d01c0269b8e5e467f82cd28392579c4c43fe63bc (patch) | |
tree | 2e105ff06c5bb57331c42ba9aa4338fe94316dc1 /subr/pkg_build_dir.subr | |
parent | 49b46005e7f7ebebcf6b43d451918c5462ac28d4 (diff) | |
download | midipix_build-d01c0269b8e5e467f82cd28392579c4c43fe63bc.tar.bz2 midipix_build-d01c0269b8e5e467f82cd28392579c4c43fe63bc.tar.xz |
subr/pkg_{autoconf,configure,patch}.subr: reference ${PKG_BASE_DIR} instead of ${WORKDIR}.
subr/pkg_build_dir.subr: {build,install} packages nested within ${PKG_BUILD_DIR}/.
subr/pkg_distclean.subr: removed from repository.
subr/pkg_{extract,fetch}.subr: {extract,fetch} within ${PKG_BASE_DIR}.
subr/pkg_install.subr: install to ../destdir to facilitate post-installation processing.
subr/pkg_setup_env.subr: set & create ${PKG_BASE_DIR}.
subr/pre_subdirs.subr: always create ${PREFIX}/bin.
vars/build.vars: consistently use ${PKG_{PREFIX,MAKE_INSTALL_VNAME,MAKEFLAGS_INSTALL}}.
vars/env.vars, *: cleanup.
Diffstat (limited to 'subr/pkg_build_dir.subr')
-rw-r--r-- | subr/pkg_build_dir.subr | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/subr/pkg_build_dir.subr b/subr/pkg_build_dir.subr index e9104ab2..2143e057 100644 --- a/subr/pkg_build_dir.subr +++ b/subr/pkg_build_dir.subr @@ -4,13 +4,15 @@ pkg_build_dir() { if [ -z "${PKG_BUILD_DIR}" ]; then - if [ -e "${WORKDIR}/${PKG_SUBDIR}/configure" ]\ - || [ -e "${WORKDIR}/${PKG_SUBDIR}/configure.ac" ]\ - || [ -e "${WORKDIR}/${PKG_SUBDIR}/configure.in" ]; then - set_build_dir "${PKG_SUBDIR}" "${PKG_BUILD_TYPE:-native}"; + if [ -e "${PKG_BASE_DIR}/${PKG_SUBDIR}/configure" ]\ + || [ -e "${PKG_BASE_DIR}/${PKG_SUBDIR}/configure.ac" ]\ + || [ -e "${PKG_BASE_DIR}/${PKG_SUBDIR}/configure.in" ]; then + PKG_BUILD_DIR="${PKG_BASE_DIR}/obj"; else - PKG_BUILD_DIR="${PKG_SUBDIR}"; + PKG_BUILD_DIR="${PKG_BASE_DIR}/${PKG_SUBDIR}"; fi; + else + PKG_BUILD_DIR="${PKG_BASE_DIR}/${PKG_BUILD_DIR}"; fi; }; |