feather/contrib/depends/packages/libffi.mk
2024-12-17 22:25:53 +01:00

27 lines
800 B
Makefile

package=libffi
$(package)_version=3.4.6
$(package)_download_path := https://github.com/libffi/$(package)/releases/download/v$($(package)_version)
$(package)_file_name := libffi-$($(package)_version).tar.gz
$(package)_sha256_hash := b0dea9df23c863a7a50e825440f3ebffabd65df1497108e5d437747843895a4e
define $(package)_set_vars
$(package)_config_opts := --enable-option-checking --disable-dependency-tracking
$(package)_config_opts += --disable-shared --enable-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