summaryrefslogtreecommitdiffstats
path: root/rules/host-pkg-config.make
blob: d4f72c11c88c3b1603e5dc551c140f3ba7f9a190 (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
# -*-makefile-*-
#
# Copyright (C) 2006-2010 by Marc Kleine-Budde <mkl@pengutronix.de>
#
# 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_PKG_CONFIG) += host-pkg-config

#
# Paths and names
#
HOST_PKG_CONFIG_VERSION	:= 0.29.2
HOST_PKG_CONFIG_MD5	:= f6e931e319531b736fadc017f470e68a
HOST_PKG_CONFIG		:= pkg-config-$(HOST_PKG_CONFIG_VERSION)
HOST_PKG_CONFIG_SUFFIX	:= tar.gz
HOST_PKG_CONFIG_URL	:= http://pkgconfig.freedesktop.org/releases/$(HOST_PKG_CONFIG).$(HOST_PKG_CONFIG_SUFFIX)
HOST_PKG_CONFIG_SOURCE	:= $(SRCDIR)/$(HOST_PKG_CONFIG).$(HOST_PKG_CONFIG_SUFFIX)
HOST_PKG_CONFIG_DIR	:= $(HOST_BUILDDIR)/$(HOST_PKG_CONFIG)
HOST_PKG_CONFIG_DEVPKG	:= NO
HOST_PKG_CONFIG_LICENSE	:= GPL-2.0-only

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

#
# autoconf
#
HOST_PKG_CONFIG_CONF_TOOL	:= autoconf
HOST_PKG_CONFIG_CONF_OPT	:= \
	$(HOST_AUTOCONF_SYSROOT) \
	--disable-host-tool \
	--with-internal-glib

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

PKG_CONFIG_SCRIPT = \
	$(shell ptxd_get_alternative scripts pkg-config-wrapper && echo $$ptxd_reply)

$(STATEDIR)/host-pkg-config.install:
	@$(call targetinfo)
	@$(call world/install, HOST_PKG_CONFIG)
	@mv $(PTXDIST_SYSROOT_HOST)/bin/pkg-config \
		$(PTXDIST_SYSROOT_HOST)/bin/pkg-config.real
	@ln -sv $(PKG_CONFIG_SCRIPT) \
		$(PTXDIST_SYSROOT_HOST)/bin/pkg-config
	@$(call touch)

# vim: syntax=make