2024-11-03 16:42:34 +00:00
|
|
|
package := native_libffi
|
2024-12-07 17:16:40 +00:00
|
|
|
$(package)_version := 3.4.6
|
2024-11-03 16:42:34 +00:00
|
|
|
$(package)_download_path := https://github.com/libffi/$(package)/releases/download/v$($(package)_version)
|
|
|
|
$(package)_file_name := libffi-$($(package)_version).tar.gz
|
2024-12-07 17:16:40 +00:00
|
|
|
$(package)_sha256_hash := b0dea9df23c863a7a50e825440f3ebffabd65df1497108e5d437747843895a4e
|
2024-11-03 16:42:34 +00:00
|
|
|
|
|
|
|
define $(package)_set_vars
|
|
|
|
$(package)_config_opts := --enable-option-checking --disable-dependency-tracking
|
|
|
|
$(package)_config_opts += --enable-shared --disable-static --disable-docs
|
|
|
|
$(package)_config_opts += --disable-multi-os-directory
|
|
|
|
endef
|
|
|
|
|
|
|
|
define $(package)_config_cmds
|
|
|
|
$($(package)_autoconf)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define $(package)_build_cmds
|
|
|
|
$(MAKE)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define $(package)_stage_cmds
|
|
|
|
$(MAKE) DESTDIR=$($(package)_staging_dir) install
|
|
|
|
endef
|
|
|
|
|
|
|
|
define $(package)_postprocess_cmds
|
|
|
|
rm -rf share
|
|
|
|
endef
|