* [PR PATCH] New package: Bonzomatic-2023.06.15
@ 2025-01-08 3:20 Rutpiv
0 siblings, 0 replies; 2+ messages in thread
From: Rutpiv @ 2025-01-08 3:20 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1690 bytes --]
There is a new pull request by Rutpiv against master on the void-packages repository
https://github.com/Rutpiv/void-packages Bonzomatic
https://github.com/void-linux/void-packages/pull/53889
New package: Bonzomatic-2023.06.15
#### Testing the changes
- I tested the changes in this PR: **YES**
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**
#### Local build testing
- I built this PR locally for my native architecture (x86_64)
- I built this PR locally for these architectures using specific masterdirs:
- x86_64-musl
- i686
- I built this PR locally for these architectures (crossbuilds):
- aarch64
- aarch64-musl
- armv7l
- armv7l-musl
- armv6l
- armv6l-musl
---
This patch, placed alongside the template, fixes the issues that arise when enabling `-DBONZOMATIC_USE_SYSTEM_GLEW=ON` and `-DBONZOMATIC_USE_SYSTEM_GLFW=ON` to use the system libraries instead of the ones provided in the externals folder.
It addresses the GLEW initialization and screen size retrieval problems specifically for Wayland environments. The framebuffer size retrieval logic was incorrect, and this patch ensures that the primary monitor's resolution is used in fullscreen mode, resolving the apparent issues with the system libraries.
While this patch resolves the issues observed on Wayland, it has only been tested in this environment. The behavior on X11 is uncertain, but I believe it should work correctly based on the changes made.
A patch file from https://github.com/void-linux/void-packages/pull/53889.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-Bonzomatic-53889.patch --]
[-- Type: text/x-diff, Size: 3068 bytes --]
From aedb92085228446172595cb74fb58fefbdcf77db Mon Sep 17 00:00:00 2001
From: Roger Freitas Pereira <roger_freitas@live.com>
Date: Tue, 7 Jan 2025 22:59:39 -0300
Subject: [PATCH] New package: Bonzomatic-2023.06.15
---
srcpkgs/Bonzomatic/patches/fix-wayland.patch | 34 ++++++++++++++++++++
srcpkgs/Bonzomatic/template | 20 ++++++++++++
2 files changed, 54 insertions(+)
create mode 100644 srcpkgs/Bonzomatic/patches/fix-wayland.patch
create mode 100644 srcpkgs/Bonzomatic/template
diff --git a/srcpkgs/Bonzomatic/patches/fix-wayland.patch b/srcpkgs/Bonzomatic/patches/fix-wayland.patch
new file mode 100644
index 00000000000000..b8925e84080738
--- /dev/null
+++ b/srcpkgs/Bonzomatic/patches/fix-wayland.patch
@@ -0,0 +1,34 @@
+Fixes GLEW initialization and screen size retrieval in fullscreen mode for Wayland
+
+diff --git a/src/platform_glfw/Renderer.cpp b/src/platform_glfw/Renderer.cpp
+index 15f8be2..7d8df55 100644
+--- a/src/platform_glfw/Renderer.cpp
++++ b/src/platform_glfw/Renderer.cpp
+@@ -286,7 +286,7 @@ bool Open( Renderer::Settings * settings )
+
+ glewExperimental = GL_TRUE;
+ GLenum err = glewInit();
+- if ( GLEW_OK != err )
++ if (GLEW_OK != err && !(err == GLEW_ERROR_NO_GLX_DISPLAY && getenv("WAYLAND_DISPLAY")))
+ {
+ printf( "[GLFW] glewInit failed: %s\n", glewGetErrorString( err ) );
+ glfwTerminate();
+@@ -306,9 +306,17 @@ bool Open( Renderer::Settings * settings )
+
+ // Now, since OpenGL is behaving a lot in fullscreen modes, lets collect the real obtained size!
+ printf( "[GLFW] Requested framebuffer size: %d x %d\n", nWidth, nHeight );
++
++ const GLFWvidmode* mode = glfwGetVideoMode(monitor);
+ int fbWidth = 1;
+ int fbHeight = 1;
+- glfwGetFramebufferSize( mWindow, &fbWidth, &fbHeight );
++
++ if (mode != NULL) {
++ // Use the screen resolution of the primary monitor as framebuffer size
++ fbWidth = mode->width;
++ fbHeight = mode->height;
++ }
++
+ nWidth = settings->nWidth = fbWidth;
+ nHeight = settings->nHeight = fbHeight;
+ printf( "[GLFW] Obtained framebuffer size: %d x %d\n", fbWidth, fbHeight );
diff --git a/srcpkgs/Bonzomatic/template b/srcpkgs/Bonzomatic/template
new file mode 100644
index 00000000000000..e41cdd78d211a3
--- /dev/null
+++ b/srcpkgs/Bonzomatic/template
@@ -0,0 +1,20 @@
+# Template file for 'Bonzomatic'
+pkgname=Bonzomatic
+version=2023.06.15
+revision=1
+build_style=cmake
+configure_args="-DBONZOMATIC_USE_SYSTEM_GLEW=ON -DBONZOMATIC_USE_SYSTEM_GLFW=ON"
+hostmakedepends="pkg-config"
+makedepends="alsa-lib-devel glew-devel glfw-devel libX11-devel libXrandr-devel
+ libXinerama-devel libXcursor-devel libXi-devel fontconfig-devel"
+short_desc="Live shader coding tool"
+maintainer="Rutpiv <roger_freitas@live.com>"
+license="Unlicense"
+homepage="https://github.com/Gargaj/Bonzomatic"
+distfiles=""https://github.com/Gargaj/Bonzomatic/archive/${version//./-}.tar.gz
+checksum=f41903d47fc744a726c7ecdaee78e2d9dda790beb22e310a63f6a0a1c0cfd4a7
+make_check=no # No tests configured.
+
+post_install() {
+ vlicense LICENSE
+}
^ permalink raw reply [flat|nested] 2+ messages in thread
* [PR PATCH] New package: bonzomatic-2023.06.15
@ 2024-06-06 15:03 iFoundSilentHouse
0 siblings, 0 replies; 2+ messages in thread
From: iFoundSilentHouse @ 2024-06-06 15:03 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 842 bytes --]
There is a new pull request by iFoundSilentHouse against master on the void-packages repository
https://github.com/iFoundSilentHouse/void-packages bonzomatic-2023-06-15
https://github.com/void-linux/void-packages/pull/50721
New package: bonzomatic-2023.06.15
#### Testing the changes
- I tested the changes in this PR: **YES**
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): System, Compiled
#### Local build testing
- I built this PR locally for my native architecture, (x86_64-glibc)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- x86_64-musl
- aarch64-musl
- armv7l
A patch file from https://github.com/void-linux/void-packages/pull/50721.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-bonzomatic-2023-06-15-50721.patch --]
[-- Type: text/x-diff, Size: 1177 bytes --]
From c92991b4a230f879cf52df3ebbd8aa41ba1959e5 Mon Sep 17 00:00:00 2001
From: iFoundSilentHouse <adeptslab@gmail.com>
Date: Thu, 6 Jun 2024 20:59:54 +0600
Subject: [PATCH] New package: bonzomatic-2023.06.15
---
srcpkgs/bonzomatic/template | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
create mode 100644 srcpkgs/bonzomatic/template
diff --git a/srcpkgs/bonzomatic/template b/srcpkgs/bonzomatic/template
new file mode 100644
index 00000000000000..4c67ae04aa2ece
--- /dev/null
+++ b/srcpkgs/bonzomatic/template
@@ -0,0 +1,17 @@
+# Template file for 'bonzomatic'
+pkgname=bonzomatic
+version=2023.06.15
+revision=1
+build_style=cmake
+makedepends="libX11-devel alsa-lib-devel glu-devel libXrandr-devel
+ libXinerama-devel libXi-devel libXcursor-devel fontconfig-devel"
+short_desc="Tool for live-coding shaders"
+maintainer="iFoundSilentHouse <adeptslab@gmail.com>"
+license="Unlicense"
+homepage="https://github.com/Gargaj/Bonzomatic?tab=License-1-ov-file"
+distfiles="https://github.com/Gargaj/Bonzomatic/archive/refs/tags/${version//./-}.tar.gz"
+checksum=f41903d47fc744a726c7ecdaee78e2d9dda790beb22e310a63f6a0a1c0cfd4a7
+
+post_install() {
+ vlicense LICENSE
+}
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-01-08 3:20 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-01-08 3:20 [PR PATCH] New package: Bonzomatic-2023.06.15 Rutpiv
-- strict thread matches above, loose matches on Subject: below --
2024-06-06 15:03 [PR PATCH] New package: bonzomatic-2023.06.15 iFoundSilentHouse
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).