You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

zlib.mk 768B

12345678910111213141516171819202122232425
  1. package=zlib
  2. $(package)_version=1.2.11
  3. $(package)_download_path=http://www.zlib.net
  4. $(package)_file_name=$(package)-$($(package)_version).tar.gz
  5. $(package)_sha256_hash=c3e5e9fdd5004dcb542feda5ee4f0ff0744628baf8ed2dd5d66f8ca1197cb1a1
  6. define $(package)_set_vars
  7. $(package)_build_opts= CC="$($(package)_cc)"
  8. $(package)_build_opts+=CFLAGS="$($(package)_cflags) $($(package)_cppflags) -fPIC"
  9. $(package)_build_opts+=AR="$($(package)_ar)"
  10. $(package)_build_opts+=RANLIB="$($(package)_ranlib)"
  11. endef
  12. define $(package)_config_cmds
  13. ./configure --static --prefix=$(host_prefix)
  14. endef
  15. define $(package)_build_cmds
  16. $(MAKE) $($(package)_build_opts) libz.a
  17. endef
  18. define $(package)_stage_cmds
  19. $(MAKE) DESTDIR=$($(package)_staging_dir) install $($(package)_build_opts)
  20. endef