aboutsummaryrefslogtreecommitdiff
path: root/contrib/depends/packages
diff options
context:
space:
mode:
authorTheCharlatan <seb.kung@gmail.com>2018-09-22 20:07:33 +0200
committerTheCharlatan <seb.kung@gmail.com>2018-09-22 21:50:08 +0200
commit0f4f873bf33404dbfc016a90cd6930fb43b1165e (patch)
tree3dd6d9ce33c3852334f5750796f31c838fc1368a /contrib/depends/packages
parentA Travis to monero (diff)
downloadmonero-0f4f873bf33404dbfc016a90cd6930fb43b1165e.tar.xz
Fix Darwin Sodium build
Clang needs to get its cctools path passed.
Diffstat (limited to 'contrib/depends/packages')
-rw-r--r--contrib/depends/packages/packages.mk6
-rw-r--r--contrib/depends/packages/sodium-darwin.mk24
-rw-r--r--contrib/depends/packages/sodium.mk8
3 files changed, 32 insertions, 6 deletions
diff --git a/contrib/depends/packages/packages.mk b/contrib/depends/packages/packages.mk
index 28eaf34c5..114f8e9c0 100644
--- a/contrib/depends/packages/packages.mk
+++ b/contrib/depends/packages/packages.mk
@@ -1,16 +1,19 @@
-packages:=boost openssl libevent zeromq cppzmq zlib expat ldns cppzmq readline libiconv qt sodium
+packages:=boost openssl libevent zeromq cppzmq zlib expat ldns cppzmq readline libiconv qt
native_packages := native_ccache
wallet_packages=bdb
darwin_native_packages = native_biplist native_ds_store native_mac_alias
+darwin_packages += sodium-darwin
ifeq ($(host_os),linux)
packages += pcsc-lite
packages += unwind
+packages += sodium
endif
ifeq ($(host_os),mingw32)
packages += icu4c
+packages += sodium
endif
ifneq ($(build_os),darwin)
@@ -18,4 +21,3 @@ darwin_native_packages += native_cctools native_cdrkit native_libdmg-hfsplus
packages += readline
endif
-
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
diff --git a/contrib/depends/packages/sodium.mk b/contrib/depends/packages/sodium.mk
index 885b1ea19..0e6668062 100644
--- a/contrib/depends/packages/sodium.mk
+++ b/contrib/depends/packages/sodium.mk
@@ -1,8 +1,8 @@
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
+$(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