[vuplus-wifi-util] fix default ccode
[vuplus_openvuplus_3.0] / meta-bsp / recipes-vuplus / bluetoothsetup / bluetoothsetup.inc
1 DESCRIPTION = "Vuplus bluetooth plugin"
2
3 LICENSE = "CLOSED"
4 require conf/license/license-close.inc
5
6 DEPENDS = "python-native"
7 RDEPENDS_${PN} = "vuplus-bluetooth-util libusb-compat"
8
9 PROVIDES += "enigma2-plugin-systemplugins-bluetoothsetup"
10 RPROVIDES_${PN} += "enigma2-plugin-systemplugins-bluetoothsetup"
11
12 RREPLACES_${PN} = "enigma2-plugin-systemplugins-bluetoothsetup"
13
14 PR="${@base_version_less_or_equal('PYTHON_BASEVERSION', '2.7', "${SRCDATE}.${SRCDATE_PR}", "${SRCDATE_PY3}-py3.${SRCDATE_PY3_PR}", d)}"
15 CHECKSUM_NAME = "${@base_version_less_or_equal('PYTHON_BASEVERSION', '2.7', '', 'name=py3', d)}"
16
17 SRC_URI = " \
18     http://code.vuplus.com/download/release/bt/enigma2-plugin-bluetoothsetup-${MACHINE}-${PR}.tar.gz;${CHECKSUM_NAME} \
19 "
20
21 S = "${WORKDIR}/plugin"
22
23 BLUETOOTH_PLUGIN_PATH = "/usr/lib/enigma2/python/Plugins/SystemPlugins/BluetoothSetup"
24
25 do_compile() {
26         python -O -m compileall ${S}
27 }
28
29 do_install() {
30         install -d  ${D}${BLUETOOTH_PLUGIN_PATH}
31         cp -rp ${S}/* ${D}${BLUETOOTH_PLUGIN_PATH}
32 }
33
34 FILES_${PN} = "${BLUETOOTH_PLUGIN_PATH}"
35
36 do_populate_sysroot[noexec] = "1"
37
38 PACKAGE_ARCH = "${MACHINE_ARCH}"
39
40 INSANE_SKIP_${PN} = "already-stripped"
41