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
105
106
107
108
109
|
# -*-makefile-*-
# $Id$
#
# Copyright (C) 2006 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_PELTS) += host-pelts
#
# Paths and names
#
HOST_PELTS_VERSION := 1.0.6
HOST_PELTS := pelts-$(HOST_PELTS_VERSION)
HOST_PELTS_SUFFIX := tar.bz2
HOST_PELTS_URL := http://www.pengutronix.de/software/pelts/download/v1/$(HOST_PELTS).$(HOST_PELTS_SUFFIX)
HOST_PELTS_SOURCE := $(SRCDIR)/$(HOST_PELTS).$(HOST_PELTS_SUFFIX)
HOST_PELTS_DIR := $(HOST_BUILDDIR)/$(HOST_PELTS)
# ----------------------------------------------------------------------------
# Get
# ----------------------------------------------------------------------------
host-pelts_get: $(STATEDIR)/host-pelts.get
$(STATEDIR)/host-pelts.get: $(host-pelts_get_deps_default)
@$(call targetinfo, $@)
@$(call touch, $@)
$(HOST_PELTS_SOURCE):
@$(call targetinfo, $@)
@$(call get, HOST_PELTS)
# ----------------------------------------------------------------------------
# Extract
# ----------------------------------------------------------------------------
host-pelts_extract: $(STATEDIR)/host-pelts.extract
$(STATEDIR)/host-pelts.extract: $(host-pelts_extract_deps_default)
@$(call targetinfo, $@)
@$(call clean, $(HOST_PELTS_DIR))
@$(call extract, HOST_PELTS, $(HOST_BUILDDIR))
@$(call patchin, HOST_PELTS, $(HOST_PELTS_DIR))
@$(call touch, $@)
# ----------------------------------------------------------------------------
# Prepare
# ----------------------------------------------------------------------------
host-pelts_prepare: $(STATEDIR)/host-pelts.prepare
HOST_PELTS_PATH := PATH=$(HOST_PATH)
HOST_PELTS_ENV := $(HOST_ENV)
#
# autoconf
#
HOST_PELTS_AUTOCONF := $(HOST_AUTOCONF)
$(STATEDIR)/host-pelts.prepare: $(host-pelts_prepare_deps_default)
@$(call targetinfo, $@)
@$(call clean, $(HOST_PELTS_DIR)/config.cache)
cd $(HOST_PELTS_DIR) && \
$(HOST_PELTS_PATH) $(HOST_PELTS_ENV) \
./configure $(HOST_PELTS_AUTOCONF)
@$(call touch, $@)
# ----------------------------------------------------------------------------
# Compile
# ----------------------------------------------------------------------------
host-pelts_compile: $(STATEDIR)/host-pelts.compile
$(STATEDIR)/host-pelts.compile: $(host-pelts_compile_deps_default)
@$(call targetinfo, $@)
cd $(HOST_PELTS_DIR) && $(HOST_PELTS_ENV) $(HOST_PELTS_PATH) make
@$(call touch, $@)
# ----------------------------------------------------------------------------
# Install
# ----------------------------------------------------------------------------
host-pelts_install: $(STATEDIR)/host-pelts.install
$(STATEDIR)/host-pelts.install: $(host-pelts_install_deps_default)
@$(call targetinfo, $@)
@$(call install, HOST_PELTS,,h)
@$(call touch, $@)
# ----------------------------------------------------------------------------
# Clean
# ----------------------------------------------------------------------------
host-pelts_clean:
rm -rf $(STATEDIR)/host-pelts.*
rm -rf $(HOST_PELTS_DIR)
# vim: syntax=make
|