Jump to content


Photo

Big size OpenWebif.


  • Please log in to reply
No replies to this topic

#1 foxbob

  • Senior Member
  • 612 posts

+18
Neutral

Posted 13 January 2017 - 15:27

Need help.I am build pli5 in my solo2,build ok,work fine.When build OpenWebif big size 4.8M-why,vxg-size 1.3M.

My enigma2-plugin-extensions-openwebif.bbappend:
PACKAGE_ARCH = "${MACHINE_ARCH}"
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"

SRCREV = "${AUTOREV}"
PV = "2+git${SRCPV}"
PKGV = "2+git${GITPKGV}"

python do_package_prepend () {
boxtypes = [
('spark', 'spark.jpg', 'spark.png'),
('spark7162', 'spark.jpg', 'spark.png'),
('formuler1', 'formuler1.jpg', 'formuler1.png'),
('formuler3', 'formuler3.jpg', 'formuler1.png'),
('dm500hd', 'dm500hd.jpg', 'dm_normal.png'),
('dm7020hd', 'dm7020hd.jpg', 'dmm2.png'),
('dm8000', 'dm8000.jpg', 'dmm1.png'),
('dm800se', 'dm800se.jpg', 'dm_normal.png'),
('et5x00', 'et5x00.jpg', 'et_rc5_normal.png'),
('et6x00', 'et5x00.jpg', 'et_rc5_normal.png'),
('et9x00', 'et9x00.jpg', 'et_rc7_normal.png'),
('et4x00', 'et4x00.jpg', 'et_rc13_normal.png'),
('et7x00', 'et7000.jpg', 'et7x00.png'),
('et8000', 'et8000.jpg', 'et8000.png'),
('et8500', 'et8500.jpg', 'et8000.png'),
('et10000', 'et10000.jpg', 'et8000.png'),
('xp1000', 'xp1000.jpg', 'xp_rc14_normal.png'),
('osmega', 'osmega.jpg', 'osmini.png'),
('osmini', 'osmini.jpg', 'osmini.png'),
('osminiplus', 'osminiplus.jpg', 'osmini.png'),
('vuduo', 'duo.jpg', 'vu_normal.png'),
('vusolo', 'solo.jpg', 'vu_normal.png'),
('vusolose', 'solose.jpg', 'vu_normal.png'),
('vusolo2', 'solo2.jpg', 'vu_normal.png'),
('vusolo4k', 'solo4k.jpg', 'vu_normal.png'),
('vuduo2', 'duo2.jpg', 'vu_duo2.png'),
('vuultimo', 'ultimo.jpg', 'vu_ultimo.png'),
('vuuno', 'uno.jpg', 'vu_normal.png'),
('vuzero', 'zero.jpg', 'vu_normal.png'),
('hd1100', 'hd1100.jpg', 'hd1x00.png'),
('hd1200', 'hd1200.jpg', 'hd1x00.png'),
('hd2400', 'hd2400.jpg', 'hd2400.png'),
('hd51', 'hd51.jpg', 'hd1x00.png'),
('fusionhd', 'fusionhd.jpg', 'fusionhd.png'),
('fusionhdse', 'fusionhdse.jpg', 'fusionhdse.png'),
('spycat', 'spycat.jpg', 'spycat.png'),
('spycatmini', 'spycat.jpg', 'spycat.png'),
('wetekplay', 'wetekplay.jpg', 'wetekplay.png'),
('xpeedc', 'xpeedlx.jpg', 'xpeedlx.png'),
('mbtwinplus', 'mbtwinplus.jpg', 'miraclebox.png'),
('mbmicro', 'mbmicro.jpg', 'miraclebox2.png'),
('et7000mini', 'et7000mini.jpg', 'et7000mini.png'),
]
import os
top = '${D}${PLUGINPATH}/public/images/'
target_box = 'unknown.jpg'
target_remote = 'ow_remote.png'
exception = ''
for x in boxtypes:
if x[0] == '${MACHINE}':
target_box = x[1]
target_remote = x[2]
if x[0] == 'et6x00':
exception = 'et6500'
elif x[0] == 'et7x00':
exception = 'et7500'
elif x[0] == 'xpeedc':
exception = 'xpeedlx'
elif x[0] == 'dm8000':
dir = '${D}${PLUGINPATH}/public/static/remotes'
os.system('cp %s/dmm1.html %s/dmm.html' % (dir, dir))
break
for root, dirs, files in os.walk(top + 'boxes', topdown=False):
for name in files:
if target_box != name and name != 'unknown.jpg' and (exception + '.jpg' != name):
os.remove(os.path.join(root, name))
for root, dirs, files in os.walk(top + 'remotes', topdown=False):
for name in files:
if target_remote != name and name != 'ow_remote.png' and (exception + '.png' != name):
os.remove(os.path.join(root, name))
}

do_populate_sysroot[depends] = "enigma2-plugin-extensions-openwebif:do_package"

PACKAGES =+ "${PN}-vxg"
DESCRIPTION_${PN}-vxg = "Adds Google Chrome support to OpenWebif's WebTV"
FILES_${PN}-vxg = "/usr/lib/enigma2/python/Plugins/Extensions/OpenWebif/public/vxg"
RDEPENDS_${PN}-vxg =+ "${PN}"

 

And in e2openplugins-enigma2-plugin-extensions-openwebif.bb:

MODULE = "OpenWebif"
DESCRIPTION = "Control your receiver with a browser"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://README;firstline=10;lastline=12;md5=9c14f792d0aeb54e15490a28c89087f7"
 
DEPENDS = "python-cheetah-native"
RDEPENDS_${PN} = "\
aio-grab \
python-cheetah \
python-compression\
python-ipaddress\
python-json \
python-misc \
python-numbers \
python-pyopenssl \
python-shell \
python-unixadmin \
"
 
inherit gitpkgv
PV = "1+git${SRCPV}"
PKGV = "1+git${GITPKGV}"
 
require openplugins-distutils.inc
 
# Just a quick hack to "compile" it
do_compile() {
cheetah-compile -R --nobackup ${S}/plugin
python -O -m compileall ${S}
}
 
PLUGINPATH = "/usr/lib/enigma2/python/Plugins/Extensions/${MODULE}"
do_install_append() {
install -d ${D}${PLUGINPATH}
cp -r ${S}/plugin/* ${D}${PLUGINPATH}
chmod a+rX ${D}${PLUGINPATH}
}
 
FILES_${PN} = "${PLUGINPATH}"



1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users