package=libsodium $(package)_version=1.0.18 $(package)_download_path=https://github.com/jedisct1/libsodium/releases/download/1.0.18-RELEASE $(package)_file_name=libsodium-1.0.18.tar.gz $(package)_download_file=libsodium-1.0.18.tar.gz $(package)_sha256_hash=6f504490b342a4f8a4c4a02fc9b866cbef8622d5df4e5452b46be121e46636c1 $(package)_dependencies= $(package)_config_opts= $(package)_cflags=-std=gnu17 ifeq ($(build_os),darwin) define $(package)_set_vars $(package)_build_env=MACOSX_DEPLOYMENT_TARGET="10.11" $(package)_cc=clang $(package)_cxx=clang++ endef endif # libsodium's autogen.sh otherwise fetches config.sub/config.guess from # git.savannah.gnu.org gitweb, which is frequently down (502) and writes the error # page over config.sub, breaking configure. autoreconf -ivf (run first) already # installs valid copies, so tell autogen.sh to skip the download. define $(package)_preprocess_cmds cd $($(package)_build_subdir); DO_NOT_UPDATE_CONFIG_SCRIPTS=1 ./autogen.sh endef define $(package)_config_cmds $($(package)_autoconf) --enable-static --disable-shared endef define $(package)_build_cmds $(MAKE) endef define $(package)_stage_cmds $(MAKE) DESTDIR=$($(package)_staging_dir) install endef