1 DESCRIPTION = "Additional plugins for Enigma2"
2 MAINTAINER = "Felix Domke <tmbinc@elitedvb.net>"
3 LICENSE = "Proprietary"
4 LIC_FILES_CHKSUM = "file://COPYING;md5=8e37f34d0e40d32ea2bc90ee812c9131"
6 PACKAGES_DYNAMIC = "enigma2-plugin-*"
8 # if you want experimental, use:
9 #SRCREV="87fd2f1120962f553ecb1a88bbee46ed821df975"
10 SRCREV="c8fc96e8e51e1ef71e1709f9dd6f733007f9463e"
13 PV = "experimental-git${SRCDATE}"
16 FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
18 SRC_URI="git://code.vuplus.com/git/dvbapp-plugin.git;protocol=git;branch=${BRANCH};tag=${SRCREV}"
21 BUILD_SYS=${BUILD_SYS} \
22 HOST_SYS=${HOST_SYS} \
23 STAGING_INCDIR=${STAGING_INCDIR} \
24 STAGING_LIBDIR=${STAGING_LIBDIR} \
25 --with-gstversion=1.0 \
28 SRC_URI_append_vuplus = " \
29 file://enigma2_plugins_mytube_tpm.patch \
30 file://enigma2_plugins_20121113.patch \
31 file://enigma2_plugins_webinterface_tpm.patch \
32 file://enigma2_plugins_ac3lipsync_dolby.patch \
33 file://enigma2_plugins_autoresolution_fix.patch \
34 file://enigma2_plugins_fancontrol2.patch \
35 file://enigma2_plugins_gst_plugins_pkgname.patch \
36 file://enigma2_plugins_gst10_support.patch \
37 file://dreamboxweb.png \
38 file://dreamboxwebtv.png \
43 FILES_${PN} += " /usr/share/enigma2 /usr/share/fonts "
44 FILES_${PN}-meta = "${datadir}/meta"
45 PACKAGES += "${PN}-meta"
46 PACKAGE_ARCH = "${MACHINE_ARCH}"
48 inherit autotools-brokensep pythonnative pkgconfig
52 DEPENDS = "python-pyopenssl python-gdata streamripper python-mutagen python-daap"
58 os.system("find ./ -name \"*.po\" > ./po_list")
59 os.system("find ./ -name \"*.pot\" >> ./po_list")
61 po_list = open('po_list','r+').readlines()
64 changeword1('enigma2-plugins/networkwizard/src/networkwizard.xml ')
65 changeword2('enigma2-plugins/webinterface/src/web-data/tpl/default/index.html ')
66 os.system('rm po_list')
68 print 'word patch error '
71 def changeword1(file):
74 cmd = "sed s/Dreambox/STB/g "+fn+" > "+fnn
76 cmd1 = "mv "+fnn+" "+fn
79 def changeword2(file):
82 cmd = "sed s/Dreambox/Vu+/g "+fn+" > "+fnn
84 cmd1 = "mv "+fnn+" "+fn
91 do_configure_prepend_vuplus() {
92 cp -av ${WORKDIR}/Makefile.am ${S}/easymedia/po/
95 do_install_append_vuplus() {
96 install -m 0644 ${WORKDIR}/dreamboxweb.png ${D}/usr/lib/enigma2/python/Plugins/Extensions/WebInterface/web-data/img/
97 install -m 0644 ${WORKDIR}/dreamboxwebtv.png ${D}/usr/lib/enigma2/python/Plugins/Extensions/WebInterface/web-data/tpl/default/streaminterface/img
98 install -m 0644 ${WORKDIR}/favicon.ico ${D}/usr/lib/enigma2/python/Plugins/Extensions/WebInterface/web-data/img/
101 python populate_packages_prepend() {
102 enigma2_plugindir = bb.data.expand('${libdir}/enigma2/python/Plugins', d)
103 do_split_packages(d, enigma2_plugindir, '^(\w+/\w+)', 'enigma2-plugin-%s', '%s', recursive=True, match_path=True, prepend=True)
104 do_split_packages(d, enigma2_plugindir, '^(\w+/\w+).*/.*\.la$', 'enigma2-plugin-%s-dev', '%s (development)', recursive=True, match_path=True, prepend=True)
105 do_split_packages(d, enigma2_plugindir, '^(\w+/\w+).*/.*\.a$', 'enigma2-plugin-%s-staticdev', '%s (static development)', recursive=True, match_path=True, prepend=True)
106 do_split_packages(d, enigma2_plugindir, '^(\w+/\w+).*/\.debug/', 'enigma2-plugin-%s-dbg', '%s (debug)', recursive=True, match_path=True, prepend=True)
107 def parseControlFile(dir, d, package):
109 #ac3lipsync is renamed since 20091121 to audiosync.. but rename in cvs is not possible without lost of revision history..
110 #so the foldername is still ac3lipsync
111 if package == 'audiosync':
112 package = 'ac3lipsync'
113 src = open(dir + "/" + package.split('-')[-1] + "/CONTROL/control").read()
114 for line in src.splitlines():
115 name, value = line.strip().split(': ', 1)
116 if name == 'Description':
117 d.setVar('DESCRIPTION_' + package, value)
118 elif name == 'Depends':
120 for depend in value.split(','):
121 depend = depend.strip()
122 if depend.startswith('enigma2') and not depend.startswith('enigma2-'):
123 rdepends.append('enigma2')
125 rdepends.append(depend)
126 d.setVar('RDEPENDS_' + package, ' '.join(rdepends))
127 elif name == 'Replaces':
128 d.setVar('RREPLACES_' + package, ' '.join(value.split(', ')))
129 elif name == 'Conflicts':
130 d.setVar('RCONFLICTS_' + package, ' '.join(value.split(', ')))
131 srcdir = d.getVar('S', True)
132 for package in d.getVar('PACKAGES', True).split():
133 if package.startswith('enigma2-plugin-') and not package.endswith('-dev') and not package.endswith('-dbg') and not package.endswith('-staticdev'):
134 parseControlFile(srcdir, d, package)