| 1 |
package=zlib |
| 2 |
$(package)_version=1.3.1 |
| 3 |
$(package)_download_path=https://github.com/madler/zlib/releases/download/v$($(package)_version)/ |
| 4 |
$(package)_file_name=$(package)-$($(package)_version).tar.xz |
| 5 |
$(package)_sha256_hash=38ef96b8dfe510d42707d9c781877914792541133e1870841463bfa73f883e32 |
| 6 |
$(package)_patches=win-lib-name.patch |
| 7 |
|
| 8 |
define $(package)_preprocess_cmds |
| 9 |
patch -p1 < $($(package)_patch_dir)/win-lib-name.patch |
| 10 |
endef |
| 11 |
|
| 12 |
define $(package)_config_cmds |
| 13 |
$($(package)_cmake) -DBUILD_SHARED_LIBS=OFF -DZLIB_BUILD_EXAMPLES=OFF |
| 14 |
endef |
| 15 |
|
| 16 |
define $(package)_build_cmds |
| 17 |
$(MAKE) |
| 18 |
endef |
| 19 |
|
| 20 |
define $(package)_stage_cmds |
| 21 |
$(MAKE) DESTDIR=$($(package)_staging_dir) install |
| 22 |
endef |
| 23 |
|
| 24 |
define $(package)_postprocess_cmds |
| 25 |
rm -f lib/libz.so* lib/libz.dll* && \ |
| 26 |
rm -rf bin |
| 27 |
endef |