mirror of
https://github.com/feather-wallet/feather.git
synced 2024-11-17 01:37:53 +00:00
33 lines
942 B
Makefile
33 lines
942 B
Makefile
package=sodium
|
|
$(package)_version=1.0.19
|
|
$(package)_download_path=https://download.libsodium.org/libsodium/releases/
|
|
$(package)_file_name=libsodium-$($(package)_version).tar.gz
|
|
$(package)_sha256_hash=018d79fe0a045cca07331d37bd0cb57b2e838c51bc48fd837a1472e50068bbea
|
|
$(package)_patches += fix-blake2b-symbol-naming.patch
|
|
|
|
define $(package)_set_vars
|
|
$(package)_config_opts=--enable-static --disable-shared
|
|
$(package)_config_opts+=--prefix=$(host_prefix)
|
|
endef
|
|
|
|
define $(package)_preprocess_cmds
|
|
cp -f $(BASEDIR)/config.guess $(BASEDIR)/config.sub build-aux/ && \
|
|
patch -p1 -i $($(package)_patch_dir)/fix-blake2b-symbol-naming.patch && \
|
|
autoconf
|
|
endef
|
|
|
|
define $(package)_config_cmds
|
|
$($(package)_autoconf) AR_FLAGS=$($(package)_arflags)
|
|
endef
|
|
|
|
define $(package)_build_cmds
|
|
$(MAKE)
|
|
endef
|
|
|
|
define $(package)_stage_cmds
|
|
$(MAKE) DESTDIR=$($(package)_staging_dir) install
|
|
endef
|
|
|
|
define $(package)_postprocess_cmds
|
|
rm lib/*.la
|
|
endef
|