weston: get rid of bogus mesa dependency
[scm/bb/meta-tizen.git] / 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 += "systemd"
49 inherit pkgconfig
50 DEPENDS += "glib-2.0"
51 DEPENDS += "wayland"
52 DEPENDS += "pixman"
53 DEPENDS += "libdrm"
54 DEPENDS_append_class-native = " libtool"
55 DEPENDS_append_class-target = " libtool-cross"
56 DEPENDS += "libffi"
57 DEPENDS += "pango"
58 DEPENDS += "poppler"
59 DEPENDS += "virtual/libgles2"
60 DEPENDS += "libpam"
61 DEPENDS += "virtual/egl"
62 DEPENDS += "libxkbcommon"
63 DEPENDS += "libjpeg-turbo"
64 DEPENDS_append_class-native = " autoconf-native"
65 DEPENDS_append_class-target = " autoconf-native"
66
67 do_prep() {
68  cd ${S}
69  chmod -Rf a+rX,u+w,g-w,o-w ${S}
70  #setup -q
71  cp ${S}/packaging/weston.manifest .
72  
73  
74 }
75 do_patch_append() {
76     bb.build.exec_func('do_prep', d)
77 }
78
79 do_configure() {
80 }
81
82 do_compile() {
83  cd ${S}
84   LANG=C
85   export LANG
86   unset DISPLAY
87   LD_AS_NEEDED=1; export LD_AS_NEEDED ;
88   
89   
90    
91   autotools_do_configure
92   
93   oe_runmake
94   
95   
96   
97 }
98 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 "
99
100 do_install() {
101  export RPM_BUILD_ROOT=${D}
102  cd ${S}
103  LANG=C
104  export LANG
105  unset DISPLAY
106  rm -rf ${D}
107  mkdir -p ${D}
108  
109  
110    oe_runmake \
111          DESTDIR=${D} \
112          INSTALL_ROOT=${D} \
113          BINDIR=${prefix}/bin \
114    install  
115    rm -f ${D}${infodir}/dir 
116    find ${D} -regex ".*\.la$" | xargs rm -f -- 
117    find ${D} -regex ".*\.a$" | xargs rm -f --
118  
119  # install example clients
120  install -m 755 weston-calibrator ${D}${prefix}/bin
121  install -m 755 weston-simple-touch ${D}${prefix}/bin
122  install -m 755 weston-simple-shm ${D}${prefix}/bin
123  install -m 755 weston-simple-egl ${D}${prefix}/bin
124  install -m 755 weston-simple-damage ${D}${prefix}/bin
125  install -m 755 weston-nested-client ${D}${prefix}/bin
126  install -m 755 weston-nested ${D}${prefix}/bin
127  install -m 755 weston-flower ${D}${prefix}/bin
128  install -m 755 weston-image ${D}${prefix}/bin
129  install -m 755 weston-cliptest ${D}${prefix}/bin
130  install -m 755 weston-dnd ${D}${prefix}/bin
131  install -m 755 weston-editor ${D}${prefix}/bin
132  install -m 755 weston-stacking ${D}${prefix}/bin
133  install -m 755 weston-smoke ${D}${prefix}/bin
134  install -m 755 weston-scaler ${D}${prefix}/bin
135  install -m 755 weston-resizor ${D}${prefix}/bin
136  install -m 755 weston-eventdemo ${D}${prefix}/bin
137  install -m 755 weston-clickdot ${D}${prefix}/bin
138  install -m 755 weston-subsurfaces ${D}${prefix}/bin
139  install -m 755 weston-transformed ${D}${prefix}/bin
140  install -m 755 weston-fullscreen ${D}${prefix}/bin
141  
142  
143 }
144
145 pkg_preinst_${PN}() {
146     #!/bin/sh -e
147
148     getent group weston-launch >/dev/null || $D${prefix}/sbin/groupadd -o -r weston-launch
149
150 }
151
152 PACKAGES = "${PN}-dbg ${PN}-doc ${PN}-locale"
153 PACKAGES += " weston "
154 PACKAGES += " weston-clients "
155 PACKAGES += " weston-docs "
156 PACKAGES += " weston-dev "
157
158 weston_files = ""
159 weston_files += "${prefix}/bin/wcap-*"
160 weston_files += "${prefix}/bin/weston"
161 weston_files += "${prefix}/bin/weston-info"
162 weston_files += "${prefix}/bin/weston-launch"
163 weston_files += "${prefix}/bin/weston-terminal"
164 weston_files += "${prefix}/libexec/weston-*"
165 weston_files += "${prefix}/lib/weston/desktop-shell.so"
166 weston_files += "${prefix}/lib/weston/drm-backend.so"
167 weston_files += "${prefix}/lib/weston/fbdev-backend.so"
168 weston_files += "${prefix}/lib/weston/fullscreen-shell.so"
169 weston_files += "${prefix}/lib/weston/headless-backend.so"
170 weston_files += "${prefix}/lib/weston/wayland-backend.so"
171 weston_files += "${prefix}/lib/weston/gl-renderer.so"
172 weston_files += "${prefix}/share/weston"
173 MANIFESTFILES_${PN} = "weston.manifest"
174
175 weston-clients_files = ""
176 weston-clients_files += "${prefix}/bin/weston-simple-touch"
177 weston-clients_files += "${prefix}/bin/weston-simple-shm"
178 weston-clients_files += "${prefix}/bin/weston-simple-egl"
179 weston-clients_files += "${prefix}/bin/weston-simple-damage"
180 weston-clients_files += "${prefix}/bin/weston-nested-client"
181 weston-clients_files += "${prefix}/bin/weston-nested"
182 weston-clients_files += "${prefix}/bin/weston-flower"
183 weston-clients_files += "${prefix}/bin/weston-image"
184 weston-clients_files += "${prefix}/bin/weston-cliptest"
185 weston-clients_files += "${prefix}/bin/weston-dnd"
186 weston-clients_files += "${prefix}/bin/weston-editor"
187 weston-clients_files += "${prefix}/bin/weston-stacking"
188 weston-clients_files += "${prefix}/bin/weston-smoke"
189 weston-clients_files += "${prefix}/bin/weston-scaler"
190 weston-clients_files += "${prefix}/bin/weston-resizor"
191 weston-clients_files += "${prefix}/bin/weston-eventdemo"
192 weston-clients_files += "${prefix}/bin/weston-clickdot"
193 weston-clients_files += "${prefix}/bin/weston-subsurfaces"
194 weston-clients_files += "${prefix}/bin/weston-transformed"
195 weston-clients_files += "${prefix}/bin/weston-fullscreen"
196 weston-clients_files += "${prefix}/bin/weston-calibrator"
197 MANIFESTFILES_${PN}-clients = "weston.manifest"
198
199 weston-docs_files = ""
200
201 weston-dev_files = ""
202 weston-dev_files += "${prefix}/include/weston/*.h"
203 weston-dev_files += "${prefix}/lib/pkgconfig/*.pc"
204 MANIFESTFILES_${PN}-dev = "weston.manifest"
205
206 FILES_${PN} = "${weston_files}"
207 FILES_${PN}-clients = "${weston-clients_files}"
208 FILES_${PN}-docs = "${weston-docs_files}"
209 FILES_${PN}-dev = "${weston-dev_files}"
210
211 PKG_weston= "weston"
212 PKG_weston-clients= "weston-clients"
213 PKG_weston-docs= "weston-docs"
214 PKG_weston-dev= "weston-dev"
215
216 require weston-extraconf.inc
217