| 1 | package=unbound |
| 2 | $(package)_version=1.19.1 |
| 3 | $(package)_download_path=https://www.nlnetlabs.nl/downloads/$(package)/ |
| 4 | $(package)_file_name=$(package)-$($(package)_version).tar.gz |
| 5 | $(package)_sha256_hash=bc1d576f3dd846a0739adc41ffaa702404c6767d2b6082deb9f2f97cbb24a3a9 |
| 6 | $(package)_dependencies=openssl expat |
| 7 | $(package)_patches=disable-glibc-reallocarray.patch |
| 8 | |
| 9 | |
| 10 | define $(package)_set_vars |
| 11 | $(package)_config_opts=--disable-shared --enable-static --without-pyunbound --prefix=$(host_prefix) |
| 12 | $(package)_config_opts+=--with-libexpat=$(host_prefix) --with-ssl=$(host_prefix) --with-libevent=no |
| 13 | $(package)_config_opts+=--without-pythonmodule --disable-flto --with-pthreads --with-libunbound-only |
| 14 | $(package)_config_opts_linux=--with-pic |
| 15 | $(package)_config_opts_w64=--enable-static-exe --sysconfdir=/etc --prefix=$(host_prefix) --target=$(host_prefix) |
| 16 | $(package)_config_opts_x86_64_darwin=ac_cv_func_SHA384_Init=yes |
| 17 | $(package)_build_opts_mingw32=LDFLAGS="$($(package)_ldflags) -lpthread" |
| 18 | $(package)_cflags_mingw32+="-D_WIN32_WINNT=0x600" |
| 19 | endef |
| 20 | |
| 21 | define $(package)_preprocess_cmds |
| 22 | patch -p1 < $($(package)_patch_dir)/disable-glibc-reallocarray.patch &&\ |
| 23 | autoconf |
| 24 | endef |
| 25 | |
| 26 | define $(package)_config_cmds |
| 27 | $($(package)_autoconf) ac_cv_func_getentropy=no |
| 28 | endef |
| 29 | |
| 30 | define $(package)_build_cmds |
| 31 | $(MAKE) $($(package)_build_opts) |
| 32 | endef |
| 33 | |
| 34 | define $(package)_stage_cmds |
| 35 | $(MAKE) DESTDIR=$($(package)_staging_dir) install |
| 36 | endef |