summaryrefslogtreecommitdiff
path: root/package/syslinux/Makefile
blob: b7effc01371299f6c0eb5d8c0474463961cfc182 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# This file is part of the OpenADK project. OpenADK is copyrighted
# material, please see the LICENCE file in the top-level directory.

include $(TOPDIR)/rules.mk

PKG_NAME:=		syslinux
PKG_VERSION:=		4.03
PKG_RELEASE:=		1
PKG_MD5SUM:=		086ac1c569d226a5e2ae3d605de09a1d
PKG_DESCR:=		lightweight bootloaders
PKG_SECTION:=		misc
PKG_BUILDDEP:=		nasm
PKG_URL:=		http://syslinux.zytor.com/wiki/index.php/The_Syslinux_Project
PKG_SITES:=		http://www.kernel.org/pub/linux/utils/boot/syslinux/

PKG_CFLINE_SYSLINUX:=	depends on ADK_NATIVE
PKG_HOST_DEPENDS:=	!darwin !netbsd !openbsd !cygwin !freebsd

include $(TOPDIR)/mk/package.mk

$(eval $(call PKG_template,SYSLINUX,$(PKG_NAME),$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))

CONFIG_STYLE:=		manual
FAKE_FLAGS+=		INSTALLROOT=${WRKINST}
TARGET_CFLAGS+=		-std=c99

post-install:
	$(INSTALL_DIR) $(IDIR_SYSLINUX)/usr/bin
	$(INSTALL_BIN) $(WRKINST)/usr/bin/syslinux \
		$(IDIR_SYSLINUX)/usr/bin

include ${TOPDIR}/mk/pkg-bottom.mk