updated on Wed Jan 18 08:00:29 UTC 2012
[aur-mirror.git] / xcftools / xcftools.patch
blob1a2d88c146c40c821af6060db8e3973e16a10d79
1 diff -rupN xcftools-1.0.7.old/Makefile.in xcftools-1.0.7/Makefile.in
2 --- xcftools-1.0.7.old/Makefile.in 2009-07-03 11:31:56.000000000 +0100
3 +++ xcftools-1.0.7/Makefile.in 2012-01-03 13:03:51.152358830 +0000
4 @@ -79,7 +79,7 @@ xcf2pnm$e: xcf2pnm.$o $(FILEIO).$o enums
6 xcf2png$e: xcf2png.$o $(FILEIO).$o enums.$o xcf-general.$o utils.$o nlsini.$o \
7 pixels.$o flatten.$o flatspec.$o scaletab.$o table.$o palette.$o
8 - $(CC) $(LDFLAGS) $(LIBS) -lpng $^ -o $@
9 + $(CC) $(LDFLAGS) $(LIBS) $^ -lpng -o $@
11 xcfview: xcfview.in Makefile
12 sed '1s,/usr/bin/perl,@PERL@,' < $< > $@
13 diff -rupN xcftools-1.0.7.old/xcf2png.c xcftools-1.0.7/xcf2png.c
14 --- xcftools-1.0.7.old/xcf2png.c 2009-07-03 11:31:52.000000000 +0100
15 +++ xcftools-1.0.7/xcf2png.c 2012-01-03 13:03:36.262509165 +0000
16 @@ -71,9 +71,9 @@ init_output(void)
18 outfile = openout(flatspec.output_filename);
19 libpng = png_create_write_struct(PNG_LIBPNG_VER_STRING,
20 - png_voidp_NULL,
21 + (png_voidp)NULL,
22 my_error_callback,
23 - png_error_ptr_NULL);
24 + (png_voidp)NULL);
25 if( !libpng )
26 FatalUnexpected(_("Couldn't initialize libpng library"));