2010-01-12 21:47:36 +00:00
|
|
|
# Build script for automake
|
|
|
|
|
|
|
|
do_companion_tools_automake_get() {
|
2014-12-08 23:03:08 +00:00
|
|
|
CT_GetFile "automake-${CT_AUTOMAKE_VERSION}" \
|
|
|
|
{http,ftp,https}://ftp.gnu.org/gnu/automake
|
2010-01-12 21:47:36 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
do_companion_tools_automake_extract() {
|
|
|
|
CT_Extract "automake-${CT_AUTOMAKE_VERSION}"
|
2011-03-03 18:28:40 +00:00
|
|
|
CT_DoExecLog ALL chmod -R u+w "${CT_SRC_DIR}/automake-${CT_AUTOMAKE_VERSION}"
|
2010-04-11 21:18:10 +00:00
|
|
|
CT_Patch "automake" "${CT_AUTOMAKE_VERSION}"
|
2010-01-12 21:47:36 +00:00
|
|
|
}
|
|
|
|
|
2016-11-23 02:10:23 +00:00
|
|
|
do_companion_tools_automake_for_build() {
|
2017-01-24 02:48:22 +00:00
|
|
|
CT_DoStep INFO "Installing automake for build"
|
2016-11-29 00:55:22 +00:00
|
|
|
CT_mkdir_pushd "${CT_BUILD_DIR}/build-automake-build"
|
|
|
|
do_automake_backend host=${CT_BUILD} prefix="${CT_BUILD_COMPTOOLS_DIR}"
|
|
|
|
CT_Popd
|
|
|
|
CT_EndStep
|
|
|
|
}
|
|
|
|
|
|
|
|
do_companion_tools_automake_for_host() {
|
2017-01-24 02:48:22 +00:00
|
|
|
CT_DoStep INFO "Installing automake for host"
|
2016-11-29 00:55:22 +00:00
|
|
|
CT_mkdir_pushd "${CT_BUILD_DIR}/build-automake-host"
|
|
|
|
do_automake_backend host=${CT_HOST} prefix="${CT_PREFIX_DIR}"
|
|
|
|
CT_Popd
|
|
|
|
CT_EndStep
|
|
|
|
}
|
|
|
|
|
|
|
|
do_automake_backend() {
|
|
|
|
local host
|
|
|
|
local prefix
|
|
|
|
|
|
|
|
for arg in "$@"; do
|
|
|
|
eval "${arg// /\\ }"
|
|
|
|
done
|
|
|
|
|
2016-11-23 02:10:23 +00:00
|
|
|
CT_DoLog EXTRA "Configuring automake"
|
2017-01-25 08:06:28 +00:00
|
|
|
CT_DoExecLog CFG \
|
|
|
|
${CONFIG_SHELL} \
|
|
|
|
"${CT_SRC_DIR}/automake-${CT_AUTOMAKE_VERSION}/configure" \
|
2016-11-29 00:55:22 +00:00
|
|
|
--host="${host}" \
|
|
|
|
--prefix="${prefix}"
|
2016-11-23 02:10:23 +00:00
|
|
|
|
|
|
|
CT_DoLog EXTRA "Building automake"
|
2016-11-21 07:50:17 +00:00
|
|
|
CT_DoExecLog ALL make
|
2016-11-23 02:10:23 +00:00
|
|
|
|
|
|
|
CT_DoLog EXTRA "Installing automake"
|
2016-11-21 07:50:17 +00:00
|
|
|
CT_DoExecLog ALL make install
|
2010-01-12 21:47:36 +00:00
|
|
|
}
|