zynq_zed: bump U-Boot to xilinx-v2016.2
[buildroot-gz.git] / package / whois / whois.mk
blob423b214f478bc49c90ada094f912c604c1f84a34
1 ################################################################################
3 # whois
5 ################################################################################
7 WHOIS_VERSION = 5.2.12
8 WHOIS_SITE = http://snapshot.debian.org/archive/debian/20160329T095754Z/pool/main/w/whois
9 WHOIS_SOURCE = whois_$(WHOIS_VERSION).tar.xz
10 # take precedence over busybox implementation
11 WHOIS_DEPENDENCIES = host-gettext $(if $(BR2_PACKAGE_BUSYBOX),busybox)
12 WHOIS_MAKE_ENV = $(TARGET_MAKE_ENV)
13 WHOIS_MAKE_OPTS = CC="$(TARGET_CC)" CFLAGS="$(TARGET_CFLAGS)" \
14 LIBS="$(WHOIS_EXTRA_LIBS)"
15 WHOIS_LICENSE = GPLv2+
16 WHOIS_LICENSE_FILES = COPYING
18 ifeq ($(BR2_NEEDS_GETTEXT),y)
19 WHOIS_DEPENDENCIES += gettext
20 WHOIS_EXTRA_LIBS += -lintl
21 endif
23 ifeq ($(BR2_PACKAGE_LIBICONV),y)
24 WHOIS_DEPENDENCIES += libiconv
25 WHOIS_EXTRA_LIBS += -liconv
26 WHOIS_MAKE_ENV += HAVE_ICONV=1
27 endif
29 ifeq ($(BR2_PACKAGE_LIBIDN),y)
30 WHOIS_DEPENDENCIES += libidn
31 WHOIS_MAKE_ENV += HAVE_LIBIDN=1
32 endif
34 define WHOIS_BUILD_CMDS
35 $(WHOIS_MAKE_ENV) $(MAKE) $(WHOIS_MAKE_OPTS) -C $(@D)
36 endef
38 define WHOIS_INSTALL_TARGET_CMDS
39 $(WHOIS_MAKE_ENV) $(MAKE) $(WHOIS_MAKE_OPTS) \
40 BASEDIR="$(TARGET_DIR)" install -C $(@D)
41 endef
43 $(eval $(generic-package))