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.
|
|
|
# Copyright 1999-2021 Gentoo Authors
|
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
|
|
|
EAPI=7
|
|
|
|
|
|
|
|
inherit cmake
|
|
|
|
|
|
|
|
DESCRIPTION="The Portable OpenGL FrameWork"
|
|
|
|
HOMEPAGE="https://www.glfw.org/"
|
|
|
|
SRC_URI="https://github.com/glfw/glfw/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
|
|
|
|
|
|
|
LICENSE="ZLIB"
|
|
|
|
SLOT="0"
|
|
|
|
KEYWORDS="amd64 ~arm ~arm64 ~hppa ~ppc64 x86"
|
|
|
|
IUSE="wayland"
|
|
|
|
|
|
|
|
RDEPEND="
|
|
|
|
x11-libs/libxkbcommon
|
|
|
|
!wayland? (
|
|
|
|
virtual/opengl
|
|
|
|
x11-libs/libX11
|
|
|
|
x11-libs/libXcursor
|
|
|
|
x11-libs/libXinerama
|
|
|
|
x11-libs/libXrandr
|
|
|
|
x11-libs/libXxf86vm
|
|
|
|
)
|
|
|
|
wayland? (
|
|
|
|
dev-libs/wayland
|
|
|
|
media-libs/mesa[egl,wayland]
|
|
|
|
)
|
|
|
|
"
|
|
|
|
DEPEND="
|
|
|
|
${RDEPEND}
|
|
|
|
!wayland? ( x11-libs/libXi )
|
|
|
|
wayland? ( dev-libs/wayland-protocols )
|
|
|
|
"
|
|
|
|
BDEPEND="
|
|
|
|
wayland? ( kde-frameworks/extra-cmake-modules )
|
|
|
|
"
|
|
|
|
|
|
|
|
src_configure() {
|
|
|
|
local mycmakeargs=(
|
|
|
|
-DGLFW_BUILD_EXAMPLES=no
|
|
|
|
-DGLFW_USE_WAYLAND="$(usex wayland)"
|
|
|
|
-DBUILD_SHARED_LIBS=1
|
|
|
|
)
|
|
|
|
cmake_src_configure
|
|
|
|
}
|