summaryrefslogtreecommitdiffstats
path: root/rules/host-fontconfig.make
blob: 8eaf2142ac0e77cb66a44add930a74cbc1e10a1f (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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
# -*-makefile-*-
# $Id$
#
# Copyright (C) 2007 by Robert Schwebel
#
# 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
#
HOST_PACKAGES-$(PTXCONF_HOST_FONTCONFIG) += host-fontconfig

#
# Paths and names
#
HOST_FONTCONFIG_DIR	= $(HOST_BUILDDIR)/$(FONTCONFIG)

# ----------------------------------------------------------------------------
# Get
# ----------------------------------------------------------------------------

host-fontconfig_get: $(STATEDIR)/host-fontconfig.get

$(STATEDIR)/host-fontconfig.get: $(STATEDIR)/fontconfig.get
	@$(call targetinfo, $@)
	@$(call touch, $@)

# ----------------------------------------------------------------------------
# Extract
# ----------------------------------------------------------------------------

host-fontconfig_extract: $(STATEDIR)/host-fontconfig.extract

$(STATEDIR)/host-fontconfig.extract: $(host-fontconfig_extract_deps_default)
	@$(call targetinfo, $@)
	@$(call clean, $(HOST_FONTCONFIG_DIR))
	@$(call extract, FONTCONFIG, $(HOST_BUILDDIR))
	@$(call patchin, FONTCONFIG, $(HOST_FONTCONFIG_DIR))
	@$(call touch, $@)

# ----------------------------------------------------------------------------
# Prepare
# ----------------------------------------------------------------------------

host-fontconfig_prepare: $(STATEDIR)/host-fontconfig.prepare

HOST_FONTCONFIG_PATH	:= PATH=$(HOST_PATH)
HOST_FONTCONFIG_ENV 	:= \
	$(HOST_ENV) \
	ac_cv_prog_HASDOCBOOK=no

#
# autoconf
#
HOST_FONTCONFIG_AUTOCONF := \
	$(HOST_AUTOCONF) \
	--disable-docs \
	--with-cache-dir=$(PTXCONF_SYSROOT_HOST)/var/cache/fontconfig \
	--with-default-fonts=$(XORG_FONTDIR) \
	--with-arch=$(PTXCONF_ARCH_STRING)

$(STATEDIR)/host-fontconfig.prepare: $(host-fontconfig_prepare_deps_default)
	@$(call targetinfo, $@)
	@$(call clean, $(HOST_FONTCONFIG_DIR)/config.cache)
	cd $(HOST_FONTCONFIG_DIR) && \
		$(HOST_FONTCONFIG_PATH) $(HOST_FONTCONFIG_ENV) \
		./configure $(HOST_FONTCONFIG_AUTOCONF)
	@$(call touch, $@)

# ----------------------------------------------------------------------------
# Compile
# ----------------------------------------------------------------------------

host-fontconfig_compile: $(STATEDIR)/host-fontconfig.compile

$(STATEDIR)/host-fontconfig.compile: $(host-fontconfig_compile_deps_default)
	@$(call targetinfo, $@)
	cd $(HOST_FONTCONFIG_DIR) && $(HOST_FONTCONFIG_PATH) $(MAKE) $(PARALLELMFLAGS_BROKEN)
	@$(call touch, $@)

# ----------------------------------------------------------------------------
# Install
# ----------------------------------------------------------------------------

host-fontconfig_install: $(STATEDIR)/host-fontconfig.install

$(STATEDIR)/host-fontconfig.install: $(host-fontconfig_install_deps_default)
	@$(call targetinfo, $@)
	@$(call install, HOST_FONTCONFIG,,h)
	@$(call touch, $@)

# ----------------------------------------------------------------------------
# Clean
# ----------------------------------------------------------------------------

host-fontconfig_clean:
	rm -rf $(STATEDIR)/host-fontconfig.*
	rm -rf $(HOST_FONTCONFIG_DIR)

# vim: syntax=make