2008-10-25 07:40:27 +00:00
|
|
|
# Template file for 'syslinux'
|
|
|
|
pkgname=syslinux
|
2014-10-07 03:25:56 +00:00
|
|
|
version=6.03
|
|
|
|
revision=1
|
2014-01-11 17:18:10 +00:00
|
|
|
hostmakedepends="perl python nasm"
|
|
|
|
makedepends="gnu-efi-libs libuuid-devel"
|
2008-10-25 07:40:27 +00:00
|
|
|
short_desc="A boot loader for the Linux operating system"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2011-06-29 18:02:29 +00:00
|
|
|
homepage="http://syslinux.zytor.com/wiki/index.php/The_Syslinux_Project"
|
|
|
|
license="GPL-2"
|
2012-10-23 21:01:25 +00:00
|
|
|
distfiles="${KERNEL_SITE}/utils/boot/$pkgname/$pkgname-$version.tar.xz"
|
2014-10-07 03:25:56 +00:00
|
|
|
checksum=26d3986d2bea109d5dc0e4f8c4822a459276cf021125e8c9f23c3cca5d8c850e
|
2014-08-27 16:49:12 +00:00
|
|
|
only_for_archs="i686 x86_64"
|
2014-01-11 17:18:10 +00:00
|
|
|
|
|
|
|
pre_build() {
|
|
|
|
# Do not try to build the Windows or DOS installers and DIAG files
|
|
|
|
sed 's|diag libinstaller dos win32 win64 dosutil txt|libinstaller txt|g' -i Makefile
|
|
|
|
sed 's|win32/syslinux.exe win64/syslinux64.exe||g' -i Makefile
|
|
|
|
sed 's|dosutil/*.com dosutil/*.sys||g' -i Makefile
|
|
|
|
sed 's|dos/syslinux.com||g' -i Makefile
|
|
|
|
sed 's|INSTALLSUBDIRS = com32 utils dosutil|INSTALLSUBDIRS = com32 utils|g' -i Makefile
|
|
|
|
sed 's|install -m 644 -c $(INSTALL_DIAG) $(INSTALLROOT)$(DIAGDIR)|# install -m 644 -c $(INSTALL_DIAG) $(INSTALLROOT)$(DIAGDIR)|g' -i Makefile
|
|
|
|
# Fix FHS manpage path
|
|
|
|
sed 's|/usr/man|/usr/share/man|g' -i mk/syslinux.mk
|
|
|
|
}
|
2011-12-10 08:44:45 +00:00
|
|
|
do_build() {
|
2012-06-12 10:05:45 +00:00
|
|
|
unset CFLAGS LDFLAGS
|
2014-01-11 17:18:10 +00:00
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
|
|
i686*) sed -e 's,^firmware =.*,firmware = bios efi32,g' -i Makefile;;
|
|
|
|
x86_64*) sed -e 's,^firmware =.*,firmware = bios efi64,g' -i Makefile;;
|
|
|
|
esac
|
2012-06-12 10:05:45 +00:00
|
|
|
make installer
|
2008-10-27 05:12:30 +00:00
|
|
|
}
|
2011-12-10 08:44:45 +00:00
|
|
|
do_install() {
|
2011-07-07 15:45:05 +00:00
|
|
|
make INSTALLROOT=${DESTDIR} install
|
2014-01-11 17:18:10 +00:00
|
|
|
mv ${DESTDIR}/sbin/* ${DESTDIR}/usr/bin
|
|
|
|
# Remove completely development stuff.
|
|
|
|
rm -r ${DESTDIR}/usr/share/syslinux/com32/include
|
|
|
|
rm ${DESTDIR}/usr/share/syslinux/com32/*.a
|
2009-12-11 11:25:01 +00:00
|
|
|
}
|