From aed50d56ae9b6bf8dbc5a527ea0be4c85b2e34c4 Mon Sep 17 00:00:00 2001 From: Tony Theodore Date: Sat, 12 Sep 2015 21:27:09 +1000 Subject: lua: enable optional native build --- src/lua.mk | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/lua.mk b/src/lua.mk index 8d00b02..41a3347 100644 --- a/src/lua.mk +++ b/src/lua.mk @@ -70,3 +70,14 @@ define $(PKG)_BUILD_SHARED install $($(PKG)_BUILD_COMMON) endef + +define $(PKG)_BUILD_$(BUILD) + $(MAKE) -C '$(1)/src' -j '$(JOBS)' \ + INSTALL_TOP='$(PREFIX)/$(TARGET)' \ + INSTALL='$(INSTALL)' \ + PLAT=$(shell ([ `uname -s` == Darwin ] && echo "macosx") || echo `uname -s` | tr '[:upper:]' '[:lower:]') + $(MAKE) -C '$(1)' -j 1 \ + INSTALL_TOP='$(PREFIX)/$(TARGET)' \ + INSTALL='$(INSTALL)' \ + install +endef -- cgit v0.12