2011-01-09 18:38:47 +01:00
################################################################################
# This file is part of OpenELEC - http://www.openelec.tv
2013-12-21 21:51:48 +01:00
# Copyright (C) 2009-2014 Stephan Raue (stephan@openelec.tv)
2011-01-09 18:38:47 +01:00
#
2013-12-21 21:51:48 +01:00
# OpenELEC is free software: you can redistribute it and/or modify
2011-01-09 18:38:47 +01:00
# it under the terms of the GNU General Public License as published by
2013-12-21 21:51:48 +01:00
# the Free Software Foundation, either version 2 of the License, or
# (at your option) any later version.
2011-01-09 18:38:47 +01:00
#
2013-12-21 21:51:48 +01:00
# OpenELEC is distributed in the hope that it will be useful,
2011-01-09 18:38:47 +01:00
# but WITHOUT ANY WARRANTY; without even the implied warranty of
2013-12-21 21:51:48 +01:00
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
2011-01-09 18:38:47 +01:00
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
2013-12-21 21:51:48 +01:00
# along with OpenELEC. If not, see <http://www.gnu.org/licenses/>.
2011-01-09 18:38:47 +01:00
################################################################################
2010-07-22 07:55:10 +02:00
PKG_NAME = "syslinux"
2013-06-28 20:47:16 +03:00
PKG_VERSION = "5.10"
2010-07-22 07:55:10 +02:00
PKG_REV = "1"
PKG_ARCH = "i386 x86_64"
PKG_LICENSE = "GPL"
PKG_SITE = "http://syslinux.zytor.com/"
2012-12-27 12:16:01 +01:00
PKG_URL = " http://www.kernel.org/pub/linux/utils/boot/ $PKG_NAME / $PKG_NAME - $PKG_VERSION .tar.bz2 "
2010-07-22 07:55:10 +02:00
PKG_DEPENDS = ""
2013-12-27 21:34:41 +01:00
PKG_BUILD_DEPENDS_HOST = "toolchain util-linux:host"
2013-12-29 21:19:14 +02:00
PKG_BUILD_DEPENDS_TARGET = "toolchain util-linux e2fsprogs syslinux:host"
2010-07-22 07:55:10 +02:00
PKG_PRIORITY = "optional"
PKG_SECTION = "tools"
PKG_SHORTDESC = "syslinux: Linux bootloader collection"
PKG_LONGDESC = "The SYSLINUX project covers lightweight linux bootloaders for floppy media (syslinux), network booting (pxelinux) and bootable el-torito cd-roms (isolinux)."
2010-11-25 18:05:27 +01:00
2013-12-27 21:34:41 +01:00
PKG_IS_ADDON = "no"
2010-11-25 18:05:27 +01:00
PKG_AUTORECONF = "no"
2013-12-27 21:34:41 +01:00
PKG_MAKE_OPTS_TARGET = " CC= $CC AR= $AR RANLIB= $RANLIB installer "
# Unset all compiler FLAGS
unset CFLAGS
unset CPPFLAGS
unset CXXFLAGS
unset LDFLAGS
p r e _ b u i l d _ t a r g e t ( ) {
mkdir -p $PKG_BUILD /.$TARGET_NAME
cp -RP $PKG_BUILD /* $PKG_BUILD /.$TARGET_NAME
}
p r e _ b u i l d _ h o s t ( ) {
mkdir -p $PKG_BUILD /.$HOST_NAME
cp -RP $PKG_BUILD /* $PKG_BUILD /.$HOST_NAME
}
p r e _ m a k e _ t a r g e t ( ) {
cd .$TARGET_NAME
}
p r e _ m a k e _ h o s t ( ) {
cd .$HOST_NAME
}
2013-12-29 18:46:38 +02:00
m a k e _ h o s t ( ) {
make CC = $CC \
AR = $AR \
RANLIB = $RANLIB \
CFLAGS = " -I $ROOT / $TOOLCHAIN /include -I../libinstaller -I../libfat -fomit-frame-pointer -D_FILE_OFFSET_BITS=64 " \
LDFLAGS = " -L $ROOT / $TOOLCHAIN /lib " \
installer
}
2013-12-27 21:34:41 +01:00
m a k e i n s t a l l _ h o s t ( ) {
mkdir -p $ROOT /$TOOLCHAIN /bin
cp extlinux/extlinux $ROOT /$TOOLCHAIN /bin
mkdir -p $ROOT /$TOOLCHAIN /share/syslinux
cp com32/menu/vesamenu.c32 $ROOT /$TOOLCHAIN /share/syslinux
cp com32/lib/libcom32.c32 $ROOT /$TOOLCHAIN /share/syslinux
cp com32/libutil/libutil.c32 $ROOT /$TOOLCHAIN /share/syslinux
cp mbr/mbr.bin $ROOT /$TOOLCHAIN /share/syslinux
}
m a k e i n s t a l l _ t a r g e t ( ) {
mkdir -p $INSTALL /usr/bin
cp extlinux/extlinux $INSTALL /usr/bin
cp linux/syslinux $INSTALL /usr/bin
mkdir -p $INSTALL /usr/share/syslinux
cp core/isolinux.bin $INSTALL /usr/share/syslinux
cp mbr/mbr.bin $INSTALL /usr/share/syslinux
cp mbr/gptmbr.bin $INSTALL /usr/share/syslinux
}