linux-headers: bump 4.{4, 9, 10}.x series
[buildroot-gz.git] / package / dejavu / dejavu.mk
blob3dbcc94e16e44c233e732733ae4856e491375ae5
1 ################################################################################
3 # dejavu
5 ################################################################################
7 DEJAVU_VERSION = 2.35
8 DEJAVU_SITE = http://sourceforge.net/projects/dejavu/files/dejavu/$(DEJAVU_VERSION)
9 DEJAVU_SOURCE = dejavu-fonts-ttf-$(DEJAVU_VERSION).tar.bz2
10 DEJAVU_LICENSE_FILES = LICENSE
12 DEJAVU_FONTS_INSTALL =
13 DEJAVU_FONTCONFIG_CONF_INSTALL =
15 ifeq ($(BR2_PACKAGE_DEJAVU_MONO),y)
16 DEJAVU_FONTS_INSTALL += DejaVuSansMono*.ttf
17 DEJAVU_FONTCONFIG_CONF_INSTALL += \
18 20-unhint-small-dejavu-sans-mono.conf \
19 57-dejavu-sans-mono.conf
20 endif
22 ifeq ($(BR2_PACKAGE_DEJAVU_SANS),y)
23 DEJAVU_FONTS_INSTALL += DejaVuSans.ttf DejaVuSans-*.ttf
24 DEJAVU_FONTCONFIG_CONF_INSTALL += \
25 20-unhint-small-dejavu-sans.conf \
26 57-dejavu-sans.conf
27 endif
29 ifeq ($(BR2_PACKAGE_DEJAVU_SERIF),y)
30 DEJAVU_FONTS_INSTALL += DejaVuSerif.ttf DejaVuSerif-*.ttf
31 DEJAVU_FONTCONFIG_CONF_INSTALL += \
32 20-unhint-small-dejavu-serif.conf \
33 57-dejavu-serif.conf
34 endif
36 ifeq ($(BR2_PACKAGE_DEJAVU_SANS_CONDENSED),y)
37 DEJAVU_FONTS_INSTALL += DejaVuSansCondensed*.ttf
38 endif
40 ifeq ($(BR2_PACKAGE_DEJAVU_SERIF_CONDENSED),y)
41 DEJAVU_FONTS_INSTALL += DejaVuSerifCondensed*.ttf
42 endif
44 ifeq ($(BR2_PACKAGE_FONTCONFIG),y)
45 define DEJAVU_FONTCONFIG_CONF_INSTALL_CMDS
46 for i in $(DEJAVU_FONTCONFIG_CONF_INSTALL) ; do \
47 $(INSTALL) -D -m 0644 $(@D)/fontconfig/$$i \
48 $(TARGET_DIR)/usr/share/fontconfig/conf.avail/$$i || exit 1 ; \
49 done
50 endef
51 endif
53 define DEJAVU_INSTALL_TARGET_CMDS
54 mkdir -p $(TARGET_DIR)/usr/share/fonts/dejavu/
55 for i in $(DEJAVU_FONTS_INSTALL) ; do \
56 $(INSTALL) -m 0644 $(@D)/ttf/$$i \
57 $(TARGET_DIR)/usr/share/fonts/dejavu/ || exit 1 ; \
58 done
59 $(DEJAVU_FONTCONFIG_CONF_INSTALL_CMDS)
60 endef
62 $(eval $(generic-package))