2018-09-10 17:22:41 -04:00
|
|
|
package=sodium
|
2019-12-12 17:39:37 -05:00
|
|
|
$(package)_version=1.0.18
|
2018-09-22 14:07:33 -04:00
|
|
|
$(package)_download_path=https://download.libsodium.org/libsodium/releases/
|
|
|
|
$(package)_file_name=libsodium-$($(package)_version).tar.gz
|
2019-12-12 17:39:37 -05:00
|
|
|
$(package)_sha256_hash=6f504490b342a4f8a4c4a02fc9b866cbef8622d5df4e5452b46be121e46636c1
|
2020-03-20 11:42:52 -04:00
|
|
|
$(package)_patches=disable-glibc-getrandom-getentropy.patch fix-whitespace.patch
|
2018-09-10 17:22:41 -04:00
|
|
|
|
|
|
|
define $(package)_set_vars
|
2018-10-07 13:16:22 -04:00
|
|
|
$(package)_config_opts=--enable-static --disable-shared
|
2018-09-10 17:22:41 -04:00
|
|
|
$(package)_config_opts+=--prefix=$(host_prefix)
|
|
|
|
endef
|
|
|
|
|
2022-05-09 14:47:33 -04:00
|
|
|
define $(package)_preprocess_cmds
|
2020-03-20 11:42:52 -04:00
|
|
|
patch -p1 < $($(package)_patch_dir)/disable-glibc-getrandom-getentropy.patch &&\
|
2022-05-09 14:47:33 -04:00
|
|
|
autoconf &&\
|
|
|
|
patch -p1 < $($(package)_patch_dir)/fix-whitespace.patch
|
|
|
|
endef
|
|
|
|
|
|
|
|
define $(package)_config_cmds
|
|
|
|
$($(package)_autoconf) AR_FLAGS=$($(package)_arflags)
|
2018-09-10 17:22:41 -04:00
|
|
|
endef
|
|
|
|
|
|
|
|
define $(package)_build_cmds
|
|
|
|
$(MAKE)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define $(package)_stage_cmds
|
|
|
|
$(MAKE) DESTDIR=$($(package)_staging_dir) install
|
|
|
|
endef
|
2019-06-17 05:25:10 -04:00
|
|
|
|
|
|
|
define $(package)_postprocess_cmds
|
|
|
|
rm lib/*.la
|
|
|
|
endef
|
|
|
|
|