summaryrefslogtreecommitdiffstats
path: root/rules/bluez-utils.make
blob: f24794473b0b25acccfe7b5fb6816b57fd432371 (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
# -*-makefile-*-
#
# Copyright (C) 2005 by Robert Schwebel
#               2007 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
#
PACKAGES-$(PTXCONF_BLUEZ_UTILS) += bluez-utils

#
# Paths and names
#
BLUEZ_UTILS_VERSION	:= 3.36
BLUEZ_UTILS		:= bluez-utils-$(BLUEZ_UTILS_VERSION)
BLUEZ_UTILS_SUFFIX	:= tar.gz
BLUEZ_UTILS_URL		:= http://bluez.sourceforge.net/download/$(BLUEZ_UTILS).$(BLUEZ_UTILS_SUFFIX)
BLUEZ_UTILS_SOURCE	:= $(SRCDIR)/$(BLUEZ_UTILS).$(BLUEZ_UTILS_SUFFIX)
BLUEZ_UTILS_DIR		:= $(BUILDDIR)/$(BLUEZ_UTILS)

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

$(BLUEZ_UTILS_SOURCE):
	@$(call targetinfo)
	@$(call get, BLUEZ_UTILS)

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

BLUEZ_UTILS_PATH	:= PATH=$(CROSS_PATH)
BLUEZ_UTILS_ENV 	:= $(CROSS_ENV)

#
# autoconf
#
BLUEZ_UTILS_AUTOCONF := \
	$(CROSS_AUTOCONF_USR) \
	--without-alsa \
	--without-fuse \
	--without-openobex \
	--without-usb

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

$(STATEDIR)/bluez-utils.targetinstall:
	@$(call targetinfo)

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

	# FIXME: wait for patch from Sandro Noel
#	@$(call install_copy, bluez-utils, 0, 0, 0755, $(BLUEZ_UTILS_DIR)/foobar, /dev/null)

	@$(call install_finish, bluez-utils)

	@$(call touch)

# vim: syntax=make