app-shells/zfe: add nvchecker
[gentoo-zh.git] / x11-libs / glbinding / glbinding-3.3.0.ebuild
blob5b38f696c237170fecac47247096d634d0b370ea
1 # Copyright 2022-2024 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
4 EAPI=8
6 DESCRIPTION="A C++ binding for the OpenGL API"
7 HOMEPAGE="https://glbinding.org/"
8 SRC_URI="https://github.com/cginternals/glbinding/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
10 inherit cmake-multilib
12 LICENSE="LGPL-2"
13 SLOT="0"
14 KEYWORDS="amd64 arm arm64 x86"
15 IUSE="lto"
17 PATCHES=(
18 "${FILESDIR}"/glbinding-fix-install.patch
21 src_configure(){
22 mycmakeargs=(
23 -DOPTION_BUILD_TOOLS=OFF
24 -DOPTION_BUILD_EXAMPLES=OFF
25 -DINSTALL_LIB=$(get_libdir)
26 -DINSTALL_SHARED=$(get_libdir)
27 -DOPTION_BUILD_WITH_LTO=$(usex lto ON OFF)
30 cmake-multilib_src_configure
33 src_install(){
34 cmake-multilib_src_install
35 # remove conflict files with libglvnd
36 rm "${D}"/usr/include/KHR/khrplatform.h