summaryrefslogtreecommitdiffstats
path: root/rules/xorg-font-ttf-lohit-devanagari.make
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2015-10-21 11:09:43 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2015-10-27 11:10:52 +0100
commitc9b260805c4404f3f78a23484efddb8ce92cf049 (patch)
tree070afe3e89a135e30975aa655b058bbac15766ca /rules/xorg-font-ttf-lohit-devanagari.make
parent051be7293a0eb475aabe6f88b378423b8b73412f (diff)
downloadptxdist-c9b260805c4404f3f78a23484efddb8ce92cf049.tar.gz
ptxdist-c9b260805c4404f3f78a23484efddb8ce92cf049.tar.xz
xorg-font-ttf-lohit-devanagari: new package
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'rules/xorg-font-ttf-lohit-devanagari.make')
-rw-r--r--rules/xorg-font-ttf-lohit-devanagari.make85
1 files changed, 85 insertions, 0 deletions
diff --git a/rules/xorg-font-ttf-lohit-devanagari.make b/rules/xorg-font-ttf-lohit-devanagari.make
new file mode 100644
index 000000000..8032b28ff
--- /dev/null
+++ b/rules/xorg-font-ttf-lohit-devanagari.make
@@ -0,0 +1,85 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2015 by Michael Olbrich <m.olbrich@pengutronix.de>
+#
+# See CREDITS for details about who has contributed to this project.
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_XORG_FONT_TTF_LOHIT_DEVANAGARI) += xorg-font-ttf-lohit-devanagari
+
+#
+# Paths and names
+#
+XORG_FONT_TTF_LOHIT_DEVANAGARI_VERSION := 2.95.2
+XORG_FONT_TTF_LOHIT_DEVANAGARI_MD5 := 270adeaad6758d8e94cc6217d7db5596
+XORG_FONT_TTF_LOHIT_DEVANAGARI := lohit-devanagari-ttf-$(XORG_FONT_TTF_LOHIT_DEVANAGARI_VERSION)
+XORG_FONT_TTF_LOHIT_DEVANAGARI_SUFFIX := tar.gz
+XORG_FONT_TTF_LOHIT_DEVANAGARI_URL := https://fedorahosted.org/releases/l/o/lohit/$(XORG_FONT_TTF_LOHIT_DEVANAGARI).$(XORG_FONT_TTF_LOHIT_DEVANAGARI_SUFFIX)
+XORG_FONT_TTF_LOHIT_DEVANAGARI_SOURCE := $(SRCDIR)/$(XORG_FONT_TTF_LOHIT_DEVANAGARI).$(XORG_FONT_TTF_LOHIT_DEVANAGARI_SUFFIX)
+XORG_FONT_TTF_LOHIT_DEVANAGARI_DIR := $(BUILDDIR)/$(XORG_FONT_TTF_LOHIT_DEVANAGARI)
+XORG_FONT_TTF_LOHIT_DEVANAGARI_LICENSE := OFL-1.1
+XORG_FONT_TTF_LOHIT_DEVANAGARI_LICENSE_FILES := \
+ file://OFL.txt;md5=7dfa0a236dc535ad2d2548e6170c4402
+
+ifdef PTXCONF_XORG_FONT_TTF_LOHIT_DEVANAGARI
+$(STATEDIR)/xorg-fonts.targetinstall.post: $(STATEDIR)/xorg-font-ttf-lohit-devanagari.targetinstall
+endif
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+XORG_FONT_TTF_LOHIT_DEVANAGARI_CONF_TOOL := NO
+
+# ----------------------------------------------------------------------------
+# Compile
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/xorg-font-ttf-lohit-devanagari.compile:
+ @$(call targetinfo)
+ @$(call touch)
+
+# ----------------------------------------------------------------------------
+# Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/xorg-font-ttf-lohit-devanagari.install:
+ @$(call targetinfo)
+ @$(call touch)
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/xorg-font-ttf-lohit-devanagari.targetinstall:
+ @$(call targetinfo)
+
+ @mkdir -p $(XORG_FONTS_DIR_INSTALL)/truetype
+
+ @find $(XORG_FONT_TTF_LOHIT_DEVANAGARI_DIR) \
+ -name "*.ttf" \
+ | \
+ while read file; do \
+ install -m 644 $${file} $(XORG_FONTS_DIR_INSTALL)/truetype; \
+ done
+
+ @$(call install_init, xorg-font-ttf-lohit-devanagari)
+ @$(call install_fixup, xorg-font-ttf-lohit-devanagari,PRIORITY,optional)
+ @$(call install_fixup, xorg-font-ttf-lohit-devanagari,SECTION,base)
+ @$(call install_fixup, xorg-font-ttf-lohit-devanagari,AUTHOR,"Michael Olbrich <m.olbrich@pengutronix.de>")
+ @$(call install_fixup, xorg-font-ttf-lohit-devanagari,DESCRIPTION,missing)
+
+ @$(call install_copy, xorg-font-ttf-lohit-devanagari, 0, 0, 644, \
+ $(XORG_FONT_TTF_LOHIT_DEVANAGARI_DIR)/66-lohit-devanagari.conf, \
+ /etc/fonts/conf.d/66-lohit-devanagari.conf)
+
+ @$(call install_finish, xorg-font-ttf-lohit-devanagari)
+ @$(call touch)
+
+# vim: syntax=make