2020-05-13 18:22:12 +00:00
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=zstd
|
2021-09-02 03:28:06 +00:00
|
|
|
PKG_VERSION:=1.5.0
|
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)
|
2021-09-02 03:28:06 +00:00
|
|
|
PKG_HASH:=5194fbfa781fcf45b98c5e849651aa7b3b0a008c6b72d4a0db760f3002291e94
|
2020-05-13 18:22:12 +00:00
|
|
|
|
|
|
|
PKG_LICENSE:=BSD-3-Clause
|
|
|
|
PKG_LICENSE_FILES:=LICENSE
|
|
|
|
PKG_CPE_ID:=cpe:/a:facebook:zstandard
|
|
|
|
|
2021-01-21 04:54:58 +00:00
|
|
|
CMAKE_SOURCE_SUBDIR:=build/cmake
|
2020-05-13 18:22:12 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/host-build.mk
|
2021-01-21 04:54:58 +00:00
|
|
|
include $(INCLUDE_DIR)/cmake.mk
|
2020-05-13 18:22:12 +00:00
|
|
|
|
2021-01-21 04:54:58 +00:00
|
|
|
CMAKE_HOST_OPTIONS += \
|
|
|
|
-DBUILD_TESTING=OFF \
|
|
|
|
-DCMAKE_C_COMPILER_LAUNCHER="" \
|
|
|
|
-DCMAKE_C_COMPILER=$(HOSTCC_NOCACHE) \
|
|
|
|
-DZSTD_LEGACY_SUPPORT=OFF
|
2020-05-13 18:22:12 +00:00
|
|
|
|
|
|
|
$(eval $(call HostBuild))
|