1 ################################################################################
5 ################################################################################
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
23 ifeq ($(BR2_PACKAGE_LIBICONV
),y
)
24 WHOIS_DEPENDENCIES
+= libiconv
25 WHOIS_EXTRA_LIBS
+= -liconv
26 WHOIS_MAKE_ENV
+= HAVE_ICONV
=1
29 ifeq ($(BR2_PACKAGE_LIBIDN
),y
)
30 WHOIS_DEPENDENCIES
+= libidn
31 WHOIS_MAKE_ENV
+= HAVE_LIBIDN
=1
34 define WHOIS_BUILD_CMDS
35 $(WHOIS_MAKE_ENV
) $(MAKE
) $(WHOIS_MAKE_OPTS
) -C
$(@D
)
38 define WHOIS_INSTALL_TARGET_CMDS
39 $(WHOIS_MAKE_ENV
) $(MAKE
) $(WHOIS_MAKE_OPTS
) \
40 BASEDIR
="$(TARGET_DIR)" install -C
$(@D
)
43 $(eval
$(generic-package
))