diff -ru4NwbB libpng-1.5.10/png.c libpng-1.5.11rc02/png.c --- libpng-1.5.10/png.c 2012-03-29 00:06:54.535945504 -0500 +++ libpng-1.5.11rc02/png.c 2012-05-29 06:06:51.389821167 -0500 @@ -2043,9 +2043,9 @@ return 0; } #endif -#ifdef PNG_READ_GAMMA_SUPPORTED /* more fixed point functions for gammma */ +#ifdef PNG_READ_GAMMA_SUPPORTED /* more fixed point functions for gamma */ /* Calculate a reciprocal, return 0 on div-by-zero or overflow. */ png_fixed_point png_reciprocal(png_fixed_point a) { diff -ru4NwbB libpng-1.5.10/png.h libpng-1.5.11rc02/png.h --- libpng-1.5.10/png.h 2012-03-29 00:06:54.479097811 -0500 +++ libpng-1.5.11rc02/png.h 2012-05-29 06:06:51.333600998 -0500 @@ -173,8 +173,10 @@ * 1.5.9rc01 15 10509 15.so.15.9[.0] * 1.5.9 15 10509 15.so.15.9[.0] * 1.5.10beta01-05 15 10510 15.so.15.10[.0] * 1.5.10 15 10510 15.so.15.10[.0] + * 1.5.11beta01 15 10511 15.so.15.11[.0] + * 1.5.11rc01-02 15 10511 15.so.15.11[.0] * * Henceforth the source version will match the shared-library major * and minor numbers; the shared-library major version number will be * used for changes in backward compatibility, as it is intended. The diff -ru4NwbB libpng-1.5.10/pngconf.h libpng-1.5.11rc02/pngconf.h --- libpng-1.5.10/pngconf.h 2012-03-29 00:06:54.486609529 -0500 +++ libpng-1.5.11rc02/pngconf.h 2012-05-29 06:06:51.340865961 -0500 @@ -24,9 +24,9 @@ #ifndef PNG_BUILDING_SYMBOL_TABLE /* PNG_NO_LIMITS_H may be used to turn off the use of the standard C * definition file for machine specific limits, this may impact the - * correctness of the definitons below (see uses of INT_MAX). + * correctness of the definitions below (see uses of INT_MAX). */ # ifndef PNG_NO_LIMITS_H # include # endif diff -ru4NwbB libpng-1.5.10/pngpread.c libpng-1.5.11rc02/pngpread.c --- libpng-1.5.10/pngpread.c 2012-03-29 00:06:54.567379144 -0500 +++ libpng-1.5.11rc02/pngpread.c 2012-05-29 06:06:51.420375947 -0500 @@ -1,8 +1,8 @@ /* pngpread.c - read a png file in push mode * - * Last changed in libpng 1.5.9 [February 18, 2012] + * Last changed in libpng 1.5.11 [(PENDING RELEASE)] * Copyright (c) 1998-2012 Glenn Randers-Pehrson * (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger) * (Version 0.88 Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc.) * diff -ru4NwbB libpng-1.5.10/pngpriv.h libpng-1.5.11rc02/pngpriv.h --- libpng-1.5.10/pngpriv.h 2012-03-29 00:06:54.496932731 -0500 +++ libpng-1.5.11rc02/pngpriv.h 2012-05-29 06:06:51.351298509 -0500 @@ -1258,12 +1258,10 @@ PNG_EXTERN void png_handle_zTXt PNGARG((png_structp png_ptr, png_infop info_ptr, png_uint_32 length)); #endif -#ifdef PNG_HANDLE_AS_UNKNOWN_SUPPORTED PNG_EXTERN void png_handle_unknown PNGARG((png_structp png_ptr, png_infop info_ptr, png_uint_32 length)); -#endif PNG_EXTERN void png_check_chunk_name PNGARG((png_structp png_ptr, png_uint_32 chunk_name)); diff -ru4NwbB libpng-1.5.10/pngset.c libpng-1.5.11rc02/pngset.c --- libpng-1.5.10/pngset.c 2012-03-29 00:06:54.637034941 -0500 +++ libpng-1.5.11rc02/pngset.c 2012-05-29 06:06:51.478136004 -0500 @@ -148,9 +148,9 @@ * occur. Since the fixed point representation is assymetrical it is * possible for 1/gamma to overflow the limit of 21474 and this means the * gamma value must be at least 5/100000 and hence at most 20000.0. For * safety the limits here are a little narrower. The values are 0.00016 to - * 6250.0, which are truly ridiculous gammma values (and will produce + * 6250.0, which are truly ridiculous gamma values (and will produce * displays that are all black or all white.) */ if (file_gamma < 16 || file_gamma > 625000000) png_warning(png_ptr, "Out of range gamma value ignored"); @@ -1290,10 +1290,12 @@ png_ptr->flags &= ~PNG_FLAG_BENIGN_ERRORS_WARN; } #endif /* PNG_BENIGN_ERRORS_SUPPORTED */ -#ifdef PNG_READ_CHECK_FOR_INVALID_INDEX_SUPPORTED - /* Do not report invalid palette index; added at libng-1.5.10 */ +#ifdef PNG_CHECK_FOR_INVALID_INDEX_SUPPORTED +/* Whether to report invalid palette index; added at libng-1.5.10 + * allowed - one of 0: disable; 1: enable + */ void PNGAPI png_set_check_for_invalid_index(png_structp png_ptr, int allowed) { png_debug(1, "in png_set_check_for_invalid_index"); diff -ru4NwbB libpng-1.5.10/scripts/makefile.darwin libpng-1.5.11rc02/scripts/makefile.darwin --- libpng-1.5.10/scripts/makefile.darwin 2012-03-29 00:06:56.508167982 -0500 +++ libpng-1.5.11rc02/scripts/makefile.darwin 2012-05-29 06:06:53.103140733 -0500 @@ -14,12 +14,10 @@ prefix=/usr/local exec_prefix=$(prefix) # Where the zlib library and include files are located -#ZLIBLIB=/usr/local/lib -#ZLIBINC=/usr/local/include -ZLIBLIB=../zlib -ZLIBINC=../zlib +ZLIBLIB=/usr/lib +ZLIBINC=/usr/include # Library name: LIBNAME = libpng%NN% PNGMAJ = %NN% @@ -36,9 +34,9 @@ MKDIR_P=mkdir -p LN_SF=ln -sf RANLIB=ranlib RM_F=/bin/rm -f -ARCH="-arch i386 -arch x86_64" +ARCH=-arch ppc -arch i386 -arch x86_64 # CFLAGS=-I$(ZLIBINC) -W -Wall -O3 -funroll-loops CFLAGS=-I$(ZLIBINC) -W -Wall -O -funroll-loops $(ARCH) LDFLAGS=-L. -L$(ZLIBLIB) -lpng%NN% -lz $(ARCH) @@ -106,9 +104,9 @@ $(LIBSOMAJ): $(OBJSDLL) $(CC) -dynamiclib \ -install_name $(LIBPATH)/$(LIBSOMAJ) \ -current_version %SONUM% -compatibility_version %SONUM% \ - -o $(LIBSOMAJ) \ + $(ARCH) -o $(LIBSOMAJ) \ $(OBJSDLL) -L$(ZLIBLIB) -lz pngtest: pngtest.o $(LIBSO) $(CC) -o pngtest $(CFLAGS) pngtest.o $(LDFLAGS) @@ -135,12 +133,12 @@ install-shared: install-headers $(LIBSOMAJ) libpng.pc -@if [ ! -d $(DL) ]; then $(MKDIR_P) $(DL); fi -@$(RM_F) $(DL)/$(LIBSO) - -@$(RM_F) $(DL)/$(LIBSOREL) + -@$(RM_F) $(DL)/$(LIBSOMAJ) -@$(RM_F) $(DL)/$(OLDSO) - cp $(LIBSOMAJ) $(DL)/$(LIBSOREL) - chmod 755 $(DL)/$(LIBSOREL) + cp $(LIBSOMAJ) $(DL) + chmod 755 $(DL)/$(LIBSOMAJ) (cd $(DL); \ $(LN_SF) $(LIBSOREL) $(LIBSO); \ $(LN_SF) $(LIBSO) $(OLDSO)) -@if [ ! -d $(DL)/pkgconfig ]; then $(MKDIR_P) $(DL)/pkgconfig; fi diff -ru4NwbB libpng-1.5.10/scripts/makefile.freebsd libpng-1.5.11rc02/scripts/makefile.freebsd --- libpng-1.5.10/scripts/makefile.freebsd 2012-03-29 00:06:56.550848864 -0500 +++ libpng-1.5.11rc02/scripts/makefile.freebsd 2012-05-29 06:06:53.143067698 -0500 @@ -10,10 +10,10 @@ LIB= png SHLIB_MAJOR= ${SHLIB_VER} SHLIB_MINOR= 0 -NOPROFILE= YES -NOOBJ= YES +NO_PROFILE= YES +NO_OBJ= YES # where make install puts libpng.a and png.h DESTDIR= ${PREFIX} LIBDIR= /lib @@ -24,9 +24,12 @@ MANDIR= /man/man SYMLINKS= libpng/png.h ${INCSDIR}/../png.h \ libpng/pngconf.h ${INCSDIR}/../pngconf.h \ libpng/pnglibconf.h ${INCSDIR}/../pnglibconf.h + LDADD+= -lm -lz +#LDADD+= -lm -lz -lssp_nonshared # for OSVERSION >= 800000 ? + DPADD+= ${LIBM} ${LIBZ} CFLAGS+= -I.