summaryrefslogtreecommitdiffstats
path: root/rules
diff options
context:
space:
mode:
authorFlorian Bäuerle <florian.baeuerle@allegion.com>2018-09-18 16:14:30 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2018-09-27 10:28:56 +0200
commitacebfc49c9fe3e0911c220b349be7a60f9650d59 (patch)
tree679c6f5bb9f31c0a2b4a3396ad347685dfd84047 /rules
parent487380d908817a00bf2fac72d920dab37b423b21 (diff)
downloadptxdist-acebfc49c9fe3e0911c220b349be7a60f9650d59.tar.gz
ptxdist-acebfc49c9fe3e0911c220b349be7a60f9650d59.tar.xz
xorg-font-ttf-noto: separate from xorg-fonts
Signed-off-by: Florian Bäuerle <florian.baeuerle@allegion.com> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'rules')
-rw-r--r--rules/xorg-font-ttf-noto.make26
1 files changed, 10 insertions, 16 deletions
diff --git a/rules/xorg-font-ttf-noto.make b/rules/xorg-font-ttf-noto.make
index 044d4196d..ecd348ba4 100644
--- a/rules/xorg-font-ttf-noto.make
+++ b/rules/xorg-font-ttf-noto.make
@@ -1,6 +1,7 @@
# -*-makefile-*-
#
# Copyright (C) 2015 by Michael Olbrich <m.olbrich@pengutronix.de>
+# 2018 by Florian Bäuerle <florian.baeuerle@allegion.com>
#
# See CREDITS for details about who has contributed to this project.
#
@@ -25,15 +26,8 @@ XORG_FONT_TTF_NOTO_SOURCE := $(SRCDIR)/$(XORG_FONT_TTF_NOTO).$(XORG_FONT_TTF_NOT
XORG_FONT_TTF_NOTO_DIR := $(BUILDDIR)/$(XORG_FONT_TTF_NOTO)
XORG_FONT_TTF_NOTO_LICENSE := OFL-1.1
-ifdef PTXCONF_XORG_FONT_TTF_NOTO
-$(STATEDIR)/xorg-fonts.targetinstall.post: $(STATEDIR)/xorg-font-ttf-noto.targetinstall
-endif
-
-# ----------------------------------------------------------------------------
-# Prepare
-# ----------------------------------------------------------------------------
-
XORG_FONT_TTF_NOTO_CONF_TOOL := NO
+XORG_FONT_TTF_NOTO_FONTDIR := $(XORG_FONTDIR)/truetype/noto
# ----------------------------------------------------------------------------
# Compile
@@ -49,6 +43,7 @@ $(STATEDIR)/xorg-font-ttf-noto.compile:
$(STATEDIR)/xorg-font-ttf-noto.install:
@$(call targetinfo)
+ @$(call world/install-fonts,XORG_FONT_TTF_NOTO,*.ttf)
@$(call touch)
# ----------------------------------------------------------------------------
@@ -57,16 +52,15 @@ $(STATEDIR)/xorg-font-ttf-noto.install:
$(STATEDIR)/xorg-font-ttf-noto.targetinstall:
@$(call targetinfo)
+ @$(call install_init, xorg-font-ttf-noto)
+ @$(call install_fixup, xorg-font-ttf-noto,PRIORITY,optional)
+ @$(call install_fixup, xorg-font-ttf-noto,SECTION,base)
+ @$(call install_fixup, xorg-font-ttf-noto,AUTHOR,"Florian Bäuerle <florian.baeuerle@allegion.com>")
+ @$(call install_fixup, xorg-font-ttf-noto,DESCRIPTION,missing)
- @mkdir -p $(XORG_FONTS_DIR_INSTALL)/truetype
-
- @find $(XORG_FONT_TTF_NOTO_DIR)/{unhinted,hinted} \
- -name "*.ttf" \
- | \
- while read file; do \
- install -m 644 $${file} $(XORG_FONTS_DIR_INSTALL)/truetype; \
- done
+ @$(call install_tree, xorg-font-ttf-noto, 0, 0, -, /usr)
+ @$(call install_finish, xorg-font-ttf-noto)
@$(call touch)
# vim: syntax=make