2022-06-02 12:50:33 +00:00
|
|
|
package=zlib
|
2024-01-30 10:49:20 +00:00
|
|
|
$(package)_version=1.3.1
|
2022-12-21 15:15:22 +00:00
|
|
|
$(package)_download_path=https://github.com/madler/zlib/releases/download/v$($(package)_version)/
|
2023-09-07 07:14:10 +00:00
|
|
|
$(package)_file_name=$(package)-$($(package)_version).tar.xz
|
2024-01-30 10:49:20 +00:00
|
|
|
$(package)_sha256_hash=38ef96b8dfe510d42707d9c781877914792541133e1870841463bfa73f883e32
|
2024-11-02 18:03:44 +00:00
|
|
|
$(package)_patches=win-lib-name.patch
|
|
|
|
|
|
|
|
define $(package)_preprocess_cmds
|
|
|
|
patch -p1 < $($(package)_patch_dir)/win-lib-name.patch
|
|
|
|
endef
|
2022-06-02 12:50:33 +00:00
|
|
|
|
|
|
|
define $(package)_config_cmds
|
2024-11-02 18:03:44 +00:00
|
|
|
$($(package)_cmake) -DBUILD_SHARED_LIBS=OFF -DZLIB_BUILD_EXAMPLES=OFF
|
2022-06-02 12:50:33 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define $(package)_build_cmds
|
2024-11-02 16:33:59 +00:00
|
|
|
$(MAKE)
|
2022-06-02 12:50:33 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define $(package)_stage_cmds
|
2024-11-02 16:33:59 +00:00
|
|
|
$(MAKE) DESTDIR=$($(package)_staging_dir) install
|
2024-01-30 10:49:20 +00:00
|
|
|
endef
|
2024-11-02 18:03:44 +00:00
|
|
|
|
|
|
|
define $(package)_postprocess_cmds
|
|
|
|
rm -f lib/libz.so* lib/libz.dll* && \
|
|
|
|
rm -rf bin
|
|
|
|
endef
|