aboutsummaryrefslogtreecommitdiff
path: root/contrib/depends/packages
diff options
context:
space:
mode:
authorTheCharlatan <seb.kung@gmail.com>2018-09-10 23:22:41 +0200
committerTheCharlatan <seb.kung@gmail.com>2018-09-17 16:09:50 +0200
commitecaf5b3feb2272ee8b9aec7f10d427dc20318d22 (patch)
treef7fa0cabc223ee909f615ac5d86abe480d6f56f9 /contrib/depends/packages
parentAdapt translations to upstream changes (diff)
downloadmonero-ecaf5b3feb2272ee8b9aec7f10d427dc20318d22.tar.xz
Add libsodium to the packages, the arm build was complaining about it.
Fixup arm toolchain file.
Diffstat (limited to 'contrib/depends/packages')
-rw-r--r--contrib/depends/packages/packages.mk2
-rw-r--r--contrib/depends/packages/sodium.mk23
2 files changed, 24 insertions, 1 deletions
diff --git a/contrib/depends/packages/packages.mk b/contrib/depends/packages/packages.mk
index d6d6b2d44..28eaf34c5 100644
--- a/contrib/depends/packages/packages.mk
+++ b/contrib/depends/packages/packages.mk
@@ -1,4 +1,4 @@
-packages:=boost openssl libevent zeromq cppzmq zlib expat ldns cppzmq readline libiconv qt
+packages:=boost openssl libevent zeromq cppzmq zlib expat ldns cppzmq readline libiconv qt sodium
native_packages := native_ccache
wallet_packages=bdb
diff --git a/contrib/depends/packages/sodium.mk b/contrib/depends/packages/sodium.mk
new file mode 100644
index 000000000..885b1ea19
--- /dev/null
+++ b/contrib/depends/packages/sodium.mk
@@ -0,0 +1,23 @@
+package=sodium
+$(package)_version=1.0.16
+$(package)_download_path=https://github.com/jedisct1/libsodium/archive
+$(package)_file_name=$($(package)_version).tar.gz
+$(package)_sha256_hash=0c14604bbeab2e82a803215d65c3b6e74bb28291aaee6236d65c699ccfe1a98c
+
+define $(package)_set_vars
+$(package)_config_opts=--enable-static
+$(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