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
110
111
112
113
114
115
116
117
118
119
120
121
122
|
# -*-makefile-*-
# $Id$
#
# Copyright (C) 2003 by Benedikt Spranger
#
# 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.
#
# FIXME: RSC: make this a hosttool?
#
# We provide this package
#
PACKAGES-$(PTXCONF_E2TOOLS) += host-e2tools
#
# Paths and names
#
HOST_E2TOOLS_VERSION = 0.0.15
HOST_E2TOOLS = e2tools-$(HOST_E2TOOLS_VERSION)
HOST_E2TOOLS_SUFFIX = tar.gz
HOST_E2TOOLS_URL = http://home.earthlink.net/~k_sheff/sw/e2tools/$(HOST_E2TOOLS).$(HOST_E2TOOLS_SUFFIX)
HOST_E2TOOLS_SOURCE = $(SRCDIR)/$(HOST_E2TOOLS).$(HOST_E2TOOLS_SUFFIX)
HOST_E2TOOLS_DIR = $(BUILDDIR)/$(E2TOOLS)
-include $(call package_depfile)
# ----------------------------------------------------------------------------
# Get
# ----------------------------------------------------------------------------
host-e2tools_get: $(STATEDIR)/host-e2tools.get
$(STATEDIR)/host-e2tools.get: $(host-e2tools_get_deps_default)
@$(call targetinfo, $@)
@$(call touch, $@)
$(HOST_E2TOOLS_SOURCE):
@$(call targetinfo, $@)
@$(call get, $(HOST_E2TOOLS_URL))
# ----------------------------------------------------------------------------
# Extract
# ----------------------------------------------------------------------------
host-e2tools_extract: $(STATEDIR)/host-e2tools.extract
$(STATEDIR)/host-e2tools.extract: $(host-e2tools_extract_deps_default)
@$(call targetinfo, $@)
@$(call clean, $(HOST_E2TOOLS_DIR))
@$(call extract, $(HOST_E2TOOLS_SOURCE))
@$(call touch, $@)
# ----------------------------------------------------------------------------
# Prepare
# ----------------------------------------------------------------------------
host-e2tools_prepare: $(STATEDIR)/host-e2tools.prepare
HOST_E2TOOLS_PATH = PATH=$(CROSS_PATH)
HOST_E2TOOLS_ENV = $(CROSS_ENV)
#
# autoconf
#
HOST_E2TOOLS_AUTOCONF = \
--build=$(GNU_HOST)
--host=$(GNU_HOST)
--target=$(GNU_HOST)
$(STATEDIR)/host-e2tools.prepare: $(host-e2tools_prepare_deps_default)
@$(call targetinfo, $@)
@$(call clean, $(HOST_E2TOOLS_DIR)/config.cache)
cd $(HOST_E2TOOLS_DIR) && \
$(HOST_E2TOOLS_PATH) $(HOST_E2TOOLS_ENV) \
./configure $(HOST_E2TOOLS_AUTOCONF)
@$(call touch, $@)
# ----------------------------------------------------------------------------
# Compile
# ----------------------------------------------------------------------------
host-e2tools_compile: $(STATEDIR)/host-e2tools.compile
$(STATEDIR)/host-e2tools.compile: $(host-e2tools_compile_deps_default)
@$(call targetinfo, $@)
$(HOST_E2TOOLS_PATH) make -C $(HOST_E2TOOLS_DIR)
@$(call touch, $@)
# ----------------------------------------------------------------------------
# Install
# ----------------------------------------------------------------------------
host-e2tools_install: $(STATEDIR)/host-e2tools.install
$(STATEDIR)/host-e2tools.install: $(host-e2tools_install_deps_default)
@$(call targetinfo, $@)
@$(call install, HOST_E2TOOLS)
@$(call touch, $@)
# ----------------------------------------------------------------------------
# Target-Install
# ----------------------------------------------------------------------------
host-e2tools_targetinstall: $(STATEDIR)/host-e2tools.targetinstall
$(STATEDIR)/host-e2tools.targetinstall: $(host-e2tools_targetinstall_deps_default)
@$(call targetinfo, $@)
@$(call touch, $@)
# ----------------------------------------------------------------------------
# Clean
# ----------------------------------------------------------------------------
host-e2tools_clean:
rm -rf $(STATEDIR)/host-e2tools.*
rm -rf $(HOST_E2TOOLS_DIR)
# vim: syntax=make
|