wok-next rev 21299
grub4dos: removed build dependency gcc3
author | Hans-G?nter Theisgen |
---|---|
date | Mon Dec 09 16:41:49 2019 +0100 (2019-12-09) |
parents | 9f71e7a85cec |
children | e261ae827810 |
files | grub4dos/receipt |
line diff
1.1 --- a/grub4dos/receipt Mon Dec 09 14:37:51 2019 +0100 1.2 +++ b/grub4dos/receipt Mon Dec 09 16:41:49 2019 +0100 1.3 @@ -11,31 +11,34 @@ 1.4 TARBALL="$PACKAGE-$VERSION-src.zip" 1.5 WGET_URL="$SF_MIRROR/$PACKAGE/$PACKAGE-$VERSION-src.zip" 1.6 1.7 -BUILD_DEPENDS="lzma gcc3" 1.8 +BUILD_DEPENDS="lzma" 1.9 SPLIT="$PACKAGE-linux" 1.10 1.11 -compile_rules() { 1.12 +compile_rules() 1.13 +{ 1.14 sed -i 's/\[ .grub-probe.*\]/mount | grep $grubdir | grep -q xfs/' \ 1.15 util/grub-install.in 1.16 1.17 - sh ./configure \ 1.18 - CC=gcc-3 \ 1.19 - CFLAGS="-march=i486 -Os -pipe" \ 1.20 - --enable-preset-menu=$stuff/menu.lst \ 1.21 - --without-curses \ 1.22 + sh ./configure \ 1.23 + CFLAGS="-march=i486 -Os -pipe" \ 1.24 + --enable-preset-menu=$stuff/menu.lst \ 1.25 + --without-curses \ 1.26 $CONFIGURE_ARGS && 1.27 make && 1.28 make install 1.29 } 1.30 1.31 -genpkg_rules() { 1.32 +genpkg_rules() 1.33 +{ 1.34 case $PACKAGE in 1.35 grub4dos) 1.36 - mkdir -p $fs/usr/share/boot \ 1.37 - $fs/usr/bin 1.38 + mkdir -p $fs/usr/share/boot 1.39 + mkdir -p $fs/usr/bin 1.40 1.41 - lzma e $install/usr/lib/grub/*/grub.exe $fs/usr/share/boot/grub.exe.lzma 1.42 - lzma e $install/usr/lib/grub/*/grldr $fs/usr/share/boot/grldr.lzma 1.43 + lzma e $install/usr/lib/grub/*/grub.exe \ 1.44 + $fs/usr/share/boot/grub.exe.lzma 1.45 + lzma e $install/usr/lib/grub/*/grldr \ 1.46 + $fs/usr/share/boot/grldr.lzma 1.47 1.48 cp $install/usr/lib/grub/*/bootlace.com $fs/usr/bin/bootlace 1.49 chmod +x $fs/usr/bin/bootlace 1.50 @@ -43,11 +46,13 @@ 1.51 ;; 1.52 grub4dos-linux) 1.53 libarch=$(basename `ls $install/usr/lib/grub`) 1.54 + 1.55 mkdir -p $fs/usr/lib/grub/$libarch 1.56 - cp -a $install/usr/bin $fs/usr 1.57 - cp -a $install/usr/sbin $fs/usr 1.58 - cp -a $install/usr/lib/grub/$libarch/*stage* \ 1.59 - $fs/usr/lib/grub/$libarch 1.60 + 1.61 + cp -a $install/usr/bin $fs/usr 1.62 + cp -a $install/usr/sbin $fs/usr 1.63 + cp -a $install/usr/lib/grub/$libarch/*stage* \ 1.64 + $fs/usr/lib/grub/$libarch 1.65 CAT="system-tools|linux files" 1.66 PROVIDE="grub" 1.67 ;;