summaryrefslogtreecommitdiffstats
path: root/rules/host-ipkg-utils.make
blob: bc7671707fd7ccd2fc57b2f88ca0616cfc39f8df (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
# -*-makefile-*-
# $Id$
#
# Copyright (C) 2005 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_IPKG_UTILS) += host-ipkg-utils

#
# Paths and names
#
HOST_IPKG_UTILS_VERSION	:= 050831
HOST_IPKG_UTILS		:= ipkg-utils-$(HOST_IPKG_UTILS_VERSION)
HOST_IPKG_UTILS_SUFFIX	:= tar.gz
HOST_IPKG_UTILS_URL	:= http://www.handhelds.org/download/packages/ipkg-utils/$(HOST_IPKG_UTILS).$(HOST_IPKG_UTILS_SUFFIX)
HOST_IPKG_UTILS_SOURCE	:= $(SRCDIR)/$(HOST_IPKG_UTILS).$(HOST_IPKG_UTILS_SUFFIX)
HOST_IPKG_UTILS_DIR	:= $(HOST_BUILDDIR)/$(HOST_IPKG_UTILS)

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

host-ipkg-utils_get: $(STATEDIR)/host-ipkg-utils.get

$(STATEDIR)/host-ipkg-utils.get: $(host-ipkg-utils_get_deps_default)
	@$(call targetinfo, $@)
	@$(call touch, $@)

$(HOST_IPKG_UTILS_SOURCE):
	@$(call targetinfo, $@)
	@$(call get, HOST_IPKG_UTILS)

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

host-ipkg-utils_extract: $(STATEDIR)/host-ipkg-utils.extract

$(STATEDIR)/host-ipkg-utils.extract: $(host-ipkg-utils_extract_deps_default)
	@$(call targetinfo, $@)
	@$(call clean, $(HOST_IPKG_UTILS_DIR))
	@$(call extract, HOST_IPKG_UTILS, $(HOST_BUILDDIR))
	@$(call patchin, HOST_IPKG_UTILS, $(HOST_IPKG_UTILS_DIR))
	@$(call touch, $@)

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

host-ipkg-utils_prepare: $(STATEDIR)/host-ipkg-utils.prepare

HOST_IPKG_UTILS_PATH	:= PATH=$(HOST_PATH)
HOST_IPKG_UTILS_ENV 	:= $(HOST_ENV)
HOST_IPKG_UTILS_MAKEVARS := PREFIX=$(PTXCONF_SYSROOT_HOST)

$(STATEDIR)/host-ipkg-utils.prepare: $(host-ipkg-utils_prepare_deps_default)
	@$(call targetinfo, $@)
	@$(call touch, $@)

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

host-ipkg-utils_compile: $(STATEDIR)/host-ipkg-utils.compile

$(STATEDIR)/host-ipkg-utils.compile: $(host-ipkg-utils_compile_deps_default)
	@$(call targetinfo, $@)
	cd $(HOST_IPKG_UTILS_DIR) && $(HOST_IPKG_UTILS_PATH) $(MAKE) $(PARALLELMFLAGS)
	@$(call touch, $@)

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

host-ipkg-utils_install: $(STATEDIR)/host-ipkg-utils.install

$(STATEDIR)/host-ipkg-utils.install: $(host-ipkg-utils_install_deps_default)
	@$(call targetinfo, $@)
	@$(call install, HOST_IPKG_UTILS,,h)
	@$(call touch, $@)

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

host-ipkg-utils_clean:
	rm -rf $(STATEDIR)/host-ipkg-utils.*
	rm -rf $(HOST_IPKG_UTILS_DIR)

# vim: syntax=make