Magellan Linux

Diff of /trunk/include/mbuild.sminc

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

revision 9880 by niro, Sat Jan 14 01:48:34 2012 UTC revision 29803 by niro, Thu Oct 12 13:32:33 2017 UTC
# Line 9  mbuild_src_prepare() Line 9  mbuild_src_prepare()
9  mbuild_src_compile()  mbuild_src_compile()
10  {  {
11   cd ${SRCDIR}   cd ${SRCDIR}
12     if [[ -x ./configure ]]
13     then
14     mconfigure || die
15     else
16     echo "mbuild: No configure found, skipping!"
17     fi
18    
19     mmake || die
20    }
21    
22    mbuild_multilib_src_compile()
23    {
24   mconfigure || die   mconfigure || die
25   mmake || die   mmake || die
26  }  }
27    
28  mbuild_src_check()  mbuild_src_check()
29  {  {
30   cd ${SRCDIR}   if [[ ${MULTILIB_BUILD} != true ]]
31   mmake -k check || die   then
32     cd ${SRCDIR}
33     fi
34     mmake -j1 -k check || die
35  }  }
36    
37  mbuild_src_install()  mbuild_src_install()
# Line 35  mbuild_src_install() Line 50  mbuild_src_install()
50   done   done
51  }  }
52    
53  export_inherits mbuild src_prepare src_compile src_check src_install  mbuild_multilib_src_install()
54    {
55     mmake DESTDIR=${BINDIR} install || die
56    
57     local i
58     local abi
59     local abis_to_run="${MULTILIB_ABIS}"
60    
61     # respect MULTILIB_ONLY_ABI variable
62     [[ ! -z ${MULTILIB_ONLY_ABI} ]] && abis_to_run="${MULTILIB_ONLY_ABI}"
63     for abi in ${abis_to_run}
64     do
65     cd ${SRCDIR}-${abi}/${SRCSUBDIR}
66     for i in ABOUT-NLS AUTHORS BUGS CHANGES ChangeLog COPYING \
67     FAQ LICENSE NEWS README TODO
68     do
69     if [ -f ${SRCDIR}-${abi}/${i} ]
70     then
71     minstalldocs ${i} || die
72     fi
73     done
74     done
75    }
76    
77    export_inherits mbuild src_prepare src_check
78    if [[ ${MULTILIB_BUILD} = true ]]
79    then
80     export_inherits mbuild_multilib src_compile src_install
81    else
82     export_inherits mbuild src_compile src_install
83    fi

Legend:
Removed from v.9880  
changed lines
  Added in v.29803