211 |
done |
done |
212 |
} |
} |
213 |
|
|
214 |
|
|
215 |
|
if [[ ! -z $(typeset -f cmake_configure) ]] |
216 |
|
then |
217 |
|
# rename the old one |
218 |
|
old_cmake_configure=old$(typeset -f cmake_configure) |
219 |
|
eval ${old_cmake_configure} |
220 |
|
fi |
221 |
|
cmake_configure() |
222 |
|
{ |
223 |
|
local abi |
224 |
|
local abis_to_run="${MULTILIB_ABIS}" |
225 |
|
|
226 |
|
# respect MULTILIB_ONLY_ABI variable |
227 |
|
[[ ! -z ${MULTILIB_ONLY_ABI} ]] && abis_to_run="${MULTILIB_ONLY_ABI}" |
228 |
|
|
229 |
|
local saved_SRCDIR="${SRCDIR}" |
230 |
|
for abi in ${abis_to_run} |
231 |
|
do |
232 |
|
SRCDIR="${saved_SRCDIR}-${abi}" |
233 |
|
cd ${SRCDIR} |
234 |
|
abi-${abi} oldcmake_configure $@ || die |
235 |
|
done |
236 |
|
} |
237 |
|
|
238 |
if [[ ! -z $(typeset -f munpack) ]] |
if [[ ! -z $(typeset -f munpack) ]] |
239 |
then |
then |
240 |
# rename the old one |
# rename the old one |