1 # Copyright 1999-2017 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 if [[ ${PV} = 9999* ]]; then
7 EGIT_REPO_URI="https://anongit.freedesktop.org/git/wayland/weston.git"
12 inherit autotools readme.gentoo-r1 toolchain-funcs $GIT_ECLASS
14 DESCRIPTION="Wayland reference compositor"
15 HOMEPAGE="https://wayland.freedesktop.org/"
17 if [[ $PV = 9999* ]]; then
18 SRC_URI="${SRC_PATCHES}"
21 SRC_URI="https://wayland.freedesktop.org/releases/${P}.tar.xz"
22 KEYWORDS="~amd64 ~arm ~x86 ~arm-linux"
25 LICENSE="MIT CC-BY-SA-3.0"
28 IUSE="colord dbus +drm editor examples fbdev +gles2 headless ivi jpeg +launch lcms rdp +resize-optimization screen-sharing static-libs +suid systemd test unwind wayland-compositor webp +X xwayland"
32 screen-sharing? ( rdp )
34 test? ( headless xwayland )
35 wayland-compositor? ( gles2 )
39 >=dev-libs/libinput-0.8.0
40 >=dev-libs/wayland-1.12.0
41 >=dev-libs/wayland-protocols-1.8
42 lcms? ( media-libs/lcms:2 )
44 webp? ( media-libs/libwebp:0= )
45 jpeg? ( virtual/jpeg:0= )
46 >=x11-libs/cairo-1.11.3
47 >=x11-libs/libdrm-2.4.30
48 >=x11-libs/libxkbcommon-0.5.0
49 >=x11-libs/pixman-0.25.2
50 x11-misc/xkeyboard-config
52 >=sys-libs/mtdev-1.1.0
55 colord? ( >=x11-misc/colord-0.1.27 )
56 dbus? ( >=sys-apps/dbus-1.6 )
59 >=sys-libs/mtdev-1.1.0
62 editor? ( x11-libs/pango )
64 media-libs/mesa[gles2,wayland]
66 rdp? ( >=net-misc/freerdp-1.1.0_beta1_p20130710 )
68 sys-auth/pambase[systemd]
69 >=sys-apps/systemd-209[pam]
71 launch? ( sys-auth/pambase )
72 unwind? ( sys-libs/libunwind )
78 x11-base/xorg-server[wayland]
90 if [[ ${PV} = 9999* ]]; then
99 if use examples || use test; then
100 myconf="--enable-simple-clients"
102 myconf="--disable-simple-clients"
106 $(use_enable examples demo-clients-install) \
107 $(use_enable fbdev fbdev-compositor) \
109 $(use_enable drm drm-compositor) \
110 $(use_enable headless headless-compositor) \
111 $(use_enable ivi ivi-shell) \
113 $(use_enable rdp rdp-compositor) \
114 $(use_enable wayland-compositor) \
115 $(use_enable X x11-compositor) \
116 $(use_enable launch weston-launch) \
117 $(use_enable colord) \
118 $(use_enable gles2 egl) \
119 $(use_enable unwind libunwind) \
120 $(use_enable resize-optimization) \
121 $(use_enable screen-sharing) \
122 $(use_enable suid setuid-install) \
123 $(use_enable systemd systemd-login) \
124 $(use_enable systemd systemd-notify) \
125 $(use_enable xwayland) \
126 $(use_enable xwayland xwayland-test) \
130 --disable-junit-xml \
131 --disable-simple-dmabuf-drm-client \
132 --disable-simple-dmabuf-v4l-client \
133 --disable-simple-egl-clients \
134 --disable-vaapi-recorder \
139 export XDG_RUNTIME_DIR="${T}/runtime-dir"
140 mkdir "${XDG_RUNTIME_DIR}" || die
141 chmod 0700 "${XDG_RUNTIME_DIR}" || die
143 cd "${BUILD_DIR}" || die
150 readme.gentoo_create_doc