summaryrefslogtreecommitdiffstats
path: root/rules/cross-pkg-config-wrapper.make
blob: 8f710edf746f441e78a6cddfe9f50a33e7e6ec3d (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
# -*-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
#
CROSS_PACKAGES-$(PTXCONF_CROSS_PKG_CONFIG_WRAPPER) += cross-pkg-config-wrapper

#
# Paths and names
#
CROSS_PKG_CONFIG_WRAPPER_VERSION	:= 1.0.0
CROSS_PKG_CONFIG_WRAPPER		:= pkg-config-wrapper-$(CROSS_PKG_CONFIG_WRAPPER_VERSION)
CROSS_PKG_CONFIG_WRAPPER_DIR		:= $(CROSS_BUILDDIR)/$(CROSS_PKG_CONFIG_WRAPPER)

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

cross-pkg-config-wrapper_get: $(STATEDIR)/cross-pkg-config-wrapper.get

$(STATEDIR)/cross-pkg-config-wrapper.get: $(cross-pkg-config-wrapper_get_deps_default)
	@$(call targetinfo, $@)
	@$(call touch, $@)

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

cross-pkg-config-wrapper_extract: $(STATEDIR)/cross-pkg-config-wrapper.extract

$(STATEDIR)/cross-pkg-config-wrapper.extract: $(cross-pkg-config-wrapper_extract_deps_default)
	@$(call targetinfo, $@)
	@$(call touch, $@)

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

cross-pkg-config-wrapper_prepare: $(STATEDIR)/cross-pkg-config-wrapper.prepare

$(STATEDIR)/cross-pkg-config-wrapper.prepare: $(cross-pkg-config-wrapper_prepare_deps_default)
	@$(call targetinfo, $@)
	@$(call touch, $@)

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

cross-pkg-config-wrapper_compile: $(STATEDIR)/cross-pkg-config-wrapper.compile

$(STATEDIR)/cross-pkg-config-wrapper.compile: $(cross-pkg-config-wrapper_compile_deps_default)
	@$(call targetinfo, $@)
	@$(call touch, $@)

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

cross-pkg-config-wrapper_install: $(STATEDIR)/cross-pkg-config-wrapper.install

$(STATEDIR)/cross-pkg-config-wrapper.install: $(cross-pkg-config-wrapper_install_deps_default)
	@$(call targetinfo, $@)
	install -D -m755 $(SCRIPTSDIR)/pkg-config-wrapper $(PTXCONF_SYSROOT_CROSS)/bin/pkg-config
	install -D -m755 $(SCRIPTSDIR)/pkg-config-wrapper $(PTXCONF_SYSROOT_CROSS)/bin/$(COMPILER_PREFIX)pkg-config
	@$(call touch, $@)

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

cross-pkg-config-wrapper_clean:
	rm -rf $(STATEDIR)/cross-pkg-config-wrapper.*
	rm -rf $(IMAGEDIR)/cross-pkg-config-wrapper_*
	rm -rf $(CROSS_PKG_CONFIG_WRAPPER_DIR)

# vim: syntax=make