python-dataproperty: bump version to 0.17.0
[buildroot-gz.git] / package / google-material-design-icons / google-material-design-icons.mk
blobd410a45e303621aa525ef966f902dd2c4c5da2c8
1 ################################################################################
3 # google-material-design-icons
5 ################################################################################
7 GOOGLE_MATERIAL_DESIGN_ICONS_VERSION = 2.2.3
8 GOOGLE_MATERIAL_DESIGN_ICONS_SOURCE = \
9 $(GOOGLE_MATERIAL_DESIGN_ICONS_VERSION).tar.gz
10 GOOGLE_MATERIAL_DESIGN_ICONS_SITE = \
11 https://github.com/google/material-design-icons/archive
12 GOOGLE_MATERIAL_DESIGN_ICONS_LICENSE = CC-BY-4.0
13 GOOGLE_MATERIAL_DESIGN_ICONS_LICENSE_FILES = LICENSE
15 GOOGLE_MATERIAL_DESIGN_ICONS_LIST = \
16 action alert av communication content device editor file \
17 hardware image maps navigation notification places social toggle
19 ifneq ($(BR2_PACKAGE_GOOGLE_MATERIAL_DESIGN_ICONS_TYPE_PNG)$(BR2_PACKAGE_GOOGLE_MATERIAL_DESIGN_ICONS_TYPE_SVG),)
20 define GOOGLE_MATERIAL_DESIGN_ICONS_INSTALL_ICONS_IMAGES
21 $(foreach family,$(GOOGLE_MATERIAL_DESIGN_ICONS_LIST),\
22 $(INSTALL) -d $(TARGET_DIR)/usr/share/google-material/$(family) \
23 || exit 1; \
24 $(if $(BR2_PACKAGE_GOOGLE_MATERIAL_DESIGN_ICONS_TYPE_PNG), \
25 $(INSTALL) -D -m 0644 $(@D)/$(family)/1x_web/*.png \
26 $(TARGET_DIR)/usr/share/google-material/$(family) || exit 1;) \
27 $(if $(BR2_PACKAGE_GOOGLE_MATERIAL_DESIGN_ICONS_TYPE_SVG), \
28 $(INSTALL) -D -m 0644 $(@D)/$(family)/svg/production/*.svg \
29 $(TARGET_DIR)/usr/share/google-material/$(family) || exit 1;) \
31 endef
32 endif
34 ifeq ($(BR2_PACKAGE_GOOGLE_MATERIAL_DESIGN_ICONS_FONT),y)
35 define GOOGLE_MATERIAL_DESIGN_ICONS_INSTALL_ICONS_FONT
36 $(INSTALL) -D -m 0644 $(@D)/iconfont/MaterialIcons-Regular.ttf \
37 $(TARGET_DIR)/usr/share/fonts/google-material/MaterialIcons-Regular.ttf \
38 || exit 1
39 endef
40 endif
42 define GOOGLE_MATERIAL_DESIGN_ICONS_INSTALL_ICONS_SPRITES
43 $(if $(BR2_PACKAGE_GOOGLE_MATERIAL_DESIGN_ICONS_SPRITES_CSS), \
44 $(INSTALL) -d $(TARGET_DIR)/usr/share/google-material/css-sprite \
45 || exit 1; \
46 $(INSTALL) -D -m 0644 $(@D)/sprites/css-sprite/* \
47 $(TARGET_DIR)/usr/share/google-material/css-sprite || exit 1)
48 $(if $(BR2_PACKAGE_GOOGLE_MATERIAL_DESIGN_ICONS_SPRITES_SVG), \
49 $(INSTALL) -d $(TARGET_DIR)/usr/share/google-material/svg-sprite \
50 || exit 1; \
51 $(INSTALL) -D -m 0644 $(@D)/sprites/svg-sprite/* \
52 $(TARGET_DIR)/usr/share/google-material/svg-sprite || exit 1)
53 endef
55 define GOOGLE_MATERIAL_DESIGN_ICONS_INSTALL_TARGET_CMDS
56 $(GOOGLE_MATERIAL_DESIGN_ICONS_INSTALL_ICONS_FONT)
57 $(GOOGLE_MATERIAL_DESIGN_ICONS_INSTALL_ICONS_IMAGES)
58 $(GOOGLE_MATERIAL_DESIGN_ICONS_INSTALL_ICONS_SPRITES)
59 endef
61 $(eval $(generic-package))