Blame view

buildroot/buildroot-2016.08.1/package/whois/whois.mk 1.17 KB
6b13f685e   김민수   BSP 최초 추가
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
  ################################################################################
  #
  # whois
  #
  ################################################################################
  
  WHOIS_VERSION = 5.2.12
  WHOIS_SITE = http://snapshot.debian.org/archive/debian/20160329T095754Z/pool/main/w/whois
  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)
  WHOIS_MAKE_OPTS = CC="$(TARGET_CC)" CFLAGS="$(TARGET_CFLAGS)" \
  	LIBS="$(WHOIS_EXTRA_LIBS)"
  WHOIS_LICENSE = GPLv2+
  WHOIS_LICENSE_FILES = COPYING
  
  ifeq ($(BR2_NEEDS_GETTEXT),y)
  WHOIS_DEPENDENCIES += gettext
  WHOIS_EXTRA_LIBS += -lintl
  endif
  
  ifeq ($(BR2_PACKAGE_LIBICONV),y)
  WHOIS_DEPENDENCIES += libiconv
  WHOIS_EXTRA_LIBS += -liconv
  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
  	$(WHOIS_MAKE_ENV) $(MAKE) $(WHOIS_MAKE_OPTS) -C $(@D)
  endef
  
  define WHOIS_INSTALL_TARGET_CMDS
  	$(WHOIS_MAKE_ENV) $(MAKE) $(WHOIS_MAKE_OPTS) \
  		BASEDIR="$(TARGET_DIR)" install -C $(@D)
  endef
  
  $(eval $(generic-package))