Magellan Linux

Diff of /branches/R11-unstable/include/multilib.sminc

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 20977 by niro, Wed Feb 19 11:32:53 2014 UTC revision 21293 by niro, Wed Jun 11 11:10:25 2014 UTC
# Line 261  then Line 261  then
261   # rename the old one   # rename the old one
262   old_mconfigure=old$(typeset -f mconfigure)   old_mconfigure=old$(typeset -f mconfigure)
263   eval "${old_mconfigure}"   eval "${old_mconfigure}"
264  fi  
265  mconfigure()  mconfigure()
266  {  {
267   local abi   local abi
# Line 276  mconfigure() Line 276  mconfigure()
276   abi-${abi} oldmconfigure $@ || die   abi-${abi} oldmconfigure $@ || die
277   done   done
278  }  }
279    fi
280    
281  if [[ ! -z $(typeset -f cmake_configure) ]]  if [[ ! -z $(typeset -f cmake_configure) ]]
282  then  then
283   # rename the old one   # rename the old one
284   old_cmake_configure=old$(typeset -f cmake_configure)   old_cmake_configure=old$(typeset -f cmake_configure)
285   eval "${old_cmake_configure}"   eval "${old_cmake_configure}"
286  fi  
287  cmake_configure()  cmake_configure()
288  {  {
289   local abi   local abi
# Line 294  cmake_configure() Line 295  cmake_configure()
295   local saved_SRCDIR="${SRCDIR}"   local saved_SRCDIR="${SRCDIR}"
296   for abi in ${abis_to_run}   for abi in ${abis_to_run}
297   do   do
  cd ${BUILDDIR}/build-${abi}  
298   SRCDIR="${saved_SRCDIR}-${abi}"   SRCDIR="${saved_SRCDIR}-${abi}"
299     # honor inside and outside build-dir builds
300     if [ -d ${BUILDDIR}/build-${abi} ]
301     then
302     cd ${BUILDDIR}/build-${abi}
303     else
304     cd ${SRCDIR}
305     fi
306   abi-${abi} oldcmake_configure $@ || die   abi-${abi} oldcmake_configure $@ || die
307   done   done
308   # restore SRCDIR   # restore SRCDIR
309   SRCDIR="${saved_SRCDIR}"   SRCDIR="${saved_SRCDIR}"
310  }  }
311    fi
312    
313  if [[ ! -z $(typeset -f cmake_src_compile) ]]  if [[ ! -z $(typeset -f cmake_src_compile) ]]
314  then  then
315   # rename the old one   # rename the old one
316   old_cmake_src_compile=old$(typeset -f cmake_src_compile)   old_cmake_src_compile=old$(typeset -f cmake_src_compile)
317   eval "${old_cmake_src_compile}"   eval "${old_cmake_src_compile}"
318  fi  
319  cmake_src_compile()  cmake_src_compile()
320  {  {
321   local abi   local abi
# Line 334  cmake_src_compile() Line 342  cmake_src_compile()
342   abi-${abi} oldmmake $@ || die   abi-${abi} oldmmake $@ || die
343   done   done
344  }  }
345    fi
346    
347    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    
353    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     cd ${BUILDDIR}/build-${abi}
364     mmake -j1 -k check || die
365     done
366    }
367    fi
368    
369  if [[ ! -z $(typeset -f cmake_src_install) ]]  if [[ ! -z $(typeset -f cmake_src_install) ]]
370  then  then
371   # rename the old one   # rename the old one
372   old_cmake_src_install=old$(typeset -f cmake_src_install)   old_cmake_src_install=old$(typeset -f cmake_src_install)
373   eval "${old_cmake_install}"   eval "${old_cmake_install}"
374  fi  
375  cmake_src_install()  cmake_src_install()
376  {  {
377   local abi   local abi
# Line 356  cmake_src_install() Line 387  cmake_src_install()
387   abi-${abi} oldmmake DESTDIR=${BINDIR} $@ install || die   abi-${abi} oldmmake DESTDIR=${BINDIR} $@ install || die
388   done   done
389  }  }
390    fi
391    
392  if [[ ! -z $(typeset -f munpack) ]]  if [[ ! -z $(typeset -f munpack) ]]
393  then  then
394   # rename the old one   # rename the old one
395   old_munpack=old$(typeset -f munpack)   old_munpack=old$(typeset -f munpack)
396   eval "${old_munpack}"   eval "${old_munpack}"
397  fi  
398  munpack()  munpack()
399  {  {
400   local abi   local abi
# Line 378  munpack() Line 410  munpack()
410   mv ${SRCDIR} ${SRCDIR}-${abi} || die   mv ${SRCDIR} ${SRCDIR}-${abi} || die
411   done   done
412  }  }
413    fi
414    
415  if [[ ! -z $(typeset -f mmake) ]]  if [[ ! -z $(typeset -f mmake) ]]
416  then  then
417   # rename the old one   # rename the old one
418   old_mmake=old$(typeset -f mmake)   old_mmake=old$(typeset -f mmake)
419   eval "${old_mmake}"   eval "${old_mmake}"
420  fi  
421  mmake()  mmake()
422  {  {
423   local abi   local abi
# Line 400  mmake() Line 433  mmake()
433   abi-${abi} oldmmake $@ || die   abi-${abi} oldmmake $@ || die
434   done   done
435  }  }
436    fi
437    
438  if [[ ! -z $(typeset -f minstall) ]]  if [[ ! -z $(typeset -f minstall) ]]
439  then  then
440   # rename the old one   # rename the old one
441   old_minstall=old$(typeset -f minstall)   old_minstall=old$(typeset -f minstall)
442   eval "${old_minstall}"   eval "${old_minstall}"
443  fi  
444  minstall()  minstall()
445  {  {
446   local abi   local abi
# Line 422  minstall() Line 456  minstall()
456   abi-${abi} oldminstall $@ || die   abi-${abi} oldminstall $@ || die
457   done   done
458  }  }
459    fi
460    
461  minstall_destdir()  minstall_destdir()
462  {  {
# Line 444  then Line 479  then
479   # rename the old one   # rename the old one
480   old_mpatch=old$(typeset -f mpatch)   old_mpatch=old$(typeset -f mpatch)
481   eval "${old_mpatch}"   eval "${old_mpatch}"
482  fi  
483  mpatch()  mpatch()
484  {  {
485   local abi   local abi
# Line 460  mpatch() Line 495  mpatch()
495   oldmpatch $@ || die   oldmpatch $@ || die
496   done   done
497  }  }
498    fi
499    
500  if [[ ! -z $(typeset -f mlibtoolize) ]]  if [[ ! -z $(typeset -f mlibtoolize) ]]
501  then  then
502   # rename the old one   # rename the old one
503   old_mlibtoolize=old$(typeset -f mlibtoolize)   old_mlibtoolize=old$(typeset -f mlibtoolize)
504   eval "${old_mlibtoolize}"   eval "${old_mlibtoolize}"
505  fi  
506  mlibtoolize()  mlibtoolize()
507  {  {
508   local abi   local abi
# Line 482  mlibtoolize() Line 518  mlibtoolize()
518   oldmlibtoolize $@ || die   oldmlibtoolize $@ || die
519   done   done
520  }  }
521    fi
522    
523  if [[ ! -z $(typeset -f mautoreconf) ]]  if [[ ! -z $(typeset -f mautoreconf) ]]
524  then  then
525   # rename the old one   # rename the old one
526   old_mautoreconf=old$(typeset -f mautoreconf)   old_mautoreconf=old$(typeset -f mautoreconf)
527   eval "${old_mautoreconf}"   eval "${old_mautoreconf}"
528  fi  
529  mautoreconf()  mautoreconf()
530  {  {
531   local abi   local abi
# Line 504  mautoreconf() Line 541  mautoreconf()
541   oldmautoreconf $@ || die   oldmautoreconf $@ || die
542   done   done
543  }  }
544    fi
545    
546  if [[ ! -z $(typeset -f minstalldocs) ]]  if [[ ! -z $(typeset -f minstalldocs) ]]
547  then  then
548   # rename the old one   # rename the old one
549   old_minstalldocs=old$(typeset -f minstalldocs)   old_minstalldocs=old$(typeset -f minstalldocs)
550   eval "${old_minstalldocs}"   eval "${old_minstalldocs}"
551  fi  
552  minstalldocs()  minstalldocs()
553  {  {
554   local abi   local abi
# Line 527  minstalldocs() Line 565  minstalldocs()
565   oldminstalldocs $@ || die   oldminstalldocs $@ || die
566   done   done
567  }  }
568    fi
569    
570  ##  ##
571  # multilib mbuild wrappers  # multilib mbuild wrappers
# Line 561  multilib_src_install() Line 600  multilib_src_install()
600  {  {
601   if [[ ! -z $(typeset -f cmake_src_install) ]]   if [[ ! -z $(typeset -f cmake_src_install) ]]
602   then   then
603   cmake_src_compile || die   cmake_src_install || die
604   else   else
605   mmake DESTDIR=${BINDIR} install || die   mmake DESTDIR=${BINDIR} install || die
606   fi   fi

Legend:
Removed from v.20977  
changed lines
  Added in v.21293