Fix SRC_URI for github
[vuplus_openvuplus_3.0] / meta-openvuplus / recipes-vuplus / opera-hbbtv / opera-hbbtv_0.2.bb
1 DESCRIPTION = "opera-hbbtv"
2 PRIORITY = "required"
3 LICENSE = "CLOSED"
4 require conf/license/license-close.inc
5
6 DEPENDS = "mpfr gmp"
7 DEPENDS += "${@base_contains("GST_VERSION", "1.0", "gstreamer1.0", "gstreamer", d)}"
8 RDEPENDS_${PN} = "sysfsutils"
9
10 SRC_DATE = "20181116_0"
11
12 PR = "r2_${SRC_DATE}"
13 SRC_URI = ""
14
15 INHIBIT_PACKAGE_STRIP = "1"
16 PRIVATE_LIBS_${PN} = "libopera_hbbtv.so \
17 libdsmcc.so \
18 libdirect-1.4.so.6 \
19 libdirectfb-1.4.so.6 \
20 libfusion-1.4.so.6 \
21 libdirectfbwm_default.so \
22 libdirectfb_linux_input.so \
23 libdirectfb_devmem.so \
24 libdirectfb_dummy.so \
25 libdirectfb_fbdev.so \
26 libidirectfbfont_dgiff.so \
27 libidirectfbvideoprovider_v4l.so \
28 libidirectfbvideoprovider_gif.so \
29 libidirectfbimageprovider_dfiff.so \
30 libidirectfbimageprovider_gif.so \
31 libidirectfbimageprovider_jpeg.so \
32 libicoreresourcemanager_test.so \
33 libdirectfb_vuplus.so"
34
35 S = "${WORKDIR}/opera-hbbtv"
36
37 SRC_FILE = "opera-hbbtv_${SRC_DATE}.tar.gz"
38 do_fetch() {
39         if [ ! -e ${DL_DIR}/${SRC_FILE} -a -e /etc/vuplus_browser.pwd ]; then
40 sshpass -f /etc/vuplus_browser.pwd sftp -o StrictHostKeyChecking=no guestuser@code.vuplus.com << +
41 get ${SRC_FILE}
42 bye
43 +
44         fi
45         cp -av ${DL_DIR}/${SRC_FILE} ${WORKDIR}/
46 }
47
48 do_unpack() {
49         tar xvfz ${SRC_FILE}
50 }
51
52 do_compile() {
53 }
54
55 do_install() {
56         install -d ${D}/usr/local/hbb-browser
57         mv ${S}/opera/* ${D}/usr/local/hbb-browser/
58         install -d ${D}/usr/lib
59         mv ${S}/dfb/usr/lib/* ${D}/usr/lib/
60 }
61
62 do_install_append() {
63         GST_PREFERED_VERSION="${@bb.utils.contains("GST_VERSION", "1.0", "1.4.5", "0.10.36.1", d)}"
64         mv ${D}/usr/local/hbb-browser/root/jsplugins/ooif-gst-$GST_PREFERED_VERSION.so ${D}/usr/local/hbb-browser/root/jsplugins/ooif.so
65         rm -f ${D}/usr/local/hbb-browser/root/jsplugins/ooif-gst*.so
66         mv ${D}/usr/local/hbb-browser/root/video/videobackend-gst-$GST_PREFERED_VERSION.so ${D}/usr/local/hbb-browser/root/video/videobackend.so
67         rm -f ${D}/usr/local/hbb-browser/root/video/videobackend-gst*.so
68 }
69
70 do_package_qa() {
71 }
72
73 sysroot_stage_all() {
74 }
75
76 PACKAGES = "${PN}"
77
78 FILES_${PN} = "/"
79
80 SRC_URI[md5sum] = "aa99fb26e817f8fa49df9c1cd1fcb9fe"
81 SRC_URI[sha256sum] = "d85ed5b797cb963b219c7e594d1a57361220e90d7fa7269bb84f2d0e6ef13b3e"
82