2017-01-17 06:52:08 +00:00
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=luv
|
2021-04-14 03:13:47 +00:00
|
|
|
PKG_VERSION:=1.40.0-0
|
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:=2
|
2017-01-17 06:52:08 +00:00
|
|
|
|
2018-12-16 06:49:16 +00:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
|
|
PKG_SOURCE_URL:=https://github.com/luvit/luv/releases/download/$(PKG_VERSION)
|
2021-04-14 03:13:47 +00:00
|
|
|
PKG_HASH:=24473a081c3928eec2a352369cbafda97059574f4a4276861274473e7c7d17a0
|
2017-01-17 06:52:08 +00:00
|
|
|
|
2018-12-16 06:49:16 +00:00
|
|
|
PKG_MAINTAINER:=Morteza Milani <milani@pichak.co>
|
2017-01-17 06:52:08 +00:00
|
|
|
PKG_LICENSE:=Apache-2.0
|
|
|
|
PKG_LICENSE_FILES:=LICENSE
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
2021-06-10 23:27:06 +00:00
|
|
|
include $(INCLUDE_DIR)/cmake.mk
|
2017-01-17 06:52:08 +00:00
|
|
|
|
|
|
|
define Package/luv
|
|
|
|
SUBMENU:=Lua
|
|
|
|
SECTION:=lang
|
|
|
|
CATEGORY:=Languages
|
|
|
|
TITLE:=Luv
|
|
|
|
URL:=https://github.com/luvit/luv
|
|
|
|
DEPENDS:=+libuv +!LUV_USE_LUAJIT_ENGINE:lua
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/luv/description
|
|
|
|
Bare libuv bindings for lua
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/luv/config
|
|
|
|
source "$(SOURCE)/Config.in"
|
|
|
|
endef
|
|
|
|
|
2021-04-14 03:13:47 +00:00
|
|
|
CMAKE_OPTIONS += \
|
|
|
|
-DLUA_BUILD_TYPE=System \
|
|
|
|
-DWITH_SHARED_LIBUV=ON \
|
|
|
|
-DBUILD_MODULE=OFF \
|
|
|
|
-DBUILD_SHARED_LIBS=ON \
|
|
|
|
-DWITH_LUA_ENGINE=$(if $(CONFIG_LUV_USE_LUAJIT_ENGINE),Luajit,Lua)
|
2017-01-17 06:52:08 +00:00
|
|
|
|
2021-04-14 03:13:47 +00:00
|
|
|
define Build/InstallDev
|
|
|
|
$(INSTALL_DIR) $(1)/usr/include/luv
|
|
|
|
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/include/luv/*.h $(1)/usr/include/luv
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/lua
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libluv.so* $(1)/usr/lib
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libluv.pc $(1)/usr/lib/pkgconfig
|
|
|
|
$(SED) 's,/usr/include,$$$${prefix}/include,g' $(1)/usr/lib/pkgconfig/libluv.pc
|
|
|
|
$(SED) 's,/usr/lib,$$$${exec_prefix}/lib,g' $(1)/usr/lib/pkgconfig/libluv.pc
|
|
|
|
endef
|
2017-01-17 06:52:08 +00:00
|
|
|
|
|
|
|
define Package/luv/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/lua
|
2021-04-14 03:13:47 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libluv.so.1.40.0 $(1)/usr/lib/lua/luv.so
|
2017-01-17 06:52:08 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,luv))
|