summaryrefslogtreecommitdiffstats
path: root/rules/xorg-font-arphic-uming.make
blob: a1618e2df4cf86302b8b4ef9a5dbead4d94ab763 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
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