summaryrefslogtreecommitdiff
path: root/dev-libs/wlc/wlc-9999.ebuild
blob: 37ec240bbe77b764a265550cd46940c22a0f5204 (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
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

EAPI=6

inherit git-r3 cmake-utils

DESCRIPTION="A helper library for Wayland compositors"
HOMEPAGE="https://github.com/Cloudef/wlc"

EGIT_REPO_URI="https://github.com/Cloudef/wlc.git"

LICENSE="MIT ZLIB"
SLOT="0"
KEYWORDS=""
IUSE="X static-libs systemd xwayland"

RDEPEND="virtual/opengl
		media-libs/mesa[wayland,gbm,gles2,egl]
		x11-libs/libdrm
		x11-libs/pixman
		x11-libs/libxkbcommon
		x11-misc/xkeyboard-config
		dev-libs/libinput
		dev-libs/wayland
		X? ( x11-libs/libX11
			 x11-libs/libxcb[xkb]
			 x11-libs/xcb-util-image
			 x11-libs/xcb-util-wm
			 x11-libs/libXfixes )
		xwayland? ( x11-base/xorg-server[wayland] )
		systemd? ( sys-apps/systemd sys-apps/dbus )"

DEPEND="${RDEPEND}
	virtual/pkgconfig
	dev-libs/wayland-protocols"

src_configure() {
	local mycmakeargs=(
		-DWLC_BUILD_EXAMPLES=OFF
		-DWLC_BUILD_TESTS=OFF

		-DWLC_BUILD_STATIC=$(usex static-libs)

		-DWLC_X11_SUPPORT=$(usex X)

		$(cmake-utils_use_find_package systemd Systemd)
		$(cmake-utils_use_find_package systemd Dbus)
	)

	cmake-utils_src_configure
}

pkg_postinst() {
	if use X && !use xwayland
	then
		elog "xwayland use flag is required for X11 applications support"
	fi
}