mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-10 15:45:15 -04:00
* need for mangohud multilib support Signed-off-by: Gonçalo Negrier Duarte <gonegrier.duarte@gmail.com>
71 lines
1.5 KiB
Bash
71 lines
1.5 KiB
Bash
# 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
|
|
https://wrapdb.mesonbuild.com/v2/imgui_${PV}-${MESON_WRAP_VER}/get_patch -> imgui-${PV}-${MESON_WRAP_VER}-meson-wrap.zip
|
|
"
|
|
|
|
LICENSE="MIT"
|
|
SLOT="0/${PV}"
|
|
KEYWORDS="~amd64"
|
|
IUSE="opengl vulkan glfw sdl2 marmalade 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? ( virtual/opengl[${MULTILIB_USEDEP}] )
|
|
sdl2? ( media-libs/libsdl2[${MULTILIB_USEDEP}] )
|
|
vulkan? ( media-libs/vulkan-loader[${MULTILIB_USEDEP}] )
|
|
"
|
|
DEPEND="
|
|
${RDEPEND}
|
|
vulkan? ( dev-util/vulkan-headers )
|
|
"
|
|
BDEPEND="
|
|
virtual/pkgconfig
|
|
app-arch/unzip
|
|
"
|
|
|
|
PATCHES=(
|
|
"${FILESDIR}/imgui-1.81-wrapdb-meson-fix.patch"
|
|
)
|
|
|
|
src_unpack() {
|
|
default
|
|
|
|
unpack imgui-${PV}-${MESON_WRAP_VER}-meson-wrap.zip
|
|
}
|
|
|
|
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)
|
|
-Dosx=disabled
|
|
-Dwin=disabled
|
|
$(meson_feature marmalade)
|
|
$(meson_feature allegro5)
|
|
)
|
|
meson_src_configure
|
|
}
|