| 1 |
package=expat |
| 2 |
$(package)_version=2.7.1 |
| 3 |
$(package)_download_path=https://github.com/libexpat/libexpat/releases/download/R_$(subst .,_,$($(package)_version))/ |
| 4 |
$(package)_file_name=$(package)-$($(package)_version).tar.gz |
| 5 |
$(package)_sha256_hash=0cce2e6e69b327fc607b8ff264f4b66bdf71ead55a87ffd5f3143f535f15cfa2 |
| 6 |
$(package)_build_subdir=build |
| 7 |
|
| 8 |
define $(package)_set_vars |
| 9 |
$(package)_config_opts := -DEXPAT_BUILD_TOOLS=OFF |
| 10 |
$(package)_config_opts += -DEXPAT_BUILD_EXAMPLES=OFF |
| 11 |
$(package)_config_opts += -DEXPAT_BUILD_TESTS=OFF |
| 12 |
$(package)_config_opts += -DBUILD_SHARED_LIBS=OFF |
| 13 |
$(package)_config_opts += -DCMAKE_POSITION_INDEPENDENT_CODE=ON |
| 14 |
endef |
| 15 |
|
| 16 |
define $(package)_config_cmds |
| 17 |
$($(package)_cmake) -S .. -B . |
| 18 |
endef |
| 19 |
|
| 20 |
define $(package)_build_cmds |
| 21 |
$(MAKE) |
| 22 |
endef |
| 23 |
|
| 24 |
define $(package)_stage_cmds |
| 25 |
$(MAKE) DESTDIR=$($(package)_staging_dir) install |
| 26 |
endef |
| 27 |
|
| 28 |
define $(package)_postprocess_cmds |
| 29 |
rm -rf share lib/cmake |
| 30 |
endef |