Blame view

buildroot/buildroot-2016.08.1/package/icu/icu.mk 1.6 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
44
45
46
47
48
49
50
51
52
53
54
55
  ################################################################################
  #
  # icu
  #
  ################################################################################
  
  ICU_VERSION = 57.1
  ICU_SOURCE = icu4c-$(subst .,_,$(ICU_VERSION))-src.tgz
  ICU_SITE = http://download.icu-project.org/files/icu4c/$(ICU_VERSION)
  ICU_LICENSE = ICU License
  ICU_LICENSE_FILES = license.html
  
  ICU_DEPENDENCIES = host-icu
  ICU_INSTALL_STAGING = YES
  ICU_CONFIG_SCRIPTS = icu-config
  ICU_CONF_OPTS = \
  	--with-cross-build=$(HOST_ICU_DIR)/source \
  	--disable-samples \
  	--disable-tests
  
  # When available, icu prefers to use C++11 atomics, which rely on the
  # __atomic builtins. On certain architectures, this requires linking
  # with libatomic starting from gcc 4.8.
  ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y)
  ICU_CONF_ENV += LIBS="-latomic"
  endif
  
  HOST_ICU_CONF_OPTS = \
  	--disable-samples \
  	--disable-tests \
  	--disable-extras \
  	--disable-icuio \
  	--disable-layout \
  	--disable-renaming
  ICU_SUBDIR = source
  HOST_ICU_SUBDIR = source
  
  ICU_CUSTOM_DATA_PATH = $(call qstrip,$(BR2_PACKAGE_ICU_CUSTOM_DATA_PATH))
  
  ifneq ($(ICU_CUSTOM_DATA_PATH),)
  define ICU_COPY_CUSTOM_DATA
  	cp $(ICU_CUSTOM_DATA_PATH) $(@D)/source/data/in/
  endef
  ICU_POST_PATCH_HOOKS += ICU_COPY_CUSTOM_DATA
  endif
  
  define ICU_REMOVE_DEV_FILES
  	rm -f $(addprefix $(TARGET_DIR)/usr/bin/,derb genbrk gencfu gencnval gendict genrb icuinfo makeconv uconv)
  	rm -f $(addprefix $(TARGET_DIR)/usr/sbin/,genccode gencmn gennorm2 gensprep icupkg)
  	rm -rf $(TARGET_DIR)/usr/share/icu
  endef
  ICU_POST_INSTALL_TARGET_HOOKS += ICU_REMOVE_DEV_FILES
  
  $(eval $(autotools-package))
  $(eval $(host-autotools-package))