blob: 9999b537feca325d4a178f6220051d941917e2b4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
# Copyright 2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit cmake
DESCRIPTION="Cross-platform C++ binding for the OpenGL API"
HOMEPAGE="https://github.com/cginternals/glbinding"
COMMIT="55634e35bd8d8bf58cb36f6ed81af0a0f0939973"
SRC_URI="https://github.com/cginternals/glbinding/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/${PN}-${COMMIT}"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
RDEPEND="
media-libs/glfw
media-libs/libglvnd
"
DEPEND="${RDEPEND}"
BDEPEND="
dev-vcs/git
"
PATCHES=(
"${FILESDIR}/${P}"-CMakeLists.patch
"${FILESDIR}/${P}"-source_CMakeLists.patch
)
src_configure() {
local mycmakeargs=(
-DBUILD_SHARED_LIBS=ON
-DOPTION_SELF_CONTAINED=OFF
-DOPTION_BUILD_TESTS=OFF
-DOPTION_BUILD_DOCS=OFF
-DOPTION_BUILD_EXAMPLES=OFF
-DOPTION_BUILD_WITH_BOOST_THREAD=OFF
-DOPTION_BUILD_CHECK=OFF
-DOPTION_BUILD_OWN_KHR_HEADERS=OFF
-DOPTION_BUILD_WITH_LTO=OFF
)
cmake_src_configure
}
|