diff options
author | Colby Whitney <colby.whitney@luxul.com> | 2019-07-02 11:18:00 -0600 |
---|---|---|
committer | Rafał Miłecki <rafal@milecki.pl> | 2019-07-11 18:38:51 +0200 |
commit | c52ca08d40086c6f5aff168178dc1948eae19b4a (patch) | |
tree | 1de62e184916034feabf25ba36ab0dca2b15ca65 /package/utils/lua5.3/Makefile | |
parent | 53daa51cf2fdfd625d33cabf21d4f79ecfa11a51 (diff) | |
download | upstream-c52ca08d40086c6f5aff168178dc1948eae19b4a.tar.gz upstream-c52ca08d40086c6f5aff168178dc1948eae19b4a.tar.bz2 upstream-c52ca08d40086c6f5aff168178dc1948eae19b4a.zip |
lua5.3: build shared library
Update the lua5.3 package to build a shared object just like the old lua
package. Ported / recreated the same patch number as the other lua
package. Built and tested library / interpreter on BCM5301X.
Signed-off-by: Colby Whitney <colby.whitney@luxul.com>
Diffstat (limited to 'package/utils/lua5.3/Makefile')
-rw-r--r-- | package/utils/lua5.3/Makefile | 28 |
1 files changed, 26 insertions, 2 deletions
diff --git a/package/utils/lua5.3/Makefile b/package/utils/lua5.3/Makefile index de178b55ff..99e7a8309a 100644 --- a/package/utils/lua5.3/Makefile +++ b/package/utils/lua5.3/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=lua PKG_VERSION:=5.3.5 -PKG_RELEASE:=2 +PKG_RELEASE:=3 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=http://www.lua.org/ftp/ \ @@ -40,8 +40,23 @@ define Package/lua5.3/Default/description programming, data-driven programming, and data description. endef +define Package/liblua5.3 +$(call Package/lua53/Default) + SUBMENU:= + SECTION:=libs + CATEGORY:=Libraries + TITLE+= (libraries) + ABI_VERSION:=5.3 +endef + +define Package/liblua5.3/description +$(call Package/lua53/Default/description) + This package contains the Lua shared libraries, needed by other programs. +endef + define Package/lua5.3 $(call Package/lua5.3/Default) + DEPENDS:=+liblua5.3 TITLE+= (interpreter) endef @@ -52,6 +67,7 @@ endef define Package/luac5.3 $(call Package/lua5.3/Default) + DEPENDS:=+liblua5.3 TITLE+= (compiler) endef @@ -108,7 +124,14 @@ define Build/InstallDev $(INSTALL_DIR) $(1)/usr/include/lua5.3 $(1)/usr/lib $(CP) $(PKG_INSTALL_DIR)/usr/include/lua5.3/lua{,lib,conf}.h $(1)/usr/include/lua5.3/ $(CP) $(PKG_INSTALL_DIR)/usr/include/lua5.3/lauxlib.h $(1)/usr/include/lua5.3/ - $(CP) $(PKG_INSTALL_DIR)/usr/lib/liblua5.3.a $(1)/usr/lib/ + $(INSTALL_DIR) $(1)/usr/lib + $(CP) $(PKG_INSTALL_DIR)/usr/lib/liblua5.3.{a,so*} $(1)/usr/lib/ + $(LN) liblua5.3.so.0.0.0 $(1)/usr/lib/liblualib5.3.so +endef + +define Package/liblua5.3/install + $(INSTALL_DIR) $(1)/usr/lib + $(CP) $(PKG_INSTALL_DIR)/usr/lib/liblua5.3.so* $(1)/usr/lib/ endef define Package/lua5.3/install @@ -121,6 +144,7 @@ define Package/luac5.3/install $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/luac5.3 $(1)/usr/bin/ endef +$(eval $(call BuildPackage,liblua5.3)) $(eval $(call BuildPackage,lua5.3)) $(eval $(call BuildPackage,luac5.3)) $(eval $(call HostBuild)) |