aboutsummaryrefslogtreecommitdiff
path: root/contrib/depends/packages/sodium-darwin.mk
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2018-09-25 12:06:20 +0200
committerRiccardo Spagni <ric@spagni.net>2018-09-25 12:06:20 +0200
commitd2f9a4c584cfd072487dbd2503954049f6e0959c (patch)
treefbf375eb60b664d32360e716d72151cfc90f1f0f /contrib/depends/packages/sodium-darwin.mk
parentMerge pull request #4419 (diff)
parentFix Darwin Sodium build (diff)
downloadmonero-d2f9a4c584cfd072487dbd2503954049f6e0959c.tar.xz
Merge pull request #4420
0f4f873b Fix Darwin Sodium build (TheCharlatan) bf1e1d97 A Travis to monero (TheCharlatan)
Diffstat (limited to 'contrib/depends/packages/sodium-darwin.mk')
-rw-r--r--contrib/depends/packages/sodium-darwin.mk24
1 files changed, 24 insertions, 0 deletions
diff --git a/contrib/depends/packages/sodium-darwin.mk b/contrib/depends/packages/sodium-darwin.mk
new file mode 100644
index 000000000..796bead16
--- /dev/null
+++ b/contrib/depends/packages/sodium-darwin.mk
@@ -0,0 +1,24 @@
+package=sodium-darwin
+$(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
+
+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) RANLIB="$(host_prefix)/native/bin/x86_64-apple-darwin11-ranlib" AR="$(host_prefix)/native/bin/x86_64-apple-darwin11-ar"
+endef
+
+define $(package)_build_cmds
+ echo "path is problematic here" &&\
+ make
+endef
+
+define $(package)_stage_cmds
+ $(MAKE) DESTDIR=$($(package)_staging_dir) install
+endef