Files
guru/media-libs/imgui/imgui-1.81-r1.ebuild
Gonçalo Negrier Duarte e8c090f40a media-libs/imgui: add multilib support to imgui
* need for mangohud multilib support

Signed-off-by: Gonçalo Negrier Duarte <gonegrier.duarte@gmail.com>
2024-02-07 17:59:36 +00:00

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
}