summaryrefslogtreecommitdiffhomepage
path: root/subr/pkg_autoconf.subr
diff options
context:
space:
mode:
authorLucio Andrés Illanes Albornoz (arab, vxp) <lucio@lucioillanes.de>2017-11-20 21:45:21 +0000
committerLucio Andrés Illanes Albornoz (arab, vxp) <lucio@lucioillanes.de>2017-11-21 00:51:43 +0000
commitc27beab66023847435fb88cd5cc75916dca37057 (patch)
treec43c23133f5b837925785d5501aa4cff14980415 /subr/pkg_autoconf.subr
parentd01c0269b8e5e467f82cd28392579c4c43fe63bc (diff)
downloadmidipix_build-c27beab66023847435fb88cd5cc75916dca37057.tar.bz2
midipix_build-c27beab66023847435fb88cd5cc75916dca37057.tar.xz
Refactors build steps along the sequence {setup,fetch,configure,build,install}.
subr/mode_check_updates.subr: seperated into check_updates.sh. subr/post_{copy_etc,sha256sums,tarballs}.subr: absorbed into `dist' target.
Diffstat (limited to 'subr/pkg_autoconf.subr')
-rw-r--r--subr/pkg_autoconf.subr48
1 files changed, 0 insertions, 48 deletions
diff --git a/subr/pkg_autoconf.subr b/subr/pkg_autoconf.subr
deleted file mode 100644
index 8a0ea124..00000000
--- a/subr/pkg_autoconf.subr
+++ /dev/null
@@ -1,48 +0,0 @@
-#
-# set -o errexit -o noglob are assumed.
-#
-
-pkg_autoconf() {
- local __;
- if [ -e "${PKG_BASE_DIR}/${PKG_SUBDIR}/configure" -o \
- -e "${PKG_BASE_DIR}/${PKG_SUBDIR}/configure.ac" -o \
- -e "${PKG_BASE_DIR}/${PKG_SUBDIR}/configure.in" -o \
- -e "${PKG_BASE_DIR}/${PKG_SUBDIR}/config.guess" ]; then
- if [ -e "${PKG_BASE_DIR}/${PKG_SUBDIR}/configure.ac" ]\
- && [ ! -e "${PKG_BASE_DIR}/${PKG_SUBDIR}/configure" ]; then
- for __ in bootstrap bootstrap.sh autogen.sh ""; do
- if [ -z "${__}" ]; then
- (build_fileop cd "${PKG_BASE_DIR}/${PKG_SUBDIR}" && autoconf)\
- || exit 1 && break;
- elif [ -e "${PKG_BASE_DIR}/${PKG_SUBDIR}/${__}" ]; then
- for ___ in "${PKG_BASE_DIR}/${PKG_SUBDIR}/build-aux" "${PKG_BASE_DIR}/${PKG_SUBDIR}"; do
- if [ -e "${___}" ]; then
- echo install -m 0700 \
- "${MIDIPIX_BUILD_PWD}/etc/config.sub" \
- "${___}/config.sub";
- install -m 0700 \
- "${MIDIPIX_BUILD_PWD}/etc/config.sub" \
- "${___}/config.sub";
- break;
- fi;
- done;
- (build_fileop cd "${PKG_BASE_DIR}/${PKG_SUBDIR}" && "${SHELL}" "${__}")\
- || exit 1 && break;
- fi;
- done;
- fi;
- find "${PKG_BASE_DIR}/${PKG_SUBDIR}" -name config.sub \
- -exec echo mv -- {} {}.orig \; \
- -exec mv -- {} {}.orig \; \
- -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
- build_fileop cp "${MIDIPIX_BUILD_PWD}/etc/config.cache" "${PKG_BUILD_DIR}/";
- if [ -n "${PKG_CONFIG_CACHE_EXTRA}" ]; then
- build_fileop cp "${MIDIPIX_BUILD_PWD}/etc/config.cache" "${PKG_BASE_DIR}/${PKG_CONFIG_CACHE_EXTRA}/";
- fi;
- fi;
- fi;
-};
-
-# vim:filetype=sh