2018-09-10 15:22:41 -06:00
|
|
|
package=sodium
|
2018-09-22 12:07:33 -06:00
|
|
|
$(package)_version=1.0.15
|
|
|
|
$(package)_download_path=https://download.libsodium.org/libsodium/releases/
|
|
|
|
$(package)_file_name=libsodium-$($(package)_version).tar.gz
|
|
|
|
$(package)_sha256_hash=fb6a9e879a2f674592e4328c5d9f79f082405ee4bb05cb6e679b90afe9e178f4
|
2018-09-10 15:22:41 -06:00
|
|
|
|
|
|
|
define $(package)_set_vars
|
2018-10-07 11:51:09 -06:00
|
|
|
$(package)_config_opts=--enable-static --disable-shared
|
2018-09-10 15:22:41 -06:00
|
|
|
$(package)_config_opts+=--prefix=$(host_prefix)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define $(package)_config_cmds
|
|
|
|
./autogen.sh &&\
|
|
|
|
$($(package)_autoconf) $($(package)_config_opts)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define $(package)_build_cmds
|
|
|
|
$(MAKE)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define $(package)_stage_cmds
|
|
|
|
$(MAKE) DESTDIR=$($(package)_staging_dir) install
|
|
|
|
endef
|