| 1 |
package=unbound |
| 2 |
$(package)_version=1.22.0 |
| 3 |
$(package)_download_path=https://www.nlnetlabs.nl/downloads/$(package)/ |
| 4 |
$(package)_file_name=$(package)-$($(package)_version).tar.gz |
| 5 |
$(package)_sha256_hash=c5dd1bdef5d5685b2cedb749158dd152c52d44f65529a34ac15cd88d4b1b3d43 |
| 6 |
$(package)_dependencies=openssl expat |
| 7 |
|
| 8 |
define $(package)_set_vars |
| 9 |
$(package)_config_opts=--disable-shared --enable-static --without-pyunbound --prefix=$(host_prefix) |
| 10 |
$(package)_config_opts+=--with-libexpat=$(host_prefix) --with-ssl=$(host_prefix) --with-libevent=no |
| 11 |
$(package)_config_opts+=--without-pythonmodule --disable-flto --with-pthreads --with-libunbound-only |
| 12 |
$(package)_config_opts_linux=--with-pic |
| 13 |
$(package)_config_opts_w64=--enable-static-exe --sysconfdir=/etc --prefix=$(host_prefix) --target=$(host_prefix) |
| 14 |
$(package)_config_opts_x86_64_darwin=ac_cv_func_SHA384_Init=yes |
| 15 |
$(package)_build_opts_mingw32=LDFLAGS="$($(package)_ldflags) -lpthread" |
| 16 |
endef |
| 17 |
|
| 18 |
define $(package)_preprocess_cmds |
| 19 |
rm doc/*.odp doc/*.pdf contrib/*.tar.gz contrib/*.tar.bz2 &&\ |
| 20 |
rm -rf testdata dnscrypt/testdata |
| 21 |
endef |
| 22 |
|
| 23 |
define $(package)_config_cmds |
| 24 |
$($(package)_autoconf) ac_cv_func_getentropy=no |
| 25 |
endef |
| 26 |
|
| 27 |
define $(package)_build_cmds |
| 28 |
$(MAKE) $($(package)_build_opts) |
| 29 |
endef |
| 30 |
|
| 31 |
define $(package)_stage_cmds |
| 32 |
$(MAKE) DESTDIR=$($(package)_staging_dir) install |
| 33 |
endef |
| 34 |
|
| 35 |
define $(package)_postprocess_cmds |
| 36 |
rm -rf share |
| 37 |
endef |