summaryrefslogtreecommitdiffstats
path: root/rules/dbus-python.make
blob: 9304ec5fe1a85303fc0ee847a5e63f1a79775310 (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
# -*-makefile-*-
#
# Copyright (C) 2009 by Robert Schwebel <r.schwebel@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
#
PACKAGES-$(PTXCONF_DBUS_PYTHON) += dbus-python

#
# Paths and names
#
DBUS_PYTHON_VERSION	:= 0.83.0
DBUS_PYTHON		:= dbus-python-$(DBUS_PYTHON_VERSION)
DBUS_PYTHON_SUFFIX	:= tar.gz
DBUS_PYTHON_URL		:= http://dbus.freedesktop.org/releases/dbus-python/$(DBUS_PYTHON).$(DBUS_PYTHON_SUFFIX)
DBUS_PYTHON_SOURCE	:= $(SRCDIR)/$(DBUS_PYTHON).$(DBUS_PYTHON_SUFFIX)
DBUS_PYTHON_DIR		:= $(BUILDDIR)/$(DBUS_PYTHON)

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

$(DBUS_PYTHON_SOURCE):
	@$(call targetinfo)
	@$(call get, DBUS_PYTHON)

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

DBUS_PYTHON_PATH	:= PATH=$(CROSS_PATH)
DBUS_PYTHON_ENV 	:= $(CROSS_ENV)

#
# autoconf
#
DBUS_PYTHON_AUTOCONF := \
	$(CROSS_AUTOCONF_USR) \
	--disable-html-docs \
	--disable-api-docs

# ----------------------------------------------------------------------------
# Target-Install
# ----------------------------------------------------------------------------

$(STATEDIR)/dbus-python.targetinstall:
	@$(call targetinfo)

	@$(call install_init, dbus-python)
	@$(call install_fixup, dbus-python,PACKAGE,dbus-python)
	@$(call install_fixup, dbus-python,PRIORITY,optional)
	@$(call install_fixup, dbus-python,VERSION,$(DBUS_PYTHON_VERSION))
	@$(call install_fixup, dbus-python,SECTION,base)
	@$(call install_fixup, dbus-python,AUTHOR,"Robert Schwebel <r.schwebel@pengutronix.de>")
	@$(call install_fixup, dbus-python,DEPENDS,)
	@$(call install_fixup, dbus-python,DESCRIPTION,missing)

	@cd "$(DBUS_PYTHON_PKGDIR)"; \
		find ./usr/lib/python$(PYTHON_MAJORMINOR) \
		\( -name "*.so" -o -name "*.pyc" \) | \
		while read file; do \
		$(call install_copy, dbus-python, 0, 0, 0644, -, $${file##.}); \
	done

	@$(call install_finish, dbus-python)

	@$(call touch)

# vim: syntax=make