transtreamproxy updated.
[vuplus_openvuplus] / meta-openvuplus / recipes-vuplus / enigma2 / enigma2.bb
1 DESCRIPTION = "Enigma2 is an experimental, but useful framebuffer-based frontend for DVB functions"
2 MAINTAINER = "Felix Domke <tmbinc@elitedvb.net>"
3 LICENSE = "GPLv2"
4 LIC_FILES_CHKSUM = "file://LICENSE;md5=c9e255efa454e0155c1fd758df7dcaf3"
5 DEPENDS = "jpeg libungif libmad libpng libsigc++-1.2 gettext-native \
6         dreambox-dvbincludes freetype libdvbsi++ python swig-native \
7         libfribidi libxmlccwrap libdreamdvd gstreamer gst-plugin-dvbmediasink \
8         gst-plugins-bad gst-plugins-good gst-plugins-ugly python-wifi \
9         hostap-daemon bridge-utils ntfs-3g dosfstools util-linux \
10 "
11
12 RDEPENDS_GST= "gst-plugins-base-decodebin gst-plugins-base-decodebin2 gst-plugins-base-app gst-plugins-bad-fragmented \
13                 gst-plugins-good-id3demux gst-plugins-ugly-mad gst-plugins-base-ogg gst-plugins-base-playbin \
14                 gst-plugins-base-typefindfunctions gst-plugins-base-audioconvert gst-plugins-base-audioresample \
15                 gst-plugins-good-wavparse gst-plugins-ugly-mpegstream \
16                 gst-plugins-good-flac gst-plugin-dvbmediasink gst-plugins-bad-mpegdemux gst-plugins-ugly-dvdsub \
17                 gst-plugins-good-souphttpsrc gst-plugins-ugly-mpegaudioparse gst-plugins-base-subparse \
18                 gst-plugins-good-apetag gst-plugins-good-icydemux gst-plugins-good-autodetect gst-plugins-good-flv \
19 "
20
21 RDEPENDS_${PN} = "python-codecs python-core python-lang python-re python-threading \
22                 python-xml python-fcntl python-stringold python-pickle python-netclient \
23                 glibc-gconv-iso8859-15 ethtool parted \
24                 ${RDEPENDS_GST} \
25 "
26
27 GST_RTSP_RDEPENDS = "gst-plugins-good-udp gst-plugins-good-rtsp gst-plugins-good-rtp gst-plugins-good-rtpmanager"
28 GST_ALSA_RDEPENDS = "gst-plugins-base-alsa alsa-conf"
29 GST_MISC_RDEPENDS = "gst-plugins-good-matroska gst-plugins-good-isomp4 gst-plugins-base-vorbis gst-plugins-good-audioparsers"
30 GST_DVD_RDEPENDS = "gst-plugins-bad-cdxaparse gst-plugins-ugly-cdio gst-plugins-bad-vcdsrc"
31 GST_BASE_RDEPENDS = "${GST_ALSA_RDEPENDS} ${GST_MISC_RDEPENDS} ${GST_RTSP_RDEPENDS}"
32
33 RDEPENDS_append_vuplus = " ${GST_BASE_RDEPENDS} ${GST_DVD_RDEPENDS} gst-plugins-good-avi"
34
35 # 'forward depends' - no two providers can have the same PACKAGES_DYNAMIC, however both
36 # enigma2 and enigma2-plugins produce enigma2-plugin-*.
37 #DEPENDS += "enigma2-plugins"
38 #PACKAGES_DYNAMIC = "enigma2-plugin-*"
39
40 SUMMARY_enigma2-plugin-extensions-cutlisteditor = "enables you to cut your movies."
41 RDEPENDS_enigma2-plugin-extensions-cutlisteditor = "aio-grab"
42 SUMMARY_enigma2-plugin-extensions-graphmultiepg = "shows a graphical timeline EPG."
43 SUMMARY_enigma2-plugin-extensions-pictureplayer = "displays photos on the TV."
44 SUMMARY_enigma2-plugin-systemplugins-frontprocessorupdate = "keeps your frontprocessor up to date."
45 SUMMARY_enigma2-plugin-systemplugins-positionersetup = "helps you installing a motorized dish."
46 SUMMARY_enigma2-plugin-systemplugins-satelliteequipmentcontrol = "allows you to fine-tune DiSEqC-settings."
47 SUMMARY_enigma2-plugin-systemplugins-satfinder = "helps you to align your dish."
48 SUMMARY_enigma2-plugin-systemplugins-skinselector = "shows a menu with selectable skins."
49 SUMMARY_enigma2-plugin-systemplugins-videomode = "selects advanced video modes"
50 DEPENDS_enigma2-plugin-extensions-dvdplayer = "libdreamdvd0"
51 RDEPENDS_enigma2-plugin-systemplugins-nfiflash = "python-twisted-web"
52 RDEPENDS_enigma2-plugin-systemplugins-softwaremanager = "python-twisted-web"
53 RCONFLICTS_enigma2-plugin-systemplugins-softwaremanager = "enigma2-plugin-systemplugins-configurationbackup enigma2-plugin-systemplugins-softwareupdate"
54 RREPLACES_enigma2-plugin-systemplugins-softwaremanager = "enigma2-plugin-systemplugins-configurationbackup enigma2-plugin-systemplugins-softwareupdate"
55 SUMMARY_enigma2-plugin-systemplugins-crashlogautosubmit = "automatically send crashlogs to Dream Multimedia"
56 RDEPENDS_enigma2-plugin-systemplugins-crashlogautosubmit = "python-twisted-mail python-twisted-names python-compression python-mime python-email"
57 SUMMARY_enigma2-plugin-systemplugins-cleanupwizard = "informs you on low internal memory on system startup."
58 SUMMARY_enigma2-plugin-extenstions-modem = "opens a menu to connect to internet via builtin modem."
59 RDEPENDS_enigma2-plugin-extensions-modem = "dreambox-modem-ppp-scripts ppp"
60 SUMMARY_enigma2-plugin-systemplugins-wirelesslan = "helps you configuring your wireless lan"
61 RDEPENDS_enigma2-plugin-systemplugins-wirelesslan = "wpa-supplicant wireless-tools python-wifi"
62 SUMMARY_enigma2-plugin-systemplugins-wirelesslansetup = "configure wireless lan"
63 RDEPENDS_enigma2-plugin-systemplugins-wirelesslansetup = "wpa-supplicant wireless-tools python-wifi"
64 SUMMARY_enigma2-plugin-systemplugins-networkwizard = "provides easy step by step network configuration"
65 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 "
66 SUMMARY_enigma2-plugin-systemplugins-crashreport = "automatically send crashlogs to Vu+"
67 RDEPENDS_enigma2-plugin-systemplugins-crashreport = "python-twisted-mail python-twisted-names python-compression python-mime python-email"
68 RDEPENDS_enigma2-plugin-systemplugins-wirelessaccesspoint = "hostap-daemon bridge-utils"
69
70 RDEPENDS_enigma2-plugin-extensions-streamtv = "librtmp0 gst-plugins-bad-rtmp "
71
72 DEPENDS += "djmount minidlna"
73 RDEPENDS_enigma2-plugin-extensions-dlnaserver = "minidlna "
74 RDEPENDS_enigma2-plugin-extensions-dlnabrowser = "djmount kernel-module-fuse fuse-utils"
75
76 DEPENDS += "opera-hbbtv"
77 RDEPENDS_enigma2-plugin-extensions-hbbtv = "opera-hbbtv"
78
79 DEPENDS += "wvdial wvstreams ppp usb-modeswitch usb-modeswitch-data"
80 RDEPENDS_enigma2-plugin-systemplugins-3gmodemmanager = "ppp usb-modeswitch usb-modeswitch-data wvdial wvstreams \
81         kernel-module-ppp-async kernel-module-ppp-deflate kernel-module-ppp-synctty kernel-module-ppp-generic kernel-module-usbserial \
82 "
83
84 RDEPENDS_enigma2-plugin-systemplugins-devicemanager = "util-linux-blkid ntfs-3g dosfstools"
85 RDEPENDS_enigma2-plugin-systemplugins-netdrive = "curlftpfs kernel-module-fuse libfuse2"
86
87 RDEPENDS_enigma2-plugin-systemplugins-backupsuitehdd = "mtd-utils-mkfs.ubifs mtd-utils-nanddump mtd-utils-ubinize"
88 RDEPENDS_enigma2-plugin-systemplugins-backupsuiteusb = "enigma2-plugin-extensions-backupsuitehdd"
89
90 PN = "enigma2"
91 PR = "r45"
92
93 SRCDATE = "20121128"
94 #SRCDATE is NOT used by git to checkout a specific revision
95 #but we need it to build a ipk package version
96 #when you like to checkout a specific revision of e2 you need
97 #have to specify a commit id or a tag name in SRCREV
98
99 ####################################################
100 BRANCH = "vuplus_experimental"
101 PV = "experimental-git${SRCDATE}"
102 SRCREV = ""
103 ####################################################
104
105 # enigma2_vuplus_mediaplayer.patch is for trick-play in media player
106
107 SRC_URI = "git://code.vuplus.com/git/dvbapp.git;protocol=http;branch=${BRANCH};tag=${SRCREV} \
108            file://enigma2_vuplus_skin.patch;patch=1;pnum=1 \
109            file://enigma2_vuplus_mediaplayer.patch;patch=1;pnum=1 \
110            file://enigma2_vuplus_mediaplayer_subtitle.patch;patch=1;pnum=1 \
111            file://enigma2_vuplus_remove_dreambox_enigma.patch;patch=1;pnum=1 \
112            file://enigma2_vuplus_vfd_mode.patch;patch=1;pnum=1 \
113            file://enigma2_vuplus_addlibpythondeps.patch;patch=1;pnum=1 \
114            file://enigma2_vuplus_pluginbrowser.patch;striplevel=1 \
115            file://enigma2_vuplus_proc_oom_score_adj.patch;striplevel=1 \
116            file://MyriadPro-Regular.otf \
117            file://MyriadPro-Semibold.otf \
118            file://MyriadPro-SemiboldIt.otf \
119            file://750S \
120            file://Vu_HD \
121            file://number_key \
122            "
123
124 SRC_URI_append = " ${@base_contains("VUPLUS_FEATURES", "vuwlan", "file://enigma2_vuplus_networksetup.patch;patch=1;pnum=1", "", d)}"
125
126 def change_po():
127         import os
128         try:
129                 os.system("find ./ -name \"*.po\" > ./po_list")
130                 os.system("find ./ -name \"*.pot\" >> ./po_list")
131                 po_list = []
132                 po_list = open('po_list','r+').readlines()
133                 for x in po_list:
134                         changeword(x)
135                 os.system('rm po_list')
136         except:
137                 print 'word patch error '
138                 return
139
140 def changeword(file):
141         fn = file[:-1]
142         fnn = file[:-1]+'_n'
143         cmd = "sed s/Dreambox/STB/g "+fn+" > "+fnn
144         os.system(cmd)
145         cmd1 = "mv "+fnn+" "+fn
146         os.system(cmd1)
147
148 do_unpack_append(){
149         change_po()
150 }
151
152 S = "${WORKDIR}/git"
153
154 FILES_${PN} += "${datadir}/fonts ${datadir}/keymaps"
155 FILES_${PN}-meta = "${datadir}/meta"
156 PACKAGES += "${PN}-meta"
157 PACKAGE_ARCH = "${MACHINE_ARCH}"
158
159 inherit autotools pkgconfig
160
161 do_configure_prepend() {
162         git checkout ${BRANCH}
163 }
164
165 do_compile_prepend_vuplus() {
166         install -m 0755 ${WORKDIR}/MyriadPro-Regular.otf ${S}/data/fonts/
167         install -m 0755 ${WORKDIR}/MyriadPro-Semibold.otf ${S}/data/fonts/
168         install -m 0755 ${WORKDIR}/MyriadPro-SemiboldIt.otf ${S}/data/fonts/
169         install -m 0755 ${WORKDIR}/750S/*.png ${S}/data/750S/
170         install -m 0755 ${WORKDIR}/750S/buttons/*.png ${S}/data/750S/buttons/
171         install -m 0755 ${WORKDIR}/750S/countries/*.png ${S}/data/750S/countries/
172         install -m 0755 ${WORKDIR}/750S/icons/*.png ${S}/data/750S/icons/
173         install -m 0755 ${WORKDIR}/750S/menu/*.png ${S}/data/750S/menu/
174         install -m 0755 ${WORKDIR}/750S/spinner/*.png ${S}/data/skin_default/spinner/
175         install -m 0755 ${WORKDIR}/Vu_HD/*.png ${S}/data/Vu_HD/
176         install -m 0755 ${WORKDIR}/Vu_HD/buttons/*.png ${S}/data/Vu_HD/buttons/
177         install -m 0755 ${WORKDIR}/Vu_HD/countries/*.png ${S}/data/Vu_HD/countries/
178         install -m 0755 ${WORKDIR}/Vu_HD/icons/*.png ${S}/data/Vu_HD/icons/
179         install -m 0755 ${WORKDIR}/Vu_HD/menu/*.png ${S}/data/Vu_HD/menu/
180         install -m 0755 ${WORKDIR}/number_key/*.png ${S}/data/skin_default/buttons/
181 }
182
183 EXTRA_OECONF = " \
184         ${@base_contains("VUPLUS_FEATURES", "display-text-vfd", "--with-display-text-vfd" , "", d)} \
185         ${@base_contains("VUPLUS_FEATURES", "display-graphic-vfd", "--with-display-graphic-vfd" , "", d)} \
186         ${@base_contains("VUPLUS_FEATURES", "right-half-vfd-skin", "--with-set-right-half-vfd-skin" , "", d)} \
187         ${@base_contains("VUPLUS_FEATURES", "enable-rc-kbd", "--with-remote-keyboard" , "", d)} \
188         BUILD_SYS=${BUILD_SYS} \
189         HOST_SYS=${HOST_SYS} \
190         STAGING_INCDIR=${STAGING_INCDIR} \
191         STAGING_LIBDIR=${STAGING_LIBDIR} \
192 "
193
194 python populate_packages_prepend() {
195         enigma2_plugindir = bb.data.expand('${libdir}/enigma2/python/Plugins', d)
196         do_split_packages(d, enigma2_plugindir, '^(\w+/\w+)/[a-zA-Z0-9_]+.*$', 'enigma2-plugin-%s', '%s', recursive=True, match_path=True, prepend=True)
197         do_split_packages(d, enigma2_plugindir, '^(\w+/\w+)/.*\.la$', 'enigma2-plugin-%s-dev', '%s (development)', recursive=True, match_path=True, prepend=True)
198         do_split_packages(d, enigma2_plugindir, '^(\w+/\w+)/.*\.a$', 'enigma2-plugin-%s-staticdev', '%s (static development)', recursive=True, match_path=True, prepend=True)
199         do_split_packages(d, enigma2_plugindir, '^(\w+/\w+)/(.*/)?\.debug/.*$', 'enigma2-plugin-%s-dbg', '%s (debug)', recursive=True, match_path=True, prepend=True)
200 }
201
202 RCONFLICTS_${PN} = "dreambox-keymaps"
203 RREPLACES_${PN} = "dreambox-keymaps tuxbox-tuxtxt-32bpp (<= 0.0+cvs20090130-r1)"
204