2022-06-02 12:50:33 +00:00
|
|
|
package=libgcrypt
|
2024-09-28 17:20:34 +00:00
|
|
|
$(package)_version=1.11.0
|
2022-06-02 12:50:33 +00:00
|
|
|
$(package)_download_path=https://www.gnupg.org/ftp/gcrypt/libgcrypt/
|
2024-09-28 17:20:34 +00:00
|
|
|
$(package)_file_name=libgcrypt-$($(package)_version).tar.gz
|
|
|
|
$(package)_sha256_hash=2382891207d3b000b20c81dbf2036516a535d31abd80f57d455e711e1dde5ff5
|
2022-06-02 12:50:33 +00:00
|
|
|
$(package)_dependencies=libgpg-error
|
|
|
|
|
|
|
|
define $(package)_set_vars
|
2022-12-21 15:15:22 +00:00
|
|
|
$(package)_build_opts=CFLAGS="-fPIE"
|
2022-06-02 12:50:33 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define $(package)_preprocess_cmds
|
2023-11-15 16:39:39 +00:00
|
|
|
cp -f $(BASEDIR)/config.guess $(BASEDIR)/config.sub build-aux
|
2022-06-02 12:50:33 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define $(package)_config_cmds
|
2023-03-23 19:10:01 +00:00
|
|
|
$($(package)_autoconf) --disable-shared --enable-static --disable-doc --disable-asm --with-libgpg-error-prefix=$(host_prefix)
|
2022-06-02 12:50:33 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define $(package)_build_cmds
|
|
|
|
$(MAKE) $($(package)_build_opts)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define $(package)_stage_cmds
|
|
|
|
$(MAKE) DESTDIR=$($(package)_staging_dir) install
|
|
|
|
endef
|