summaryrefslogtreecommitdiffstats
path: root/rules/host-libxslt.make
blob: a46c6f3a05cd015f51f20fc31b49f4b44257af3e (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
# -*-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_LIBXSLT) += host-libxslt

#
# Paths and names
#
HOST_LIBXSLT_DIR	= $(HOST_BUILDDIR)/$(LIBXSLT)

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

host-libxslt_get: $(STATEDIR)/host-libxslt.get

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

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

host-libxslt_extract: $(STATEDIR)/host-libxslt.extract

$(STATEDIR)/host-libxslt.extract: $(host-libxslt_extract_deps_default)
	@$(call targetinfo, $@)
	@$(call clean, $(HOST_LIBXSLT_DIR))
	@$(call extract, LIBXSLT, $(HOST_BUILDDIR))
	@$(call patchin, LIBXSLT, $(HOST_LIBXSLT_DIR))
	@$(call touch, $@)

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

host-libxslt_prepare: $(STATEDIR)/host-libxslt.prepare

HOST_LIBXSLT_PATH	:= PATH=$(HOST_PATH)
HOST_LIBXSLT_ENV 	:= $(HOST_ENV)

#
# autoconf
#
HOST_LIBXSLT_AUTOCONF	:= $(HOST_AUTOCONF)

$(STATEDIR)/host-libxslt.prepare: $(host-libxslt_prepare_deps_default)
	@$(call targetinfo, $@)
	@$(call clean, $(HOST_LIBXSLT_DIR)/config.cache)
	cd $(HOST_LIBXSLT_DIR) && \
		$(HOST_LIBXSLT_PATH) $(HOST_LIBXSLT_ENV) \
		./configure $(HOST_LIBXSLT_AUTOCONF)
	@$(call touch, $@)

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

host-libxslt_compile: $(STATEDIR)/host-libxslt.compile

$(STATEDIR)/host-libxslt.compile: $(host-libxslt_compile_deps_default)
	@$(call targetinfo, $@)
	cd $(HOST_LIBXSLT_DIR) && $(HOST_LIBXSLT_PATH) $(MAKE) $(PARALLELMFLAGS)
	@$(call touch, $@)

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

host-libxslt_install: $(STATEDIR)/host-libxslt.install

$(STATEDIR)/host-libxslt.install: $(host-libxslt_install_deps_default)
	@$(call targetinfo, $@)
	@$(call install, HOST_LIBXSLT,,h)
	@$(call touch, $@)

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

host-libxslt_clean:
	rm -rf $(STATEDIR)/host-libxslt.*
	rm -rf $(HOST_LIBXSLT_DIR)

# vim: syntax=make