Blame view

buildroot/buildroot-2016.08.1/package/dejavu/dejavu.mk 1.73 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
56
57
58
59
60
61
62
  ################################################################################
  #
  # dejavu
  #
  ################################################################################
  
  DEJAVU_VERSION = 2.35
  DEJAVU_SITE = http://sourceforge.net/projects/dejavu/files/dejavu/$(DEJAVU_VERSION)
  DEJAVU_SOURCE = dejavu-fonts-ttf-$(DEJAVU_VERSION).tar.bz2
  DEJAVU_LICENSE_FILES = LICENSE
  
  DEJAVU_FONTS_INSTALL =
  DEJAVU_FONTCONFIG_CONF_INSTALL =
  
  ifeq ($(BR2_PACKAGE_DEJAVU_MONO),y)
  DEJAVU_FONTS_INSTALL += DejaVuSansMono*.ttf
  DEJAVU_FONTCONFIG_CONF_INSTALL += \
  	20-unhint-small-dejavu-sans-mono.conf \
  	57-dejavu-sans-mono.conf
  endif
  
  ifeq ($(BR2_PACKAGE_DEJAVU_SANS),y)
  DEJAVU_FONTS_INSTALL += DejaVuSans.ttf DejaVuSans-*.ttf
  DEJAVU_FONTCONFIG_CONF_INSTALL += \
  	20-unhint-small-dejavu-sans.conf \
  	57-dejavu-sans.conf
  endif
  
  ifeq ($(BR2_PACKAGE_DEJAVU_SERIF),y)
  DEJAVU_FONTS_INSTALL += DejaVuSerif.ttf DejaVuSerif-*.ttf
  DEJAVU_FONTCONFIG_CONF_INSTALL += \
  	20-unhint-small-dejavu-serif.conf \
  	57-dejavu-serif.conf
  endif
  
  ifeq ($(BR2_PACKAGE_DEJAVU_SANS_CONDENSED),y)
  DEJAVU_FONTS_INSTALL += DejaVuSansCondensed*.ttf
  endif
  
  ifeq ($(BR2_PACKAGE_DEJAVU_SERIF_CONDENSED),y)
  DEJAVU_FONTS_INSTALL += DejaVuSerifCondensed*.ttf
  endif
  
  ifeq ($(BR2_PACKAGE_FONTCONFIG),y)
  define DEJAVU_FONTCONFIG_CONF_INSTALL_CMDS
  	for i in $(DEJAVU_FONTCONFIG_CONF_INSTALL) ; do \
  		$(INSTALL) -D -m 0644 $(@D)/fontconfig/$$i \
  			$(TARGET_DIR)/usr/share/fontconfig/conf.avail/$$i || exit 1 ; \
  	done
  endef
  endif
  
  define DEJAVU_INSTALL_TARGET_CMDS
  	mkdir -p $(TARGET_DIR)/usr/share/fonts/dejavu/
  	for i in $(DEJAVU_FONTS_INSTALL) ; do \
  		$(INSTALL) -m 0644 $(@D)/ttf/$$i \
  			$(TARGET_DIR)/usr/share/fonts/dejavu/ || exit 1 ; \
  	done
  	$(DEJAVU_FONTCONFIG_CONF_INSTALL_CMDS)
  endef
  
  $(eval $(generic-package))