4 |
# be verbose or nor (true|false} |
# be verbose or nor (true|false} |
5 |
: ${MULTILIB_VERBOSE="true"} |
: ${MULTILIB_VERBOSE="true"} |
6 |
|
|
7 |
|
# multilib should call all dependant includes, which gets overridden |
8 |
|
sminclude mtools cmake |
9 |
|
|
10 |
# do not define EMUL_LINUX_32 after inherit of multlib !! |
# do not define EMUL_LINUX_32 after inherit of multlib !! |
11 |
# it may break i*86 builds |
# it may break i*86 builds |
12 |
|
|
263 |
cd ${SRCDIR} |
cd ${SRCDIR} |
264 |
abi-${abi} oldcmake_configure $@ || die |
abi-${abi} oldcmake_configure $@ || die |
265 |
done |
done |
266 |
|
# restore SRCDIR |
267 |
|
SRCDIR="${saved_SRCDIR}" |
268 |
} |
} |
269 |
|
|
270 |
if [[ ! -z $(typeset -f munpack) ]] |
if [[ ! -z $(typeset -f munpack) ]] |
393 |
done |
done |
394 |
} |
} |
395 |
|
|
396 |
|
if [[ ! -z $(typeset -f mautoreconf) ]] |
397 |
|
then |
398 |
|
# rename the old one |
399 |
|
old_mautoreconf=old$(typeset -f mautoreconf) |
400 |
|
eval "${old_mautoreconf}" |
401 |
|
fi |
402 |
|
mautoreconf() |
403 |
|
{ |
404 |
|
local abi |
405 |
|
local abis_to_run="${MULTILIB_ABIS}" |
406 |
|
|
407 |
|
# respect MULTILIB_ONLY_ABI variable |
408 |
|
[[ ! -z ${MULTILIB_ONLY_ABI} ]] && abis_to_run="${MULTILIB_ONLY_ABI}" |
409 |
|
|
410 |
|
for abi in ${abis_to_run} |
411 |
|
do |
412 |
|
echo -e "${COLBLUE}*** ${COLGREEN}running mautoreconf for ABI -${abi}${COLDEFAULT}" |
413 |
|
cd ${SRCDIR}-${abi} |
414 |
|
oldmautoreconf $@ || die |
415 |
|
done |
416 |
|
} |
417 |
|
|
418 |
|
if [[ ! -z $(typeset -f minstalldocs) ]] |
419 |
|
then |
420 |
|
# rename the old one |
421 |
|
old_minstalldocs=old$(typeset -f minstalldocs) |
422 |
|
eval "${old_minstalldocs}" |
423 |
|
fi |
424 |
minstalldocs() |
minstalldocs() |
425 |
{ |
{ |
426 |
local abi |
local abi |
427 |
local docfiles |
local docfiles |
|
docfiles="$@" |
|
428 |
|
|
429 |
local abis_to_run="${MULTILIB_ABIS}" |
local abis_to_run="${MULTILIB_ABIS}" |
430 |
|
|
434 |
for abi in ${abis_to_run} |
for abi in ${abis_to_run} |
435 |
do |
do |
436 |
cd ${SRCDIR}-${abi} |
cd ${SRCDIR}-${abi} |
437 |
if [ ! -d ${BINDIR}/usr/share/doc/${PNAME}-${PVER} ] |
oldminstalldocs $@ || die |
|
then |
|
|
install -d ${BINDIR}/usr/share/doc/${PNAME}-${PVER} || die "creating doc dirs." |
|
|
fi |
|
|
|
|
|
for i in ${docfiles} |
|
|
do |
|
|
cat ${SRCDIR}-${abi}/${i} | gzip -9c > ${SRCDIR}-${abi}/${i}.gz || die "gzipping docs." |
|
|
install -m 0644 ${SRCDIR}-${abi}/${i}.gz \ |
|
|
${BINDIR}/usr/share/doc/${PNAME}-${PVER} || die "coping docs." |
|
|
done |
|
438 |
done |
done |
439 |
} |
} |
440 |
|
|
452 |
mmake |
mmake |
453 |
} |
} |
454 |
|
|
455 |
|
multilib_src_check() |
456 |
|
{ |
457 |
|
mmake -j1 -k check || die |
458 |
|
} |
459 |
|
|
460 |
multilib_src_install() |
multilib_src_install() |
461 |
{ |
{ |
462 |
minstall_destdir |
minstall_destdir |
476 |
done |
done |
477 |
} |
} |
478 |
|
|
479 |
export_inherits multilib src_prepare src_compile src_install |
export_inherits multilib src_prepare src_compile src_check src_install |