| 1 | package=expat |
| 2 | $(package)_version=2.6.0 |
| 3 | $(package)_download_path=https://github.com/libexpat/libexpat/releases/download/R_$(subst .,_,$($(package)_version))/ |
| 4 | $(package)_file_name=$(package)-$($(package)_version).tar.bz2 |
| 5 | $(package)_sha256_hash=ff60e6a6b6ce570ae012dc7b73169c7fdf4b6bf08c12ed0ec6f55736b78d85ba |
| 6 | |
| 7 | define $(package)_set_vars |
| 8 | $(package)_config_opts=--disable-shared --without-docbook --without-tests --without-examples |
| 9 | $(package)_config_opts+=--enable-option-checking --without-xmlwf --with-pic |
| 10 | $(package)_config_opts+=--prefix=$(host_prefix) |
| 11 | endef |
| 12 | |
| 13 | define $(package)_config_cmds |
| 14 | $($(package)_autoconf) |
| 15 | endef |
| 16 | |
| 17 | define $(package)_build_cmds |
| 18 | $(MAKE) |
| 19 | endef |
| 20 | |
| 21 | define $(package)_stage_cmds |
| 22 | $(MAKE) DESTDIR=$($(package)_staging_dir) install |
| 23 | endef |
| 24 | |
| 25 | define $(package)_postprocess_cmds |
| 26 | rm -rf share lib/cmake lib/*.la |
| 27 | endef |
| 28 |