[dvbapp] increase PR.
[vuplus_openvuplus_3.0] / meta-openvuplus / recipes-vuplus / enigma2 / enigma2.bb
1 DESCRIPTION = "Enigma2 is an experimental, but useful framebuffer-based frontend for DVB functions"
2 MAINTAINER = "vuplus team"
3 LICENSE = "GPLv2"
4 LIC_FILES_CHKSUM = "file://LICENSE;md5=c9e255efa454e0155c1fd758df7dcaf3"
5
6 DEPENDS = " \
7         jpeg \
8         giflib \
9         libmad \
10         libpng \
11         libsigc++-1.2 \
12         gettext-native \
13         dreambox-dvbincludes \
14         freetype \
15         libdvbsi++ \
16         python \
17         swig-native \
18         libfribidi \
19         libxml2 \
20         libxmlccwrap \
21         libdreamdvd \
22         ${@base_contains("GST_VERSION", "1.0", "gstreamer1.0-plugins-base gstreamer1.0", "gst-plugins-base gstreamer", d)} \
23         python-wifi \
24         hostapd \
25         bridge-utils \
26         ntfs-3g \
27         dosfstools \
28         util-linux \
29         fuse-exfat \
30         satipclient \
31         "
32
33 DEPENDS += " \
34         wireless-tools \
35         wpa-supplicant \
36         python-twisted \
37         curlftpfs \
38         fuse \
39         virtual/kernel \
40         aio-grab \
41         librtmp \
42         cdrkit \
43         libcddb \
44         libcdio \
45         avahi \
46         gstreamer1.0-plugins-good \
47         gstreamer1.0-plugins-bad \
48         "
49
50 DEPENDS += " \
51         vuplus-3gcommand \
52         vuplus-dlnaserver \
53         "
54
55 RDEPENDS_${PN} = " \
56         alsa-conf \
57         ethtool \
58         glibc-gconv-iso8859-15 \
59         parted \
60         ${PYTHON_RDEPS} \
61         ${GST_RDEPENDS} \
62         fuse-exfat \
63         util-linux-partx \
64         vuplus-skins \
65         ${@base_contains("VUPLUS_FEATURES", "dvbproxy", "vuplus-dvb-proxy libgles vuplus-platform-util", "vuplus-dvb-modules", d)} \
66         "
67
68 PYTHON_RDEPS = " \
69         python-codecs \
70         python-core \
71         python-lang \
72         python-re \
73         python-threading \
74         python-xml \
75         python-fcntl \
76         python-stringold \
77         python-pickle \
78         python-netclient \
79         "
80
81 GST_RDEPENDS = "${@base_contains('GST_VERSION', '1.0', ' \
82         gstreamer1.0-plugin-dvbmediasink \
83         gstreamer1.0-plugin-subsink \
84         gstreamer1.0-plugins-base-alsa \
85         gstreamer1.0-plugins-base-app \
86         gstreamer1.0-plugins-base-audioconvert \
87         gstreamer1.0-plugins-base-audioresample \
88         gstreamer1.0-plugins-base-ogg \
89         gstreamer1.0-plugins-base-playback \
90         gstreamer1.0-plugins-base-subparse \
91         gstreamer1.0-plugins-base-typefindfunctions \
92         gstreamer1.0-plugins-base-vorbis \
93         gstreamer1.0-plugins-good-apetag \
94         gstreamer1.0-plugins-good-audioparsers \
95         gstreamer1.0-plugins-good-autodetect \
96         gstreamer1.0-plugins-good-avi \
97         gstreamer1.0-plugins-good-flac \
98         gstreamer1.0-plugins-good-flv \
99         gstreamer1.0-plugins-good-icydemux \
100         gstreamer1.0-plugins-good-id3demux \
101         gstreamer1.0-plugins-good-isomp4 \
102         gstreamer1.0-plugins-good-matroska \
103         gstreamer1.0-plugins-good-rtp \
104         gstreamer1.0-plugins-good-rtpmanager \
105         gstreamer1.0-plugins-good-rtsp \
106         gstreamer1.0-plugins-good-souphttpsrc \
107         gstreamer1.0-plugins-good-udp \
108         gstreamer1.0-plugins-good-wavparse \
109         gstreamer1.0-plugins-bad-faad \
110         gstreamer1.0-plugins-bad-fragmented \
111         gstreamer1.0-plugins-bad-videoparsersbad \
112         gstreamer1.0-plugins-bad-mms \
113         gstreamer1.0-plugins-bad-mpegpsdemux \
114         gstreamer1.0-plugins-bad-mpegtsdemux \
115         gstreamer1.0-plugins-ugly-asf \
116         gstreamer1.0-plugins-ugly-cdio \
117         gstreamer1.0-plugins-ugly-dvdsub \
118         gstreamer1.0-plugins-ugly-mad \
119         gstreamer1.0-plugins-ugly-amrnb \
120         gstreamer1.0-plugins-ugly-amrwbdec \
121         ', ' \
122         gst-plugin-dvbmediasink \
123         gst-plugin-subsink \
124         gst-plugins-base-alsa \
125         gst-plugins-base-app \
126         gst-plugins-base-audioconvert \
127         gst-plugins-base-audioresample \
128         gst-plugins-base-decodebin \
129         gst-plugins-base-decodebin2 \
130         gst-plugins-base-ogg \
131         gst-plugins-base-playbin \
132         gst-plugins-base-subparse \
133         gst-plugins-base-typefindfunctions \
134         gst-plugins-base-vorbis \
135         gst-plugins-good-apetag \
136         gst-plugins-good-audioparsers \
137         gst-plugins-good-autodetect \
138         gst-plugins-good-avi \
139         gst-plugins-good-flac \
140         gst-plugins-good-flv \
141         gst-plugins-good-icydemux \
142         gst-plugins-good-id3demux \
143         gst-plugins-good-isomp4 \
144         gst-plugins-good-matroska \
145         gst-plugins-good-rtp \
146         gst-plugins-good-rtpmanager \
147         gst-plugins-good-rtsp \
148         gst-plugins-good-souphttpsrc \
149         gst-plugins-good-udp \
150         gst-plugins-good-wavparse \
151         gst-plugins-bad-cdxaparse \
152         gst-plugins-bad-faad \
153         gst-plugins-bad-mms \
154         gst-plugins-bad-mpegdemux \
155         gst-plugins-bad-vcdsrc \
156         gst-plugins-bad-fragmented \
157         gst-plugins-ugly-asf \
158         gst-plugins-ugly-cdio \
159         gst-plugins-ugly-dvdsub \
160         gst-plugins-ugly-mad \
161         gst-plugins-ugly-mpegstream \
162         gst-plugins-ugly-mpegaudioparse \
163         gst-plugins-ugly-amrnb \
164         gst-plugins-ugly-amrwbdec \
165         ', d)}"
166
167 # 'forward depends' - no two providers can have the same PACKAGES_DYNAMIC, however both
168 # enigma2 and enigma2-plugins produce enigma2-plugin-*.
169 #DEPENDS += "enigma2-plugins"
170 #PACKAGES_DYNAMIC = "enigma2-plugin-*"
171
172 SUMMARY_enigma2-plugin-extensions-cutlisteditor = "enables you to cut your movies."
173 RDEPENDS_enigma2-plugin-extensions-cutlisteditor = "aio-grab"
174 SUMMARY_enigma2-plugin-extensions-graphmultiepg = "shows a graphical timeline EPG."
175 SUMMARY_enigma2-plugin-extensions-pictureplayer = "displays photos on the TV."
176 SUMMARY_enigma2-plugin-systemplugins-frontprocessorupdate = "keeps your frontprocessor up to date."
177 SUMMARY_enigma2-plugin-systemplugins-positionersetup = "helps you installing a motorized dish."
178 SUMMARY_enigma2-plugin-systemplugins-satelliteequipmentcontrol = "allows you to fine-tune DiSEqC-settings."
179 SUMMARY_enigma2-plugin-systemplugins-satfinder = "helps you to align your dish."
180 SUMMARY_enigma2-plugin-systemplugins-skinselector = "shows a menu with selectable skins."
181 SUMMARY_enigma2-plugin-systemplugins-videomode = "selects advanced video modes"
182 DEPENDS_enigma2-plugin-extensions-dvdplayer = "libdreamdvd0"
183 RDEPENDS_enigma2-plugin-systemplugins-nfiflash = "python-twisted-web"
184 RDEPENDS_enigma2-plugin-systemplugins-softwaremanager = "python-twisted-web"
185 RCONFLICTS_enigma2-plugin-systemplugins-softwaremanager = "enigma2-plugin-systemplugins-configurationbackup enigma2-plugin-systemplugins-softwareupdate"
186 RREPLACES_enigma2-plugin-systemplugins-softwaremanager = "enigma2-plugin-systemplugins-configurationbackup enigma2-plugin-systemplugins-softwareupdate"
187 SUMMARY_enigma2-plugin-systemplugins-crashlogautosubmit = "automatically send crashlogs to Dream Multimedia"
188 RDEPENDS_enigma2-plugin-systemplugins-crashlogautosubmit = "python-twisted-mail python-twisted-names python-compression python-mime python-email"
189 SUMMARY_enigma2-plugin-systemplugins-cleanupwizard = "informs you on low internal memory on system startup."
190 SUMMARY_enigma2-plugin-extenstions-modem = "opens a menu to connect to internet via builtin modem."
191 RDEPENDS_enigma2-plugin-extensions-modem = "dreambox-modem-ppp-scripts ppp"
192 SUMMARY_enigma2-plugin-systemplugins-wirelesslan = "helps you configuring your wireless lan"
193 RDEPENDS_enigma2-plugin-systemplugins-wirelesslan = "wpa-supplicant wireless-tools python-wifi"
194 SUMMARY_enigma2-plugin-systemplugins-wirelesslansetup = "configure wireless lan"
195 RDEPENDS_enigma2-plugin-systemplugins-wirelesslansetup = "wpa-supplicant wireless-tools python-wifi"
196 SUMMARY_enigma2-plugin-systemplugins-networkwizard = "provides easy step by step network configuration"
197 RDEPENDS_enigma2-plugin-extensions-webbrowser = "python-gdata libqtwebkite4 vuplus-webbrowser-utils qt4-embedded-fonts qt4-embedded-plugin-imageformat-gif qt4-embedded-plugin-imageformat-ico qt4-embedded-plugin-imageformat-jpeg qt4-embedded-plugin-imageformat-mng qt4-embedded-plugin-imageformat-svg qt4-embedded-plugin-imageformat-tiff qt4-embedded-plugin-iconengine-svgicon "
198 SUMMARY_enigma2-plugin-systemplugins-crashreport = "automatically send crashlogs to Vu+"
199 RDEPENDS_enigma2-plugin-systemplugins-crashreport = "python-twisted-mail python-twisted-names python-compression python-mime python-email"
200 RDEPENDS_enigma2-plugin-systemplugins-wirelessaccesspoint = "hostapd bridge-utils"
201
202 RDEPENDS_enigma2-plugin-extensions-streamtv = " \
203         librtmp \
204         ${@base_contains("GST_VERSION", "1.0", "gstreamer1.0-plugins-bad-rtmp", "gst-plugins-bad-rtmp", d)} \
205 "
206
207 DEPENDS += "djmount minidlna"
208 RDEPENDS_enigma2-plugin-extensions-dlnaserver = "minidlna vuplus-dlnaserver"
209 RDEPENDS_enigma2-plugin-extensions-dlnabrowser = "djmount kernel-module-fuse fuse-utils"
210
211 DEPENDS += "${@base_contains("VUPLUS_FEATURES", "hbbtv", "opera-hbbtv" , "", d)}"
212 RDEPENDS_enigma2-plugin-extensions-hbbtv = "${@base_contains("VUPLUS_FEATURES", "hbbtv", "opera-hbbtv" , "", d)}"
213
214 DEPENDS += "${@base_contains("VUPLUS_FEATURES", "webkithbbtv", "webkit-hbbtv-browser" , "", d)}"
215
216 DEPENDS += "wvdial wvstreams ppp usb-modeswitch usb-modeswitch-data"
217 RDEPENDS_enigma2-plugin-systemplugins-3gmodemmanager = "ppp usb-modeswitch usb-modeswitch-data wvdial wvstreams \
218         kernel-module-ppp-async kernel-module-ppp-deflate kernel-module-ppp-synctty kernel-module-ppp-generic kernel-module-usbserial \
219         vuplus-3gcommand \
220 "
221
222 RDEPENDS_enigma2-plugin-systemplugins-devicemanager = "util-linux-blkid ntfs-3g dosfstools"
223 RDEPENDS_enigma2-plugin-systemplugins-netdrive = "curlftpfs kernel-module-fuse fuse"
224
225 RDEPENDS_enigma2-plugin-systemplugins-backupsuitehdd = "mtd-utils-mkfs.ubifs mtd-utils-nanddump mtd-utils-ubinize"
226 RDEPENDS_enigma2-plugin-systemplugins-backupsuiteusb = "enigma2-plugin-extensions-backupsuitehdd"
227
228 RDEPENDS_enigma2-plugin-extensions-satipclient = "satipclient"
229
230 DEPENDS += "${@base_contains("VUPLUS_FEATURES", "uianimation", "libgles libvugles2" , "", d)}"
231 RDEPENDS_${PN}_append_vuplus += "${@base_contains("VUPLUS_FEATURES", "uianimation", "libvugles2" , "", d)}"
232
233 PN = "enigma2"
234 PR = "r127"
235
236 inherit gitpkgv pythonnative
237
238 ####################################################
239 SRCDATE = "20121128"
240 PV = "experimental-git${SRCDATE}"
241 BRANCH = "vuplus_experimental"
242 SRCREV = ""
243 ####################################################
244
245 # enigma2_vuplus_mediaplayer.patch is for trick-play in media player
246
247 SRC_URI = "git://code.vuplus.com/git/dvbapp.git;protocol=http;branch=${BRANCH};rev=${SRCREV} \
248         file://enigma2_vuplus_skin.patch \
249         file://enigma2_vuplus_mediaplayer.patch \
250         file://enigma2_vuplus_remove_dreambox_enigma.patch \
251         file://enigma2_vuplus_vfd_mode.patch \
252         file://enigma2_vuplus_pluginbrowser.patch \
253         file://enigma2_vuplus_proc_oom_score_adj.patch \
254         file://enigma2_vuplus_fix_standby_name.patch \
255         file://enigma2_vuplus_disable_subtitle_sync_mode_bug.patch \
256         file://spinner \
257         file://number_key \
258 "
259
260 SRC_URI_append = " ${@base_contains('GST_VERSION', '1.0', '', 'file://enablesubtitleshack.patch', d)}"
261
262 SRC_URI_append = " ${@base_contains("VUPLUS_FEATURES", "vuwlan", "file://enigma2_vuplus_networksetup.patch", "", d)}"
263
264 LDFLAGS_prepend = "${@base_contains('GST_VERSION', '1.0', ' -lxml2 ', '', d)}"
265
266 def change_po():
267     import os
268     try:
269         os.system("find ./ -name \"*.po\" > ./po_list")
270         os.system("find ./ -name \"*.pot\" >> ./po_list")
271         po_list = []
272         po_list = open('po_list','r+').readlines()
273         for x in po_list:
274             changeword(x)
275         os.system('rm po_list')
276     except:
277         print 'word patch error '
278         return
279
280 def changeword(file):
281     fn = file[:-1]
282     fnn = file[:-1]+'_n'
283     cmd = "sed s/Dreambox/STB/g "+fn+" > "+fnn
284     os.system(cmd)
285     cmd1 = "mv "+fnn+" "+fn
286     os.system(cmd1)
287
288 do_unpack_append(){
289     change_po()
290 }
291
292 S = "${WORKDIR}/git"
293
294 FILES_${PN} += "${datadir}/fonts ${datadir}/keymaps"
295 FILES_${PN}-meta = "${datadir}/meta"
296 PACKAGES += "${PN}-meta"
297 PACKAGE_ARCH = "${MACHINE_ARCH}"
298
299 inherit autotools-brokensep pkgconfig pythonnative
300
301 do_configure_prepend() {
302         git checkout ${BRANCH}
303 }
304
305 do_compile_prepend_vuplus() {
306         install -m 0755 ${WORKDIR}/spinner/*.png ${S}/data/skin_default/spinner/
307         install -m 0755 ${WORKDIR}/number_key/*.png ${S}/data/skin_default/buttons/
308 }
309
310 EXTRA_OECONF = " \
311         --enable-dependency-tracking \
312         ${@base_contains("GST_VERSION", "1.0", "--with-gstversion=1.0", "", d)} \
313         ${@base_contains("VUPLUS_FEATURES", "display-text-vfd", "--with-display-text-vfd" , "", d)} \
314         ${@base_contains("VUPLUS_FEATURES", "display-graphic-vfd", "--with-display-graphic-vfd" , "", d)} \
315         ${@base_contains("VUPLUS_FEATURES", "right-half-vfd-skin", "--with-set-right-half-vfd-skin" , "", d)} \
316         ${@base_contains("VUPLUS_FEATURES", "enable-rc-kbd", "--with-remote-keyboard" , "", d)} \
317         ${@base_contains("VUPLUS_FEATURES", "uianimation", "--with-libvugles2" , "", d)} \
318         BUILD_SYS=${BUILD_SYS} \
319         HOST_SYS=${HOST_SYS} \
320         STAGING_INCDIR=${STAGING_INCDIR} \
321         STAGING_LIBDIR=${STAGING_LIBDIR} \
322 "
323
324 python populate_packages_prepend() {
325     enigma2_plugindir = bb.data.expand('${libdir}/enigma2/python/Plugins', d)
326     do_split_packages(d, enigma2_plugindir, '^(\w+/\w+)/[a-zA-Z0-9_]+.*$', 'enigma2-plugin-%s', '%s', recursive=True, match_path=True, prepend=True)
327     do_split_packages(d, enigma2_plugindir, '^(\w+/\w+)/.*\.la$', 'enigma2-plugin-%s-dev', '%s (development)', recursive=True, match_path=True, prepend=True)
328     do_split_packages(d, enigma2_plugindir, '^(\w+/\w+)/.*\.a$', 'enigma2-plugin-%s-staticdev', '%s (static development)', recursive=True, match_path=True, prepend=True)
329     do_split_packages(d, enigma2_plugindir, '^(\w+/\w+)/(.*/)?\.debug/.*$', 'enigma2-plugin-%s-dbg', '%s (debug)', recursive=True, match_path=True, prepend=True)
330 }
331
332 INSANE_SKIP_${PN} = "already-stripped"
333 INSANE_SKIP_enigma2-plugin-extensions-webbrowser = "build-deps"
334 INSANE_SKIP_enigma2-plugin-extensions-modem = "build-deps"
335
336
337