diff options
author | joerg <joerg@pkgsrc.org> | 2013-02-26 10:19:28 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2013-02-26 10:19:28 +0000 |
commit | 5c6873dec5a177cf859a4de93bd286a1f3b200d6 (patch) | |
tree | aba6d5ded7131aee39d071b5e721190c6a4ea63c /x11/fbdesk | |
parent | 15e373c32e344f029e617876ee3976d0016d8ca4 (diff) | |
download | pkgsrc-5c6873dec5a177cf859a4de93bd286a1f3b200d6.tar.gz |
Don't depend on png.h to pull in string.h.
Diffstat (limited to 'x11/fbdesk')
-rw-r--r-- | x11/fbdesk/distinfo | 4 | ||||
-rw-r--r-- | x11/fbdesk/patches/patch-ac | 26 |
2 files changed, 19 insertions, 11 deletions
diff --git a/x11/fbdesk/distinfo b/x11/fbdesk/distinfo index 1b314a8d159..fd8dea0b343 100644 --- a/x11/fbdesk/distinfo +++ b/x11/fbdesk/distinfo @@ -1,11 +1,11 @@ -$NetBSD: distinfo,v 1.8 2011/11/25 22:25:30 joerg Exp $ +$NetBSD: distinfo,v 1.9 2013/02/26 10:19:28 joerg Exp $ SHA1 (fbdesk-1.4.1.tar.gz) = b5a2f446fa27406d9adb9a9608f1dc3c638d37ff RMD160 (fbdesk-1.4.1.tar.gz) = ce22936b73acd8273e9816f4c2a5458cc98cf45a Size (fbdesk-1.4.1.tar.gz) = 426550 bytes SHA1 (patch-aa) = 4412dfd20e31814ee674213ca798864dab25399f SHA1 (patch-ab) = 9e2c2600561ba4228959a79cb2da603aab7e8ba3 -SHA1 (patch-ac) = 7771adb86237b0c143baafc993cbd67998a1a17f +SHA1 (patch-ac) = 56ee3f78fb3f2bb20270c472eb699bf6269e9604 SHA1 (patch-src_FbDesk.cc) = 65ac9146794e1ea7388906a05bbc8b86fdd70b46 SHA1 (patch-src_FbTk_KeyUtil.cc) = b895774066d0f474ff6f1b0f6ee38477bd87fca3 SHA1 (patch-src_FbTk_StringUtil.cc) = fcc300d550a58995822f7ff9bc368d0e5f63bda7 diff --git a/x11/fbdesk/patches/patch-ac b/x11/fbdesk/patches/patch-ac index 470b7ec0858..6abe43eb39e 100644 --- a/x11/fbdesk/patches/patch-ac +++ b/x11/fbdesk/patches/patch-ac @@ -1,10 +1,18 @@ -$NetBSD: patch-ac,v 1.1 2011/01/29 11:24:43 wiz Exp $ +$NetBSD: patch-ac,v 1.2 2013/02/26 10:19:28 joerg Exp $ Fix build with png-1.5. --- src/FbTk/ImagePNG.cc.orig 2004-09-20 14:04:11.000000000 +0000 +++ src/FbTk/ImagePNG.cc -@@ -76,6 +76,8 @@ ImagePNG::~ImagePNG() { +@@ -28,6 +28,7 @@ + #include "PixmapWithMask.hh" + + #include <png.h> ++#include <cstring> + #include <cstdio> + #include <iostream> + using namespace std; +@@ -76,6 +77,8 @@ ImagePNG::~ImagePNG() { } PixmapWithMask *ImagePNG::load(const std::string &filename, int screen_num) const { @@ -13,7 +21,7 @@ Fix build with png-1.5. if (filename.empty()) return 0; #ifdef DEBUG -@@ -102,7 +104,7 @@ PixmapWithMask *ImagePNG::load(const std +@@ -102,7 +105,7 @@ PixmapWithMask *ImagePNG::load(const std return 0; } @@ -22,7 +30,7 @@ Fix build with png-1.5. fclose(fp); return 0; } -@@ -115,12 +117,14 @@ PixmapWithMask *ImagePNG::load(const std +@@ -115,12 +118,14 @@ PixmapWithMask *ImagePNG::load(const std png_get_IHDR(png.png(), png.info(), &w, &h, &bit_depth, &color_type, &interlace_type, 0, 0); @@ -42,7 +50,7 @@ Fix build with png-1.5. cerr<<"Color type = "; switch (color_type) { case PNG_COLOR_TYPE_GRAY: -@@ -146,7 +150,7 @@ PixmapWithMask *ImagePNG::load(const std +@@ -146,7 +151,7 @@ PixmapWithMask *ImagePNG::load(const std // convert to rgb if (color_type == PNG_COLOR_TYPE_PALETTE && bit_depth <= 8) { png_set_expand(png.png()); @@ -51,7 +59,7 @@ Fix build with png-1.5. } // convert to rgb if (color_type == PNG_COLOR_TYPE_GRAY && bit_depth < 8) { -@@ -158,7 +162,7 @@ PixmapWithMask *ImagePNG::load(const std +@@ -158,7 +163,7 @@ PixmapWithMask *ImagePNG::load(const std if (color_type == PNG_COLOR_TYPE_GRAY || color_type == PNG_COLOR_TYPE_GRAY_ALPHA) { png_set_gray_to_rgb(png.png()); @@ -60,7 +68,7 @@ Fix build with png-1.5. color_type = PNG_COLOR_TYPE_RGB; } -@@ -170,23 +174,23 @@ PixmapWithMask *ImagePNG::load(const std +@@ -170,23 +175,23 @@ PixmapWithMask *ImagePNG::load(const std // expand to 4 bytes if (bit_depth == 8 && color_type == PNG_COLOR_TYPE_RGB) { png_set_filler(png.png(), 0, PNG_FILLER_AFTER); @@ -91,7 +99,7 @@ Fix build with png-1.5. } // get transparent pixel -@@ -214,31 +218,31 @@ PixmapWithMask *ImagePNG::load(const std +@@ -214,31 +219,31 @@ PixmapWithMask *ImagePNG::load(const std fclose(fp); // clear linear memory @@ -131,7 +139,7 @@ Fix build with png-1.5. break; } -@@ -264,9 +268,9 @@ PixmapWithMask *ImagePNG::load(const std +@@ -264,9 +269,9 @@ PixmapWithMask *ImagePNG::load(const std long i = 0x44332211; unsigned char* a = (unsigned char*) &i; bool big_endian = (*a != 0x11); |