git: 640c21fb2c06 - main - devel/stb: Missing patch
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 08 Mar 2026 22:22:52 UTC
The branch main has been updated by yuri:
URL: https://cgit.FreeBSD.org/ports/commit/?id=640c21fb2c067900811fd3c00420126fc289f660
commit 640c21fb2c067900811fd3c00420126fc289f660
Author: Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2026-03-08 22:22:36 +0000
Commit: Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2026-03-08 22:22:36 +0000
devel/stb: Missing patch
---
devel/stb/files/patch-PR1551 | 11 +++++++++++
devel/stb/files/stb.pc.in | 7 +++++++
2 files changed, 18 insertions(+)
diff --git a/devel/stb/files/patch-PR1551 b/devel/stb/files/patch-PR1551
new file mode 100644
index 000000000000..3ffa55d96ef2
--- /dev/null
+++ b/devel/stb/files/patch-PR1551
@@ -0,0 +1,11 @@
+--- stb_image.h.orig 2026-02-21 14:14:41 UTC
++++ stb_image.h
+@@ -1448,7 +1448,7 @@ STBIDEF stbi_uc *stbi_load_gif_from_memory(stbi_uc con
+ stbi__start_mem(&s,buffer,len);
+
+ result = (unsigned char*) stbi__load_gif_main(&s, delays, x, y, z, comp, req_comp);
+- if (stbi__vertically_flip_on_load) {
++ if (stbi__vertically_flip_on_load && result) {
+ int channels = req_comp ? req_comp : *comp;
+ stbi__vertical_flip_slices( result, *x, *y, *z, channels );
+ }
diff --git a/devel/stb/files/stb.pc.in b/devel/stb/files/stb.pc.in
new file mode 100644
index 000000000000..e4f3e52087cb
--- /dev/null
+++ b/devel/stb/files/stb.pc.in
@@ -0,0 +1,7 @@
+prefix=%%PREFIX%%
+includedir=${prefix}/include/stb
+
+Name: stb
+Description: Single-file public domain libraries for C/C++
+Version: %%DISTVERSION%%
+Cflags: -I${includedir}