summaryrefslogtreecommitdiff
blob: 05749e25cf8b9282f3d0e52ab9edd5db2c6e23c1 (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
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-libs/weston/weston-1.2.0.ebuild,v 1.2 2013/07/14 20:56:05 chithanh Exp $

EAPI=5

if [[ ${PV} = 9999* ]]; then
	EGIT_REPO_URI="git://anongit.freedesktop.org/git/wayland/${PN}"
	GIT_ECLASS="git-2"
	EXPERIMENTAL="true"
fi

inherit autotools toolchain-funcs $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="~arm ~amd64 ~x86 ~arm-linux"
fi

LICENSE="MIT CC-BY-SA-3.0"
SLOT="0"
IUSE="+clients colord debug +drm +egl headless fbdev gles2 rdp +resize-optimization rpi +simple-clients static-libs +tablet +wayland-compositor +xwayland +x11"

REQUIRED_USE="
	rpi?   ( !drm !egl gles2 )
"

RDEPEND="
	>=dev-libs/wayland-1.1.90
	gnome-base/librsvg
	media-libs/mesa[gles2,wayland]
	x11-libs/pixman
	clients? ( >=x11-libs/cairo-1.10.0
		x11-libs/gdk-pixbuf
		dev-libs/glib:2
		x11-libs/libxkbcommon
		media-libs/libpng
		app-text/poppler )
	colord? ( x11-misc/colord )
	debug? ( sys-libs/libunwind )
	drm? ( >=virtual/udev-136
		>=x11-libs/libdrm-2.4.30
		media-libs/mesa[gbm] )
	egl? ( media-libs/mesa[egl] )
	gles2? ( x11-libs/cairo[gles2] )
	rdp? ( >=net-misc/freerdp-1.1.0_beta1_p20130710 )
	x11? ( x11-libs/libxcb
		x11-libs/libX11 )"
DEPEND="${RDEPEND}"

src_prepare() {
	if [[ ${PV} = 9999* ]]; then
		eautoreconf
	fi
}

src_configure() {
	econf --disable-setuid-install \
		  $(use_enable clients) \
		  $(use_enable colord) \
		  $(use_enable debug libunwind) \
		  $(use_enable drm drm-compositor) \
		  $(use_enable egl) \
		  $(use_enable fbdev fbdev-compositor) \
		  $(use_enable headless headless-compositor) \
		  $(use_enable rdp rdp-compositor) \
		  $(use_enable resize-optimization) \
		  $(use_enable rpi rpi-compositor) \
		  $(use_enable simple-clients) \
		  $(use_enable static-libs static) \
		  $(use_enable tablet tablet-shell) \
		  $(use_enable wayland-compositor) \
		  $(use_enable xwayland xwayland-compositor) \
		  $(use_enable x11 x11-compositor) \
		  $(use_with gles2 cairo-glesv2)
}