1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 if [[ ${PV} = 9999* ]]; then
8 EGIT_REPO_URI="git://anongit.freedesktop.org/git/wayland/${PN}"
12 VIRTUALX_REQUIRED="test"
15 inherit autotools readme.gentoo toolchain-funcs virtualx $GIT_ECLASS
17 DESCRIPTION="Wayland reference compositor"
18 HOMEPAGE="https://wayland.freedesktop.org/"
20 if [[ $PV = 9999* ]]; then
21 SRC_URI="${SRC_PATCHES}"
24 SRC_URI="https://wayland.freedesktop.org/releases/${P}.tar.xz"
25 KEYWORDS="amd64 arm x86 ~arm-linux"
28 LICENSE="MIT CC-BY-SA-3.0"
30 IUSE="colord dbus +drm editor examples fbdev +gles2 headless ivi rdp +resize-optimization rpi +launch screen-sharing static-libs +suid systemd test unwind wayland-compositor +X xwayland"
34 screen-sharing? ( rdp )
36 wayland-compositor? ( gles2 )
40 >=dev-libs/libinput-0.8.0
41 >=dev-libs/wayland-1.9.0
46 >=x11-libs/cairo-1.11.3
47 >=x11-libs/libdrm-2.4.30
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 )
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-libs/mtdev-1.1.0
72 sys-auth/pambase[systemd]
75 launch? ( sys-auth/pambase )
76 unwind? ( sys-libs/libunwind )
82 x11-base/xorg-server[wayland]
93 if [[ ${PV} = 9999* ]]; then
100 if use examples || use test; then
101 myconf="--enable-simple-clients"
103 myconf="--disable-simple-clients"
106 myconf+=" --with-cairo=image --disable-simple-egl-clients"
109 $(use_enable examples demo-clients-install) \
110 $(use_enable fbdev fbdev-compositor) \
112 $(use_enable drm drm-compositor) \
113 $(use_enable headless headless-compositor) \
114 $(use_enable ivi ivi-shell) \
115 $(use_enable rdp rdp-compositor) \
116 $(use_enable rpi rpi-compositor) \
117 $(use_enable wayland-compositor) \
118 $(use_enable X x11-compositor) \
119 $(use_enable launch weston-launch) \
120 $(use_enable colord) \
121 $(use_enable gles2 egl) \
122 $(use_enable unwind libunwind) \
123 $(use_enable resize-optimization) \
124 $(use_enable screen-sharing) \
125 $(use_enable suid setuid-install) \
126 $(use_enable xwayland) \
127 $(use_enable xwayland xwayland-test) \
132 export XDG_RUNTIME_DIR="${T}/runtime-dir"
133 mkdir "${XDG_RUNTIME_DIR}" || die
134 chmod 0700 "${XDG_RUNTIME_DIR}" || die
136 cd "${BUILD_DIR}" || die
143 readme.gentoo_src_install