2022-06-02 12:50:33 +00:00
|
|
|
package=sodium
|
2023-11-27 23:32:43 +00:00
|
|
|
$(package)_version=1.0.19
|
2022-06-02 12:50:33 +00:00
|
|
|
$(package)_download_path=https://download.libsodium.org/libsodium/releases/
|
|
|
|
$(package)_file_name=libsodium-$($(package)_version).tar.gz
|
2023-11-27 23:32:43 +00:00
|
|
|
$(package)_sha256_hash=018d79fe0a045cca07331d37bd0cb57b2e838c51bc48fd837a1472e50068bbea
|
|
|
|
$(package)_patches += fix-blake2b-symbol-naming.patch
|
2022-06-02 12:50:33 +00:00
|
|
|
|
|
|
|
define $(package)_set_vars
|
2022-12-21 15:15:22 +00:00
|
|
|
$(package)_config_opts=--enable-static --disable-shared
|
|
|
|
$(package)_config_opts+=--prefix=$(host_prefix)
|
2022-06-02 12:50:33 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define $(package)_preprocess_cmds
|
2023-03-23 19:10:01 +00:00
|
|
|
cp -f $(BASEDIR)/config.guess $(BASEDIR)/config.sub build-aux/ && \
|
2023-11-27 23:32:43 +00:00
|
|
|
patch -p1 -i $($(package)_patch_dir)/fix-blake2b-symbol-naming.patch && \
|
2023-05-27 23:49:28 +00:00
|
|
|
autoconf
|
2022-06-02 12:50:33 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define $(package)_config_cmds
|
2022-12-21 15:15:22 +00:00
|
|
|
$($(package)_autoconf) AR_FLAGS=$($(package)_arflags)
|
2022-06-02 12:50:33 +00:00
|
|
|
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
|