mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-19 03:53:22 -04:00
media-libs/imgui: use mesa useflags instead of virtual/opengl
Signed-off-by: Gonçalo Negrier Duarte <gonegrier.duarte@gmail.com>
This commit is contained in:
@@ -24,7 +24,10 @@ RDEPEND="
|
|||||||
media-libs/glew[${MULTILIB_USEDEP}]
|
media-libs/glew[${MULTILIB_USEDEP}]
|
||||||
allegro5? ( media-libs/allegro:5[${MULTILIB_USEDEP}] )
|
allegro5? ( media-libs/allegro:5[${MULTILIB_USEDEP}] )
|
||||||
glfw? ( media-libs/glfw:0[${MULTILIB_USEDEP}] )
|
glfw? ( media-libs/glfw:0[${MULTILIB_USEDEP}] )
|
||||||
opengl? ( virtual/opengl[${MULTILIB_USEDEP}] )
|
opengl? ( || (
|
||||||
|
>=media-libs/mesa-24.1.0_rc1[opengl,X?,${MULTILIB_USEDEP}]
|
||||||
|
<media-libs/mesa-24.1.0_rc1[gles2?,egl(+)?,X?,${MULTILIB_USEDEP}]
|
||||||
|
) )
|
||||||
sdl2? ( media-libs/libsdl2[${MULTILIB_USEDEP}] )
|
sdl2? ( media-libs/libsdl2[${MULTILIB_USEDEP}] )
|
||||||
sdl2_renderer? ( media-libs/libsdl2[${MULTILIB_USEDEP}] )
|
sdl2_renderer? ( media-libs/libsdl2[${MULTILIB_USEDEP}] )
|
||||||
vulkan? ( media-libs/vulkan-loader[${MULTILIB_USEDEP}] )
|
vulkan? ( media-libs/vulkan-loader[${MULTILIB_USEDEP}] )
|
||||||
73
media-libs/imgui/imgui-1.90.7-r2.ebuild
Normal file
73
media-libs/imgui/imgui-1.90.7-r2.ebuild
Normal file
@@ -0,0 +1,73 @@
|
|||||||
|
# Copyright 1999-2022 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
inherit meson-multilib
|
||||||
|
|
||||||
|
MESON_WRAP_VER="1"
|
||||||
|
|
||||||
|
DESCRIPTION="Bloat-free graphical user interface library for C++"
|
||||||
|
HOMEPAGE="
|
||||||
|
https://github.com/ocornut/imgui
|
||||||
|
"
|
||||||
|
|
||||||
|
SRC_URI="https://github.com/ocornut/imgui/archive/v${PV}.tar.gz -> imgui-${PV}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="MIT"
|
||||||
|
SLOT="0/${PV}"
|
||||||
|
KEYWORDS="~amd64"
|
||||||
|
IUSE="opengl vulkan glfw sdl2 sdl3 sdl2_renderer sdl3_renderer webgpu allegro5"
|
||||||
|
|
||||||
|
RDEPEND="
|
||||||
|
dev-libs/stb:=
|
||||||
|
media-libs/glew[${MULTILIB_USEDEP}]
|
||||||
|
allegro5? ( media-libs/allegro:5[${MULTILIB_USEDEP}] )
|
||||||
|
glfw? ( media-libs/glfw:0[${MULTILIB_USEDEP}] )
|
||||||
|
opengl? ( || (
|
||||||
|
>=media-libs/mesa-24.1.0_rc1[opengl,X?,${MULTILIB_USEDEP}]
|
||||||
|
<media-libs/mesa-24.1.0_rc1[gles2?,egl(+)?,X?,${MULTILIB_USEDEP}]
|
||||||
|
) )
|
||||||
|
sdl2? ( media-libs/libsdl2[${MULTILIB_USEDEP}] )
|
||||||
|
sdl2_renderer? ( media-libs/libsdl2[${MULTILIB_USEDEP}] )
|
||||||
|
vulkan? ( media-libs/vulkan-loader[${MULTILIB_USEDEP}] )
|
||||||
|
webgpu? ( dev-util/webgpu-headers )
|
||||||
|
"
|
||||||
|
DEPEND="
|
||||||
|
${RDEPEND}
|
||||||
|
vulkan? ( dev-util/vulkan-headers )
|
||||||
|
"
|
||||||
|
BDEPEND="
|
||||||
|
virtual/pkgconfig
|
||||||
|
"
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
default
|
||||||
|
|
||||||
|
# Use custom meson.build and meson_options.txt to install instead of relay on packages
|
||||||
|
cp "${FILESDIR}/${PN}-meson.build" "${S}/meson.build" || die
|
||||||
|
cp "${FILESDIR}/${PN}-meson_options.txt" "${S}/meson_options.txt" || die
|
||||||
|
sed -i "s/ version: 'PV',/ version: '${PV}',/g" "${S}/meson.build" || die
|
||||||
|
}
|
||||||
|
|
||||||
|
multilib_src_configure() {
|
||||||
|
local emesonargs=(
|
||||||
|
-Ddx9=disabled
|
||||||
|
-Ddx10=disabled
|
||||||
|
-Ddx11=disabled
|
||||||
|
-Ddx12=disabled
|
||||||
|
-Dmetal=disabled
|
||||||
|
$(meson_feature opengl)
|
||||||
|
$(meson_feature vulkan)
|
||||||
|
$(meson_feature glfw)
|
||||||
|
$(meson_feature sdl2)
|
||||||
|
$(meson_feature sdl2_renderer)
|
||||||
|
-Dsdl3=disabled
|
||||||
|
-Dsdl3_renderer=disabled
|
||||||
|
$(meson_feature webgpu)
|
||||||
|
-Dosx=disabled
|
||||||
|
-Dwin=disabled
|
||||||
|
$(meson_feature allegro5)
|
||||||
|
)
|
||||||
|
meson_src_configure
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user