You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
67 lines
1.4 KiB
67 lines
1.4 KiB
8 years ago
|
# Copyright 1999-2017 Gentoo Foundation
|
||
9 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
|
EAPI=6
|
||
|
|
||
|
inherit cmake-utils
|
||
|
|
||
8 years ago
|
DESCRIPTION="A helper library for Wayland compositors"
|
||
9 years ago
|
HOMEPAGE="https://github.com/Cloudef/wlc"
|
||
|
|
||
|
SRC_URI="https://github.com/Cloudef/wlc/releases/download/v${PV}/${P}.tar.bz2"
|
||
|
|
||
8 years ago
|
LICENSE="MIT ZLIB"
|
||
9 years ago
|
SLOT="0"
|
||
|
KEYWORDS="~amd64 ~x86"
|
||
7 years ago
|
IUSE="X static-libs systemd +xwayland"
|
||
9 years ago
|
|
||
|
RDEPEND="virtual/opengl
|
||
8 years ago
|
virtual/libudev
|
||
8 years ago
|
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
|
||
7 years ago
|
X? (
|
||
|
x11-libs/libX11
|
||
|
x11-libs/libxcb[xkb]
|
||
|
x11-libs/xcb-util-image
|
||
|
x11-libs/xcb-util-wm
|
||
|
x11-libs/libXfixes
|
||
|
)
|
||
|
xwayland? (
|
||
|
x11-libs/libxcb[xkb]
|
||
|
x11-libs/xcb-util-image
|
||
|
x11-libs/xcb-util-wm
|
||
|
x11-base/xorg-server[wayland]
|
||
|
)
|
||
8 years ago
|
systemd? ( sys-apps/systemd sys-apps/dbus )"
|
||
9 years ago
|
|
||
|
DEPEND="${RDEPEND}
|
||
8 years ago
|
virtual/pkgconfig
|
||
8 years ago
|
>=dev-libs/wayland-protocols-1.7"
|
||
9 years ago
|
|
||
|
src_configure() {
|
||
|
local mycmakeargs=(
|
||
|
-DWLC_BUILD_EXAMPLES=OFF
|
||
|
-DWLC_BUILD_TESTS=OFF
|
||
7 years ago
|
|
||
9 years ago
|
-DWLC_BUILD_STATIC=$(usex static-libs)
|
||
7 years ago
|
|
||
|
-DWLC_X11_BACKEND_SUPPORT=$(usex X)
|
||
|
-DWLC_XWAYLAND_SUPPORT=$(usex xwayland)
|
||
|
|
||
9 years ago
|
$(cmake-utils_use_find_package systemd Systemd)
|
||
|
$(cmake-utils_use_find_package systemd Dbus)
|
||
|
)
|
||
|
cmake-utils_src_configure
|
||
|
}
|
||
8 years ago
|
|
||
|
pkg_postinst() {
|
||
8 years ago
|
if use X && ! use xwayland; then
|
||
8 years ago
|
elog "xwayland use flag is required for X11 applications support"
|
||
8 years ago
|
fi
|
||
|
}
|