1 ################################################################################
5 ################################################################################
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
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 \
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 \
36 ifeq ($(BR2_PACKAGE_DEJAVU_SANS_CONDENSED
),y
)
37 DEJAVU_FONTS_INSTALL
+= DejaVuSansCondensed
*.ttf
40 ifeq ($(BR2_PACKAGE_DEJAVU_SERIF_CONDENSED
),y
)
41 DEJAVU_FONTS_INSTALL
+= DejaVuSerifCondensed
*.ttf
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 ; \
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 ; \
59 $(DEJAVU_FONTCONFIG_CONF_INSTALL_CMDS
)
62 $(eval
$(generic-package
))