1 |
vapier 11/02/21 17:30:11 |
2 |
|
3 |
Added: ming-0.4.3-libpng-1.5.patch |
4 |
Log: |
5 |
Add patch from upstream for building with libpng-1.5. Use emake everywhere. Build in parallel as it seems to work for me. |
6 |
|
7 |
(Portage version: 2.2.0_alpha24/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.1 media-libs/ming/files/ming-0.4.3-libpng-1.5.patch |
11 |
|
12 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/ming/files/ming-0.4.3-libpng-1.5.patch?rev=1.1&view=markup |
13 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/ming/files/ming-0.4.3-libpng-1.5.patch?rev=1.1&content-type=text/plain |
14 |
|
15 |
Index: ming-0.4.3-libpng-1.5.patch |
16 |
=================================================================== |
17 |
From 63a408b763e3facdc8965ef216a06621f04e16ed Mon Sep 17 00:00:00 2001 |
18 |
From: OBATA Akio <obata@××××.jp> |
19 |
Date: Tue, 15 Feb 2011 09:54:34 +0100 |
20 |
Subject: [PATCH] Bug 109 - libpng-1.5 support |
21 |
|
22 |
--- |
23 |
src/blocks/pngdbl.c | 4 ++-- |
24 |
util/png2dbl.c | 2 +- |
25 |
2 files changed, 3 insertions(+), 3 deletions(-) |
26 |
|
27 |
diff --git a/src/blocks/pngdbl.c b/src/blocks/pngdbl.c |
28 |
index e0b88d6..77bb323 100644 |
29 |
--- a/src/blocks/pngdbl.c |
30 |
+++ b/src/blocks/pngdbl.c |
31 |
@@ -61,7 +61,7 @@ static png_structp openPngFromFile(FILE *fp) |
32 |
} |
33 |
|
34 |
static int pngReadFunc(png_structp png, unsigned char *buf, int len) |
35 |
-{ SWFInput input = (SWFInput) png->io_ptr; |
36 |
+{ SWFInput input = (SWFInput) png_get_io_ptr(png); |
37 |
return SWFInput_read(input, buf, len); |
38 |
} |
39 |
|
40 |
@@ -127,7 +127,7 @@ static int readPNG(png_structp png_ptr, dblData result) |
41 |
return 0; |
42 |
} |
43 |
|
44 |
- if(setjmp(png_ptr->jmpbuf)) |
45 |
+ if(setjmp(png_jmpbuf(png_ptr))) |
46 |
{ |
47 |
png_destroy_read_struct(&png_ptr, &info_ptr, &end_info); |
48 |
return 0; |
49 |
diff --git a/util/png2dbl.c b/util/png2dbl.c |
50 |
index 49610a3..ce44b27 100644 |
51 |
--- a/util/png2dbl.c |
52 |
+++ b/util/png2dbl.c |
53 |
@@ -91,7 +91,7 @@ struct pngdata readPNG(FILE *fp) |
54 |
error("Couldn't create end_info\n"); |
55 |
} |
56 |
|
57 |
- if(setjmp(png_ptr->jmpbuf)) |
58 |
+ if(setjmp(png_jmpbuf(png_ptr))) |
59 |
{ |
60 |
png_destroy_read_struct(&png_ptr, &info_ptr, &end_info); |
61 |
fclose(fp); |
62 |
-- |
63 |
1.7.4.1 |