open-plc-utils: new package
[buildroot-gz.git] / package / mtr / mtr.mk
blob3f73a5f51966ab3040039e20c010313aa171a3ea
1 ################################################################################
3 # mtr
5 ################################################################################
7 MTR_VERSION = v0.86
8 MTR_SITE = $(call github,traviscross,mtr,$(MTR_VERSION))
9 MTR_AUTORECONF = YES
10 MTR_CONF_OPTS = --without-gtk
11 MTR_DEPENDENCIES = host-pkgconf $(if $(BR2_PACKAGE_NCURSES),ncurses)
12 MTR_LICENSE = GPLv2
13 MTR_LICENSE_FILES = COPYING
15 # uClibc has res_ninit but not res_nmkquery
16 ifeq ($(BR2_TOOLCHAIN_USES_UCLIBC),y)
17 define MTR_DISABLE_RES_NINIT
18 $(SED) 's/#ifdef res_ninit/#if 0/' \
19 $(@D)/dns.c
20 endef
21 endif
23 MTR_POST_PATCH_HOOKS += MTR_DISABLE_RES_NINIT
25 $(eval $(autotools-package))