summaryrefslogtreecommitdiff
path: root/libraries/qt3/qt3-libpng14.diff
diff options
context:
space:
mode:
authorNiels Horn <niels.horn@slackbuilds.org>2011-03-24 23:54:54 -0300
committerRobby Workman <rworkman@slackbuilds.org>2011-03-25 23:26:21 -0500
commit4544e04b263f12baa34c1a57f38839d5a3c4e464 (patch)
treee6cd99d4aaf255e0dbc46ef9e81a2a06b702890f /libraries/qt3/qt3-libpng14.diff
parentd7277dab33344970e645a521bfe7cef240813e9b (diff)
downloadslackbuilds-4544e04b263f12baa34c1a57f38839d5a3c4e464.tar.gz
libraries/qt3: Added (dependency, was removed from Slackware 13.37)
Signed-off-by: Niels Horn <niels.horn@slackbuilds.org>
Diffstat (limited to 'libraries/qt3/qt3-libpng14.diff')
-rw-r--r--libraries/qt3/qt3-libpng14.diff41
1 files changed, 41 insertions, 0 deletions
diff --git a/libraries/qt3/qt3-libpng14.diff b/libraries/qt3/qt3-libpng14.diff
new file mode 100644
index 0000000000..c568dd0c4d
--- /dev/null
+++ b/libraries/qt3/qt3-libpng14.diff
@@ -0,0 +1,41 @@
+http://groups.google.com/group/lucky.freebsd.ports.bugs/browse_thread/thread/a4a95255567dedfc
+
+System: FreeBSD elch.exwg.net 8.0-RELEASE-p2 FreeBSD 8.0-RELEASE-p2 #8: Sat Feb 20 21:36:50 CET 2010 c...@elch.exwg.net:/usr/obj/usr/src/sys/CMT amd64
+
+ png-1.4.1
+ qt-3.3.8_11 (upgrading to qt-3.3.8_12)
+
+>Description:
+
+ Build of x11-toolkits/qt33 fails due to the changed struct png_info
+ in libpng-1.4:
+ kernel/qpngio.cpp:162: error: 'struct png_info_struct' has no member named 'trans_values'
+
+>How-To-Repeat:
+ run portupgrade
+>Fix:
+
+ Add x11-toolkits/qt33/files/patch-src-kernel-qpngio.cpp
+ (also available at http://burggraben.net/hacks/patch-src-kernel-qpngio.cpp )
+
+--- src/kernel/qpngio.cpp.orig 2010-03-28 12:55:28.000000000 +0200
++++ src/kernel/qpngio.cpp 2010-03-28 12:56:44.000000000 +0200
+@@ -159,7 +159,7 @@
+ image.setColor( i, qRgba(c,c,c,0xff) );
+ }
+ if ( png_get_valid(png_ptr, info_ptr, PNG_INFO_tRNS) ) {
+- const int g = info_ptr->trans_values.gray;
++ const int g = info_ptr->trans_color.gray;
+ if (g < ncols) {
+ image.setAlphaBuffer(TRUE);
+ image.setColor(g, image.color(g) & RGB_MASK);
+@@ -187,7 +187,7 @@
+ info_ptr->palette[i].red,
+ info_ptr->palette[i].green,
+ info_ptr->palette[i].blue,
+- info_ptr->trans[i]
++ info_ptr->trans_alpha[i]
+ )
+ );
+ i++;
+