2018-09-22 20:07:33 +02:00
|
|
|
package=sodium-darwin
|
2019-01-15 13:35:45 +01:00
|
|
|
$(package)_version=1.0.16
|
2018-09-22 20:07:33 +02:00
|
|
|
$(package)_download_path=https://download.libsodium.org/libsodium/releases/
|
|
|
|
$(package)_file_name=libsodium-$($(package)_version).tar.gz
|
2019-01-15 13:35:45 +01:00
|
|
|
$(package)_sha256_hash=eeadc7e1e1bcef09680fb4837d448fbdf57224978f865ac1c16745868fbd0533
|
2018-09-22 20:07:33 +02:00
|
|
|
|
|
|
|
define $(package)_set_vars
|
2018-09-29 22:14:56 +02:00
|
|
|
$(package)_build_opts_darwin=OS=Darwin LIBTOOL="$($(package)_libtool)"
|
2018-10-07 19:16:22 +02:00
|
|
|
$(package)_config_opts=--enable-static --disable-shared
|
2018-09-22 20:07:33 +02:00
|
|
|
$(package)_config_opts+=--prefix=$(host_prefix)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define $(package)_config_cmds
|
|
|
|
./autogen.sh &&\
|
2018-09-29 22:14:56 +02:00
|
|
|
$($(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" CC="$(host_prefix)/native/bin/$($(package)_cc)"
|
2018-09-22 20:07:33 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define $(package)_build_cmds
|
|
|
|
echo "path is problematic here" &&\
|
|
|
|
make
|
|
|
|
endef
|
|
|
|
|
|
|
|
define $(package)_stage_cmds
|
|
|
|
$(MAKE) DESTDIR=$($(package)_staging_dir) install
|
|
|
|
endef
|