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
|
|
|
|
|
2022-02-07 08:03:13 +00:00
|
|
|
include $(INCLUDE_DIR)/host-build.mk
|
2022-01-31 03:03:41 +00:00
|
|
|
include $(INCLUDE_DIR)/meson.mk
|
|
|
|
|
|
|
|
MESON_HOST_BUILD_DIR:=$(HOST_BUILD_DIR)/build/meson/openwrt-build
|
|
|
|
|
|
|
|
HOSTCC:= $(HOSTCC_NOCACHE)
|
2020-05-13 18:22:12 +00:00
|
|
|
|
2022-01-31 03:03:41 +00:00
|
|
|
MESON_HOST_ARGS += \
|
2022-09-25 01:42:59 +00:00
|
|
|
-Ddefault_library=static \
|
2022-01-31 03:03:41 +00:00
|
|
|
-Dlegacy_level=7 \
|
|
|
|
-Ddebug_level=0 \
|
2023-02-10 02:13:14 +00:00
|
|
|
-Dbacktrace=disabled \
|
2022-01-31 03:03:41 +00:00
|
|
|
-Dstatic_runtime=false \
|
|
|
|
-Dbin_programs=true \
|
|
|
|
-Dbin_tests=false \
|
|
|
|
-Dbin_contrib=false \
|
|
|
|
-Dmulti_thread=enabled \
|
|
|
|
-Dzlib=disabled \
|
|
|
|
-Dlzma=disabled \
|
|
|
|
-Dlz4=disabled
|
2020-05-13 18:22:12 +00:00
|
|
|
|
|
|
|
$(eval $(call HostBuild))
|