blob: 424283159f6f63b979416cb0ff94be2f87490247 (
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
|
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake
DESCRIPTION="Live shader coding tool and Shader Showdown workhorse"
HOMEPAGE="https://github.com/Gargaj/Bonzomatic"
if [[ "${PV}" == "9999" ]]
then
inherit git-r3
EGIT_REPO_URI="https://github.com/Gargaj/Bonzomatic"
else
MY_PV="$(ver_rs 1- -)"
SRC_URI="https://github.com/Gargaj/Bonzomatic/archive/refs/tags/${MY_PV}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/Bonzomatic-${MY_PV}"
KEYWORDS="~amd64"
fi
LICENSE="Unlicense"
SLOT="0"
IUSE="system-glfw system-glew system-stb wayland"
# TODO: system-jsonxx/json++, system-scintilla
# !system-glfw copied from media-libs/glfw-3.3.3::gentoo
# !system-glew copied from media-libs/glew-2.2.0::gentoo
# kissfft: Bonzomatic targets non-existent `kissfft` pkg-config name
# system-kissfft? ( sci-libs/kissfft )
RDEPEND="
system-glfw? ( media-libs/glfw )
!system-glfw? (
wayland? (
dev-libs/wayland
media-libs/mesa[egl(+),wayland]
dev-libs/wayland-protocols
)
!wayland? (
x11-libs/libX11
x11-libs/libXcursor
x11-libs/libXinerama
x11-libs/libXrandr
x11-libs/libXxf86vm
x11-libs/libXi
)
)
system-glew? ( media-libs/glew:= )
!system-glew? (
>=x11-libs/libX11-1.6.2
>=x11-libs/libXext-1.3.2
>=x11-libs/libXi-1.7.2
>=x11-libs/libXmu-1.1.1-r1
)
system-stb? ( dev-libs/stb )
virtual/opengl
virtual/glu
media-libs/alsa-lib
media-libs/fontconfig
"
# miniaudio: Uses miniaudio-0.10.4 while miniaudio-0.11.x broke API
DEPEND="${RDEPEND}"
BDEPEND="!system-glfw? ( wayland? ( dev-libs/wayland-protocols ) )"
src_configure() {
local mycmakeargs=(
-DBONZOMATIC_USE_SYSTEM_GLFW=$(usex system-glfw)
-DBONZOMATIC_USE_SYSTEM_GLEW=$(usex system-glew)
-DBONZOMATIC_USE_SYSTEM_MINIAUDIO=OFF
-DBONZOMATIC_USE_SYSTEM_STB=$(usex system-stb)
-DBONZOMATIC_USE_SYSTEM_KISSFFT=OFF
)
if use !system-glfw; then
mycmakeargs+=( -DGLFW_USE_WAYLAND="$(usex wayland)" )
fi
cmake_src_configure
}
|