2020-05-13 18:22:12 +00:00
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=zstd
|
2024-04-02 11:18:50 +00:00
|
|
|
PKG_VERSION:=1.5.6
|
2020-05-13 18:22:12 +00:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
2021-01-21 04:54:57 +00:00
|
|
|
PKG_SOURCE_URL:=https://github.com/facebook/zstd/releases/download/v$(PKG_VERSION)
|
2024-04-02 11:18:50 +00:00
|
|
|
PKG_HASH:=8c29e06cf42aacc1eafc4077ae2ec6c6fcb96a626157e0593d5e82a34fd403c1
|
2020-05-13 18:22:12 +00:00
|
|
|
|
|
|
|
PKG_LICENSE:=BSD-3-Clause
|
|
|
|
PKG_LICENSE_FILES:=LICENSE
|
|
|
|
PKG_CPE_ID:=cpe:/a:facebook:zstandard
|
|
|
|
|
2024-04-02 23:07:14 +00:00
|
|
|
HOST_BUILD_PARALLEL:=1
|
2022-01-31 03:03:41 +00:00
|
|
|
|
2024-04-02 23:07:14 +00:00
|
|
|
include $(INCLUDE_DIR)/host-build.mk
|
2022-01-31 03:03:41 +00:00
|
|
|
|
|
|
|
HOSTCC:= $(HOSTCC_NOCACHE)
|
2020-05-13 18:22:12 +00:00
|
|
|
|
2024-04-02 23:07:14 +00:00
|
|
|
HOST_MAKE_FLAGS += \
|
|
|
|
ZSTD_LEGACY_SUPPORT=7 \
|
|
|
|
BACKTRACE=0 \
|
|
|
|
HAVE_THREAD=1 \
|
|
|
|
HAVE_ZLIB=0 \
|
|
|
|
HAVE_LZMA=0 \
|
|
|
|
HAVE_LZ4=0 \
|
|
|
|
PREFIX=$(HOST_BUILD_PREFIX)
|
|
|
|
|
|
|
|
define Host/Compile
|
|
|
|
$(call Host/Compile/Default,lib-mt)
|
|
|
|
$(call Host/Compile/Default,zstd)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Host/Install
|
|
|
|
+$(MAKE) $(HOST_JOBS) -C $(HOST_BUILD_DIR)/lib install-pc install-static PREFIX=$(HOST_BUILD_PREFIX)
|
|
|
|
+$(MAKE) $(HOST_JOBS) -C $(HOST_BUILD_DIR)/programs install PREFIX=$(HOST_BUILD_PREFIX)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Host/Uninstall
|
|
|
|
-$(call Host/Compile/Default,uninstall)
|
|
|
|
endef
|
2020-05-13 18:22:12 +00:00
|
|
|
|
|
|
|
$(eval $(call HostBuild))
|