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.
48 lines
874 B
48 lines
874 B
# Copyright 1999-2017 Gentoo Foundation
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
# $Id$
|
|
|
|
EAPI=6
|
|
inherit cmake-utils
|
|
|
|
DESCRIPTION="The Portable OpenGL FrameWork"
|
|
HOMEPAGE="http://www.glfw.org/"
|
|
SRC_URI="mirror://sourceforge/glfw/${P}.tar.bz2"
|
|
|
|
LICENSE="ZLIB"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64 ~arm64 ~hppa ~x86"
|
|
IUSE="examples 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}
|
|
kde-frameworks/extra-cmake-modules
|
|
wayland? (
|
|
dev-libs/wayland-protocols
|
|
)
|
|
"
|
|
|
|
src_configure() {
|
|
local mycmakeargs=(
|
|
-DGLFW_BUILD_EXAMPLES="$(usex examples)"
|
|
-DGLFW_USE_WAYLAND="$(usex wayland)"
|
|
-DBUILD_SHARED_LIBS=1
|
|
)
|
|
cmake-utils_src_configure
|
|
}
|