mirror of
https://github.com/wownero/wowlet.git
synced 2026-10-17 07:11:29 +02:00
35 lines
1.0 KiB
Makefile
35 lines
1.0 KiB
Makefile
package=libsodium
|
|
$(package)_version=1.0.21
|
|
$(package)_download_path=https://download.libsodium.org/libsodium/releases/
|
|
$(package)_file_name=libsodium-$($(package)_version).tar.gz
|
|
$(package)_sha256_hash=9e4285c7a419e82dedb0be63a72eea357d6943bc3e28e6735bf600dd4883feaf
|
|
$(package)_patches=fix-aarch64.patch fix-blake2b-symbol-naming.patch
|
|
|
|
define $(package)_set_vars
|
|
$(package)_config_opts=--enable-static --disable-shared
|
|
$(package)_config_opts+=--prefix=$(host_prefix)
|
|
endef
|
|
|
|
define $(package)_preprocess_cmds
|
|
rm -rf builds/msvc &&\
|
|
cp -f $(BASEDIR)/config.guess $(BASEDIR)/config.sub build-aux/ && \
|
|
patch -p1 -i $($(package)_patch_dir)/fix-blake2b-symbol-naming.patch && \
|
|
patch -p1 -i $($(package)_patch_dir)/fix-aarch64.patch
|
|
endef
|
|
|
|
define $(package)_config_cmds
|
|
$($(package)_autoconf) AR_FLAGS=$($(package)_arflags)
|
|
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
|