2018-09-10 21:22:41 +00:00
|
|
|
package=sodium
|
2019-01-15 12:35:45 +00:00
|
|
|
$(package)_version=1.0.16
|
2018-09-22 18:07:33 +00:00
|
|
|
$(package)_download_path=https://download.libsodium.org/libsodium/releases/
|
|
|
|
$(package)_file_name=libsodium-$($(package)_version).tar.gz
|
2019-01-15 12:35:45 +00:00
|
|
|
$(package)_sha256_hash=eeadc7e1e1bcef09680fb4837d448fbdf57224978f865ac1c16745868fbd0533
|
2018-10-08 13:53:22 +00:00
|
|
|
$(package)_patches=fix-whitespace.patch
|
2018-09-10 21:22:41 +00:00
|
|
|
|
|
|
|
define $(package)_set_vars
|
2018-10-07 17:16:22 +00:00
|
|
|
$(package)_config_opts=--enable-static --disable-shared
|
2018-09-10 21:22:41 +00:00
|
|
|
$(package)_config_opts+=--prefix=$(host_prefix)
|
2019-11-01 03:38:13 +00:00
|
|
|
$(package)_config_opts_android=RANLIB=$($(package)_ranlib) AR=$($(package)_ar) CC=$($(package)_cc)
|
2018-09-10 21:22:41 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define $(package)_config_cmds
|
|
|
|
./autogen.sh &&\
|
2018-10-08 13:53:22 +00:00
|
|
|
patch -p1 < $($(package)_patch_dir)/fix-whitespace.patch &&\
|
2019-11-13 13:50:17 +00:00
|
|
|
$($(package)_autoconf) $($(package)_config_opts) AR_FLAGS=$($(package)_arflags)
|
2018-09-10 21:22:41 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define $(package)_build_cmds
|
|
|
|
$(MAKE)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define $(package)_stage_cmds
|
|
|
|
$(MAKE) DESTDIR=$($(package)_staging_dir) install
|
|
|
|
endef
|
2019-06-17 09:25:10 +00:00
|
|
|
|
|
|
|
define $(package)_postprocess_cmds
|
|
|
|
rm lib/*.la
|
|
|
|
endef
|
|
|
|
|