2015-05-18 05:51:48 +02: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
|
|
|
|
|
2020-11-24 01:51:42 +01:00
|
|
|
PKG_NAME:=lz4
|
2022-11-04 04:10:05 +01:00
|
|
|
PKG_VERSION:=1.9.4
|
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 18:32:27 +02:00
|
|
|
PKG_RELEASE:=1
|
2015-05-18 05:51:48 +02:00
|
|
|
|
2019-06-04 03:09:31 +02:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
|
|
PKG_SOURCE_URL:=https://codeload.github.com/lz4/lz4/tar.gz/v$(PKG_VERSION)?
|
2022-11-04 04:10:05 +01:00
|
|
|
PKG_HASH:=0b0e3aa07c8c063ddf40b082bdf7e37a1562bda40a0ff5272957f3e987e0e54b
|
2019-06-04 03:09:31 +02:00
|
|
|
|
2015-05-18 05:51:48 +02:00
|
|
|
PKG_MAINTAINER:=Darik Horn <dajhorn@vanadac.com>
|
2024-02-02 18:37:33 +01:00
|
|
|
PKG_CPE_ID:=cpe:/a:lz4_project:lz4
|
2015-05-18 05:51:48 +02:00
|
|
|
|
2020-07-19 01:16:51 +02:00
|
|
|
PKG_CONFIG_DEPENDS:=CONFIG_PACKAGE_lz4
|
2015-05-18 05:51:48 +02:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
2021-09-08 00:24:45 +02:00
|
|
|
include $(INCLUDE_DIR)/meson.mk
|
2020-07-19 01:16:51 +02:00
|
|
|
|
|
|
|
MESON_BUILD_DIR:=$(PKG_BUILD_DIR)/contrib/meson/openwrt-build
|
2019-06-04 03:09:31 +02:00
|
|
|
|
|
|
|
define Package/lz4/Default
|
|
|
|
SUBMENU:=Compression
|
|
|
|
URL:=https://www.lz4.org/
|
|
|
|
endef
|
2015-05-18 05:51:48 +02:00
|
|
|
|
|
|
|
define Package/liblz4
|
2019-06-04 03:09:31 +02:00
|
|
|
$(call Package/lz4/Default)
|
|
|
|
SECTION:=libs
|
|
|
|
CATEGORY:=Libraries
|
|
|
|
TITLE:=Extremely fast compression
|
|
|
|
LICENSE:=BSD-2-Clause
|
|
|
|
LICENSE_FILES:=LICENSE lib/LICENSE
|
|
|
|
ABI_VERSION:=$(firstword $(subst .,$(space),$(PKG_VERSION)))
|
|
|
|
MENU:=1
|
2015-05-18 05:51:48 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/liblz4/description
|
|
|
|
LZ4 is a compression codec that features a very fast encoder and an
|
|
|
|
even faster decoder. This package provides the liblz4 shared library.
|
|
|
|
endef
|
|
|
|
|
2019-06-04 03:09:31 +02:00
|
|
|
define Package/liblz4/config
|
|
|
|
source "$(SOURCE)/Config.in"
|
|
|
|
endef
|
2015-05-18 05:51:48 +02:00
|
|
|
|
2019-06-04 03:09:31 +02:00
|
|
|
define Package/lz4
|
|
|
|
$(call Package/lz4/Default)
|
|
|
|
SECTION:=utils
|
|
|
|
CATEGORY:=Utilities
|
|
|
|
TITLE:=Extremely fast compression
|
|
|
|
LICENSE:=GPL-2.0-or-later
|
|
|
|
LICENSE_FILES:=LICENSE programs/COPYING
|
|
|
|
DEPENDS:=+liblz4
|
2015-05-18 05:51:48 +02:00
|
|
|
endef
|
|
|
|
|
2019-06-04 03:09:31 +02:00
|
|
|
define Package/lz4/description
|
|
|
|
LZ4 - Fast real-time compression algorithm.
|
|
|
|
This package provides the lz4 binaries.
|
2015-05-18 05:51:48 +02:00
|
|
|
endef
|
|
|
|
|
2020-07-19 01:16:51 +02:00
|
|
|
MESON_ARGS += \
|
2022-11-04 04:10:05 +01:00
|
|
|
-Ddebug-level=0 \
|
|
|
|
-Dunstable=false \
|
|
|
|
-Dprograms=$(if $(CONFIG_PACKAGE_lz4),true,false) \
|
|
|
|
-Dtests=false \
|
|
|
|
-Dcontrib=false \
|
|
|
|
-Dexamples=false \
|
2020-07-19 01:16:51 +02:00
|
|
|
-Db_lto=false
|
2019-06-04 03:09:31 +02:00
|
|
|
|
|
|
|
ifeq ($(CONFIG_LZ4_OPTIMIZE_SPEED),y)
|
|
|
|
TARGET_CFLAGS := $(filter-out -O%,$(TARGET_CFLAGS)) -O3
|
|
|
|
endif
|
|
|
|
|
2020-07-19 01:16:51 +02:00
|
|
|
define Build/InstallDev
|
|
|
|
$(INSTALL_DIR) $(1)/usr/include
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/include/*.h $(1)/usr/include
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/liblz4.so* $(1)/usr/lib
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/liblz4.pc $(1)/usr/lib/pkgconfig
|
|
|
|
endef
|
2019-06-04 03:09:31 +02:00
|
|
|
|
2015-05-18 05:51:48 +02:00
|
|
|
define Package/liblz4/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2019-06-04 03:09:31 +02:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/liblz4.so.$(ABI_VERSION)* $(1)/usr/lib/
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/lz4/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
2020-07-19 01:16:51 +02:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/bin/{lz4,lz4c,lz4cat,unlz4} $(1)/usr/bin/
|
2015-05-18 05:51:48 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,liblz4))
|
2019-06-04 03:09:31 +02:00
|
|
|
$(eval $(call BuildPackage,lz4))
|