summaryrefslogtreecommitdiff
blob: 494b3c23d0385e655679f0000558c556d79a8a6c (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
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=3

EGIT_REPO_URI="git://anongit.freedesktop.org/wayland/weston"
AUTOTOOLS_AUTORECONF=1

inherit autotools autotools-utils git-2

DESCRIPTION="demos for wayland the (compositing) display server library"
HOMEPAGE="http://wayland.freedesktop.org"
SRC_URI=""

LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="+poppler +svg +clients +simple-clients
	+compositor-drm +compositor-x11 +compositor-wayland compositor-openwfd"

DEPEND="dev-libs/wayland
	>=media-libs/mesa-9999[gles2,egl]
	x11-libs/pixman
	media-libs/libpng
	compositor-drm? (
		>=sys-fs/udev-136
		>=x11-libs/libdrm-2.4.25
		media-libs/mesa[gbm]
		sys-libs/mtdev
	)
	compositor-x11? (
		x11-libs/libxcb
		x11-libs/libX11
	)
	compositor-openwfd? (
		media-libs/owfdrm
		media-libs/mesa[gbm]
	)
	compositor-wayland? (
		media-libs/mesa[wayland]
	)
	clients? (
		media-libs/mesa[wayland]
		dev-libs/glib:2
		media-libs/libjpeg-turbo
		>=x11-libs/cairo-1.11.3[opengl]
		|| ( x11-libs/gdk-pixbuf:2 <x11-libs/gtk+-2.20:2 )
		=x11-libs/libxkbcommon-9999
		poppler? ( app-text/poppler[cairo] )
	)
	simple-clients? ( media-libs/mesa[wayland] )
	svg? ( gnome-base/librsvg )"

RDEPEND="${DEPEND}"

# FIXME: add with-poppler to wayland configure
myeconfargs=(
	# prefix with "wayland-" if not already
	"--program-transform-name='/^weston/!s/^/weston-/'"
	$(use_enable clients)
	$(use_enable simple-clients)
	$(use_enable compositor-drm drm-compositor)
	$(use_enable compositor-x11 x11-compositor)
	$(use_enable compositor-wayland wayland-compositor)
	$(use_enable compositor-openwfd openwfd-compositor)
	--enable-setuid-install
)

src_prepare()
{
	sed -i -e "s/noinst_PROGRAMS =/bin_PROGRAMS +=/" \
		{src,clients}"/Makefile.am" || \
		die "sed {src,clients}/Makefile.am failed!"
	autotools-utils_src_prepare
}