4171d46ecf5eef43d4eec049a4e325b4a940b079
[scm/bb/meta-tizen.git] / meta-tizen-ivi / meta-tizen-common-base / recipes-graphics / weston / weston.inc
1 DESCRIPTION = "Wayland Compositor Infrastructure"
2 HOMEPAGE = "http://weston.freedesktop.org/"
3 SECTION = "Graphics & UI Framework/Wayland Window System"
4 LICENSE = "MIT"
5 PV = "1.6.0"
6
7 SRC_URI = ""
8
9 S = "${WORKDIR}/git"
10
11 inherit manifest autotools-brokensep
12
13 BBCLASSEXTEND = ""
14 PROVIDES = ""
15
16 #PROVIDES by weston
17
18
19 #PROVIDES by weston-dev
20 PROVIDES += "weston-dev"
21
22
23 #PROVIDES by weston-docs
24 PROVIDES += "weston-docs "
25
26
27 #PROVIDES by weston-clients
28 PROVIDES += "weston-clients"
29
30
31 RDEPENDS = ""
32 #RDEPENDS of weston (${PN})
33 RDEPENDS_${PN} += "shadow"
34 RDEPENDS_${PN} += "tlm"
35
36
37 DEPENDS = ""
38 #DEPENDS of weston
39 DEPENDS += "mtdev"
40 DEPENDS += "cairo"
41 DEPENDS += "expat"
42 DEPENDS += "udev"
43 DEPENDS += "libvpx"
44 DEPENDS += "xz"
45 DEPENDS += "libinput"
46 DEPENDS_append_class-native = " automake-native"
47 DEPENDS_append_class-target = " automake-native"
48 DEPENDS += "mesa"
49 DEPENDS += "systemd"
50 inherit pkgconfig
51 DEPENDS += "glib-2.0"
52 DEPENDS += "wayland"
53 DEPENDS += "pixman"
54 DEPENDS += "libdrm"
55 DEPENDS_append_class-native = " libtool"
56 DEPENDS_append_class-target = " libtool-cross"
57 DEPENDS += "libffi"
58 DEPENDS += "pango"
59 DEPENDS += "poppler"
60 DEPENDS += "virtual/libgles2"
61 DEPENDS += "libpam"
62 DEPENDS += "virtual/egl"
63 DEPENDS += "libxkbcommon"
64 DEPENDS += "libjpeg-turbo"
65 DEPENDS_append_class-native = " autoconf-native"
66 DEPENDS_append_class-target = " autoconf-native"
67
68 do_prep() {
69  cd ${S}
70  chmod -Rf a+rX,u+w,g-w,o-w ${S}
71  #setup -q
72  cp ${S}/packaging/weston.manifest .
73  
74  
75 }
76 do_patch_append() {
77     bb.build.exec_func('do_prep', d)
78 }
79
80 do_configure() {
81 }
82
83 do_compile() {
84  cd ${S}
85   LANG=C
86   export LANG
87   unset DISPLAY
88   LD_AS_NEEDED=1; export LD_AS_NEEDED ;
89   
90   
91    
92   autotools_do_configure
93   
94   make -j16
95   
96   
97   
98 }
99 EXTRA_OECONF += " --disable-static --disable-setuid-install --enable-simple-clients --enable-clients --disable-libunwind --disable-xwayland --disable-xwayland-test --disable-x11-compositor --disable-rpi-compositor --with-cairo=glesv2 "
100
101 do_install() {
102  export RPM_BUILD_ROOT=${D}
103  cd ${S}
104  LANG=C
105  export LANG
106  unset DISPLAY
107  rm -rf ${D}
108  mkdir -p ${D}
109  
110  
111    oe_runmake \
112          DESTDIR=${D} \
113          INSTALL_ROOT=${D} \
114          BINDIR=${prefix}/bin \
115    install  
116    rm -f ${D}${infodir}/dir 
117    find ${D} -regex ".*\.la$" | xargs rm -f -- 
118    find ${D} -regex ".*\.a$" | xargs rm -f --
119  
120  # install example clients
121  install -m 755 weston-calibrator ${D}${prefix}/bin
122  install -m 755 weston-simple-touch ${D}${prefix}/bin
123  install -m 755 weston-simple-shm ${D}${prefix}/bin
124  install -m 755 weston-simple-egl ${D}${prefix}/bin
125  install -m 755 weston-simple-damage ${D}${prefix}/bin
126  install -m 755 weston-nested-client ${D}${prefix}/bin
127  install -m 755 weston-nested ${D}${prefix}/bin
128  install -m 755 weston-flower ${D}${prefix}/bin
129  install -m 755 weston-image ${D}${prefix}/bin
130  install -m 755 weston-cliptest ${D}${prefix}/bin
131  install -m 755 weston-dnd ${D}${prefix}/bin
132  install -m 755 weston-editor ${D}${prefix}/bin
133  install -m 755 weston-stacking ${D}${prefix}/bin
134  install -m 755 weston-smoke ${D}${prefix}/bin
135  install -m 755 weston-scaler ${D}${prefix}/bin
136  install -m 755 weston-resizor ${D}${prefix}/bin
137  install -m 755 weston-eventdemo ${D}${prefix}/bin
138  install -m 755 weston-clickdot ${D}${prefix}/bin
139  install -m 755 weston-subsurfaces ${D}${prefix}/bin
140  install -m 755 weston-transformed ${D}${prefix}/bin
141  install -m 755 weston-fullscreen ${D}${prefix}/bin
142  
143  
144 }
145
146 pkg_preinst_${PN}() {
147     #!/bin/sh -e
148
149     getent group weston-launch >/dev/null || $D${prefix}/sbin/groupadd -o -r weston-launch
150
151 }
152
153 PACKAGES = "${PN}-dbg ${PN}-doc ${PN}-locale"
154 PACKAGES += " weston "
155 PACKAGES += " weston-clients "
156 PACKAGES += " weston-docs "
157 PACKAGES += " weston-dev "
158
159 weston_files = ""
160 weston_files += "${prefix}/bin/wcap-*"
161 weston_files += "${prefix}/bin/weston"
162 weston_files += "${prefix}/bin/weston-info"
163 weston_files += "${prefix}/bin/weston-launch"
164 weston_files += "${prefix}/bin/weston-terminal"
165 weston_files += "${prefix}/libexec/weston-*"
166 weston_files += "${prefix}/lib/weston/desktop-shell.so"
167 weston_files += "${prefix}/lib/weston/drm-backend.so"
168 weston_files += "${prefix}/lib/weston/fbdev-backend.so"
169 weston_files += "${prefix}/lib/weston/fullscreen-shell.so"
170 weston_files += "${prefix}/lib/weston/headless-backend.so"
171 weston_files += "${prefix}/lib/weston/wayland-backend.so"
172 weston_files += "${prefix}/lib/weston/gl-renderer.so"
173 weston_files += "${prefix}/share/weston"
174 MANIFESTFILES_${PN} = "weston.manifest"
175
176 weston-clients_files = ""
177 weston-clients_files += "${prefix}/bin/weston-simple-touch"
178 weston-clients_files += "${prefix}/bin/weston-simple-shm"
179 weston-clients_files += "${prefix}/bin/weston-simple-egl"
180 weston-clients_files += "${prefix}/bin/weston-simple-damage"
181 weston-clients_files += "${prefix}/bin/weston-nested-client"
182 weston-clients_files += "${prefix}/bin/weston-nested"
183 weston-clients_files += "${prefix}/bin/weston-flower"
184 weston-clients_files += "${prefix}/bin/weston-image"
185 weston-clients_files += "${prefix}/bin/weston-cliptest"
186 weston-clients_files += "${prefix}/bin/weston-dnd"
187 weston-clients_files += "${prefix}/bin/weston-editor"
188 weston-clients_files += "${prefix}/bin/weston-stacking"
189 weston-clients_files += "${prefix}/bin/weston-smoke"
190 weston-clients_files += "${prefix}/bin/weston-scaler"
191 weston-clients_files += "${prefix}/bin/weston-resizor"
192 weston-clients_files += "${prefix}/bin/weston-eventdemo"
193 weston-clients_files += "${prefix}/bin/weston-clickdot"
194 weston-clients_files += "${prefix}/bin/weston-subsurfaces"
195 weston-clients_files += "${prefix}/bin/weston-transformed"
196 weston-clients_files += "${prefix}/bin/weston-fullscreen"
197 weston-clients_files += "${prefix}/bin/weston-calibrator"
198 MANIFESTFILES_${PN}-clients = "weston.manifest"
199
200 weston-docs_files = ""
201
202 weston-dev_files = ""
203 weston-dev_files += "${prefix}/include/weston/*.h"
204 weston-dev_files += "${prefix}/lib/pkgconfig/*.pc"
205 MANIFESTFILES_${PN}-dev = "weston.manifest"
206
207 FILES_${PN} = "${weston_files}"
208 FILES_${PN}-clients = "${weston-clients_files}"
209 FILES_${PN}-docs = "${weston-docs_files}"
210 FILES_${PN}-dev = "${weston-dev_files}"
211
212 PKG_weston= "weston"
213 PKG_weston-clients= "weston-clients"
214 PKG_weston-docs= "weston-docs"
215 PKG_weston-dev= "weston-dev"
216
217 require weston-extraconf.inc
218