mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-12-25 10:15:11 +02:00
dda84a264b
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@11304 3c298f89-4303-0410-b956-a3cf2f4a3e73
43 lines
906 B
Makefile
43 lines
906 B
Makefile
#
|
|
# Copyright (C) 2006 OpenWrt.org
|
|
#
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
# See /LICENSE for more information.
|
|
#
|
|
# $Id$
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=lua
|
|
PKG_VERSION:=5.1.3
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
PKG_SOURCE_URL:=http://www.lua.org/ftp/ \
|
|
http://ftp.gwdg.de/pub/languages/lua/ \
|
|
http://mirrors.dotsrc.org/lua/ \
|
|
http://www.tecgraf.puc-rio.br/lua/ftp/
|
|
PKG_MD5SUM:=a70a8dfaa150e047866dc01a46272599
|
|
|
|
include $(INCLUDE_DIR)/host-build.mk
|
|
|
|
define Build/Configure
|
|
endef
|
|
|
|
TARGET_CFLAGS += -DLUA_USE_LINUX
|
|
|
|
define Build/Compile
|
|
$(MAKE) -C $(PKG_BUILD_DIR)/src luac-host
|
|
endef
|
|
|
|
define Build/Install
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/luac-host $(STAGING_DIR_HOST)/bin/luac
|
|
endef
|
|
|
|
define Build/Clean
|
|
$(MAKE) -C $(PKG_BUILD_DIR)/src clean
|
|
rm -f $(PKG_BUILD_DIR)/src/luac-host
|
|
$(call Build/Clean/Default)
|
|
endef
|
|
|
|
$(eval $(call HostBuild))
|