1 |
commit: b985d09515dbb5833978ff065efb6724724ba9b8 |
2 |
Author: Mart Raudsepp <leio <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Jun 26 05:10:56 2014 +0000 |
4 |
Commit: Mart Raudsepp <leio <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jun 26 05:10:56 2014 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=dev/leio.git;a=commit;h=b985d095 |
7 |
|
8 |
Add weston-1.5.0 ebuild hacked to be more suitable on Raspberry-Pi (RPi) with USE=rpi |
9 |
|
10 |
--- |
11 |
dev-libs/weston/Manifest | 1 + |
12 |
dev-libs/weston/files/README.gentoo | 9 ++ |
13 |
dev-libs/weston/metadata.xml | 26 ++++++ |
14 |
dev-libs/weston/weston-1.5.0.ebuild | 167 ++++++++++++++++++++++++++++++++++++ |
15 |
4 files changed, 203 insertions(+) |
16 |
|
17 |
diff --git a/dev-libs/weston/Manifest b/dev-libs/weston/Manifest |
18 |
new file mode 100644 |
19 |
index 0000000..e7d0775 |
20 |
--- /dev/null |
21 |
+++ b/dev-libs/weston/Manifest |
22 |
@@ -0,0 +1 @@ |
23 |
+DIST weston-1.5.0.tar.xz 722616 SHA256 06388ba04ac79aa72d685cc1a8e646ddb2b8cfe11fcc742294f9addac48b7684 SHA512 25230a2d2d0242fecfb35426d538ffe65bec1c984ef3529569d5aa97afd47058785227567ee80bd46cfaa2e914191eee24351a7fe5442f72d1cc32ff646c50e9 WHIRLPOOL 487f8e8d31ea6ceeca13e89bc0da227f9d88b48c3b0aff25763fa869e661cd32dc91a2a0eec416f726222b2c057f843137c7c3a4856727573e9e02844bb70aa0 |
24 |
|
25 |
diff --git a/dev-libs/weston/files/README.gentoo b/dev-libs/weston/files/README.gentoo |
26 |
new file mode 100644 |
27 |
index 0000000..ed8c5c3 |
28 |
--- /dev/null |
29 |
+++ b/dev-libs/weston/files/README.gentoo |
30 |
@@ -0,0 +1,9 @@ |
31 |
+For running Weston you need to have $XDG_RUNTIME_DIR in your environment, |
32 |
+directory must exist and have correct permissions. If you are not using systemd, |
33 |
+it will not be created automatically, you can create it using your shell, |
34 |
+add these lines to ~/.bash_profile: |
35 |
+ |
36 |
+# wayland |
37 |
+export XDG_RUNTIME_DIR=/tmp/.runtime-${USER} |
38 |
+mkdir -p "${XDG_RUNTIME_DIR}" |
39 |
+chmod 0700 "${XDG_RUNTIME_DIR}" |
40 |
|
41 |
diff --git a/dev-libs/weston/metadata.xml b/dev-libs/weston/metadata.xml |
42 |
new file mode 100644 |
43 |
index 0000000..0bf8f98 |
44 |
--- /dev/null |
45 |
+++ b/dev-libs/weston/metadata.xml |
46 |
@@ -0,0 +1,26 @@ |
47 |
+<?xml version="1.0" encoding="UTF-8"?> |
48 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
49 |
+<pkgmetadata> |
50 |
+<herd>x11</herd> |
51 |
+<use> |
52 |
+ <flag name='clients'>Enable support for clients</flag> |
53 |
+ <flag name='colord'>Allow setting color managment</flag> |
54 |
+ <flag name='drm'>Enable drm compositor support</flag> |
55 |
+ <flag name='editor'>Install wayland-editor example application</flag> |
56 |
+ <flag name='egl'>Enable egl acceleration</flag> |
57 |
+ <flag name='fbdev'>Enable fbdev compositor support</flag> |
58 |
+ <flag name='gles2'>Use GLESv2 cairo instead of full GL</flag> |
59 |
+ <flag name='headless'>Headless backend and a noop renderer, mainly for testing purposes</flag> |
60 |
+ <flag name='launch'>Install weston-launch utility</flag> |
61 |
+ <flag name='rdp'>Enable Remote Desktop Protocol compositor support</flag> |
62 |
+ <flag name='resize-optimization'>Increase performance, allocate more RAM. Recommended to disable on Raspberry Pi</flag> |
63 |
+ <flag name='rpi'>Raspberry Pi GPU support</flag> |
64 |
+ <flag name='simple-clients'>Enable simple-clients</flag> |
65 |
+ <flag name='tablet'>Enable interface for tablets</flag> |
66 |
+ <flag name='unwind'>Enable libunwind usage for backtraces</flag> |
67 |
+ <flag name='view'>Install wayland-view example application</flag> |
68 |
+ <flag name='wayland-compositor'>Enable Wayland compositor support</flag> |
69 |
+ <flag name='x11'>Enable X11 compositor support</flag> |
70 |
+ <flag name='xwayland'>Enable ability support native X11 applications</flag> |
71 |
+</use> |
72 |
+</pkgmetadata> |
73 |
|
74 |
diff --git a/dev-libs/weston/weston-1.5.0.ebuild b/dev-libs/weston/weston-1.5.0.ebuild |
75 |
new file mode 100644 |
76 |
index 0000000..019b8e3 |
77 |
--- /dev/null |
78 |
+++ b/dev-libs/weston/weston-1.5.0.ebuild |
79 |
@@ -0,0 +1,167 @@ |
80 |
+# Copyright 1999-2014 Gentoo Foundation |
81 |
+# Distributed under the terms of the GNU General Public License v2 |
82 |
+# $Header: $ |
83 |
+ |
84 |
+EAPI=5 |
85 |
+ |
86 |
+if [[ ${PV} = 9999* ]]; then |
87 |
+ EGIT_REPO_URI="git://anongit.freedesktop.org/git/wayland/${PN}" |
88 |
+ GIT_ECLASS="git-r3" |
89 |
+ EXPERIMENTAL="true" |
90 |
+fi |
91 |
+VIRTUALX_REQUIRED="test" |
92 |
+RESTRICT="test" |
93 |
+ |
94 |
+inherit autotools readme.gentoo toolchain-funcs virtualx $GIT_ECLASS |
95 |
+ |
96 |
+DESCRIPTION="Wayland reference compositor" |
97 |
+HOMEPAGE="http://wayland.freedesktop.org/" |
98 |
+ |
99 |
+if [[ $PV = 9999* ]]; then |
100 |
+ SRC_URI="${SRC_PATCHES}" |
101 |
+else |
102 |
+ SRC_URI="http://wayland.freedesktop.org/releases/${P}.tar.xz" |
103 |
+fi |
104 |
+ |
105 |
+LICENSE="MIT CC-BY-SA-3.0" |
106 |
+SLOT="0" |
107 |
+KEYWORDS="~amd64 ~arm ~x86 ~arm-linux" |
108 |
+IUSE="colord dbus +drm +egl editor examples fbdev gles2 headless +opengl rdp +resize-optimization rpi +launch screen-sharing static-libs +suid systemd test unwind wayland-compositor +X xwayland" |
109 |
+ |
110 |
+REQUIRED_USE=" |
111 |
+ drm? ( egl ) |
112 |
+ egl? ( !rpi? ( || ( gles2 opengl ) ) ) |
113 |
+ gles2? ( !opengl ) |
114 |
+ rpi? ( !opengl ) |
115 |
+ screen-sharing? ( rdp ) |
116 |
+ test? ( X ) |
117 |
+ wayland-compositor? ( egl ) |
118 |
+" |
119 |
+ |
120 |
+RDEPEND=" |
121 |
+ >=dev-libs/wayland-1.4.0 |
122 |
+ media-libs/lcms:2 |
123 |
+ media-libs/libpng:0= |
124 |
+ media-libs/libwebp:0= |
125 |
+ virtual/jpeg |
126 |
+ >=x11-libs/cairo-1.11.3[gles2(-)?,opengl?] |
127 |
+ >=x11-libs/libdrm-2.4.30 |
128 |
+ x11-libs/libxkbcommon |
129 |
+ x11-libs/pixman |
130 |
+ x11-misc/xkeyboard-config |
131 |
+ fbdev? ( |
132 |
+ >=sys-libs/mtdev-1.1.0 |
133 |
+ >=virtual/udev-136 |
134 |
+ ) |
135 |
+ colord? ( >=x11-misc/colord-0.1.27 ) |
136 |
+ dbus? ( sys-apps/dbus ) |
137 |
+ drm? ( |
138 |
+ media-libs/mesa[gbm] |
139 |
+ >=sys-libs/mtdev-1.1.0 |
140 |
+ >=virtual/udev-136 |
141 |
+ ) |
142 |
+ egl? ( |
143 |
+ media-libs/glu |
144 |
+ rpi? ( media-libs/raspberrypi-userland ) |
145 |
+ !rpi? ( media-libs/mesa[gles2,wayland] ) |
146 |
+ ) |
147 |
+ editor? ( x11-libs/pango ) |
148 |
+ gles2? ( |
149 |
+ rpi? ( media-libs/raspberrypi-userland ) |
150 |
+ !rpi? ( media-libs/mesa[wayland] ) |
151 |
+ ) |
152 |
+ opengl? ( |
153 |
+ media-libs/mesa[wayland] |
154 |
+ ) |
155 |
+ rdp? ( >=net-misc/freerdp-1.1.0_beta1_p20130710 ) |
156 |
+ rpi? ( |
157 |
+ >=sys-libs/mtdev-1.1.0 |
158 |
+ >=virtual/udev-136 |
159 |
+ ) |
160 |
+ systemd? ( |
161 |
+ sys-auth/pambase[systemd] |
162 |
+ sys-apps/systemd[pam] |
163 |
+ ) |
164 |
+ launch? ( sys-auth/pambase ) |
165 |
+ unwind? ( sys-libs/libunwind ) |
166 |
+ X? ( |
167 |
+ x11-libs/libxcb |
168 |
+ x11-libs/libX11 |
169 |
+ ) |
170 |
+ xwayland? ( |
171 |
+ x11-base/xorg-server[wayland] |
172 |
+ x11-libs/cairo[xcb] |
173 |
+ x11-libs/libxcb |
174 |
+ x11-libs/libXcursor |
175 |
+ ) |
176 |
+" |
177 |
+DEPEND="${RDEPEND} |
178 |
+ virtual/pkgconfig |
179 |
+" |
180 |
+ |
181 |
+src_prepare() { |
182 |
+ if [[ ${PV} = 9999* ]]; then |
183 |
+ eautoreconf |
184 |
+ fi |
185 |
+} |
186 |
+ |
187 |
+src_configure() { |
188 |
+ local myconf |
189 |
+ if use examples || use gles2 || use test; then |
190 |
+ myconf="--enable-simple-clients |
191 |
+ $(use_enable egl simple-egl-clients)" |
192 |
+ else |
193 |
+ myconf="--disable-simple-clients |
194 |
+ --disable-simple-egl-clients" |
195 |
+ fi |
196 |
+ |
197 |
+ if use gles2; then |
198 |
+ myconf+=" --with-cairo=glesv2" |
199 |
+ elif use opengl; then |
200 |
+ myconf+=" --with-cairo=gl" |
201 |
+ else |
202 |
+ myconf+=" --with-cairo=image" |
203 |
+ fi |
204 |
+ |
205 |
+ if use rpi; then |
206 |
+ # Set the default backend to probably desired RPi one, to work without a weston.ini |
207 |
+ export WESTON_NATIVE_BACKEND="rpi-backend.so" |
208 |
+ fi |
209 |
+ |
210 |
+ econf \ |
211 |
+ $(use_enable examples demo-clients-install) \ |
212 |
+ $(use_enable fbdev fbdev-compositor) \ |
213 |
+ $(use_enable dbus) \ |
214 |
+ $(use_enable drm drm-compositor) \ |
215 |
+ $(use_enable headless headless-compositor) \ |
216 |
+ $(use_enable rdp rdp-compositor) \ |
217 |
+ $(use_enable rpi rpi-compositor) \ |
218 |
+ $(use_enable wayland-compositor) \ |
219 |
+ $(use_enable X x11-compositor) \ |
220 |
+ $(use_enable launch weston-launch) \ |
221 |
+ $(use_enable colord) \ |
222 |
+ $(use_enable egl) \ |
223 |
+ $(use_enable unwind libunwind) \ |
224 |
+ $(use_enable resize-optimization) \ |
225 |
+ $(use_enable screen-sharing) \ |
226 |
+ $(use_enable suid setuid-install) \ |
227 |
+ $(use_enable xwayland) \ |
228 |
+ $(use_enable xwayland xwayland-test) \ |
229 |
+ --disable-libinput-backend \ |
230 |
+ ${myconf} |
231 |
+} |
232 |
+ |
233 |
+src_test() { |
234 |
+ export XDG_RUNTIME_DIR="${T}/runtime-dir" |
235 |
+ mkdir "${XDG_RUNTIME_DIR}" || die |
236 |
+ chmod 0700 "${XDG_RUNTIME_DIR}" || die |
237 |
+ |
238 |
+ cd "${BUILD_DIR}" || die |
239 |
+ Xemake check |
240 |
+} |
241 |
+ |
242 |
+src_install() { |
243 |
+ default |
244 |
+ |
245 |
+ readme.gentoo_src_install |
246 |
+} |