2014-06-11 05:55:54 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=luaposix
|
2023-07-09 13:06:55 +00:00
|
|
|
PKG_VERSION:=36.2.1
|
treewide: remove AUTORELEASE
Automatically compute and substitute current values for all
$(AUTORELEASE) instances as this feature is deprecated and shouldn't be
used.
The following temporary change was made to the core:
diff --git a/rules.mk b/rules.mk
index 57d7995d4fa8..f16367de87a8 100644
--- a/rules.mk
+++ b/rules.mk
@@ -429,7 +429,7 @@ endef
abi_version_str = $(subst -,,$(subst _,,$(subst .,,$(1))))
COMMITCOUNT = $(if $(DUMP),0,$(call commitcount))
-AUTORELEASE = $(if $(DUMP),0,$(call commitcount,1))
+AUTORELEASE = $(if $(DUMP),0,$(shell sed -i "s/\$$(AUTORELEASE)/$(call commitcount,1)/" $(CURDIR)/Makefile))
all:
FORCE: ;
And this command used to fix affected packages:
for i in $(cd feeds/packages; git grep -l PKG_RELEASE:=.*AUTORELEASE | \
sed 's^.*/\([^/]*\)/Makefile^\1^';);
do
make package/$i/download
done
Signed-off-by: Paul Fertser <fercerpav@gmail.com>
2023-04-21 16:32:27 +00:00
|
|
|
PKG_RELEASE:=1
|
2019-08-12 18:32:46 +00:00
|
|
|
|
|
|
|
PKG_SOURCE_URL:=https://codeload.github.com/$(PKG_NAME)/$(PKG_NAME)/tar.gz/v$(PKG_VERSION)?
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
2023-07-09 13:06:55 +00:00
|
|
|
PKG_HASH:=44e5087cd3c47058f9934b90c0017e4cf870b71619f99707dd433074622debb1
|
2014-06-11 07:52:46 +00:00
|
|
|
PKG_MAINTAINER:=Maxim Storchak <m.storchak@gmail.com>
|
2014-08-09 12:42:09 +00:00
|
|
|
PKG_LICENSE:=MIT
|
2014-12-14 10:54:02 +00:00
|
|
|
PKG_LICENSE_FILES:=COPYING
|
2014-06-11 05:55:54 +00:00
|
|
|
|
2019-08-12 18:32:46 +00:00
|
|
|
PKG_BUILD_DEPENDS:=luarocks/host
|
2018-01-07 19:00:47 +00:00
|
|
|
|
2014-06-11 05:55:54 +00:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/luaposix
|
|
|
|
SUBMENU:=Lua
|
|
|
|
SECTION:=lang
|
|
|
|
CATEGORY:=Languages
|
2019-08-12 18:32:46 +00:00
|
|
|
TITLE:=POSIX binding for LuaJIT, Lua 5.1, 5.2 and 5.3
|
|
|
|
URL:=https://github.com/luaposix/luaposix
|
|
|
|
DEPENDS:=+lua +lua-bit32
|
2014-06-11 05:55:54 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/luaposix/description
|
|
|
|
luaposix is a general POSIX library for Lua providing access
|
|
|
|
to various low level libc functions.
|
|
|
|
endef
|
|
|
|
|
2020-01-31 17:02:08 +00:00
|
|
|
TARGET_PATH_PKG:=$(CURDIR)/scripts:$(TARGET_PATH_PKG)
|
|
|
|
|
2019-08-12 18:32:46 +00:00
|
|
|
TARGET_CFLAGS += \
|
|
|
|
-I$(STAGING_DIR)/usr/include
|
|
|
|
|
|
|
|
define Build/Compile
|
|
|
|
cd $(PKG_BUILD_DIR) && \
|
|
|
|
LDFLAGS="$(TARGET_LDFLAGS) $(FPIC)" \
|
|
|
|
CFLAGS="$(TARGET_CFLAGS) $(FPIC)" \
|
|
|
|
CC="$(TARGET_CC)" LD="$(TARGET_CC)" \
|
|
|
|
LUA_PKGNAME=lua5.1 \
|
|
|
|
LUA_LIBDIR=$(STAGING_DIR)/usr/lib/lua \
|
|
|
|
luarocks make --force --deps-mode=none --pack-binary-rock luaposix-$(PKG_VERSION)-1.rockspec \
|
|
|
|
LUA_LIBDIR=$(STAGING_DIR)/usr/lib/lua \
|
|
|
|
LUA_PKGNAME=lua5.1 \
|
|
|
|
CC="$(TARGET_CC)" LD="$(TARGET_CC)" \
|
|
|
|
CFLAGS="$(TARGET_CFLAGS) $(FPIC)" \
|
|
|
|
LDFLAGS="$(TARGET_LDFLAGS)"
|
|
|
|
endef
|
2014-06-11 05:55:54 +00:00
|
|
|
|
|
|
|
define Package/luaposix/install
|
2019-08-12 18:32:46 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/lua/posix/sys
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/linux/posix/*.so $(1)/usr/lib/lua/posix/
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/linux/posix/sys/*.so $(1)/usr/lib/lua/posix/sys/
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/lib/posix/*.lua $(1)/usr/lib/lua/posix/
|
|
|
|
rm -f $(1)/usr/lib/lua/posix/{deprecated,compat}.lua
|
2014-06-11 05:55:54 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,luaposix))
|