blob: 01f81ce53ee30e48d3674a253063eacc0f28d368 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
#
# set -o errexit -o noglob are assumed.
#
pkg_configure_autotools() {
local _script_fname="" _subdir_tgt="";
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 [ -n "${PKG_PKG_CONFIG}" ]; then
export PKG_CONFIG="${PKG_PKG_CONFIG}";
fi;
if [ -n "${PKG_PKG_CONFIG_PATH}" ]; then
export PKG_CONFIG_PATH="${PKG_PKG_CONFIG_PATH}";
fi;
if [ -e "${PKG_BASE_DIR}/${PKG_SUBDIR}/configure.ac" ]\
&& [ ! -e "${PKG_BASE_DIR}/${PKG_SUBDIR}/configure" ]; then
for _script_fname in bootstrap bootstrap.sh autogen.sh ""; do
if [ -z "${_script_fname}" ]; then
(ex_rtl_fileop cd "${PKG_BASE_DIR}/${PKG_SUBDIR}" && autoconf)\
|| exit 1 && break;
elif [ -e "${PKG_BASE_DIR}/${PKG_SUBDIR}/${_script_fname}" ]; then
for _subdir_tgt in "${PKG_BASE_DIR}/${PKG_SUBDIR}/build-aux" "${PKG_BASE_DIR}/${PKG_SUBDIR}"; do
if [ -e "${_subdir_tgt}" ]; then
echo install -m 0700 \
"${MIDIPIX_BUILD_PWD}/etc/config.sub" \
"${_subdir_tgt}/config.sub";
install -m 0700 \
"${MIDIPIX_BUILD_PWD}/etc/config.sub" \
"${_subdir_tgt}/config.sub";
break;
fi;
done;
(ex_rtl_fileop cd "${PKG_BASE_DIR}/${PKG_SUBDIR}" && \
/bin/sh "${_script_fname}") || 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
if [ -n "${PKG_CONFIG_CACHE}" ]; then
echo "${PKG_CONFIG_CACHE}" |\
tr " " "\n" > "${PKG_BUILD_DIR}/config.cache";
if [ -n "${PKG_CONFIG_CACHE_LOCAL}" ]; then
echo "${PKG_CONFIG_CACHE_LOCAL}" |\
tr " " "\n" >> "${PKG_BUILD_DIR}/config.cache";
fi;
if [ -n "${PKG_CONFIG_CACHE_EXTRA}" ]; then
echo "${PKG_CONFIG_CACHE_EXTRA}" |\
tr " " "\n" >> "${PKG_BUILD_DIR}/config.cache";
fi;
fi;
sed -i"" "s,%PREFIX%,${PKG_PREFIX},g" "${PKG_BUILD_DIR}/config.cache";
fi;
unset PKG_CONFIG PKG_CONFIG_PATH;
fi;
};
# vim:filetype=sh
|