Imported from libpng-1.2.5.tar
diff --git a/scripts/libpng-config-head.in b/scripts/libpng-config-head.in index 3264b99..0f64fa4 100755 --- a/scripts/libpng-config-head.in +++ b/scripts/libpng-config-head.in
@@ -8,7 +8,7 @@ # Modeled after libxml-config. -version=1.2.5rc3 +version=1.2.5 prefix="" libdir="" libs=""
diff --git a/scripts/libpng.pc.in b/scripts/libpng.pc.in index 2065d3a..32ed4a9 100644 --- a/scripts/libpng.pc.in +++ b/scripts/libpng.pc.in
@@ -6,6 +6,6 @@ Name: libpng12 Description: Loads and saves PNG files -Version: 1.2.5rc3 +Version: 1.2.5 Libs: -L${libdir} -lpng12 -lz -lm Cflags: -I${includedir}/libpng12
diff --git a/scripts/makefile.32sunu b/scripts/makefile.32sunu index 087c990..5bd0941 100644 --- a/scripts/makefile.32sunu +++ b/scripts/makefile.32sunu
@@ -33,7 +33,7 @@ LIBNAME=libpng12 PNGMAJ = 0 -PNGMIN = 1.2.5rc3 +PNGMIN = 1.2.5 PNGVER = $(PNGMAJ).$(PNGMIN) INCPATH=$(prefix)/include
diff --git a/scripts/makefile.64sunu b/scripts/makefile.64sunu index 0f8a55f..a9b40f2 100644 --- a/scripts/makefile.64sunu +++ b/scripts/makefile.64sunu
@@ -33,7 +33,7 @@ LIBNAME=libpng12 PNGMAJ = 0 -PNGMIN = 1.2.5rc3 +PNGMIN = 1.2.5 PNGVER = $(PNGMAJ).$(PNGMIN) INCPATH=$(prefix)/include @@ -84,7 +84,7 @@ echo L_opts=\"-L$(LIBPATH)\"; \ echo R_opts=\"-R$(LIBPATH)\"; \ echo ccopts=\"-xtarget=ultra -xarch=v9\"; \ - echo ldopts=\"-xtarget=ultra -xarch=v9 \"; \ + echo ldopts=\"-xtarget=ultra -xarch=v9\"; \ echo libs=\"-lpng12 -lz -lm\"; \ cat scripts/libpng-config-body.in ) > libpng-config chmod +x libpng-config
diff --git a/scripts/makefile.aix b/scripts/makefile.aix index 794f391..29cc6eb 100644 --- a/scripts/makefile.aix +++ b/scripts/makefile.aix
@@ -16,8 +16,9 @@ RANLIB = ranlib RM = rm -f +LIBNAME=libpng12 PNGMAJ = 0 -PNGMIN = 1.2.5rc3 +PNGMIN = 1.2.5 PNGVER = $(PNGMAJ).$(PNGMIN) prefix=/usr/local @@ -41,7 +42,8 @@ LDDEBUG = CRELEASE = -O2 LDRELEASE = -s -CFLAGS = -I$(ZLIBINC) -Wall $(CRELEASE) +WARNMORE=-Wall +CFLAGS = -I$(ZLIBINC) $(WARNMORE) $(CRELEASE) LDFLAGS = -L. -L$(ZLIBLIB) -lpng -lz -lm $(LDRELEASE) # File extensions @@ -57,17 +59,17 @@ # Targets all: libpng$(A) pngtest$(E) -libpng$(A): $(OBJS) +$(LIBNAME)$(A): $(OBJS) $(AR) $@ $(OBJS) $(RANLIB) $@ test: pngtest$(E) ./pngtest$(E) -pngtest$(E): pngtest$(O) libpng$(A) +pngtest$(E): pngtest$(O) $(LIBNAME)$(A) $(LD) -o $@ pngtest$(O) $(LDFLAGS) -install: libpng.a +install: $(LIBNAME)$(A) -@if [ ! -d $(DI) ]; then mkdir $(DI); fi -@if [ ! -d $(DI)/libpng ]; then mkdir $(DI)/libpng; fi -@if [ ! -d $(DL) ]; then mkdir $(DL); fi @@ -75,12 +77,13 @@ -@rm $(DI)/pngconf.h cp png.h pngconf.h $(DI)/libpng chmod 644 $(DI)/libpng/png.h \ + cp $(LIBNAME)$(A) $(DL) + (cd $(DL); ln -f -s $(LIBNAME)$(A) libpng$(A)) $(DI)/libpng/pngconf.h - (cd $(DI); ln -f -s libpng/* .) - cp libpng.a $(DL) + (cd $(DI); ln -f -s libpng/* .;) clean: - /bin/rm -f *.o libpng.a pngtest pngout.png + /bin/rm -f *.o $(LIBNAME)$(A) pngtest pngout.png png$(O): png.h pngconf.h pngerror$(O): png.h pngconf.h
diff --git a/scripts/makefile.beos b/scripts/makefile.beos index 969975b..2609f03 100644 --- a/scripts/makefile.beos +++ b/scripts/makefile.beos
@@ -12,7 +12,7 @@ ZLIBINC=/usr/local/include PNGMAJ = 0 -PNGMIN = 1.2.5rc3 +PNGMIN = 1.2.5 PNGVER = $(PNGMAJ).$(PNGMIN) ALIGN=
diff --git a/scripts/makefile.cygwin b/scripts/makefile.cygwin index bfc19b9..a282bef 100644 --- a/scripts/makefile.cygwin +++ b/scripts/makefile.cygwin
@@ -79,7 +79,7 @@ LIBNAME = libpng12 PNGMAJ = 0 CYGDLL = 12 -PNGMIN = 1.2.5rc3 +PNGMIN = 1.2.5 PNGVER = $(PNGMAJ).$(PNGMIN) SHAREDLIB=cygpng$(CYGDLL).dll
diff --git a/scripts/makefile.darwin b/scripts/makefile.darwin index cde2154..b04044f 100644 --- a/scripts/makefile.darwin +++ b/scripts/makefile.darwin
@@ -23,7 +23,7 @@ RANLIB=ranlib PNGMAJ = 0 -PNGMIN = 1.2.5rc3 +PNGMIN = 1.2.5 PNGVER = $(PNGMAJ).$(PNGMIN) LIBNAME = libpng12 @@ -86,14 +86,15 @@ $(LIBNAME).$(PNGVER).dylib: $(OBJSDLL) $(CC) -dynamiclib \ -install_name $(DL)/$(LIBNAME).$(PNGMAJ).dylib \ - -current_version $(PNGMIN) -compatibility_version $(PNGMIN) \ + -flat_namespace -undefined suppress \ -o $(LIBNAME).$(PNGVER).dylib \ $(OBJSDLL) libpng.3.$(PNGMIN).dylib: $(OBJSDLL) $(CC) -dynamiclib \ -install_name $(DL)/libpng.3.dylib \ - -current_version $(PNGMIN) -compatibility_version $(PNGMIN) \ + -current_version 3 -compatibility_version 3 \ + -flat_namespace -undefined suppress \ -o libpng.3.$(PNGMIN).dylib \ $(OBJSDLL)
diff --git a/scripts/makefile.dec b/scripts/makefile.dec index b36da9c..5d7a11e 100644 --- a/scripts/makefile.dec +++ b/scripts/makefile.dec
@@ -32,7 +32,7 @@ ZLIBINC=../zlib PNGMAJ = 0 -PNGMIN = 1.2.5rc3 +PNGMIN = 1.2.5 PNGVER = $(PNGMAJ).$(PNGMIN) LIBNAME = libpng12
diff --git a/scripts/makefile.gcmmx b/scripts/makefile.gcmmx index 10dd44e..d0dfdd9 100644 --- a/scripts/makefile.gcmmx +++ b/scripts/makefile.gcmmx
@@ -15,7 +15,7 @@ LIBNAME = libpng12 PNGMAJ = 0 -PNGMIN = 1.2.5rc3 +PNGMIN = 1.2.5 PNGVER = $(PNGMAJ).$(PNGMIN) CC=gcc
diff --git a/scripts/makefile.hpgcc b/scripts/makefile.hpgcc index 34476eb..f677308 100644 --- a/scripts/makefile.hpgcc +++ b/scripts/makefile.hpgcc
@@ -1,4 +1,4 @@ -# makefile for libpng on HP-UX using GCC +# makefile for libpng on HP-UX using GCC with the HP ANSI/C linker. # Copyright (C) 2002, Glenn Randers-Pehrson # Copyright (C) 2001, Laurent faillie # Copyright (C) 1998, 1999 Greg Roelofs @@ -6,6 +6,7 @@ # For conditions of distribution and use, see copyright notice in png.h CC=gcc +LD=ld # where "make install" puts libpng.a, libpng.sl*, png.h and pngconf.h prefix=/usr/local @@ -14,6 +15,13 @@ ZLIBLIB=/opt/zlib/lib ZLIBINC=/opt/zlib/include +# Note that if you plan to build a libpng shared library, zlib must also +# be a shared library, which zlib's configure does not do. After running +# zlib's configure, edit the appropriate lines of makefile to read: +# CFLAGS=-O1 -DHAVE_UNISTD -DUSE_MAP -fPIC \ +# LDSHARED=ld -b +# SHAREDLIB=libz.sl + ALIGN= # for i386: #ALIGN=-malign-loops=2 -malign-functions=2 @@ -33,7 +41,7 @@ #RANLIB=echo PNGMAJ = 0 -PNGMIN = 1.2.5rc3 +PNGMIN = 1.2.5 PNGVER = $(PNGMAJ).$(PNGMIN) LIBNAME = libpng12 @@ -92,11 +100,11 @@ ln -sf $(LIBNAME).sl.$(PNGVER) $(LIBNAME).sl.$(PNGMAJ) $(LIBNAME).sl.$(PNGVER): $(OBJSDLL) - $(LD) +s \ + $(LD) -b +s \ +h $(LIBNAME).sl.$(PNGMAJ) -o $(LIBNAME).sl.$(PNGVER) $(OBJSDLL) libpng.sl.3.$(PNGMIN): $(OBJSDLL) - $(LD) +s \ + $(LD) -b +s \ +h libpng.sl.3 -o libpng.sl.3.$(PNGMIN) $(OBJSDLL) pngtest: pngtest.o $(LIBNAME).sl
diff --git a/scripts/makefile.hpux b/scripts/makefile.hpux index 2573f61..a9c4d35 100644 --- a/scripts/makefile.hpux +++ b/scripts/makefile.hpux
@@ -1,4 +1,4 @@ -# makefile for libpng, HPUX (10.20 and 11.00) +# makefile for libpng, HPUX (10.20 and 11.00) using the ANSI/C product. # Copyright (C) 1999-2002 Glenn Randers-Pehrson # Copyright (C) 1995 Guy Eric Schalnat, Group 42 # contributed by Jim Rice and updated by Chris Schleicher, Hewlett Packard @@ -8,6 +8,13 @@ ZLIBLIB=/opt/zlib/lib ZLIBINC=/opt/zlib/include +# Note that if you plan to build a libpng shared library, zlib must also +# be a shared library, which zlib's configure does not do. After running +# zlib's configure, edit the appropriate lines of makefile to read: +# CFLAGS=-O1 -DHAVE_UNISTD -DUSE_MAP -fPIC \ +# LDSHARED=ld -b +# SHAREDLIB=libz.sl + CC=cc CFLAGS=-I$(ZLIBINC) -O -Ae +DA1.1 +DS2.0 # Caution: be sure you have built zlib with the same CFLAGS. @@ -17,7 +24,7 @@ RANLIB=ranlib PNGMAJ = 0 -PNGMIN = 1.2.5rc3 +PNGMIN = 1.2.5 PNGVER = $(PNGMAJ).$(PNGMIN) LIBNAME = libpng12 @@ -67,7 +74,7 @@ ( cat scripts/libpng-config-head.in; \ echo prefix=\"$(prefix)\"; \ echo I_opts=\"-I$(INCPATH)/$(LIBNAME)\"; \ - echo ccopts=\"-Ae +DA1.1 +DS2.0"; \ + echo ccopts=\"-Ae +DA1.1 +DS2.0\"; \ echo L_opts=\"-L$(LIBPATH)\"; \ echo libs=\"-lpng12 -lz -lm\"; \ cat scripts/libpng-config-body.in ) > libpng-config @@ -80,12 +87,12 @@ ln -sf $(LIBNAME).sl.$(PNGVER) $(LIBNAME).sl.$(PNGMAJ) $(LIBNAME).sl.$(PNGVER): $(OBJSDLL) - $(LD) +s \ + $(LD) -b +s \ +h $(LIBNAME).sl.$(PNGMAJ) -o $(LIBNAME).sl.$(PNGVER) $(OBJSDLL) libpng.sl.3.$(PNGMIN): $(OBJSDLL) - $(LD) +s \ - +h libpng.sl.3 o libpng.sl.3.$(PNGMIN) $(OBJSDLL) + $(LD) -b +s \ + +h libpng.sl.3 -o libpng.sl.3.$(PNGMIN) $(OBJSDLL) pngtest: pngtest.o libpng.a $(CC) -o pngtest $(CCFLAGS) pngtest.o $(LDFLAGS)
diff --git a/scripts/makefile.linux b/scripts/makefile.linux index e8596ec..7ec8125 100644 --- a/scripts/makefile.linux +++ b/scripts/makefile.linux
@@ -5,7 +5,7 @@ LIBNAME = libpng12 PNGMAJ = 0 -PNGMIN = 1.2.5rc3 +PNGMIN = 1.2.5 PNGVER = $(PNGMAJ).$(PNGMIN) CC=gcc
diff --git a/scripts/makefile.macosx b/scripts/makefile.macosx index 7a3cbd0..e348ecf 100644 --- a/scripts/makefile.macosx +++ b/scripts/makefile.macosx
@@ -17,13 +17,11 @@ CC=cc PNGMAJ = 0 -PNGMIN = 1.2.5rc3 +PNGMIN = 1.2.5 PNGVER = $(PNGMAJ).$(PNGMIN) CFLAGS=-fno-common -I$(ZLIBINC) -O # -g -DPNG_DEBUG=5 -LDFLAGS=-L. -L$(ZLIBLIB) -lpng -lz -LDSHARED=cc -lz -dynamiclib -compatibility_version $(PNGVER) \ --current_version $(PNGVER) +LDFLAGS=-L. -L$(ZLIBLIB) -lpng -lz -current_version $(PNGVER) LIBNAME=libpng12 SHAREDLIB_POSTFIX=dylib @@ -76,10 +74,11 @@ $(RANLIB) $@ $(LIBNAME).$(PNGVER).$(SHAREDLIB_POSTFIX): $(OBJS) - cc -dynamiclib -compatibility_version $(PNGMAJ) -o $@ $(OBJS) + cc -dynamiclib -flat_namespace -undefined suppress -o $@ $(OBJS) libpng.3.$(PNGMIN).$(SHAREDLIB_POSTFIX): $(OBJS) - cc -dynamiclib -compatibility_version 3 -o $@ $(OBJS) + cc -dynamiclib -compatibility_version 3 -flat_namespace \ + -undefined suppress -o $@ $(OBJS) pngtest: pngtest.o libpng.a $(CC) -o pngtest $(CFLAGS) pngtest.o $(LDFLAGS)
diff --git a/scripts/makefile.ne12bsd b/scripts/makefile.ne12bsd index ecd36b6..4cccc6d 100644 --- a/scripts/makefile.ne12bsd +++ b/scripts/makefile.ne12bsd
@@ -13,7 +13,7 @@ LIB= png12 SHLIB_MAJOR= 0 -SHLIB_MINOR= 1.2.5rc3 +SHLIB_MINOR= 1.2.5 SRCS= pnggccrd.c png.c pngset.c pngget.c pngrutil.c pngtrans.c pngwutil.c \ pngread.c pngrio.c pngwio.c pngwrite.c pngrtran.c \ pngwtran.c pngmem.c pngerror.c pngpread.c
diff --git a/scripts/makefile.netbsd b/scripts/makefile.netbsd index e7ffdf1..6b53c4e 100644 --- a/scripts/makefile.netbsd +++ b/scripts/makefile.netbsd
@@ -13,7 +13,7 @@ LIB= png SHLIB_MAJOR= 3 -SHLIB_MINOR= 1.2.5rc3 +SHLIB_MINOR= 1.2.5 SRCS= pnggccrd.c png.c pngset.c pngget.c pngrutil.c pngtrans.c pngwutil.c \ pngread.c pngrio.c pngwio.c pngwrite.c pngrtran.c \ pngwtran.c pngmem.c pngerror.c pngpread.c
diff --git a/scripts/makefile.openbsd b/scripts/makefile.openbsd index 0e2594c..af94f40 100644 --- a/scripts/makefile.openbsd +++ b/scripts/makefile.openbsd
@@ -7,7 +7,7 @@ MANDIR= ${PREFIX}/man/cat SHLIB_MAJOR= 0 -SHLIB_MINOR= 1.2.5rc3 +SHLIB_MINOR= 1.2.5 LIB= png SRCS= png.c pngerror.c pnggccrd.c pngget.c pngmem.c pngpread.c \
diff --git a/scripts/makefile.sco b/scripts/makefile.sco index 82ed35c..74068a2 100644 --- a/scripts/makefile.sco +++ b/scripts/makefile.sco
@@ -24,7 +24,7 @@ RANLIB=echo PNGMAJ = 0 -PNGMIN = 1.2.5rc3 +PNGMIN = 1.2.5 PNGVER = $(PNGMAJ).$(PNGMIN) LIBNAME = libpng12
diff --git a/scripts/makefile.sggcc b/scripts/makefile.sggcc index 8538082..082de1b 100644 --- a/scripts/makefile.sggcc +++ b/scripts/makefile.sggcc
@@ -18,7 +18,7 @@ LIBNAME=libpng12 PNGMAJ = 0 -PNGMIN = 1.2.5rc3 +PNGMIN = 1.2.5 PNGVER = $(PNGMAJ).$(PNGMIN) CC=gcc @@ -29,8 +29,10 @@ WARNMORE= # -g -DPNG_DEBUG=5 CFLAGS=$(ABI) -I$(ZLIBINC) -O2 $(WARNMORE) -fPIC -mabi=n32 LDFLAGS=$(ABI) -L. -L$(ZLIBLIB) -lpng -lz -lm -LDSHARED=cc $(ABI) -shared -soname $(LIBNAME).so.$(PNGMAJ) -LDLEGACY=cc $(ABI) -shared -soname libpng.so.3 +LDSHARED=cc $(ABI) -shared -soname $(LIBNAME).so.$(PNGMAJ) \ + -set_version sgi$(PNGMAJ).0 +LDLEGACY=cc $(ABI) -shared -soname libpng.so.3 \ + -set_version sgi$3.0 # See "man dso" for info about shared objects RANLIB=echo @@ -76,11 +78,10 @@ ( cat scripts/libpng-config-head.in; \ echo prefix=\"$(prefix)\"; \ echo I_opts=\"-I$(INCPATH)/$(LIBNAME)\"; \ - echo cppflags=\"-DPNG_USE_PNGGCCRD -DPNG_NO_ASSEMBLER_CODE\"; \ echo ccopts=\"$(ABI)\"; \ echo ldopts=\"$(ABI)\"; \ - echo L_opts=\"-L$(LIBPATH) \"; \ - echo libdir=\"$(LIBPATH) \"; \ + echo L_opts=\"-L$(LIBPATH)\"; \ + echo libdir=\"$(LIBPATH)\"; \ echo libs=\"-lpng12 -lz -lm\"; \ cat scripts/libpng-config-body.in ) > libpng-config chmod +x libpng-config
diff --git a/scripts/makefile.sgi b/scripts/makefile.sgi index 88992c5..219b8ad 100644 --- a/scripts/makefile.sgi +++ b/scripts/makefile.sgi
@@ -5,7 +5,7 @@ LIBNAME=libpng12 PNGMAJ = 0 -PNGMIN = 1.2.5rc3 +PNGMIN = 1.2.5 PNGVER = $(PNGMAJ).$(PNGMIN) # Where make install puts libpng.a, libpng12.so, and libpng12/png.h @@ -30,11 +30,14 @@ WARNMORE=-fullwarn # Note: -KPIC is the default anyhow #CFLAGS= $(ABI) -I$(ZLIBINC) -O $(WARNMORE) -KPIC -DPNG_USE_PNGGCCRD # -g -DPNG_DEBUG=5 -CFLAGS=$(ABI) -I$(ZLIBINC) -O $(WARNMORE) -DPNG_USE_PNGGCCRD -DPNG_NO_ASSEMBLER_CODE +CFLAGS=$(ABI) -I$(ZLIBINC) -O $(WARNMORE) -DPNG_USE_PNGGCCRD \ + -DPNG_NO_ASSEMBLER_CODE LDFLAGS_A=$(ABI) -L. -L$(ZLIBLIB) -lpng12 -lz -lm LDFLAGS=$(ABI) -L. -L$(ZLIBLIB) -lpng -lz -lm -LDSHARED=cc $(ABI) -shared -soname $(LIBNAME).so.$(PNGMAJ) -LDLEGACY=cc $(ABI) -shared -soname libpng.so.3 +LDSHARED=cc $(ABI) -shared -soname $(LIBNAME).so.$(PNGMAJ) \ + -set_version sgi$(PNGMAJ).0 +LDLEGACY=cc $(ABI) -shared -soname libpng.so.3 \ + -set_version sgi$3.0 # See "man dso" for info about shared objects RANLIB=echo @@ -83,8 +86,8 @@ echo cppflags=\"-DPNG_USE_PNGGCCRD -DPNG_NO_ASSEMBLER_CODE\"; \ echo ccopts=\"$(ABI)\"; \ echo ldopts=\"$(ABI)\"; \ - echo L_opts=\"-L$(LIBPATH) \"; \ - echo libdir=\"$(LIBPATH) \"; \ + echo L_opts=\"-L$(LIBPATH)\"; \ + echo libdir=\"$(LIBPATH)\"; \ echo libs=\"-lpng12 -lz -lm\"; \ cat scripts/libpng-config-body.in ) > libpng-config chmod +x libpng-config
diff --git a/scripts/makefile.so9 b/scripts/makefile.so9 index ad25816..f1ca807 100644 --- a/scripts/makefile.so9 +++ b/scripts/makefile.so9
@@ -34,7 +34,7 @@ RANLIB=echo PNGMAJ = 0 -PNGMIN = 1.2.5rc3 +PNGMIN = 1.2.5 PNGVER = $(PNGMAJ).$(PNGMIN) LIBNAME = libpng12
diff --git a/scripts/makefile.solaris b/scripts/makefile.solaris index 5809239..9c5a844 100644 --- a/scripts/makefile.solaris +++ b/scripts/makefile.solaris
@@ -30,7 +30,7 @@ RANLIB=echo PNGMAJ = 0 -PNGMIN = 1.2.5rc3 +PNGMIN = 1.2.5 PNGVER = $(PNGMAJ).$(PNGMIN) LIBNAME = libpng12
diff --git a/scripts/pngdef.pas b/scripts/pngdef.pas index 6f4c7ab..6e20683 100644 --- a/scripts/pngdef.pas +++ b/scripts/pngdef.pas
@@ -7,7 +7,7 @@ interface const - PNG_LIBPNG_VER_STRING = '1.2.5rc3'; + PNG_LIBPNG_VER_STRING = '1.2.5'; PNG_LIBPNG_VER = 10205; type
diff --git a/scripts/pngos2.def b/scripts/pngos2.def index 006f2e4..3c4a3c8 100644 --- a/scripts/pngos2.def +++ b/scripts/pngos2.def
@@ -2,7 +2,7 @@ ; PNG.LIB module definition file for OS/2 ;---------------------------------------- -; Version 1.2.5rc3 +; Version 1.2.5 LIBRARY PNG DESCRIPTION "PNG image compression library for OS/2"