2022-06-02 12:50:33 +00:00
|
|
|
package=libgpg-error
|
2024-09-28 17:16:15 +00:00
|
|
|
$(package)_version=1.50
|
2022-06-02 12:50:33 +00:00
|
|
|
$(package)_download_path=https://www.gnupg.org/ftp/gcrypt/libgpg-error/
|
2024-06-19 12:13:56 +00:00
|
|
|
$(package)_file_name=libgpg-error-$($(package)_version).tar.gz
|
2024-09-28 17:16:15 +00:00
|
|
|
$(package)_sha256_hash=34a3b36ec8ad830f8f3ceb5db583d1f6dc8ae4c31d04f6da18ea18dd95396ab0
|
2024-11-02 16:33:59 +00:00
|
|
|
$(package)_patches=declare_environ_macos.patch no-programs.patch
|
2022-06-02 12:50:33 +00:00
|
|
|
|
|
|
|
define $(package)_set_vars
|
2024-09-28 17:16:15 +00:00
|
|
|
$(package)_config_opts := --enable-static --disable-shared
|
|
|
|
$(package)_config_opts += --disable-doc --disable-tests
|
|
|
|
$(package)_config_opts += --enable-install-gpg-error-config
|
|
|
|
$(package)_build_opts := CFLAGS="-fPIE"
|
2022-06-02 12:50:33 +00:00
|
|
|
endef
|
|
|
|
|
2023-03-23 19:10:01 +00:00
|
|
|
define $(package)_preprocess_cmds
|
2024-09-28 17:16:15 +00:00
|
|
|
patch -p1 < $($(package)_patch_dir)/declare_environ_macos.patch && \
|
2024-11-02 16:33:59 +00:00
|
|
|
patch -p1 < $($(package)_patch_dir)/no-programs.patch && \
|
2023-03-23 19:10:01 +00:00
|
|
|
cp -f $(BASEDIR)/config.guess $(BASEDIR)/config.sub build-aux
|
|
|
|
endef
|
|
|
|
|
2022-06-02 12:50:33 +00:00
|
|
|
define $(package)_config_cmds
|
2024-09-28 17:16:15 +00:00
|
|
|
$($(package)_autoconf)
|
2022-06-02 12:50:33 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define $(package)_build_cmds
|
2024-09-28 17:16:15 +00:00
|
|
|
$(MAKE) $($(package)_build_opts)
|
2022-06-02 12:50:33 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define $(package)_stage_cmds
|
2024-09-28 17:16:15 +00:00
|
|
|
$(MAKE) DESTDIR=$($(package)_staging_dir) install
|
2022-06-02 12:50:33 +00:00
|
|
|
endef
|