| 1 |
package=libsodium |
| 2 |
$(package)_version=1.0.20 |
| 3 |
$(package)_download_path=https://download.libsodium.org/libsodium/releases/ |
| 4 |
$(package)_file_name=libsodium-$($(package)_version).tar.gz |
| 5 |
$(package)_sha256_hash=ebb65ef6ca439333c2bb41a0c1990587288da07f6c7fd07cb3a18cc18d30ce19 |
| 6 |
$(package)_patches += fix-blake2b-symbol-naming.patch |
| 7 |
|
| 8 |
define $(package)_set_vars |
| 9 |
$(package)_config_opts=--enable-static --disable-shared |
| 10 |
$(package)_config_opts+=--prefix=$(host_prefix) |
| 11 |
endef |
| 12 |
|
| 13 |
define $(package)_preprocess_cmds |
| 14 |
rm -rf builds/msvc &&\ |
| 15 |
cp -f $(BASEDIR)/config.guess $(BASEDIR)/config.sub build-aux/ && \ |
| 16 |
patch -p1 -i $($(package)_patch_dir)/fix-blake2b-symbol-naming.patch |
| 17 |
endef |
| 18 |
|
| 19 |
define $(package)_config_cmds |
| 20 |
$($(package)_autoconf) AR_FLAGS=$($(package)_arflags) |
| 21 |
endef |
| 22 |
|
| 23 |
define $(package)_build_cmds |
| 24 |
$(MAKE) |
| 25 |
endef |
| 26 |
|
| 27 |
define $(package)_stage_cmds |
| 28 |
$(MAKE) DESTDIR=$($(package)_staging_dir) install |
| 29 |
endef |
| 30 |
|
| 31 |
define $(package)_postprocess_cmds |
| 32 |
rm lib/*.la |
| 33 |
endef |