mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-10-12 17:51:11 -04:00
media-libs/imgui: 1.81: fix ebuild
wrapdb's meson.build file needs some tweaks so the library gets properly installed. Signed-off-by: Adel KARA SLIMANE <adel.ks@zegrapher.com>
This commit is contained in:
2 files changed
+49
No files matched your search
@@ -0,0 +1,45 @@
|
||||
# Meson wrapdb's meson.build file doesn't handle installing the library, we patch that here
|
||||
|
||||
diff --git a/meson.build b/imgui-1.81-meson.build
|
||||
index 3343dd4ad..804f84227 100644
|
||||
--- a/meson.build
|
||||
+++ b/imgui-1.81-meson.build
|
||||
@@ -80,6 +80,38 @@ imgui = library('imgui',
|
||||
sources,
|
||||
dependencies: dependencies,
|
||||
include_directories: include_dirs,
|
||||
+ version: meson.project_version(),
|
||||
+ install: true
|
||||
)
|
||||
|
||||
+pkg_mod = import('pkgconfig')
|
||||
+pkg_mod.generate(imgui,
|
||||
+ description : 'Dear ImGui: Bloat-free Graphical User interface for C++ with minimal dependencies'
|
||||
+)
|
||||
+
|
||||
+install_headers(
|
||||
+ 'imconfig.h',
|
||||
+ 'imgui.h',
|
||||
+ 'imgui_internal.h',
|
||||
+ 'imstb_rectpack.h',
|
||||
+ 'imstb_textedit.h',
|
||||
+ 'imstb_truetype.h',
|
||||
+ 'backends/imgui_impl_dx9.h',
|
||||
+ 'backends/imgui_impl_osx.h',
|
||||
+ 'backends/imgui_impl_sdl.h',
|
||||
+ 'backends/imgui_impl_dx10.h',
|
||||
+ 'backends/imgui_impl_dx11.h',
|
||||
+ 'backends/imgui_impl_dx12.h',
|
||||
+ 'backends/imgui_impl_glfw.h',
|
||||
+ 'backends/imgui_impl_glut.h',
|
||||
+ 'backends/imgui_impl_wgpu.h',
|
||||
+ 'backends/imgui_impl_metal.h',
|
||||
+ 'backends/imgui_impl_win32.h',
|
||||
+ 'backends/imgui_impl_vulkan.h',
|
||||
+ 'backends/imgui_impl_opengl2.h',
|
||||
+ 'backends/imgui_impl_opengl3.h',
|
||||
+ 'backends/imgui_impl_allegro5.h',
|
||||
+ 'backends/imgui_impl_marmalade.h',
|
||||
+ subdir: 'imgui')
|
||||
+
|
||||
imgui_dep = declare_dependency(include_directories: include_dirs, link_with: imgui)
|
||||
@@ -40,6 +40,10 @@ BDEPEND="
|
||||
app-arch/unzip
|
||||
"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/imgui-1.81-wrapdb-meson-fix.patch"
|
||||
)
|
||||
|
||||
src_unpack() {
|
||||
default
|
||||
|
||||
|
||||
Reference in new issue
Block a user