mirror of
https://github.com/monero-project/monero.git
synced 2024-11-18 18:11:03 +00:00
cbbb24cfe1
To speedup the depends cached builds, remove some some clutter from the package files. This mainly incldues removing all the shared libraries and .la linker files. It also gives stronger guarantees that monero only links the static libs without any external rvalues.
30 lines
804 B
Makefile
30 lines
804 B
Makefile
package=sodium
|
|
$(package)_version=1.0.16
|
|
$(package)_download_path=https://download.libsodium.org/libsodium/releases/
|
|
$(package)_file_name=libsodium-$($(package)_version).tar.gz
|
|
$(package)_sha256_hash=eeadc7e1e1bcef09680fb4837d448fbdf57224978f865ac1c16745868fbd0533
|
|
$(package)_patches=fix-whitespace.patch
|
|
|
|
define $(package)_set_vars
|
|
$(package)_config_opts=--enable-static --disable-shared
|
|
$(package)_config_opts+=--prefix=$(host_prefix)
|
|
endef
|
|
|
|
define $(package)_config_cmds
|
|
./autogen.sh &&\
|
|
patch -p1 < $($(package)_patch_dir)/fix-whitespace.patch &&\
|
|
$($(package)_autoconf) $($(package)_config_opts)
|
|
endef
|
|
|
|
define $(package)_build_cmds
|
|
$(MAKE)
|
|
endef
|
|
|
|
define $(package)_stage_cmds
|
|
$(MAKE) DESTDIR=$($(package)_staging_dir) install
|
|
endef
|
|
|
|
define $(package)_postprocess_cmds
|
|
rm lib/*.la
|
|
endef
|
|
|