0979a9e13c
This commit creates a symlink that ensures fontconfig will find the fonts installed by the font-awesome package. Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
21 lines
763 B
Makefile
21 lines
763 B
Makefile
################################################################################
|
|
#
|
|
# font-awesome
|
|
#
|
|
################################################################################
|
|
|
|
FONT_AWESOME_VERSION = 4.7.0
|
|
FONT_AWESOME_SITE = $(call github,FortAwesome,Font-Awesome,v$(FONT_AWESOME_VERSION))
|
|
FONT_AWESOME_LICENSE = OFL-1.1 (font), MIT (CSS, LESS and Sass files)
|
|
FONT_AWESOME_DIRECTORIES_LIST = css fonts less scss
|
|
|
|
define FONT_AWESOME_INSTALL_TARGET_CMDS
|
|
mkdir -p $(TARGET_DIR)/usr/share/font-awesome/
|
|
$(foreach d,$(FONT_AWESOME_DIRECTORIES_LIST),\
|
|
cp -dpfr $(@D)/$(d) $(TARGET_DIR)/usr/share/font-awesome$(sep))
|
|
mkdir -p $(TARGET_DIR)/usr/share/fonts/
|
|
ln -sf ../font-awesome $(TARGET_DIR)/usr/share/fonts/font-awesome
|
|
endef
|
|
|
|
$(eval $(generic-package))
|