dvbapp : TranscodingSetup update
[vuplus_openembedded] / recipes / bluez / bluez.inc
1 DESCRIPTION = "Linux Bluetooth Stack Userland Utilities and libraries."
2 SECTION = "console"
3 PRIORITY = "optional"
4 HOMEPAGE = "http://www.bluez.org"
5 LICENSE = "GPL"
6 PR = "r0"
7
8 DEPENDS = "gstreamer gst-plugins-base dbus glib-2.0"
9 PROVIDES = "bluez-utils-dbus"
10 RPROVIDES_${PN} = "bluez-pan bluez-sdp bluez-utils-dbus"
11 RREPLACES = "bluez-utils-dbus"
12 RCONFLICTS_${PN} = "bluez-utils-nodbus"
13
14 FILESPATH = "${FILE_DIRNAME}/bluez-utils-${PV}:${FILE_DIRNAME}/bluez-utils"
15
16 S = "${WORKDIR}/bluez-${PV}"
17
18 inherit autotools update-rc.d pkgconfig
19
20 OE_LT_RPATH_ALLOW = "any"
21 OE_LT_RPATH_ALLOW[export]="1"
22
23 do_install_append() {
24         install -d ${D}${base_sbindir} ${D}${base_bindir}/  ${D}${sysconfdir}/apm/event.d/
25         if [ "${sbindir}" != "${base_sbindir}" ]; then
26                 mv ${D}${sbindir}/* ${D}${base_sbindir}/
27                 rmdir ${D}${sbindir}
28         fi
29         if [ "${bindir}" != "${base_bindir}" ]; then
30                 mv ${D}${bindir}/* ${D}${base_bindir}/
31                 rmdir ${D}${bindir}
32         fi
33         chmod u+s ${D}${base_sbindir}/hciattach ${D}${base_sbindir}/hciconfig
34         install -m 0644 ${WORKDIR}/hcid.conf ${D}${sysconfdir}/bluetooth/
35         install -m 0644 ${S}/rfcomm/rfcomm.conf ${D}${sysconfdir}/bluetooth/
36         install -m 0755 ${S}/daemon/.libs/passkey-agent ${D}${base_bindir}/ ||true 
37                 install -m 0755 ${S}/test/.libs/passkey-agent ${D}${base_bindir}/ ||true
38 }
39
40
41 INITSCRIPT_NAME = "bluetooth"
42 INITSCRIPT_PARAMS = "defaults 23 19"
43
44
45 PACKAGES =+ "${PN}-compat"
46
47
48 FILES_${PN} = " \
49                ${base_sbindir}/hcid \
50                ${libdir}/bluetooth \
51                ${sysconfdir}/init.d/bluetooth \
52                ${sysconfdir}/bluetooth/*.service \
53                ${sysconfdir}/bluetooth/hcid.conf \
54                ${sysconfdir}/default \
55                ${sysconfdir}/dbus-1 \
56                ${base_sbindir}/hciattach \
57               "
58
59 FILES_${PN}-dbg += " \
60                    ${libdir}/bluetooth/.debug \
61                    ${libdir}/cups/backend/.debug \
62                    ${libdir}/alsa-lib/.debug \
63                   " 
64
65 FILES_${PN}-compat = " \
66                     ${base_bindir}/sdptool \
67                     ${base_bindir}/dund \
68                     ${base_bindir}/rctest \
69                     ${base_bindir}/ciptool \
70                     ${base_bindir}/l2test \
71                     ${base_bindir}/rfcomm \
72                     ${base_bindir}/hcitool \
73                     ${base_bindir}/pand \
74                     ${base_bindir}/hidd \
75                     ${base_bindir}/l2ping \
76                     ${base_sbindir}/hciconfig \
77                     ${base_sbindir}/bccmd \
78                     ${base_sbindir}/hciemu \
79                     ${base_sbindir}/hid2hci \
80                     ${base_bindir}/passkey-agent \
81                     ${sysconfdir}/bluetooth/rfcomm.conf \
82                    " 
83
84 HEADERS = "bluetooth.h bnep.h cmtp.h hci.h hci_lib.h hidp.h l2cap.h rfcomm.h sco.h sdp.h sdp_lib.h"
85
86 do_stage_prepend() {
87         oe_libinstall -so -C lib libbluetooth ${STAGING_LIBDIR}
88
89         install -d ${STAGING_INCDIR}/bluetooth/
90         for f in ${HEADERS}
91         do
92                 install -m 0644 include/$f ${STAGING_INCDIR}/bluetooth/$f
93         done
94 }
95