summaryrefslogtreecommitdiffstats
path: root/freebsd/dependencies/imlib/files/patch-png1.6.diff
diff options
context:
space:
mode:
authorSlávek Banko <[email protected]>2023-04-22 00:00:02 +0200
committerSlávek Banko <[email protected]>2023-04-22 20:51:11 +0200
commit4975402d7f239a520dfcbd48e03dbab43e491d68 (patch)
tree1fa8069b82399fccffe1736bbc8af73d1f3a4d93 /freebsd/dependencies/imlib/files/patch-png1.6.diff
parent718961e63499208eae72b6d4f56ae94004d41020 (diff)
downloadtde-packaging-4975402d7f239a520dfcbd48e03dbab43e491d68.tar.gz
tde-packaging-4975402d7f239a520dfcbd48e03dbab43e491d68.zip
FreeBSD: Add ports updated for final release R14.1.0.
Add a script to synchronize ports to the FreeBSD ports structure. Add meta-port 'tde-meta' to install all TDE ports. Signed-off-by: Slávek Banko <[email protected]>
Diffstat (limited to 'freebsd/dependencies/imlib/files/patch-png1.6.diff')
-rw-r--r--freebsd/dependencies/imlib/files/patch-png1.6.diff36
1 files changed, 36 insertions, 0 deletions
diff --git a/freebsd/dependencies/imlib/files/patch-png1.6.diff b/freebsd/dependencies/imlib/files/patch-png1.6.diff
new file mode 100644
index 000000000..b5e2f6324
--- /dev/null
+++ b/freebsd/dependencies/imlib/files/patch-png1.6.diff
@@ -0,0 +1,36 @@
+diff -ru a/Imlib/load.c b/Imlib/load.c
+--- a/Imlib/load.c 2015-06-21 03:21:07.000000000 +0200
++++ b/Imlib/load.c 2015-06-21 03:16:28.000000000 +0200
+@@ -196,7 +196,7 @@
+ png_destroy_read_struct(&png_ptr, &info_ptr, NULL);
+ return NULL;
+ }
+- if (info_ptr->color_type == PNG_COLOR_TYPE_RGB_ALPHA)
++ if (png_get_color_type(png_ptr, info_ptr) == PNG_COLOR_TYPE_RGB_ALPHA)
+ {
+ png_destroy_read_struct(&png_ptr, &info_ptr, NULL);
+ return NULL;
+diff -ru a/Imlib/utils.c b/Imlib/utils.c
+--- a/Imlib/utils.c 2015-06-21 03:21:07.000000000 +0200
++++ b/Imlib/utils.c 2015-06-21 03:16:20.000000000 +0200
+@@ -1965,7 +1965,7 @@
+ return NULL;
+ }
+
+- if (info_ptr->color_type == PNG_COLOR_TYPE_RGB_ALPHA)
++ if (png_get_color_type(png_ptr, info_ptr) == PNG_COLOR_TYPE_RGB_ALPHA)
+ {
+ png_destroy_read_struct(&png_ptr, &info_ptr, NULL);
+ return NULL;
+diff -ru a/gdk_imlib/io-png.c b/gdk_imlib/io-png.c
+--- a/gdk_imlib/io-png.c 2015-06-21 03:21:07.000000000 +0200
++++ b/gdk_imlib/io-png.c 2015-06-21 03:16:37.000000000 +0200
+@@ -46,7 +46,7 @@
+ return NULL;
+ }
+
+- if (info_ptr->color_type == PNG_COLOR_TYPE_RGB_ALPHA)
++ if (png_get_color_type(png_ptr, info_ptr) == PNG_COLOR_TYPE_RGB_ALPHA)
+ {
+ png_destroy_read_struct(&png_ptr, &info_ptr, NULL);
+ return NULL;