X-Git-Url: https://git.enpas.org/?a=blobdiff_plain;f=package%2Flua%2FMakefile;h=96fa57eaa5bdf2a109c86e36f5a6bad68b8e74a4;hb=ef286ca0dcd214c8509342d38d720611af88bba9;hp=e314341d94f3cbebaf0c4b12c12848e4bc204430;hpb=dfe29b760d974565e442ae25b5d6f50cd4851fc4;p=openwrt.git diff --git a/package/lua/Makefile b/package/lua/Makefile index e314341d94..96fa57eaa5 100644 --- a/package/lua/Makefile +++ b/package/lua/Makefile @@ -1,5 +1,5 @@ # -# Copyright (C) 2006-2009 OpenWrt.org +# Copyright (C) 2006-2011 OpenWrt.org # # This is free software, licensed under the GNU General Public License v2. # See /LICENSE for more information. @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=lua PKG_VERSION:=5.1.4 -PKG_RELEASE:=5 +PKG_RELEASE:=8 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=http://www.lua.org/ftp/ \ @@ -111,14 +111,19 @@ define Build/Compile install endef -define Build/Configure +define Host/Configure $(SED) 's,"/usr/local/","$(STAGING_DIR_HOST)/",' $(HOST_BUILD_DIR)/src/luaconf.h endef -LUA_OS.Darwin:=macosx -LUA_OS.FreeBSD:=freebsd -LUA_OS:=$(LUA_OS.$(HOST_OS)) -LUA_OS?=linux +ifeq ($(HOST_OS),Darwin) + LUA_OS:=macosx +else + ifeq ($(HOST_OS),FreeBSD) + LUA_OS:=freebsd + else + LUA_OS:=linux + endif +endif define Host/Compile $(MAKE) -C $(HOST_BUILD_DIR) \