diff options
author | Michael Olbrich <m.olbrich@pengutronix.de> | 2010-02-04 17:26:52 +0100 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2010-02-07 19:52:23 +0100 |
commit | 845b8b804bbbe44498efc9aa1b6917c1eae0520d (patch) | |
tree | 92836a41179ee9bad91b2e4131d2dc803bde9930 /rules | |
parent | 9621d36e2fd1d07987e23e332dc81ef421495f9a (diff) | |
download | ptxdist-845b8b804bbbe44498efc9aa1b6917c1eae0520d.tar.gz ptxdist-845b8b804bbbe44498efc9aa1b6917c1eae0520d.tar.xz |
[xorg-font-arphic-uming] new package
"AR PL UMing" Chinese Unicode TrueType font collection Mingti style
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'rules')
-rw-r--r-- | rules/xorg-font-arphic-uming.in | 8 | ||||
-rw-r--r-- | rules/xorg-font-arphic-uming.make | 90 |
2 files changed, 98 insertions, 0 deletions
diff --git a/rules/xorg-font-arphic-uming.in b/rules/xorg-font-arphic-uming.in new file mode 100644 index 000000000..d3acb24cc --- /dev/null +++ b/rules/xorg-font-arphic-uming.in @@ -0,0 +1,8 @@ +## SECTION=multimedia_xorg_font_other + +config XORG_FONT_ARPHIC_UMING + bool + select XORG_FONTS + prompt "'AR PL UMing' Chinese font collection Kaiti style" + help + FIXME diff --git a/rules/xorg-font-arphic-uming.make b/rules/xorg-font-arphic-uming.make new file mode 100644 index 000000000..a1618e2df --- /dev/null +++ b/rules/xorg-font-arphic-uming.make @@ -0,0 +1,90 @@ +# -*-makefile-*- +# +# Copyright (C) 2010 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_ARPHIC_UMING) += xorg-font-arphic-uming + +# +# Paths and names +# +XORG_FONT_ARPHIC_UMING_VERSION := 0.2.20080216.1 +XORG_FONT_ARPHIC_UMING := ttf-arphic-uming_$(XORG_FONT_ARPHIC_UMING_VERSION) +XORG_FONT_ARPHIC_UMING_SUFFIX := tar.gz +XORG_FONT_ARPHIC_UMING_URL := http://de.archive.ubuntu.com/ubuntu/pool/main/t/ttf-arphic-uming/$(XORG_FONT_ARPHIC_UMING).orig.$(XORG_FONT_ARPHIC_UMING_SUFFIX) +XORG_FONT_ARPHIC_UMING_SOURCE := $(SRCDIR)/$(XORG_FONT_ARPHIC_UMING).orig.$(XORG_FONT_ARPHIC_UMING_SUFFIX) +XORG_FONT_ARPHIC_UMING_DIR := $(BUILDDIR)/$(XORG_FONT_ARPHIC_UMING) + +ifdef PTXCONF_XORG_FONT_ARPHIC_UMING +$(STATEDIR)/xorg-fonts.targetinstall.post: $(STATEDIR)/xorg-font-arphic-uming.targetinstall +endif + +# ---------------------------------------------------------------------------- +# Get +# ---------------------------------------------------------------------------- + +$(XORG_FONT_ARPHIC_UMING_SOURCE): + @$(call targetinfo) + @$(call get, XORG_FONT_ARPHIC_UMING) + +# ---------------------------------------------------------------------------- +# Extract +# ---------------------------------------------------------------------------- + +$(STATEDIR)/xorg-font-arphic-uming.extract: + @$(call targetinfo) + @$(call clean, $(XORG_FONT_ARPHIC_UMING_DIR)) + @mkdir -p $(XORG_FONT_ARPHIC_UMING_DIR) + @$(call extract, XORG_FONT_ARPHIC_UMING, $(XORG_FONT_ARPHIC_UMING_DIR)) + @$(call patchin, XORG_FONT_ARPHIC_UMING, $(XORG_FONT_ARPHIC_UMING_DIR)) + @$(call touch) + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +XORG_FONT_ARPHIC_UMING_CONF_TOOL := NO + +# ---------------------------------------------------------------------------- +# Compile +# ---------------------------------------------------------------------------- + +$(STATEDIR)/xorg-font-arphic-uming.compile: + @$(call targetinfo) + @$(call touch) + +# ---------------------------------------------------------------------------- +# Install +# ---------------------------------------------------------------------------- + +$(STATEDIR)/xorg-font-arphic-uming.install: + @$(call targetinfo) + @$(call touch) + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +$(STATEDIR)/xorg-font-arphic-uming.targetinstall: + @$(call targetinfo) + + @mkdir -p $(XORG_FONTS_DIR_INSTALL)/truetype + + @find $(XORG_FONT_ARPHIC_UMING_DIR) \ + -name "*.ttc" \ + | \ + while read file; do \ + install -m 644 $${file} $(XORG_FONTS_DIR_INSTALL)/truetype; \ + done + + @$(call touch) + +# vim: syntax=make |