feather/contrib/depends/packages/libgcrypt.mk

29 lines
925 B
Makefile
Raw Normal View History

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
2024-11-02 16:33:59 +00:00
$(package)_patches=no-programs.patch
2022-06-02 12:50:33 +00:00
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
2024-11-02 16:33:59 +00:00
patch -p1 < $($(package)_patch_dir)/no-programs.patch && \
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
2024-11-02 16:33:59 +00:00
$($(package)_autoconf) --disable-shared --enable-static --disable-tests --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