diff options
author | Boris Nagaev <bnagaev@gmail.com> | 2015-11-29 13:33:15 (GMT) |
---|---|---|
committer | Boris Nagaev <bnagaev@gmail.com> | 2015-12-06 02:38:23 (GMT) |
commit | 08488f9ecc3a9de115b3c68f059f493e331fc60b (patch) | |
tree | 657f04336f74a372d13b7914e8b8e857aed6499b /src | |
parent | 580be671e5ba0a3748c3bf6b275aca5062f0c3b8 (diff) | |
download | mxe-08488f9ecc3a9de115b3c68f059f493e331fc60b.zip mxe-08488f9ecc3a9de115b3c68f059f493e331fc60b.tar.gz mxe-08488f9ecc3a9de115b3c68f059f493e331fc60b.tar.bz2 |
lua: enable native target
Diffstat (limited to 'src')
-rw-r--r-- | src/lua.mk | 15 |
1 files changed, 7 insertions, 8 deletions
@@ -10,7 +10,9 @@ $(PKG)_CHECKSUM := c740c7bb23a936944e1cc63b7c3c5351a8976d7867c5252c8854f7b2af9da $(PKG)_SUBDIR := lua-$($(PKG)_VERSION) $(PKG)_FILE := lua-$($(PKG)_VERSION).tar.gz $(PKG)_URL := http://www.lua.org/ftp/$($(PKG)_FILE) +$(PKG)_TARGETS := $(BUILD) $(MXE_TARGETS) $(PKG)_DEPS := gcc +$(PKG)_DEPS_$(BUILD) := define $(PKG)_UPDATE $(WGET) -q -O- 'http://www.lua.org/download.html' | \ @@ -73,14 +75,11 @@ define $(PKG)_BUILD_SHARED $($(PKG)_BUILD_COMMON) endef -# disable native build temporarily -define $(PKG)_BUILD_DISABLED +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 + $(INSTALL) '$(1)/src/lua' '$(PREFIX)/bin/$(BUILD)-lua' + ln -sf '$(BUILD)-lua' '$(PREFIX)/bin/lua' + $(INSTALL) '$(1)/src/luac' '$(PREFIX)/bin/$(BUILD)-luac' + ln -sf '$(BUILD)-luac' '$(PREFIX)/bin/luac' endef |