X-Git-Url: http://git.rohieb.name/openwrt.git/blobdiff_plain/8f4d88ab8d83d28ef298c1f3f787678174876016..d1d21c882ecf917eaf073cdeaff5cb74c19904b4:/package/lua/Makefile diff --git a/package/lua/Makefile b/package/lua/Makefile index 9d9c77b9e..0a5e8f343 100644 --- a/package/lua/Makefile +++ b/package/lua/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=lua PKG_VERSION:=5.1.4 -PKG_RELEASE:=5 +PKG_RELEASE:=6 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=http://www.lua.org/ftp/ \ @@ -115,10 +115,15 @@ 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) \