Magellan Linux

Annotation of /trunk/include/multilib.sminc

Parent Directory Parent Directory | Revision Log Revision Log


Revision 22297 - (hide annotations) (download)
Fri Sep 19 11:22:11 2014 UTC (10 years, 1 month ago) by niro
File size: 13555 byte(s)
-use marchsdepend to eval EMUL_LINUX_32_SDEPEND to fix issues with depwalker direct calls
1 niro 6346 # $Id$
2 niro 2 # multilib abis
3    
4 niro 11547 # tell the buildsystem that we are doing a multilib build
5     export MULTILIB_BUILD="true"
6 niro 11544
7 niro 8334 # be verbose or nor (true|false}
8     : ${MULTILIB_VERBOSE="true"}
9    
10 niro 11029 # multilib should call all dependant includes, which gets overridden
11 niro 11030 sminclude mtools
12 niro 11029
13 niro 2 # do not define EMUL_LINUX_32 after inherit of multlib !!
14     # it may break i*86 builds
15    
16     # default ABIs to be build
17     case ${ARCH} in
18     x86_64)
19     : ${MULTILIB_ABIS="m32 m64"}
20     # default false
21     : ${EMUL_LINUX_32="false"}
22    
23     # add linux32 to the dependencies
24     if [[ ${EMUL_LINUX_32} = true ]]
25     then
26 niro 7554 EMUL_LINUX_32_SDEPEND_x86_64=">= sys-apps/util-linux-2.19"
27 niro 6406 SPECIAL_VARS="${SPECIAL_VARS} EMUL_LINUX_32_SDEPEND_x86_64"
28 niro 2 fi
29     ;;
30     i*86)
31     : ${MULTILIB_ABIS="m32"}
32     # always false
33     EMUL_LINUX_32="false"
34     ;;
35     esac
36    
37     # add linux32 to the dependencies
38     if [[ ${EMUL_LINUX_32} = true ]]
39     then
40     # very dirty trick to get the dependencies right
41     # ; is the IFS, tr replaces ; with an crlfs
42     # the var ist decided with our common eval+echo magic
43     if [[ -z ${SDEPEND} ]]
44     then
45 niro 22297 SDEPEND="$(marchsdepend EMUL_LINUX_32_SDEPEND)"
46 niro 2 else
47     SDEPEND="${SDEPEND}
48 niro 22297 $(marchsdepend EMUL_LINUX_32_SDEPEND)"
49 niro 2 fi
50     fi
51    
52     ##
53     # overide some defaults to respect ABI_LIBDIR
54     ##
55     mlibdir()
56     {
57     local libdir=lib
58     [[ ${ARCH} = x86_64 ]] && libdir=lib64
59     [[ -n ${ABI_LIBDIR} ]] && libdir="${ABI_LIBDIR}"
60    
61     echo "${libdir}"
62     }
63    
64     ##
65     # multilib abi changers
66     ##
67     abi-m32()
68     {
69     export ABI="m32"
70     export CC="gcc -${ABI}"
71     export CXX="g++ -${ABI}"
72     export ABI_LIBDIR="lib"
73 niro 307 if [[ ${EXPORT_ABI_LDFLAGS} != false ]]
74     then
75 niro 11300 local saved_ldflags="${LDFLAGS}"
76     export LDFLAGS="${LDFLAGS} -L/${ABI_LIBDIR} -L/usr/${ABI_LIBDIR}"
77 niro 307 fi
78 niro 5371 # keep pkgconfig clean
79     local orig_pkg_config_path="${PKG_CONFIG_PATH}"
80     export PKG_CONFIG_PATH="/usr/${ABI_LIBDIR}/pkgconfig:${PKG_CONFIG_PATH}"
81 niro 2
82 niro 8334 if [[ ${MULTILIB_VERBOSE} = true ]]
83 niro 307 then
84 niro 8334 echo -e "${COLBLUE}*** ${COLGREEN}running with -${ABI} ABI${COLDEFAULT}"
85     echo -e "${COLBLUE}*** ${COLGREEN} ABI${COLDEFAULT}='${ABI}'"
86     echo -e "${COLBLUE}*** ${COLGREEN} CC${COLDEFAULT}='${CC}'"
87     echo -e "${COLBLUE}*** ${COLGREEN} CXX${COLDEFAULT}='${CXX}'"
88     echo -e "${COLBLUE}*** ${COLGREEN} ABI_LIBDIR${COLDEFAULT}='${ABI_LIBDIR}'"
89     if [[ ${EXPORT_ABI_LDFLAGS} != false ]]
90     then
91     echo -e "${COLBLUE}*** ${COLGREEN} LDFLAGS${COLDEFAULT}='${LDFLAGS}'"
92     else
93     echo -e "${COLBLUE}*** ${COLGREEN} LDFLAGS${COLDEFAULT}='${COLYELLOW}not exported${COLDEFAULT}'"
94     fi
95 niro 11525 echo -e "${COLBLUE}*** ${COLGREEN} CHOST${COLDEFAULT}='${CHOST}'"
96     echo -e "${COLBLUE}*** ${COLGREEN} SRCDIR${COLDEFAULT}='${SRCDIR}/${SRCSUBDIR}'"
97 niro 8334 echo -e "${COLBLUE}*** ${COLGREEN} PKG_CONFIG_PATH${COLDEFAULT}='${PKG_CONFIG_PATH}'"
98 niro 307 fi
99 niro 2
100     # configure a linux32 emulated build
101     if [[ ${EMUL_LINUX_32} = true ]]
102     then
103 niro 8334 if [[ ${MULTILIB_VERBOSE} = true ]]
104     then
105     echo -e "${COLBLUE}*** ${COLGREEN} EMUL_LINUX_32${COLDEFAULT}='${EMUL_LINUX_32}'"
106     fi
107 niro 2 uname(){ linux32 uname $@; } && export -f uname
108 niro 11830 local orig_chost="${CHOST}" && export CHOST="i686-pc-linux-gnu"
109 niro 2 fi
110 niro 8334 if [[ ${MULTILIB_VERBOSE} = true ]]
111     then
112     echo -e "${COLBLUE}*** ${COLGREEN} CHOST${COLDEFAULT}='${CHOST}'"
113     fi
114 niro 2
115     # run any given command
116 niro 13974 eval $@ || die
117 niro 2
118 niro 11300 unset ABI CC CXX ABI_LIBDIR
119 niro 5371 # keep pkgconfig clean
120     export PKG_CONFIG_PATH="${orig_pkg_config_path}"
121 niro 11300 export LDFLAGS="${saved_ldflags}"
122 niro 2
123     # restore original settings
124     if [[ ${EMUL_LINUX_32} = true ]]
125     then
126     unset uname
127 niro 11830 export CHOST="${orig_chost}" && unset orig_chost
128 niro 2 fi
129     }
130    
131     abi-m64()
132     {
133     export ABI="m64"
134     export CC="gcc -${ABI}"
135     export CXX="g++ -${ABI}"
136     export ABI_LIBDIR="lib64"
137 niro 307 if [[ ${EXPORT_ABI_LDFLAGS} != false ]]
138     then
139 niro 11300 local saved_ldflags="${LDFLAGS}"
140 niro 307 export LDFLAGS="-L/${ABI_LIBDIR} -L/usr/${ABI_LIBDIR}"
141     fi
142 niro 5371 # keep pkgconfig clean
143     local orig_pkg_config_path="${PKG_CONFIG_PATH}"
144     export PKG_CONFIG_PATH="/usr/${ABI_LIBDIR}/pkgconfig:${PKG_CONFIG_PATH}"
145 niro 2
146 niro 8334 if [[ ${MULTILIB_VERBOSE} = true ]]
147 niro 307 then
148 niro 8334 echo -e "${COLBLUE}*** ${COLGREEN}running with -${ABI} ABI${COLDEFAULT}"
149     echo -e "${COLBLUE}*** ${COLGREEN} ABI${COLDEFAULT}='${ABI}'"
150     echo -e "${COLBLUE}*** ${COLGREEN} CC${COLDEFAULT}='${CC}'"
151     echo -e "${COLBLUE}*** ${COLGREEN} CXX${COLDEFAULT}='${CXX}'"
152     echo -e "${COLBLUE}*** ${COLGREEN} ABI_LIBDIR${COLDEFAULT}='${ABI_LIBDIR}'"
153     if [[ ${EXPORT_ABI_LDFLAGS} != false ]]
154     then
155     echo -e "${COLBLUE}*** ${COLGREEN} LDFLAGS${COLDEFAULT}='${LDFLAGS}'"
156     else
157     echo -e "${COLBLUE}*** ${COLGREEN} LDFLAGS${COLDEFAULT}='${COLYELLOW}not exported${COLDEFAULT}'"
158     fi
159     echo -e "${COLBLUE}*** ${COLGREEN} CHOST${COLDEFAULT}='${CHOST}'"
160 niro 11525 echo -e "${COLBLUE}*** ${COLGREEN} SRCDIR${COLDEFAULT}='${SRCDIR}/${SRCSUBDIR}'"
161 niro 8334 echo -e "${COLBLUE}*** ${COLGREEN} PKG_CONFIG_PATH${COLDEFAULT}='${PKG_CONFIG_PATH}'"
162 niro 307 fi
163 niro 2
164     # run any given command
165     eval $@ || die
166    
167 niro 11300 unset ABI CC CXX ABI_LIBDIR
168 niro 5371 # keep pkgconfig clean
169     export PKG_CONFIG_PATH="${orig_pkg_config_path}"
170 niro 11300 export LDFLAGS="${saved_ldflags}"
171 niro 2 }
172    
173     only-m32()
174     {
175     local abi=m32
176     local i
177    
178     for i in ${MULTILIB_ABIS}
179     do
180     if [[ ${i} = ${abi} ]]
181     then
182     # export this for mpatch etc (to repect only-${abi})
183     export MULTILIB_ONLY_ABI=${abi}
184    
185 niro 11522 cd ${SRCDIR}-${abi}/${SRCSUBDIR}
186 niro 2 abi-${abi} $@ || die
187    
188     # unset this is very important
189     unset MULTILIB_ONLY_ABI
190     fi
191     done
192     }
193    
194     only-m64()
195     {
196     local abi=m64
197     local i
198    
199     for i in ${MULTILIB_ABIS}
200     do
201     if [[ ${i} = ${abi} ]]
202     then
203     # export this for mpatch etc (to repect only-${abi})
204     export MULTILIB_ONLY_ABI=${abi}
205    
206 niro 11522 cd ${SRCDIR}-${abi}/${SRCSUBDIR}
207 niro 2 abi-${abi} $@ || die
208    
209     # unset this is very important
210     unset MULTILIB_ONLY_ABI
211     fi
212     done
213     }
214    
215     all-abis()
216     {
217     local abi
218     for abi in ${MULTILIB_ABIS}
219     do
220 niro 11522 cd ${SRCDIR}-${abi}/${SRCSUBDIR}
221 niro 2 abi-${abi} $@ || die
222     done
223     }
224    
225 niro 6346 mabi()
226     {
227     echo \${ABI}
228     }
229    
230 niro 11825 mabi-cc()
231     {
232 niro 20903 echo "gcc -\${ABI}"
233 niro 11825 }
234    
235     mabi-cxx()
236     {
237 niro 20903 echo "g++ -\${ABI}"
238 niro 11825 }
239    
240 niro 11828 mabi-cflags()
241     {
242 niro 20903 echo "\${CFLAGS}"
243 niro 11828 }
244    
245     mabi-cxxflags()
246     {
247 niro 20903 echo "\${CXXFLAGS}"
248 niro 11828 }
249    
250     mabi-ldflags()
251     {
252 niro 20903 echo "\${LDFLAGS}"
253 niro 11828 }
254    
255 niro 2 ##
256     # multilib compile functions
257     ##
258    
259 niro 3671 if [[ ! -z $(typeset -f mconfigure) ]]
260     then
261     # rename the old one
262     old_mconfigure=old$(typeset -f mconfigure)
263 niro 4783 eval "${old_mconfigure}"
264 niro 20987
265 niro 2 mconfigure()
266     {
267     local abi
268     local abis_to_run="${MULTILIB_ABIS}"
269    
270     # respect MULTILIB_ONLY_ABI variable
271     [[ ! -z ${MULTILIB_ONLY_ABI} ]] && abis_to_run="${MULTILIB_ONLY_ABI}"
272    
273     for abi in ${abis_to_run}
274     do
275 niro 11522 cd ${SRCDIR}-${abi}/${SRCSUBDIR}
276 niro 2 abi-${abi} oldmconfigure $@ || die
277     done
278     }
279 niro 20987 fi
280 niro 2
281 niro 4780 if [[ ! -z $(typeset -f cmake_configure) ]]
282     then
283     # rename the old one
284     old_cmake_configure=old$(typeset -f cmake_configure)
285 niro 4783 eval "${old_cmake_configure}"
286 niro 20987
287 niro 4780 cmake_configure()
288     {
289     local abi
290     local abis_to_run="${MULTILIB_ABIS}"
291    
292     # respect MULTILIB_ONLY_ABI variable
293     [[ ! -z ${MULTILIB_ONLY_ABI} ]] && abis_to_run="${MULTILIB_ONLY_ABI}"
294    
295     local saved_SRCDIR="${SRCDIR}"
296     for abi in ${abis_to_run}
297     do
298     SRCDIR="${saved_SRCDIR}-${abi}"
299 niro 21293 # honor inside and outside build-dir builds
300     if [ -d ${BUILDDIR}/build-${abi} ]
301     then
302     cd ${BUILDDIR}/build-${abi}
303     else
304 niro 22068 cd ${SRCDIR}
305 niro 21293 fi
306 niro 4780 abi-${abi} oldcmake_configure $@ || die
307     done
308 niro 9367 # restore SRCDIR
309     SRCDIR="${saved_SRCDIR}"
310 niro 4780 }
311 niro 20987 fi
312 niro 4780
313 niro 20977 if [[ ! -z $(typeset -f cmake_src_compile) ]]
314     then
315     # rename the old one
316     old_cmake_src_compile=old$(typeset -f cmake_src_compile)
317     eval "${old_cmake_src_compile}"
318 niro 20987
319 niro 20977 cmake_src_compile()
320     {
321     local abi
322     local abis_to_run="${MULTILIB_ABIS}"
323    
324     # respect MULTILIB_ONLY_ABI variable
325     [[ ! -z ${MULTILIB_ONLY_ABI} ]] && abis_to_run="${MULTILIB_ONLY_ABI}"
326    
327     for abi in ${abis_to_run}
328     do
329     # remove build dir if exist
330     [[ -d ${BUILDDIR}/build-${abi} ]] && rm -rf ${BUILDDIR}/build-${abi}
331    
332     # build outside of the source dir
333     install -d ${BUILDDIR}/build-${abi} || die
334     cd ${BUILDDIR}/build-${abi}
335     done
336    
337     cmake_configure || die
338    
339     for abi in ${abis_to_run}
340     do
341     cd ${BUILDDIR}/build-${abi}
342     abi-${abi} oldmmake $@ || die
343     done
344     }
345 niro 20987 fi
346 niro 20977
347 niro 20978 if [[ ! -z $(typeset -f cmake_src_check) ]]
348     then
349     # rename the old one
350     old_cmake_src_check=old$(typeset -f cmake_src_check)
351     eval "${old_cmake_check}"
352 niro 20987
353 niro 20978 cmake_src_check()
354     {
355     local abi
356     local abis_to_run="${MULTILIB_ABIS}"
357    
358     # respect MULTILIB_ONLY_ABI variable
359     [[ ! -z ${MULTILIB_ONLY_ABI} ]] && abis_to_run="${MULTILIB_ONLY_ABI}"
360    
361     for abi in ${abis_to_run}
362     do
363 niro 22066 # honor inside and outside build-dir builds
364     if [ -d ${BUILDDIR}/build-${abi} ]
365     then
366     cd ${BUILDDIR}/build-${abi}
367     else
368 niro 22067 cd ${SRCDIR}-${abi}
369 niro 22066 fi
370 niro 20978 mmake -j1 -k check || die
371     done
372     }
373 niro 20987 fi
374 niro 20978
375 niro 20977 if [[ ! -z $(typeset -f cmake_src_install) ]]
376     then
377     # rename the old one
378     old_cmake_src_install=old$(typeset -f cmake_src_install)
379     eval "${old_cmake_install}"
380 niro 20987
381 niro 20977 cmake_src_install()
382     {
383     local abi
384     local abis_to_run="${MULTILIB_ABIS}"
385    
386     # respect MULTILIB_ONLY_ABI variable
387     [[ ! -z ${MULTILIB_ONLY_ABI} ]] && abis_to_run="${MULTILIB_ONLY_ABI}"
388    
389     for abi in ${abis_to_run}
390     do
391 niro 22066 # honor inside and outside build-dir builds
392     if [ -d ${BUILDDIR}/build-${abi} ]
393     then
394     cd ${BUILDDIR}/build-${abi}
395     else
396 niro 22067 cd ${SRCDIR}-${abi}
397 niro 22066 fi
398 niro 20977 abi-${abi} oldmmake DESTDIR=${BINDIR} $@ install || die
399     done
400     }
401 niro 20987 fi
402 niro 20977
403 niro 3671 if [[ ! -z $(typeset -f munpack) ]]
404     then
405     # rename the old one
406     old_munpack=old$(typeset -f munpack)
407     eval "${old_munpack}"
408 niro 20987
409 niro 2 munpack()
410     {
411     local abi
412     local abis_to_run="${MULTILIB_ABIS}"
413    
414     # respect MULTILIB_ONLY_ABI variable
415     [[ ! -z ${MULTILIB_ONLY_ABI} ]] && abis_to_run="${MULTILIB_ONLY_ABI}"
416    
417     for abi in ${abis_to_run}
418     do
419     echo -e "${COLBLUE}*** ${COLGREEN}unpacking for ABI -${abi}${COLDEFAULT}"
420 niro 13488 oldmunpack $@ || die
421 niro 2 mv ${SRCDIR} ${SRCDIR}-${abi} || die
422     done
423     }
424 niro 20987 fi
425 niro 2
426 niro 3671 if [[ ! -z $(typeset -f mmake) ]]
427     then
428     # rename the old one
429     old_mmake=old$(typeset -f mmake)
430     eval "${old_mmake}"
431 niro 20987
432 niro 2 mmake()
433     {
434     local abi
435     local abis_to_run="${MULTILIB_ABIS}"
436    
437     # respect MULTILIB_ONLY_ABI variable
438     [[ ! -z ${MULTILIB_ONLY_ABI} ]] && abis_to_run="${MULTILIB_ONLY_ABI}"
439    
440     for abi in ${abis_to_run}
441     do
442     echo -e "${COLBLUE}*** ${COLGREEN}compiling for ABI -${abi}${COLDEFAULT}"
443 niro 11522 cd ${SRCDIR}-${abi}/${SRCSUBDIR}
444 niro 2 abi-${abi} oldmmake $@ || die
445     done
446     }
447 niro 20987 fi
448 niro 2
449 niro 3671 if [[ ! -z $(typeset -f minstall) ]]
450     then
451     # rename the old one
452     old_minstall=old$(typeset -f minstall)
453     eval "${old_minstall}"
454 niro 20987
455 niro 2 minstall()
456     {
457     local abi
458     local abis_to_run="${MULTILIB_ABIS}"
459    
460     # respect MULTILIB_ONLY_ABI variable
461     [[ ! -z ${MULTILIB_ONLY_ABI} ]] && abis_to_run="${MULTILIB_ONLY_ABI}"
462    
463     for abi in ${abis_to_run}
464     do
465     echo -e "${COLBLUE}*** ${COLGREEN}installing for ABI -${abi}${COLDEFAULT}"
466 niro 11522 cd ${SRCDIR}-${abi}/${SRCSUBDIR}
467 niro 2 abi-${abi} oldminstall $@ || die
468     done
469     }
470 niro 20987 fi
471 niro 2
472     minstall_destdir()
473     {
474     local abi
475     local abis_to_run="${MULTILIB_ABIS}"
476    
477     # respect MULTILIB_ONLY_ABI variable
478     [[ ! -z ${MULTILIB_ONLY_ABI} ]] && abis_to_run="${MULTILIB_ONLY_ABI}"
479    
480     for abi in ${abis_to_run}
481     do
482     echo -e "${COLBLUE}*** ${COLGREEN}installing for ABI -${abi}${COLDEFAULT}"
483 niro 11522 cd ${SRCDIR}-${abi}/${SRCSUBDIR}
484 niro 2 make DESTDIR=${BINDIR} $@ install || die
485     done
486     }
487    
488 niro 3671 if [[ ! -z $(typeset -f mpatch) ]]
489     then
490     # rename the old one
491     old_mpatch=old$(typeset -f mpatch)
492     eval "${old_mpatch}"
493 niro 20987
494 niro 2 mpatch()
495     {
496     local abi
497     local abis_to_run="${MULTILIB_ABIS}"
498    
499     # respect MULTILIB_ONLY_ABI variable
500     [[ ! -z ${MULTILIB_ONLY_ABI} ]] && abis_to_run="${MULTILIB_ONLY_ABI}"
501    
502     for abi in ${abis_to_run}
503     do
504     echo -e "${COLBLUE}*** ${COLGREEN}appling patch for ABI -${abi}${COLDEFAULT}"
505 niro 11522 cd ${SRCDIR}-${abi}/${SRCSUBDIR}
506 niro 2 oldmpatch $@ || die
507     done
508     }
509 niro 20987 fi
510 niro 2
511 niro 3671 if [[ ! -z $(typeset -f mlibtoolize) ]]
512     then
513     # rename the old one
514     old_mlibtoolize=old$(typeset -f mlibtoolize)
515     eval "${old_mlibtoolize}"
516 niro 20987
517 niro 2 mlibtoolize()
518     {
519     local abi
520     local abis_to_run="${MULTILIB_ABIS}"
521    
522     # respect MULTILIB_ONLY_ABI variable
523     [[ ! -z ${MULTILIB_ONLY_ABI} ]] && abis_to_run="${MULTILIB_ONLY_ABI}"
524    
525     for abi in ${abis_to_run}
526     do
527     echo -e "${COLBLUE}*** ${COLGREEN}running mlibtoolize for ABI -${abi}${COLDEFAULT}"
528 niro 11522 cd ${SRCDIR}-${abi}/${SRCSUBDIR}
529 niro 2 oldmlibtoolize $@ || die
530     done
531     }
532 niro 20987 fi
533 niro 2
534 niro 9334 if [[ ! -z $(typeset -f mautoreconf) ]]
535     then
536     # rename the old one
537     old_mautoreconf=old$(typeset -f mautoreconf)
538     eval "${old_mautoreconf}"
539 niro 20987
540 niro 9334 mautoreconf()
541     {
542     local abi
543     local abis_to_run="${MULTILIB_ABIS}"
544    
545     # respect MULTILIB_ONLY_ABI variable
546     [[ ! -z ${MULTILIB_ONLY_ABI} ]] && abis_to_run="${MULTILIB_ONLY_ABI}"
547    
548     for abi in ${abis_to_run}
549     do
550     echo -e "${COLBLUE}*** ${COLGREEN}running mautoreconf for ABI -${abi}${COLDEFAULT}"
551 niro 11522 cd ${SRCDIR}-${abi}/${SRCSUBDIR}
552 niro 9334 oldmautoreconf $@ || die
553     done
554     }
555 niro 20987 fi
556 niro 9334
557 niro 9333 if [[ ! -z $(typeset -f minstalldocs) ]]
558     then
559     # rename the old one
560     old_minstalldocs=old$(typeset -f minstalldocs)
561     eval "${old_minstalldocs}"
562 niro 20987
563 niro 2 minstalldocs()
564     {
565     local abi
566     local docfiles
567    
568     local abis_to_run="${MULTILIB_ABIS}"
569    
570     # respect MULTILIB_ONLY_ABI variable
571     [[ ! -z ${MULTILIB_ONLY_ABI} ]] && abis_to_run="${MULTILIB_ONLY_ABI}"
572    
573     for abi in ${abis_to_run}
574     do
575 niro 11522 cd ${SRCDIR}-${abi}/${SRCSUBDIR}
576 niro 9756 oldminstalldocs $@ || die
577 niro 2 done
578     }
579 niro 20987 fi
580 niro 2
581     ##
582     # multilib mbuild wrappers
583     ##
584     multilib_src_prepare()
585     {
586 niro 20903 munpack ${SRCFILE} || die
587 niro 2 }
588    
589     multilib_src_compile()
590     {
591 niro 20977 if [[ ! -z $(typeset -f cmake_src_compile) ]]
592     then
593     cmake_src_compile || die
594     else
595     mconfigure || die
596     mmake || die
597     fi
598 niro 2 }
599    
600 niro 9902 multilib_src_check()
601     {
602 niro 20977 if [[ ! -z $(typeset -f cmake_src_check) ]]
603     then
604     cmake_src_check || die
605     else
606     mmake -j1 -k check || die
607     fi
608 niro 9902 }
609    
610 niro 2 multilib_src_install()
611     {
612 niro 20977 if [[ ! -z $(typeset -f cmake_src_install) ]]
613     then
614 niro 20980 cmake_src_install || die
615 niro 20977 else
616     mmake DESTDIR=${BINDIR} install || die
617     fi
618 niro 2
619     local i
620     for abi in ${MULTILIB_ABIS}
621     do
622 niro 11522 cd ${SRCDIR}-${abi}/${SRCSUBDIR}
623 niro 2 for i in ABOUT-NLS AUTHORS BUGS CHANGES ChangeLog COPYING \
624     FAQ LICENSE NEWS README TODO
625     do
626     if [ -f ${SRCDIR}-${abi}/${i} ]
627     then
628     minstalldocs ${i} || die
629     fi
630     done
631     done
632     }
633    
634 niro 9902 export_inherits multilib src_prepare src_compile src_check src_install