aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuri Victorovich <yuri@FreeBSD.org>2026-03-08 22:22:36 +0000
committerYuri Victorovich <yuri@FreeBSD.org>2026-03-08 22:22:36 +0000
commit640c21fb2c067900811fd3c00420126fc289f660 (patch)
treee0483c723e6f9efe2ed00a6d867a1a789e5b63c1
parent9eba8f5c8c366bc89d1cab9b92b7f13a58baaec4 (diff)
devel/stb: Missing patch
-rw-r--r--devel/stb/files/patch-PR155111
-rw-r--r--devel/stb/files/stb.pc.in7
2 files changed, 18 insertions, 0 deletions
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}