2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
15 PKG_SOURCE_URL
:=http
://www.lua.org
/ftp
/ \
16 http
://ftp.gwdg.de
/pub
/languages
/lua
/ \
17 http
://mirrors.dotsrc.org
/lua
/ \
18 http
://www.tecgraf.puc-rio.br
/lua
/ftp
/
19 PKG_MD5SUM
:=d0870f2de55d59c1c8419f36e8fac150
21 include $(INCLUDE_DIR
)/host-build.mk
26 TARGET_CFLAGS
+= -DLUA_USE_LINUX
29 $(MAKE
) -C
$(HOST_BUILD_DIR
)/src luac-host
33 $(INSTALL_BIN
) $(HOST_BUILD_DIR
)/src
/luac-host
$(STAGING_DIR_HOST
)/bin
/luac
37 $(MAKE
) -C
$(HOST_BUILD_DIR
)/src
clean
38 rm -f
$(HOST_BUILD_DIR
)/src
/luac-host
39 $(call Host
/Clean
/Default
)
42 $(eval
$(call HostBuild
))