2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2012-10-11 01:28:05 +02:00
|
|
|
#
|
|
|
|
# googlefontdirectory
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2012-10-11 01:28:05 +02:00
|
|
|
|
2019-01-17 22:14:22 +01:00
|
|
|
GOOGLEFONTDIRECTORY_VERSION = 94dff3eaa9301b6640cccc63c56d6ff33d82882c
|
|
|
|
GOOGLEFONTDIRECTORY_SITE = $(call github,google,fonts,$(GOOGLEFONTDIRECTORY_VERSION))
|
2012-10-11 01:28:05 +02:00
|
|
|
|
|
|
|
GOOGLEFONTDIRECTORY_FONTS = \
|
|
|
|
$(call qstrip,$(BR2_PACKAGE_GOOGLEFONTDIRECTORY_FONTS))
|
|
|
|
|
2019-01-17 22:14:22 +01:00
|
|
|
ifneq ($(filter apache/%,$(GOOGLEFONTDIRECTORY_FONTS)),)
|
2019-02-10 16:48:15 +01:00
|
|
|
GOOGLEFONTDIRECTORY_ALL_LICENSES += Apache-2.0
|
2019-01-17 22:14:22 +01:00
|
|
|
GOOGLEFONTDIRECTORY_LICENSE_FILES += $(addsuffix /LICENSE.txt,$(filter apache/%,$(GOOGLEFONTDIRECTORY_FONTS)))
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq ($(filter ofl/%,$(GOOGLEFONTDIRECTORY_FONTS)),)
|
2019-02-10 16:48:15 +01:00
|
|
|
GOOGLEFONTDIRECTORY_ALL_LICENSES += OFL-1.1
|
2019-01-17 22:14:22 +01:00
|
|
|
GOOGLEFONTDIRECTORY_LICENSE_FILES += $(addsuffix /OFL.txt,$(filter ofl/%,$(GOOGLEFONTDIRECTORY_FONTS)))
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq ($(filter ufl/%,$(GOOGLEFONTDIRECTORY_FONTS)),)
|
2019-02-10 16:48:15 +01:00
|
|
|
GOOGLEFONTDIRECTORY_ALL_LICENSES += UFL-1.1
|
2019-01-17 22:14:22 +01:00
|
|
|
GOOGLEFONTDIRECTORY_LICENSE_FILES += $(addsuffix /LICENCE.txt,$(filter ufl/%,$(GOOGLEFONTDIRECTORY_FONTS)))
|
|
|
|
endif
|
|
|
|
|
2019-02-10 16:48:15 +01:00
|
|
|
GOOGLEFONTDIRECTORY_LICENSE = $(subst $(space),$(comma)$(space),$(GOOGLEFONTDIRECTORY_ALL_LICENSES))
|
2019-01-17 22:14:22 +01:00
|
|
|
|
2012-10-11 01:28:05 +02:00
|
|
|
define GOOGLEFONTDIRECTORY_INSTALL_TARGET_CMDS
|
2019-01-17 22:14:22 +01:00
|
|
|
$(foreach d,$(GOOGLEFONTDIRECTORY_FONTS), \
|
|
|
|
mkdir -p $(TARGET_DIR)/usr/share/fonts/$(notdir $(d))
|
|
|
|
$(INSTALL) -m 0644 -t $(TARGET_DIR)/usr/share/fonts/$(notdir $(d)) $(@D)/$(d)/*.ttf
|
|
|
|
)
|
2012-10-11 01:28:05 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(generic-package))
|