2014-06-24 23:16:55 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# whois
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2015-03-03 19:43:09 +01:00
|
|
|
WHOIS_VERSION = 5.2.5
|
|
|
|
WHOIS_SITE = http://snapshot.debian.org/archive/debian/20150303T100910Z/pool/main/w/whois
|
2014-06-24 23:16:55 +02:00
|
|
|
WHOIS_SOURCE = whois_$(WHOIS_VERSION).tar.xz
|
|
|
|
# take precedence over busybox implementation
|
|
|
|
WHOIS_DEPENDENCIES = host-gettext $(if $(BR2_PACKAGE_BUSYBOX),busybox)
|
|
|
|
WHOIS_MAKE_ENV = $(TARGET_MAKE_ENV)
|
2014-09-27 21:32:38 +02:00
|
|
|
WHOIS_MAKE_OPTS = CC="$(TARGET_CC)" CFLAGS="$(TARGET_CFLAGS)" \
|
2014-06-26 12:05:31 +02:00
|
|
|
LIBS="$(WHOIS_EXTRA_LIBS)"
|
2014-06-24 23:16:55 +02:00
|
|
|
WHOIS_LICENSE = GPLv2+
|
|
|
|
WHOIS_LICENSE_FILES = COPYING
|
|
|
|
|
|
|
|
ifeq ($(BR2_NEEDS_GETTEXT),y)
|
|
|
|
WHOIS_DEPENDENCIES += gettext
|
2014-06-26 12:05:31 +02:00
|
|
|
WHOIS_EXTRA_LIBS += -lintl
|
2014-06-24 23:16:55 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBICONV),y)
|
|
|
|
WHOIS_DEPENDENCIES += libiconv
|
2014-06-26 12:05:31 +02:00
|
|
|
WHOIS_EXTRA_LIBS += -liconv
|
2014-06-24 23:16:55 +02:00
|
|
|
WHOIS_MAKE_ENV += HAVE_ICONV=1
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBIDN),y)
|
|
|
|
WHOIS_DEPENDENCIES += libidn
|
|
|
|
WHOIS_MAKE_ENV += HAVE_LIBIDN=1
|
|
|
|
endif
|
|
|
|
|
|
|
|
define WHOIS_BUILD_CMDS
|
2014-09-27 21:32:38 +02:00
|
|
|
$(WHOIS_MAKE_ENV) $(MAKE) $(WHOIS_MAKE_OPTS) -C $(@D)
|
2014-06-24 23:16:55 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define WHOIS_INSTALL_TARGET_CMDS
|
2014-09-27 21:32:38 +02:00
|
|
|
$(WHOIS_MAKE_ENV) $(MAKE) $(WHOIS_MAKE_OPTS) \
|
2014-06-24 23:16:55 +02:00
|
|
|
BASEDIR="$(TARGET_DIR)" install -C $(@D)
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(generic-package))
|