gimp: added patch for recent libpng API changes
This commit is contained in:
parent
6d4312627f
commit
a591b32307
@ -1 +1,2 @@
|
||||
c400a51d6433bdf5080b58db461745a6 gimp-2.2.11-libpng.patch
|
||||
0403e9b4e0415c99cd27b137b9839212 gimp-2.2.11.tar.bz2
|
||||
|
@ -6,10 +6,12 @@
|
||||
name=gimp
|
||||
version=2.2.11
|
||||
release=1
|
||||
source=(ftp://ftp.gimp.org/pub/gimp/v2.2/gimp-$version.tar.bz2)
|
||||
source=(ftp://ftp.gimp.org/pub/gimp/v2.2/gimp-$version.tar.bz2 \
|
||||
$name-$version-libpng.patch)
|
||||
|
||||
build() {
|
||||
cd gimp-$version
|
||||
patch -p1 -i $SRC/$name-$version-libpng.patch
|
||||
sed -i -e '/$(helpbrowser)/d' plug-ins/Makefile.in
|
||||
./configure --prefix=/usr \
|
||||
--disable-static
|
||||
|
36
gimp/gimp-2.2.11-libpng.patch
Normal file
36
gimp/gimp-2.2.11-libpng.patch
Normal file
@ -0,0 +1,36 @@
|
||||
diff -puNr gimp-2.2.11.orig/plug-ins/common/png.c gimp-2.2.11/plug-ins/common/png.c
|
||||
--- gimp-2.2.11.orig/plug-ins/common/png.c 2004-11-23 15:28:43.000000000 +0100
|
||||
+++ gimp-2.2.11/plug-ins/common/png.c 2006-04-15 12:15:58.000000000 +0200
|
||||
@@ -1012,12 +1012,10 @@ load_image (const gchar *filename,
|
||||
* Done with the file...
|
||||
*/
|
||||
|
||||
- png_read_destroy (pp, info, NULL);
|
||||
+ png_destroy_read_struct (&pp, &info, NULL);
|
||||
|
||||
g_free (pixel);
|
||||
g_free (pixels);
|
||||
- free (pp);
|
||||
- free (info);
|
||||
|
||||
fclose (fp);
|
||||
|
||||
@@ -1441,7 +1439,7 @@ save_image (const gchar *filename,
|
||||
};
|
||||
|
||||
png_write_end (pp, info);
|
||||
- png_write_destroy (pp);
|
||||
+ png_destroy_write_struct (&pp, &info);
|
||||
|
||||
g_free (pixel);
|
||||
g_free (pixels);
|
||||
@@ -1456,9 +1454,6 @@ save_image (const gchar *filename,
|
||||
g_free (text);
|
||||
}
|
||||
|
||||
- free (pp);
|
||||
- free (info);
|
||||
-
|
||||
fclose (fp);
|
||||
|
||||
return (1);
|
Loading…
x
Reference in New Issue
Block a user