1 DESCRIPTION = "Bluetooth-tools"
2 HOMEPAGE = "http://nohomepage.org"
3 SECTION = "Network & Connectivity/Bluetooth"
11 inherit manifest autotools-brokensep
16 #PROVIDES by bluetooth-tools-no-firmware
17 PROVIDES += "bluetooth-tools-no-firmware"
20 #PROVIDES by bluetooth-tools
24 #RDEPENDS of bluetooth-tools-no-firmware (${PN}-no-firmware)
25 RDEPENDS_${PN}-no-firmware += "bluetooth-tools"
26 RDEPENDS_${PN}-no-firmware += "rfkill"
28 #RDEPENDS of bluetooth-tools (${PN})
29 RDEPENDS_${PN} += "tizen-platform-config-tools"
33 #DEPENDS of bluetooth-tools
38 chmod -Rf a+rX,u+w,g-w,o-w ${S}
44 bb.build.exec_func('do_prep', d)
55 LD_AS_NEEDED=1; export LD_AS_NEEDED ;
57 export CFLAGS="${CFLAGS} -fpie -fvisibility=hidden"
58 export LDFLAGS="${LDFLAGS} -Wl,--rpath=/usr/lib -Wl,--as-needed -Wl,--unresolved-symbols=ignore-in-shared-libs -pie"
62 -DCMAKE_VERBOSE_MAKEFILE=ON \
63 -DCMAKE_INSTALL_PREFIX:PATH=${prefix} \
64 -DCMAKE_INSTALL_LIBDIR:PATH=${prefix}/lib \
65 -DINCLUDE_INSTALL_DIR:PATH=${prefix}/include \
66 -DLIB_INSTALL_DIR:PATH=${prefix}/lib \
67 -DSYSCONF_INSTALL_DIR:PATH=${sysconfdir} \
68 -DSHARE_INSTALL_PREFIX:PATH=${prefix}/share \
69 -DCMAKE_SKIP_RPATH:BOOL=ON \
70 -DBUILD_SHARED_LIBS:BOOL=ON \
71 -DCMAKE_TOOLCHAIN_FILE=${WORKDIR}/toolchain.cmake \
72 ${EXTRA_OECMAKE} . -DCMAKE_INSTALL_PREFIX=${prefix}
73 oe_runmake ${PARALLEL_MAKE}
80 export RPM_BUILD_ROOT=${D}
93 BINDIR=${prefix}/bin \
95 rm -f ${D}${infodir}/dir
96 find ${D} -regex ".*\.la$" | xargs rm -f --
97 find ${D} -regex ".*\.a$" | xargs rm -f --
99 mkdir -p ${D}${sysconfdir}/rc.d/rc3.d
100 mkdir -p ${D}${sysconfdir}/rc.d/rc5.d
101 ln -s ${sysconfdir}/rc.d/init.d/bluetooth-address ${D}${sysconfdir}/rc.d/rc3.d/S60bluetooth-address
102 ln -s ${sysconfdir}/rc.d/init.d/bluetooth-address ${D}${sysconfdir}/rc.d/rc5.d/S60bluetooth-address
104 mkdir -p ${D}${systemd_unitdir}/system/multi-user.target.wants
105 install -m 0644 ${S}/packaging/bluetooth-address.service ${D}${systemd_unitdir}/system
106 ln -s ../bluetooth-address.service ${D}${systemd_unitdir}/system/multi-user.target.wants/bluetooth-address.service
108 mkdir -p ${D}${prefix}/etc/bluetooth/
109 install -m 0755 scripts/bt-dev-start.sh ${D}${prefix}/etc/bluetooth/bt-dev-start.sh
110 install -m 0755 scripts/bt-dev-end.sh ${D}${prefix}/etc/bluetooth/bt-dev-end.sh
115 PACKAGES = "${PN}-dbg ${PN}-doc ${PN}-locale"
116 PACKAGES += " bluetooth-tools-no-firmware "
117 PACKAGES += " bluetooth-tools "
119 bluetooth-tools-no-firmware_files = ""
120 bluetooth-tools-no-firmware_files += "${prefix}/etc/bluetooth/bt-dev-end.sh"
121 bluetooth-tools-no-firmware_files += "${prefix}/etc/bluetooth/bt-dev-start.sh"
122 MANIFESTFILES_${PN}-no-firmware = "bluetooth-tools.manifest"
124 bluetooth-tools_files = ""
125 bluetooth-tools_files += "${sysconfdir}/rc.d/init.d/bluetooth-address"
126 bluetooth-tools_files += "${sysconfdir}/rc.d/rc3.d/S60bluetooth-address"
127 bluetooth-tools_files += "${sysconfdir}/rc.d/rc5.d/S60bluetooth-address"
128 bluetooth-tools_files += "${prefix}/etc/bluetooth/bt-stack-up.sh"
129 bluetooth-tools_files += "${prefix}/etc/bluetooth/bt-stack-down.sh"
130 bluetooth-tools_files += "${prefix}/etc/bluetooth/bt-reset-env.sh"
131 bluetooth-tools_files += "${prefix}/etc/bluetooth/bt-edutm-on.sh"
132 bluetooth-tools_files += "${prefix}/etc/bluetooth/bt-edutm-dev-up.sh"
133 bluetooth-tools_files += "${prefix}/etc/bluetooth/bt-edutm-mode-on.sh"
134 bluetooth-tools_files += "${prefix}/etc/bluetooth/bt-edutm-off.sh"
135 bluetooth-tools_files += "${systemd_unitdir}/system/multi-user.target.wants/bluetooth-address.service"
136 bluetooth-tools_files += "${systemd_unitdir}/system/bluetooth-address.service"
137 MANIFESTFILES_${PN} = "bluetooth-tools.manifest"
139 FILES_${PN}-no-firmware = "${bluetooth-tools-no-firmware_files}"
140 FILES_${PN} = "${bluetooth-tools_files}"
142 PKG_bluetooth-tools-no-firmware= "bluetooth-tools-no-firmware"
143 PKG_bluetooth-tools= "bluetooth-tools"
145 require bluetooth-tools-extraconf.inc