surpport seeking the recorded video
[vuplus_openembedded] / recipes / opie-taskbar / opie-taskbar-images.inc
1 DESCRIPTION = "Opie Launcher and Taskbar"
2 SECTION = "opie/base"
3 PRIORITY = "optional"
4 LICENSE = "GPL"
5 RPROVIDES = "${PN}"
6 APPNAME = "qpe"
7
8 S = "${WORKDIR}/pics"
9
10 inherit opie
11
12 # Wallpaper and welcome splash
13 PIXMAP_SIZE             = ""
14 PIXMAP_SIZE_c7x0        = "-640x480"
15 PIXMAP_SIZE_spitz       = "-640x480"
16 PIXMAP_SIZE_akita       = "-640x480"
17 PIXMAP_SIZE_tosa        = "-480x640"
18 PIXMAP_SIZE_simpad      = "-800x600"
19 PIXMAP_SIZE_asus730     = "-480x640"
20 PIXMAP_SIZE_htcuniversal= "-480x640"
21 PIXMAP_SIZE_hx4700      = "-480x640"
22 PIXMAP_SIZE_palmz31     = "-160x160"
23 PIXMAP_SIZE_palmz71     = "-320x320"
24 PIXMAP_SIZE_palmz72     = "-320x320"
25 PIXMAP_SIZE_palmt650    = "-320x320"
26 PIXMAP_SIZE_palmt680    = "-320x320"
27 PIXMAP_SIZE_palmt3      = "-320x480"
28 PIXMAP_SIZE_palmt5      = "-320x480"
29 PIXMAP_SIZE_palmtx      = "-320x480"
30 PIXMAP_SIZE_palmld      = "-320x480"
31
32 do_configure() {
33         :
34 }
35
36 do_install() {
37         install -d ${D}${palmtopdir}/pics/launcher
38         
39         install -m 0644 ${WORKDIR}/pics/launcher/firstuse.jpg ${D}${palmtopdir}/pics/launcher/firstuse-240x320.jpg
40         install -m 0644 ${WORKDIR}/pics/launcher/opie-background.jpg ${D}${palmtopdir}/pics/launcher/opie-background-240x320.jpg
41
42 #        for res in 320x240 240x320 320x320 320x480 480x320 480x640 640x480 600x800 800x600; do
43         for res in 240x240 320x320 320x480 480x320 480x640 640x480 800x600; do
44          install -m 0644 ${WORKDIR}/pics/launcher/firstuse-${res}.jpg ${D}${palmtopdir}/pics/launcher/firstuse-${res}.jpg
45          install -m 0644 ${WORKDIR}/pics/launcher/opie-background-${res}.jpg ${D}${palmtopdir}/pics/launcher/opie-background-${res}.jpg
46         done
47 }
48
49 python do_package_prepend () {
50         reslist = ['240x320','320x240', '320x320', '320x480', '480x320', '480x640','640x480', '800x600','600x800']
51         dir = bb.data.expand('${palmtopdir}/pics/launcher/', d)
52         ft = bb.data.expand('${palmtopdir}/pics/*/*-%s.*', d)
53         pn = bb.data.getVar('PN', d, 1)
54         for res in reslist:
55          bb.data.setVar('FILES_%s-%s' % (pn,res), ft % res, d )
56          postinst = ''
57          postinst = 'update-alternatives --install %sfirstuse.jpg opie-firstuse-pixmap %sfirstuse-%s.jpg 50\n' % (dir,dir,res)
58          postinst += 'update-alternatives --install %sopie-background.jpg opie-background-pixmap %sopie-background-%s.jpg 50\n' % (dir,dir,res)
59          bb.data.setVar('pkg_postinst_%s-%s' % (pn,res),postinst, d)
60 }
61
62 PACKAGE_ARCH = "all"
63 PACKAGES = "${PN}-dbg ${PN}-320x480 ${PN}-480x320 ${PN}-480x640 ${PN}-640x480 ${PN}-800x600 ${PN}-600x800 ${PN}-320x240 ${PN}-240x320 ${PN}-320x320"