Debian Codegraph @

contrib/depends/packages/zstd.mk

raw
1 package=zstd
2 $(package)_version=1.5.7
3 $(package)_download_path=https://github.com/facebook/zstd/releases/download/v$($(package)_version)
4 $(package)_file_name=zstd-$($(package)_version).tar.gz
5 $(package)_sha256_hash=eb33e51f49a15e023950cd7825ca74a4a2b43db8354825ac24fc1b7ee09e6fa3
6
7 define $(package)_preprocess_cmds
8 rm -rf tests doc contrib/pzstd/images build/single_file_libs/examples
9 endef
10
11 define $(package)_build_cmds
12 $($(package)_cmake) -DCMAKE_INSTALL_PREFIX=$(host_prefix) -DHOST=$(host) -DZSTD_LEGACY_SUPPORT=OFF -B build-cmake-debug -S build/cmake && \
13 cd build-cmake-debug && \
14 $(MAKE)
15 endef
16
17 define $(package)_stage_cmds
18 cd build-cmake-debug && \
19 $(MAKE) DESTDIR=$($(package)_staging_dir) install
20 endef