[Buildroot] [PATCH/next v2, 1/1] package/font-awesome: make it compatible with fontconfig

Baruch Siach baruch at tkos.co.il
Tue Feb 25 16:38:42 UTC 2020


Hi Fabrice,

On Tue, Feb 25, 2020 at 05:33:43PM +0100, Fabrice Fontaine wrote:
> This commit installs font-awesome in the standard fonts directory
> making it available systemwide.
> 
> Thanks to baruch for his technical critique.
> Signed-off-by: Benjamin Calderon <benj.calderon at gmail.com>
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice at gmail.com>
> ---
> Changes v1 -> v2 (after review of Arnout Vandecappelle):
>  - Keep only install of otf file and don't remove install of other files
> 
>  package/font-awesome/font-awesome.mk | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/package/font-awesome/font-awesome.mk b/package/font-awesome/font-awesome.mk
> index 666346be0e..85e5a239c5 100644
> --- a/package/font-awesome/font-awesome.mk
> +++ b/package/font-awesome/font-awesome.mk
> @@ -10,6 +10,8 @@ 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/fonts/font-awesome/
> +	cp $(@D)/fonts/*.otf $(TARGET_DIR)/usr/share/fonts/font-awesome

Maybe just create a symlink in $(TARGET_DIR)/usr/share/fonts/font-awesome 
pointing to ../font-awesome? This would avoid duplication of *.otf files.

Does that work?

baruch

>  	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))

-- 
     http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -


More information about the buildroot mailing list