1################################################################################ 2# 3# poke 4# 5################################################################################ 6 7POKE_VERSION = 1.2 8POKE_SITE = $(BR2_GNU_MIRROR)/poke 9# gnulib license is a mix/mess of public-domain and various GPL and LGPL versions. 10POKE_LICENSE = GPL-3.0+, GPL-3.0+ (jitter), gnulib license (gnulib) 11POKE_LICENSE_FILES = COPYING jitter/COPYING 12 13# 0001-build-do-not-check-for-Tcl-Tk-if-disable-gui-is-spec.patch 14# 0003-configure.ac-HELP2MAN-replace-by-false-when-cross-co.patch 15POKE_AUTORECONF = YES 16 17POKE_DEPENDENCIES = host-flex host-bison host-pkgconf bdwgc readline 18 19# poke bundle gnulib that doesn't support the case where 20# host_os='linux-uclibc'. When cross-compiling, the guessed 21# answers are mostly wrong and gnulib will try to replace 22# snprintf with rpl_snprintf. This lead to "undefined reference 23# to `rpl_snprintf'" errors. 24ifeq ($(BR2_TOOLCHAIN_USES_UCLIBC),y) 25POKE_CONF_ENV = gl_cv_func_printf_positions=yes \ 26 gl_cv_func_snprintf_retval_c99=yes \ 27 gl_cv_func_printf_sizes_c99=yes \ 28 gl_cv_func_printf_infinite_long_double=yes \ 29 gl_cv_func_snprintf_retval_c99=yes \ 30 gl_cv_func_snprintf_truncation_c99=yes \ 31 gl_cv_func_snprintf_usable=yes \ 32 gl_cv_func_strerror_0_works=yes \ 33 gl_cv_header_working_stdint_h=yes \ 34 gl_cv_func_printf_infinite=yes \ 35 gl_cv_func_printf_flag_zero=yes \ 36 gl_cv_func_printf_enomem=yes \ 37 gl_cv_func_printf_directive_f=yes \ 38 gl_cv_func_printf_directive_a=yes \ 39 gl_cv_func_snprintf_directive_n=yes \ 40 gl_cv_func_vsnprintf_posix=yes \ 41 gl_cv_func_vsnprintf_zerosize_c99=yes 42endif 43 44POKE_CONF_OPTS = \ 45 --disable-gui \ 46 --disable-libnbd \ 47 --with-libreadline-prefix=$(STAGING_DIR) 48 49ifeq ($(BR2_PACKAGE_JSON_C),y) 50POKE_DEPENDENCIES += json-c 51POKE_CONF_OPTS += --enable-mi 52else 53POKE_CONF_OPTS += --disable-mi 54endif 55 56$(eval $(autotools-package)) 57