diff options
Diffstat (limited to 'dev-libs/wlc/wlc-0.0.2.ebuild')
-rw-r--r-- | dev-libs/wlc/wlc-0.0.2.ebuild | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/dev-libs/wlc/wlc-0.0.2.ebuild b/dev-libs/wlc/wlc-0.0.2.ebuild new file mode 100644 index 000000000000..72f4ddd828b3 --- /dev/null +++ b/dev-libs/wlc/wlc-0.0.2.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +inherit cmake-utils + +DESCRIPTION="A helper library for Wayland compositors." +HOMEPAGE="https://github.com/Cloudef/wlc" + +SRC_URI="https://github.com/Cloudef/wlc/releases/download/v${PV}/${P}.tar.bz2" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="X static-libs systemd" + +RDEPEND="virtual/opengl + media-libs/mesa[wayland,gbm,gles2,egl] + x11-libs/libdrm + x11-libs/pixman + x11-libs/libxkbcommon + dev-libs/libinput + dev-libs/wayland + X? ( x11-libs/libX11 + x11-libs/libxcb + x11-libs/xcb-util-image + x11-libs/xcb-util-wm + x11-libs/libXfixes ) + systemd? ( sys-apps/systemd sys-apps/dbus )" + +DEPEND="${RDEPEND} + dev-libs/wayland-protocols" + +src_configure() { + local mycmakeargs=( + -DWLC_BUILD_EXAMPLES=OFF + -DWLC_BUILD_TESTS=OFF + + -DWLC_BUILD_STATIC=$(usex static-libs) + + $(cmake-utils_use_find_package systemd Systemd) + $(cmake-utils_use_find_package systemd Dbus) + $(cmake-utils_use_find_package X X11) + $(cmake-utils_use_find_package X XCB) + ) + + cmake-utils_src_configure +} |