1 # Copyright 2022-2024 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
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
14 KEYWORDS
="amd64 arm arm64 x86"
18 "${FILESDIR}"/glbinding-fix-install.
patch
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
34 cmake-multilib_src_install
35 # remove conflict files with libglvnd
36 rm "${D}"/usr
/include
/KHR
/khrplatform.h