mirror of
https://github.com/outbackdingo/ports.git
synced 2026-01-27 18:20:07 +00:00
33 lines
829 B
Plaintext
Executable File
33 lines
829 B
Plaintext
Executable File
# description : Collection of boot loaders for the Linux operating system
|
|
# depends : mtools
|
|
|
|
name=syslinux
|
|
version=6.03
|
|
release=4
|
|
source="http://www.kernel.org/pub/linux/utils/boot/$name/$name-$version.tar.xz
|
|
$name-sysmacros.patch
|
|
fix-build-with-glibc-2.36.patch
|
|
isolinux.cfg
|
|
splash.png"
|
|
|
|
build() {
|
|
cd $name-$version
|
|
|
|
mkdir venom
|
|
for i in chain.c32 isolinux.bin ldlinux.c32 libutil.c32 reboot.c32 vesamenu.c32 libcom32.c32 poweroff.c32; do
|
|
cp $(find bios -name $i) venom
|
|
done
|
|
|
|
patch -p1 -i $SRC/fix-build-with-glibc-2.36.patch
|
|
patch -p1 -i $SRC/$name-sysmacros.patch
|
|
|
|
export CFLAGS="$CFLAGS -fcommon"
|
|
|
|
make OPTFLAGS="$CFLAGS" installer
|
|
make OPTFLAGS="$CFLAGS" INSTALLROOT=$PKG MANDIR=/usr/share/man install
|
|
|
|
cp venom/* $PKG/usr/share/syslinux
|
|
cp $SRC/isolinux.cfg $SRC/splash.png $PKG/usr/share/$name
|
|
}
|
|
|