blob: 0da73ec32f2ca9a24109c1064215d47e5183bc7e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
|
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-libs/weston/weston-1.4.0.ebuild,v 1.5 2014/06/08 09:15:24 ago Exp $
EAPI=5
if [[ ${PV} = 9999* ]]; then
EGIT_REPO_URI="git://anongit.freedesktop.org/git/wayland/${PN}"
GIT_ECLASS="git-r3"
EXPERIMENTAL="true"
fi
VIRTUALX_REQUIRED="test"
RESTRICT="test"
inherit autotools readme.gentoo toolchain-funcs virtualx $GIT_ECLASS
DESCRIPTION="Wayland reference compositor"
HOMEPAGE="http://wayland.freedesktop.org/"
if [[ $PV = 9999* ]]; then
SRC_URI="${SRC_PATCHES}"
KEYWORDS=""
else
SRC_URI="http://wayland.freedesktop.org/releases/${P}.tar.xz"
KEYWORDS="amd64 arm x86 ~arm-linux"
fi
LICENSE="MIT CC-BY-SA-3.0"
SLOT="0"
IUSE="colord +drm dbus +egl editor examples fbdev gles2 headless +opengl rdp +resize-optimization rpi +launch static-libs +suid systemd test unwind view wayland-compositor +X xwayland"
REQUIRED_USE="
drm? ( egl )
egl? ( || ( gles2 opengl ) )
gles2? ( !opengl )
test? ( X )
wayland-compositor? ( egl )
"
RDEPEND="
>=dev-libs/wayland-1.4.0
media-libs/lcms:2
media-libs/libpng:0=
media-libs/libwebp:0=
virtual/jpeg
>=x11-libs/cairo-1.11.3[gles2(-)?,opengl?]
>=x11-libs/libdrm-2.4.30
x11-libs/libxkbcommon
x11-libs/pixman
x11-misc/xkeyboard-config
fbdev? (
>=sys-libs/mtdev-1.1.0
>=virtual/udev-136
)
colord? ( >=x11-misc/colord-0.1.27 )
dbus? ( sys-apps/dbus )
drm? (
media-libs/mesa[gbm]
>=sys-libs/mtdev-1.1.0
>=virtual/udev-136
)
egl? (
media-libs/glu
media-libs/mesa[gles2,wayland]
)
editor? ( x11-libs/pango )
gles2? (
media-libs/mesa[wayland]
)
opengl? (
media-libs/mesa[wayland]
)
view? (
app-text/poppler:=[cairo]
dev-libs/glib:2
)
rdp? ( >=net-misc/freerdp-1.1.0_beta1_p20130710 )
rpi? (
>=sys-libs/mtdev-1.1.0
>=virtual/udev-136
)
systemd? (
sys-auth/pambase[systemd]
sys-apps/systemd[pam]
)
launch? ( sys-auth/pambase )
unwind? ( sys-libs/libunwind )
X? (
x11-libs/libxcb
x11-libs/libX11
)
xwayland? (
x11-libs/cairo[xcb]
x11-libs/libxcb
x11-libs/libXcursor
)
"
DEPEND="${RDEPEND}
gnome-base/librsvg
virtual/pkgconfig
"
src_prepare() {
if [[ ${PV} = 9999* ]]; then
eautoreconf
fi
}
src_configure() {
local myconf
if use examples || use gles2 || use test; then
myconf="--enable-simple-clients
$(use_enable egl simple-egl-clients)"
else
myconf="--disable-simple-clients
--disable-simple-egl-clients"
fi
if use gles2; then
myconf+=" --with-cairo=glesv2"
elif use opengl; then
myconf+=" --with-cairo=gl"
else
myconf+=" --with-cairo=image"
fi
econf \
$(use_enable fbdev fbdev-compositor) \
$(use_enable dbus) \
$(use_enable drm drm-compositor) \
$(use_enable headless headless-compositor) \
$(use_enable rdp rdp-compositor) \
$(use_enable rpi rpi-compositor) \
$(use_enable wayland-compositor) \
$(use_enable X x11-compositor) \
$(use_enable launch weston-launch) \
$(use_enable colord) \
$(use_enable egl) \
$(use_enable unwind libunwind) \
$(use_enable resize-optimization) \
$(use_enable suid setuid-install) \
$(use_enable xwayland) \
$(use_enable xwayland xwayland-test) \
${myconf}
}
src_test() {
export XDG_RUNTIME_DIR="${T}/runtime-dir"
mkdir "${XDG_RUNTIME_DIR}" || die
chmod 0700 "${XDG_RUNTIME_DIR}" || die
cd "${BUILD_DIR}" || die
Xemake check
}
src_install() {
default
readme.gentoo_src_install
pushd clients || die
if use opengl && use egl && use !gles2; then
dobin weston-gears
fi
if use editor; then
dobin weston-editor
fi
if use view; then
dobin weston-view
fi
if use examples; then
use egl && dobin weston-simple-egl
dobin \
weston-calibrator \
weston-clickdot \
weston-cliptest \
weston-dnd \
weston-eventdemo \
weston-flower \
weston-fullscreen \
weston-image \
weston-resizor \
weston-simple-shm \
weston-simple-touch \
weston-smoke \
weston-transformed
fi
popd
}
|