Magellan Linux

Diff of /smage/branches/alx-0_6_0/core/grub/grub-1.99-r1.smage2

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

revision 2539 by niro, Fri Jul 1 17:37:45 2011 UTC revision 2540 by niro, Fri Jul 1 22:29:16 2011 UTC
# Line 16  DEPEND=">= sys-libs/ncurses-5.9 Line 16  DEPEND=">= sys-libs/ncurses-5.9
16  SRCFILE="${PNAME}-${PVER}.tar.gz"  SRCFILE="${PNAME}-${PVER}.tar.gz"
17  SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"  SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
18    
19  sminclude mbuild mtools  sminclude mtools
20    
21  SRC_URI=(  SRC_URI=(
22   gnu://${PNAME}/${SRCFILE}   gnu://${PNAME}/${SRCFILE}
23   mirror://${PNAME}/${SRCFILE}   mirror://${PNAME}/${SRCFILE}
24     mirror://${PNAME}/${PNAME}-${PVER}-alx.patch
25  )  )
26    
27  UP2DATE="updatecmd_gnu ${PNAME} gz"  UP2DATE="updatecmd_gnu ${PNAME} gz"
# Line 30  UP2DATE="updatecmd_gnu ${PNAME} gz" Line 31  UP2DATE="updatecmd_gnu ${PNAME} gz"
31  unset CFLAGS  unset CFLAGS
32  unset CXXFLAGS  unset CXXFLAGS
33    
34    src_prepare()
35    {
36     munpack ${SRCFILE} || die
37     cd ${SRCDIR}
38    
39     # fixes some issues with busybox
40     mpatch ${PNAME}-${PVER}-alx.patch || die
41    }
42    
43  src_compile()  src_compile()
44  {  {
45   cd ${SRCDIR}   cd ${SRCDIR}
# Line 40  src_compile() Line 50  src_compile()
50   --libdir=/$(mlibdir) \   --libdir=/$(mlibdir) \
51   --disable-efiemu \   --disable-efiemu \
52   --disable-werror \   --disable-werror \
53     --disable-nls \
54   || die   || die
55   mmake || die   mmake || die
56  }  }
# Line 53  src_install() Line 64  src_install()
64   # fix a missing symlink   # fix a missing symlink
65   mlink /bin/grub-mkimage /sbin || die   mlink /bin/grub-mkimage /sbin || die
66    
67   minstalldir ${BINDIR}/boot/grub || die   minstalldir /boot/grub || die
68   cat > ${BINDIR}/boot/grub/grub.cfg.example << "EOF"   cat > ${BINDIR}/boot/grub/grub.cfg.example << "EOF"
69  default 0  default 0
70  timeout 30  timeout 30

Legend:
Removed from v.2539  
changed lines
  Added in v.2540