mirror of
https://github.com/feather-wallet/feather.git
synced 2024-12-23 03:59:29 +00:00
33 lines
1.3 KiB
Makefile
33 lines
1.3 KiB
Makefile
package=libgcrypt
|
|
$(package)_version=1.10.1
|
|
$(package)_download_path=https://www.gnupg.org/ftp/gcrypt/libgcrypt/
|
|
$(package)_file_name=libgcrypt-$($(package)_version).tar.bz2
|
|
$(package)_sha256_hash=ef14ae546b0084cd84259f61a55e07a38c3b53afc0f546bffcef2f01baffe9de
|
|
$(package)_dependencies=libgpg-error
|
|
|
|
define $(package)_set_vars
|
|
$(package)_build_opts=CFLAGS="-fPIE"
|
|
endef
|
|
|
|
define $(package)_preprocess_cmds
|
|
cp -f $(BASEDIR)/config.guess $(BASEDIR)/config.sub build-aux
|
|
endef
|
|
|
|
# TODO: building on linux with $($(package)_autoconf) fails for mysterious reasons
|
|
ifeq ($(host_os),linux)
|
|
define $(package)_config_cmds
|
|
CFLAGS='-fPIE' CXXFLAGS='-fPIE' ./configure --host=$(host) --enable-digests="sha256 blake2" --enable-ciphers="aes chacha20" --disable-amd64-as-feature-detection --disable-asm --disable-avx-support --disable-avx2-support --disable-sse41-support --disable-shared --enable-static --disable-doc --with-libgpg-error-prefix=$(host_prefix) --prefix=$(host_prefix)
|
|
endef
|
|
else
|
|
define $(package)_config_cmds
|
|
$($(package)_autoconf) --disable-shared --enable-static --disable-doc --disable-asm --with-libgpg-error-prefix=$(host_prefix)
|
|
endef
|
|
endif
|
|
|
|
define $(package)_build_cmds
|
|
$(MAKE) $($(package)_build_opts)
|
|
endef
|
|
|
|
define $(package)_stage_cmds
|
|
$(MAKE) DESTDIR=$($(package)_staging_dir) install
|
|
endef
|