Added a few lua modules (lpeg, md5, cjson, copas, coxpcall, lzlib, rings, rs232, wsapi, xavante, lzmq, mobdebug), zeromq
Signed-off-by: Dirk Chang <dirk@kooiot.com>
2015-04-27 12:34:27 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2015 OpenWrt.org
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=lua-rs232
|
2019-12-15 03:09:43 +00:00
|
|
|
PKG_SOURCE_DATE:=2019-11-20
|
|
|
|
PKG_SOURCE_VERSION:=c106c94d1a5a84e8582c936528303528608776c2
|
2023-07-01 18:30:42 +00:00
|
|
|
PKG_RELEASE:=3
|
Added a few lua modules (lpeg, md5, cjson, copas, coxpcall, lzlib, rings, rs232, wsapi, xavante, lzmq, mobdebug), zeromq
Signed-off-by: Dirk Chang <dirk@kooiot.com>
2015-04-27 12:34:27 +00:00
|
|
|
|
|
|
|
PKG_SOURCE_PROTO:=git
|
2019-10-11 03:58:39 +00:00
|
|
|
PKG_SOURCE_URL:=https://github.com/srdgame/librs232
|
2019-12-15 03:09:43 +00:00
|
|
|
PKG_MIRROR_HASH:=6fcabfd1501b3a7719229334ce73f1cc74f5ac5795b8faf6d65eb2ae6b14f9a5
|
2019-10-11 03:58:39 +00:00
|
|
|
|
|
|
|
PKG_MAINTAINER:=Dirk Chang <dirk@kooiot.com>
|
|
|
|
PKG_LICENSE:=MIT
|
|
|
|
PKG_LICENSE_FILES:=COPYING
|
Added a few lua modules (lpeg, md5, cjson, copas, coxpcall, lzlib, rings, rs232, wsapi, xavante, lzmq, mobdebug), zeromq
Signed-off-by: Dirk Chang <dirk@kooiot.com>
2015-04-27 12:34:27 +00:00
|
|
|
|
2019-10-11 03:58:39 +00:00
|
|
|
PKG_FIXUP:=autoreconf
|
Added a few lua modules (lpeg, md5, cjson, copas, coxpcall, lzlib, rings, rs232, wsapi, xavante, lzmq, mobdebug), zeromq
Signed-off-by: Dirk Chang <dirk@kooiot.com>
2015-04-27 12:34:27 +00:00
|
|
|
PKG_INSTALL:=1
|
2019-10-11 03:58:39 +00:00
|
|
|
PKG_BUILD_PARALLEL:=1
|
|
|
|
PKG_BUILD_DEPENDS:=lua/host
|
2023-03-23 08:09:13 +00:00
|
|
|
PKG_BUILD_FLAGS:=gc-sections
|
Added a few lua modules (lpeg, md5, cjson, copas, coxpcall, lzlib, rings, rs232, wsapi, xavante, lzmq, mobdebug), zeromq
Signed-off-by: Dirk Chang <dirk@kooiot.com>
2015-04-27 12:34:27 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/lua-rs232
|
|
|
|
SUBMENU:=Lua
|
|
|
|
SECTION:=lang
|
|
|
|
CATEGORY:=Languages
|
|
|
|
TITLE:=Lua Serial Library
|
|
|
|
URL:=https://github.com/srdgame/librs232
|
|
|
|
DEPENDS:= +lua
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/lua-rs232/description
|
|
|
|
multiplatform library for serial communications over RS-232
|
|
|
|
endef
|
|
|
|
|
2023-03-23 08:09:13 +00:00
|
|
|
TARGET_LDFLAGS += -Wl,--as-needed
|
2021-08-11 14:17:30 +00:00
|
|
|
MAKE_FLAGS += luadir='$$$${prefix}/lib/lua' luaexecdir='$$$${exec_prefix}/lib/lua'
|
Added a few lua modules (lpeg, md5, cjson, copas, coxpcall, lzlib, rings, rs232, wsapi, xavante, lzmq, mobdebug), zeromq
Signed-off-by: Dirk Chang <dirk@kooiot.com>
2015-04-27 12:34:27 +00:00
|
|
|
|
2019-10-11 03:58:39 +00:00
|
|
|
define Build/InstallDev
|
|
|
|
$(INSTALL_DIR) $(1)/usr/include/librs232
|
|
|
|
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/include/librs232/rs232* $(1)/usr/include/librs232
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/librs232* $(1)/usr/lib/
|
2019-12-15 03:09:43 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/lua
|
2021-08-11 14:17:30 +00:00
|
|
|
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/lua/luars232* $(1)/usr/lib/lua
|
2019-10-11 03:58:39 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig
|
|
|
|
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/librs232.pc $(1)/usr/lib/pkgconfig
|
Added a few lua modules (lpeg, md5, cjson, copas, coxpcall, lzlib, rings, rs232, wsapi, xavante, lzmq, mobdebug), zeromq
Signed-off-by: Dirk Chang <dirk@kooiot.com>
2015-04-27 12:34:27 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/lua-rs232/install
|
2019-10-11 03:58:39 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/librs232.so* $(1)/usr/lib/
|
2019-12-15 03:09:43 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/lua
|
2021-08-11 14:17:30 +00:00
|
|
|
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/lua/luars232* $(1)/usr/lib/lua
|
Added a few lua modules (lpeg, md5, cjson, copas, coxpcall, lzlib, rings, rs232, wsapi, xavante, lzmq, mobdebug), zeromq
Signed-off-by: Dirk Chang <dirk@kooiot.com>
2015-04-27 12:34:27 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,lua-rs232))
|