Imported from libpng-1.2.2beta3.tar
This commit is contained in:
parent
c6de22da1d
commit
c1bfe686ce
12
ANNOUNCE
12
ANNOUNCE
@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
Libpng 1.2.2beta2 - February 24, 2002
|
Libpng 1.2.2beta3 - March 7, 2002
|
||||||
|
|
||||||
This is not intended to be a public release. It will be replaced
|
This is not intended to be a public release. It will be replaced
|
||||||
within a few weeks by a public version or by another test version.
|
within a few weeks by a public version or by another test version.
|
||||||
@ -16,12 +16,20 @@ version 1.2.2beta1 [February 22, 2002]
|
|||||||
Revised calls to png_create_read_struct() and png_create_write_struct()
|
Revised calls to png_create_read_struct() and png_create_write_struct()
|
||||||
for simpler debugging.
|
for simpler debugging.
|
||||||
Revised png_zalloc() so zlib handles errors (uses PNG_FLAG_MALLOC_NULL_MEM_OK)
|
Revised png_zalloc() so zlib handles errors (uses PNG_FLAG_MALLOC_NULL_MEM_OK)
|
||||||
version 1.2.2beta2 [February 24, 2002]
|
version 1.2.2beta2 [February 23, 2002]
|
||||||
Check chunk_length and idat_size for invalid (over PNG_MAX_UINT) lengths.
|
Check chunk_length and idat_size for invalid (over PNG_MAX_UINT) lengths.
|
||||||
Check for invalid image dimensions in png_get_IHDR.
|
Check for invalid image dimensions in png_get_IHDR.
|
||||||
Added missing "fi;" in the install target of the SGI makefiles.
|
Added missing "fi;" in the install target of the SGI makefiles.
|
||||||
Added install-static to all makefiles that make shared libraries.
|
Added install-static to all makefiles that make shared libraries.
|
||||||
Always do gamma compensation when image is partially transparent.
|
Always do gamma compensation when image is partially transparent.
|
||||||
|
version 1.2.2beta3 [March 7, 2002]
|
||||||
|
Modified shared-library makefiles to install pkgconfig/libpngNN.pc.
|
||||||
|
Export (with PNGAPI) png_zalloc, png_zfree, and png_handle_as_unknown
|
||||||
|
Removed unused png_write_destroy_info prototype from png.h
|
||||||
|
Eliminated incorrect use of width_mmx from pnggccrd.c in pixel_bytes == 8 case
|
||||||
|
Added install-shared target to all makefiles that make shared libraries.
|
||||||
|
Stopped a double free of palette, hist, and trans when not using free_me.
|
||||||
|
Added makefile.32sunu for Sun Ultra 32 and makefile.64sunu for Sun Ultra 64.
|
||||||
|
|
||||||
Send comments/corrections/commendations to
|
Send comments/corrections/commendations to
|
||||||
png-implement@ccrc.wustl.edu or to randeg@alum.rpi.edu
|
png-implement@ccrc.wustl.edu or to randeg@alum.rpi.edu
|
||||||
|
10
CHANGES
10
CHANGES
@ -1024,12 +1024,20 @@ version 1.2.2beta1 [February 22, 2002]
|
|||||||
Revised calls to png_create_read_struct() and png_create_write_struct()
|
Revised calls to png_create_read_struct() and png_create_write_struct()
|
||||||
for simpler debugging.
|
for simpler debugging.
|
||||||
Revised png_zalloc() so zlib handles errors (uses PNG_FLAG_MALLOC_NULL_MEM_OK)
|
Revised png_zalloc() so zlib handles errors (uses PNG_FLAG_MALLOC_NULL_MEM_OK)
|
||||||
version 1.2.2beta2 [February 24, 2002]
|
version 1.2.2beta2 [February 23, 2002]
|
||||||
Check chunk_length and idat_size for invalid (over PNG_MAX_UINT) lengths.
|
Check chunk_length and idat_size for invalid (over PNG_MAX_UINT) lengths.
|
||||||
Check for invalid image dimensions in png_get_IHDR.
|
Check for invalid image dimensions in png_get_IHDR.
|
||||||
Added missing "fi;" in the install target of the SGI makefiles.
|
Added missing "fi;" in the install target of the SGI makefiles.
|
||||||
Added install-static to all makefiles that make shared libraries.
|
Added install-static to all makefiles that make shared libraries.
|
||||||
Always do gamma compensation when image is partially transparent.
|
Always do gamma compensation when image is partially transparent.
|
||||||
|
version 1.2.2beta3 [March 7, 2002]
|
||||||
|
Modified shared-library makefiles to install pkgconfig/libpngNN.pc.
|
||||||
|
Export (with PNGAPI) png_zalloc, png_zfree, and png_handle_as_unknown
|
||||||
|
Removed unused png_write_destroy_info prototype from png.h
|
||||||
|
Eliminated incorrect use of width_mmx from pnggccrd.c in pixel_bytes == 8 case
|
||||||
|
Added install-shared target to all makefiles that make shared libraries.
|
||||||
|
Stopped a double free of palette, hist, and trans when not using free_me.
|
||||||
|
Added makefile.32sunu for Sun Ultra 32 and makefile.64sunu for Sun Ultra 64.
|
||||||
|
|
||||||
Send comments/corrections/commendations to
|
Send comments/corrections/commendations to
|
||||||
png-implement@ccrc.wustl.edu or to randeg@alum.rpi.edu
|
png-implement@ccrc.wustl.edu or to randeg@alum.rpi.edu
|
||||||
|
17
INSTALL
17
INSTALL
@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
Installing libpng version 1.2.2beta2 - February 24, 2002
|
Installing libpng version 1.2.2beta3 - March 7, 2002
|
||||||
|
|
||||||
Before installing libpng, you must first install zlib. zlib
|
Before installing libpng, you must first install zlib. zlib
|
||||||
can usually be found wherever you got libpng. zlib can be
|
can usually be found wherever you got libpng. zlib can be
|
||||||
@ -10,7 +10,7 @@ zlib.h and zconf.h include files that correspond to the
|
|||||||
version of zlib that's installed.
|
version of zlib that's installed.
|
||||||
|
|
||||||
You can rename the directories that you downloaded (they
|
You can rename the directories that you downloaded (they
|
||||||
might be called "libpng-1.2.2beta2" or "lpng109" and "zlib-1.1.3"
|
might be called "libpng-1.2.2beta3" or "lpng109" and "zlib-1.1.3"
|
||||||
or "zlib113") so that you have directories called "zlib" and "libpng".
|
or "zlib113") so that you have directories called "zlib" and "libpng".
|
||||||
|
|
||||||
Your directory structure should look like this:
|
Your directory structure should look like this:
|
||||||
@ -64,8 +64,8 @@ The files that are presently available in the scripts directory
|
|||||||
include
|
include
|
||||||
|
|
||||||
makefile.std => Generic UNIX makefile (cc, creates static libpng.a)
|
makefile.std => Generic UNIX makefile (cc, creates static libpng.a)
|
||||||
makefile.linux => Linux/ELF makefile (gcc, creates libpng.so.0.1.2.2beta2)
|
makefile.linux => Linux/ELF makefile (gcc, creates libpng12.so.0.1.2.2beta3)
|
||||||
makefile.gcmmx => Linux/ELF makefile (gcc, creates libpng.so.0.1.2.2beta2,
|
makefile.gcmmx => Linux/ELF makefile (gcc, creates libpng12.so.0.1.2.2beta3,
|
||||||
uses assembler code tuned for Intel MMX platform)
|
uses assembler code tuned for Intel MMX platform)
|
||||||
makefile.gcc => Generic makefile (gcc, creates static libpng.a)
|
makefile.gcc => Generic makefile (gcc, creates static libpng.a)
|
||||||
makefile.knr => Archaic UNIX Makefile that converts files with
|
makefile.knr => Archaic UNIX Makefile that converts files with
|
||||||
@ -82,11 +82,14 @@ include
|
|||||||
libpng.icc => Project file for IBM VisualAge/C++ version 4.0 or later
|
libpng.icc => Project file for IBM VisualAge/C++ version 4.0 or later
|
||||||
makefile.macosx => MACOS X Makefile
|
makefile.macosx => MACOS X Makefile
|
||||||
makefile.netbsd => NetBSD/cc makefile, uses PNGGCCRD
|
makefile.netbsd => NetBSD/cc makefile, uses PNGGCCRD
|
||||||
|
makefile.openbsd => OpenBSD makefile
|
||||||
makefile.sgi => Silicon Graphics IRIX makefile (cc, creates static lib)
|
makefile.sgi => Silicon Graphics IRIX makefile (cc, creates static lib)
|
||||||
makefile.sggcc => Silicon Graphics (gcc, creates libpng.so.0.1.2.2beta2)
|
makefile.sggcc => Silicon Graphics (gcc, creates libpng12.so.0.1.2.2beta3)
|
||||||
makefile.sunos => Sun makefile
|
makefile.sunos => Sun makefile
|
||||||
makefile.solaris => Solaris 2.X makefile (gcc, creates libpng.so.0.1.2.2beta2)
|
makefile.solaris => Solaris 2.X makefile (gcc, creates libpng12.so.0.1.2.2beta3)
|
||||||
makefile.so9 => Solaris 9 makefile (gcc, creates libpng.so.0.1.2.2beta2)
|
makefile.so9 => Solaris 9 makefile (gcc, creates libpng12.so.0.1.2.2beta3)
|
||||||
|
makefile.32sunu => Sun Ultra 32-bit makefile
|
||||||
|
makefile.64sunu => Sun Ultra 64-bit makefile
|
||||||
makefile.sco => For SCO OSr5 ELF and Unixware 7 with Native cc
|
makefile.sco => For SCO OSr5 ELF and Unixware 7 with Native cc
|
||||||
makefile.mips => MIPS makefile
|
makefile.mips => MIPS makefile
|
||||||
makefile.acorn => Acorn makefile
|
makefile.acorn => Acorn makefile
|
||||||
|
2
KNOWNBUG
2
KNOWNBUG
@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
Known bugs in libpng version 1.2.2beta2
|
Known bugs in libpng version 1.2.2beta3
|
||||||
|
|
||||||
1. April 22, 2001: pnggccrd.c has been reported to crash on NetBSD when
|
1. April 22, 2001: pnggccrd.c has been reported to crash on NetBSD when
|
||||||
reading interlaced PNG files, when assembler code is enabled.
|
reading interlaced PNG files, when assembler code is enabled.
|
||||||
|
4
LICENSE
4
LICENSE
@ -8,7 +8,7 @@ COPYRIGHT NOTICE, DISCLAIMER, and LICENSE:
|
|||||||
If you modify libpng you may insert additional notices immediately following
|
If you modify libpng you may insert additional notices immediately following
|
||||||
this sentence.
|
this sentence.
|
||||||
|
|
||||||
libpng versions 1.0.7, July 1, 2000, through 1.2.2beta2, February 24, 2002, are
|
libpng versions 1.0.7, July 1, 2000, through 1.2.2beta3, March 7, 2002, are
|
||||||
Copyright (c) 2000 Glenn Randers-Pehrson
|
Copyright (c) 2000 Glenn Randers-Pehrson
|
||||||
and are distributed according to the same disclaimer and license as libpng-1.0.6
|
and are distributed according to the same disclaimer and license as libpng-1.0.6
|
||||||
with the following individuals added to the list of Contributing Authors
|
with the following individuals added to the list of Contributing Authors
|
||||||
@ -99,4 +99,4 @@ certification mark of the Open Source Initiative.
|
|||||||
|
|
||||||
Glenn Randers-Pehrson
|
Glenn Randers-Pehrson
|
||||||
randeg@alum.rpi.edu
|
randeg@alum.rpi.edu
|
||||||
February 24, 2002
|
March 7, 2002
|
||||||
|
15
README
15
README
@ -1,4 +1,4 @@
|
|||||||
README for libpng 1.2.2beta2 - February 24, 2002 (shared library 2.1)
|
README for libpng 1.2.2beta3 - March 7, 2002 (shared library 2.1)
|
||||||
See the note about version numbers near the top of png.h
|
See the note about version numbers near the top of png.h
|
||||||
|
|
||||||
See INSTALL for instructions on how to install libpng.
|
See INSTALL for instructions on how to install libpng.
|
||||||
@ -187,9 +187,9 @@ Files in this distribution:
|
|||||||
descrip.mms => VMS makefile for MMS or MMK
|
descrip.mms => VMS makefile for MMS or MMK
|
||||||
makefile.std => Generic UNIX makefile (cc, creates static libpng.a)
|
makefile.std => Generic UNIX makefile (cc, creates static libpng.a)
|
||||||
makefile.linux => Linux/ELF makefile
|
makefile.linux => Linux/ELF makefile
|
||||||
(gcc, creates libpng.so.0.1.2.2beta2)
|
(gcc, creates libpng12.so.0.1.2.2beta3)
|
||||||
makefile.gcmmx => Linux/ELF makefile (gcc, creates
|
makefile.gcmmx => Linux/ELF makefile (gcc, creates
|
||||||
libpng.so.0.1.2.2beta2, uses assembler code
|
libpng12.so.0.1.2.2beta3, uses assembler code
|
||||||
tuned for Intel MMX platform)
|
tuned for Intel MMX platform)
|
||||||
makefile.gcc => Generic makefile (gcc, creates static libpng.a)
|
makefile.gcc => Generic makefile (gcc, creates static libpng.a)
|
||||||
makefile.knr => Archaic UNIX Makefile that converts files with
|
makefile.knr => Archaic UNIX Makefile that converts files with
|
||||||
@ -206,13 +206,16 @@ Files in this distribution:
|
|||||||
libpng.icc => Project file, IBM VisualAge/C++ 4.0 or later
|
libpng.icc => Project file, IBM VisualAge/C++ 4.0 or later
|
||||||
makefile.macosx => MACOS X Makefile
|
makefile.macosx => MACOS X Makefile
|
||||||
makefile.netbsd => NetBSD/cc makefile, uses PNGGCCRD
|
makefile.netbsd => NetBSD/cc makefile, uses PNGGCCRD
|
||||||
|
makefile.openbsd => OpenBSD makefile
|
||||||
makefile.sgi => Silicon Graphics IRIX (cc, creates static lib)
|
makefile.sgi => Silicon Graphics IRIX (cc, creates static lib)
|
||||||
makefile.sggcc => Silicon Graphics (gcc, creates libpng.so.0.1.2.2beta2)
|
makefile.sggcc => Silicon Graphics (gcc, creates libpng12.so.0.1.2.2beta3)
|
||||||
makefile.sunos => Sun makefile
|
makefile.sunos => Sun makefile
|
||||||
makefile.solaris => Solaris 2.X makefile
|
makefile.solaris => Solaris 2.X makefile
|
||||||
(gcc, creates libpng.so.0.1.2.2beta2)
|
(gcc, creates libpng12.so.0.1.2.2beta3)
|
||||||
makefile.so9 => Solaris 9 makefile
|
makefile.so9 => Solaris 9 makefile
|
||||||
(gcc, creates libpng.so.0.1.2.2beta2)
|
(gcc, creates libpng12.so.0.1.2.2beta3)
|
||||||
|
makefile.32sunu => Sun Ultra 32-bit makefile
|
||||||
|
makefile.64sunu => Sun Ultra 64-bit makefile
|
||||||
makefile.sco => For SCO OSr5 ELF and Unixware 7 with Native cc
|
makefile.sco => For SCO OSr5 ELF and Unixware 7 with Native cc
|
||||||
makefile.mips => MIPS makefile
|
makefile.mips => MIPS makefile
|
||||||
makefile.acorn => Acorn makefile
|
makefile.acorn => Acorn makefile
|
||||||
|
4
Y2KINFO
4
Y2KINFO
@ -1,13 +1,13 @@
|
|||||||
Y2K compliance in libpng:
|
Y2K compliance in libpng:
|
||||||
=========================
|
=========================
|
||||||
|
|
||||||
February 24, 2002
|
March 7, 2002
|
||||||
|
|
||||||
Since the PNG Development group is an ad-hoc body, we can't make
|
Since the PNG Development group is an ad-hoc body, we can't make
|
||||||
an official declaration.
|
an official declaration.
|
||||||
|
|
||||||
This is your unofficial assurance that libpng from version 0.71 and
|
This is your unofficial assurance that libpng from version 0.71 and
|
||||||
upward through 1.2.2beta2 are Y2K compliant. It is my belief that earlier
|
upward through 1.2.2beta3 are Y2K compliant. It is my belief that earlier
|
||||||
versions were also Y2K compliant.
|
versions were also Y2K compliant.
|
||||||
|
|
||||||
Libpng only has three year fields. One is a 2-byte unsigned integer
|
Libpng only has three year fields. One is a 2-byte unsigned integer
|
||||||
|
2
configure
vendored
2
configure
vendored
@ -1,5 +1,5 @@
|
|||||||
echo "
|
echo "
|
||||||
There is no \"configure\" script for Libpng-1.2.2beta2. Instead, please
|
There is no \"configure\" script for Libpng-1.2.2beta3. Instead, please
|
||||||
copy the appropriate makefile for your system from the \"scripts\"
|
copy the appropriate makefile for your system from the \"scripts\"
|
||||||
directory. Read the INSTALL file for more details.
|
directory. Read the INSTALL file for more details.
|
||||||
"
|
"
|
||||||
|
34
libpng.3
34
libpng.3
@ -1,6 +1,6 @@
|
|||||||
.TH LIBPNG 3 "February 24, 2002"
|
.TH LIBPNG 3 "March 7, 2002"
|
||||||
.SH NAME
|
.SH NAME
|
||||||
libpng \- Portable Network Graphics (PNG) Reference Library 1.2.2beta2
|
libpng \- Portable Network Graphics (PNG) Reference Library 1.2.2beta3
|
||||||
.SH SYNOPSIS
|
.SH SYNOPSIS
|
||||||
\fI\fB
|
\fI\fB
|
||||||
|
|
||||||
@ -318,6 +318,10 @@ libpng \- Portable Network Graphics (PNG) Reference Library 1.2.2beta2
|
|||||||
|
|
||||||
\fI\fB
|
\fI\fB
|
||||||
|
|
||||||
|
\fBint png_handle_as_unknown (png_structp \fP\fIpng_ptr\fP\fB, png_bytep \fIchunk_name\fP\fB);\fP
|
||||||
|
|
||||||
|
\fI\fB
|
||||||
|
|
||||||
\fBvoid png_init_io (png_structp \fP\fIpng_ptr\fP\fB, FILE \fI*fp\fP\fB);\fP
|
\fBvoid png_init_io (png_structp \fP\fIpng_ptr\fP\fB, FILE \fI*fp\fP\fB);\fP
|
||||||
|
|
||||||
\fI\fB
|
\fI\fB
|
||||||
@ -732,10 +736,6 @@ libpng \- Portable Network Graphics (PNG) Reference Library 1.2.2beta2
|
|||||||
|
|
||||||
\fI\fB
|
\fI\fB
|
||||||
|
|
||||||
\fBvoid png_write_destroy_info (png_infop \fIinfo_ptr\fP\fB);\fP
|
|
||||||
|
|
||||||
\fI\fB
|
|
||||||
|
|
||||||
\fBvoid png_write_end (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fIinfo_ptr\fP\fB);\fP
|
\fBvoid png_write_end (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fIinfo_ptr\fP\fB);\fP
|
||||||
|
|
||||||
\fI\fB
|
\fI\fB
|
||||||
@ -776,6 +776,14 @@ libpng \- Portable Network Graphics (PNG) Reference Library 1.2.2beta2
|
|||||||
|
|
||||||
\fI\fB
|
\fI\fB
|
||||||
|
|
||||||
|
\fBvoidpf png_zalloc (voidpf \fP\fIpng_ptr\fP\fB, uInt \fP\fIitems\fP\fB, uInt \fIsize\fP\fB);\fP
|
||||||
|
|
||||||
|
\fI\fB
|
||||||
|
|
||||||
|
\fBvoid png_zfree (voidpf \fP\fIpng_ptr\fP\fB, voidpf \fIptr\fP\fB);\fP
|
||||||
|
|
||||||
|
\fI\fB
|
||||||
|
|
||||||
.SH DESCRIPTION
|
.SH DESCRIPTION
|
||||||
The
|
The
|
||||||
.I libpng
|
.I libpng
|
||||||
@ -787,7 +795,7 @@ Following is a copy of the libpng.txt file that accompanies libpng.
|
|||||||
.SH LIBPNG.TXT
|
.SH LIBPNG.TXT
|
||||||
libpng.txt - A description on how to use and modify libpng
|
libpng.txt - A description on how to use and modify libpng
|
||||||
|
|
||||||
libpng version 1.2.2beta2 - February 24, 2002
|
libpng version 1.2.2beta3 - March 7, 2002
|
||||||
Updated and distributed by Glenn Randers-Pehrson
|
Updated and distributed by Glenn Randers-Pehrson
|
||||||
<randeg@alum.rpi.edu>
|
<randeg@alum.rpi.edu>
|
||||||
Copyright (c) 1998-2002 Glenn Randers-Pehrson
|
Copyright (c) 1998-2002 Glenn Randers-Pehrson
|
||||||
@ -3635,13 +3643,13 @@ application:
|
|||||||
|
|
||||||
.SH IX. Y2K Compliance in libpng
|
.SH IX. Y2K Compliance in libpng
|
||||||
|
|
||||||
February 24, 2002
|
March 7, 2002
|
||||||
|
|
||||||
Since the PNG Development group is an ad-hoc body, we can't make
|
Since the PNG Development group is an ad-hoc body, we can't make
|
||||||
an official declaration.
|
an official declaration.
|
||||||
|
|
||||||
This is your unofficial assurance that libpng from version 0.71 and
|
This is your unofficial assurance that libpng from version 0.71 and
|
||||||
upward through 1.2.2beta2 are Y2K compliant. It is my belief that earlier
|
upward through 1.2.2beta3 are Y2K compliant. It is my belief that earlier
|
||||||
versions were also Y2K compliant.
|
versions were also Y2K compliant.
|
||||||
|
|
||||||
Libpng only has three year fields. One is a 2-byte unsigned integer that
|
Libpng only has three year fields. One is a 2-byte unsigned integer that
|
||||||
@ -3764,7 +3772,7 @@ the first widely used release:
|
|||||||
1.2.1beta-4 3 10201 3.1.2.1beta1-4
|
1.2.1beta-4 3 10201 3.1.2.1beta1-4
|
||||||
1.2.1rc1-2 3 10201 3.1.2.1rc1-2
|
1.2.1rc1-2 3 10201 3.1.2.1rc1-2
|
||||||
1.2.1 3 10201 3.1.2.1
|
1.2.1 3 10201 3.1.2.1
|
||||||
1.2.2beta1-2 12 10202 12.so.0.1.2.2beta1-2
|
1.2.2beta1-3 12 10202 12.so.0.1.2.2beta1-3
|
||||||
|
|
||||||
Henceforth the source version will match the shared-library minor
|
Henceforth the source version will match the shared-library minor
|
||||||
and patch numbers; the shared-library major version number will be
|
and patch numbers; the shared-library major version number will be
|
||||||
@ -3822,7 +3830,7 @@ possible without all of you.
|
|||||||
|
|
||||||
Thanks to Frank J. T. Wojcik for helping with the documentation.
|
Thanks to Frank J. T. Wojcik for helping with the documentation.
|
||||||
|
|
||||||
Libpng version 1.2.2beta2 - February 24, 2002:
|
Libpng version 1.2.2beta3 - March 7, 2002:
|
||||||
Initially created in 1995 by Guy Eric Schalnat, then of Group 42, Inc.
|
Initially created in 1995 by Guy Eric Schalnat, then of Group 42, Inc.
|
||||||
Currently maintained by Glenn Randers-Pehrson (randeg@alum.rpi.edu).
|
Currently maintained by Glenn Randers-Pehrson (randeg@alum.rpi.edu).
|
||||||
|
|
||||||
@ -3839,7 +3847,7 @@ included in the libpng distribution, the latter shall prevail.)
|
|||||||
If you modify libpng you may insert additional notices immediately following
|
If you modify libpng you may insert additional notices immediately following
|
||||||
this sentence.
|
this sentence.
|
||||||
|
|
||||||
libpng versions 1.0.7, July 1, 2000, through 1.2.2beta2, February 24, 2002, are
|
libpng versions 1.0.7, July 1, 2000, through 1.2.2beta3, March 7, 2002, are
|
||||||
Copyright (c) 2000-2002 Glenn Randers-Pehrson, and are
|
Copyright (c) 2000-2002 Glenn Randers-Pehrson, and are
|
||||||
distributed according to the same disclaimer and license as libpng-1.0.6
|
distributed according to the same disclaimer and license as libpng-1.0.6
|
||||||
with the following individuals added to the list of Contributing Authors
|
with the following individuals added to the list of Contributing Authors
|
||||||
@ -3931,7 +3939,7 @@ certification mark of the Open Source Initiative.
|
|||||||
|
|
||||||
Glenn Randers-Pehrson
|
Glenn Randers-Pehrson
|
||||||
randeg@alum.rpi.edu
|
randeg@alum.rpi.edu
|
||||||
February 24, 2002
|
March 7, 2002
|
||||||
|
|
||||||
.\" end of man page
|
.\" end of man page
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
libpng.txt - A description on how to use and modify libpng
|
libpng.txt - A description on how to use and modify libpng
|
||||||
|
|
||||||
libpng version 1.2.2beta2 - February 24, 2002
|
libpng version 1.2.2beta3 - March 7, 2002
|
||||||
Updated and distributed by Glenn Randers-Pehrson
|
Updated and distributed by Glenn Randers-Pehrson
|
||||||
<randeg@alum.rpi.edu>
|
<randeg@alum.rpi.edu>
|
||||||
Copyright (c) 1998-2002 Glenn Randers-Pehrson
|
Copyright (c) 1998-2002 Glenn Randers-Pehrson
|
||||||
@ -2848,13 +2848,13 @@ application:
|
|||||||
|
|
||||||
IX. Y2K Compliance in libpng
|
IX. Y2K Compliance in libpng
|
||||||
|
|
||||||
February 24, 2002
|
March 7, 2002
|
||||||
|
|
||||||
Since the PNG Development group is an ad-hoc body, we can't make
|
Since the PNG Development group is an ad-hoc body, we can't make
|
||||||
an official declaration.
|
an official declaration.
|
||||||
|
|
||||||
This is your unofficial assurance that libpng from version 0.71 and
|
This is your unofficial assurance that libpng from version 0.71 and
|
||||||
upward through 1.2.2beta2 are Y2K compliant. It is my belief that earlier
|
upward through 1.2.2beta3 are Y2K compliant. It is my belief that earlier
|
||||||
versions were also Y2K compliant.
|
versions were also Y2K compliant.
|
||||||
|
|
||||||
Libpng only has three year fields. One is a 2-byte unsigned integer that
|
Libpng only has three year fields. One is a 2-byte unsigned integer that
|
||||||
|
16
libpngpf.3
16
libpngpf.3
@ -1,6 +1,6 @@
|
|||||||
.TH LIBPNGPF 3 "February 24, 2002"
|
.TH LIBPNGPF 3 "March 7, 2002"
|
||||||
.SH NAME
|
.SH NAME
|
||||||
libpng \- Portable Network Graphics (PNG) Reference Library 1.2.2beta2
|
libpng \- Portable Network Graphics (PNG) Reference Library 1.2.2beta3
|
||||||
(private functions)
|
(private functions)
|
||||||
.SH SYNOPSIS
|
.SH SYNOPSIS
|
||||||
\fB#include <png.h>\fP
|
\fB#include <png.h>\fP
|
||||||
@ -191,10 +191,6 @@ libpng \- Portable Network Graphics (PNG) Reference Library 1.2.2beta2
|
|||||||
|
|
||||||
\fI\fB
|
\fI\fB
|
||||||
|
|
||||||
\fBint png_handle_as_unknown (png_structp \fP\fIpng_ptr\fP\fB, png_bytep \fIchunk_name\fP\fB);\fP
|
|
||||||
|
|
||||||
\fI\fB
|
|
||||||
|
|
||||||
\fBvoid png_handle_bKGD (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fP\fIinfo_ptr\fP\fB, png_uint_32 \fIlength\fP\fB);\fP
|
\fBvoid png_handle_bKGD (png_structp \fP\fIpng_ptr\fP\fB, png_infop \fP\fIinfo_ptr\fP\fB, png_uint_32 \fIlength\fP\fB);\fP
|
||||||
|
|
||||||
\fI\fB
|
\fI\fB
|
||||||
@ -535,14 +531,6 @@ libpng \- Portable Network Graphics (PNG) Reference Library 1.2.2beta2
|
|||||||
|
|
||||||
\fI\fB
|
\fI\fB
|
||||||
|
|
||||||
\fBvoidpf png_zalloc (voidpf \fP\fIpng_ptr\fP\fB, uInt \fP\fIitems\fP\fB, uInt \fIsize\fP\fB);\fP
|
|
||||||
|
|
||||||
\fI\fB
|
|
||||||
|
|
||||||
\fBvoid png_zfree (voidpf \fP\fIpng_ptr\fP\fB, voidpf \fIptr\fP\fB);\fP
|
|
||||||
|
|
||||||
\fI\fB
|
|
||||||
|
|
||||||
.SH DESCRIPTION
|
.SH DESCRIPTION
|
||||||
The functions listed above are used privately by libpng
|
The functions listed above are used privately by libpng
|
||||||
and are not recommended for use by applications. They are
|
and are not recommended for use by applications. They are
|
||||||
|
2
png.5
2
png.5
@ -1,4 +1,4 @@
|
|||||||
.TH PNG 5 "February 24, 2002"
|
.TH PNG 5 "March 7, 2002"
|
||||||
.SH NAME
|
.SH NAME
|
||||||
png \- Portable Network Graphics (PNG) format
|
png \- Portable Network Graphics (PNG) format
|
||||||
.SH DESCRIPTION
|
.SH DESCRIPTION
|
||||||
|
27
png.c
27
png.c
@ -1,7 +1,7 @@
|
|||||||
|
|
||||||
/* png.c - location for general purpose libpng functions
|
/* png.c - location for general purpose libpng functions
|
||||||
*
|
*
|
||||||
* libpng version 1.2.2beta2 - February 24, 2002
|
* libpng version 1.2.2beta3 - March 7, 2002
|
||||||
* Copyright (c) 1998-2002 Glenn Randers-Pehrson
|
* Copyright (c) 1998-2002 Glenn Randers-Pehrson
|
||||||
* (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
|
* (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
|
||||||
* (Version 0.88 Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc.)
|
* (Version 0.88 Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc.)
|
||||||
@ -13,14 +13,14 @@
|
|||||||
#include "png.h"
|
#include "png.h"
|
||||||
|
|
||||||
/* Generate a compiler error if there is an old png.h in the search path. */
|
/* Generate a compiler error if there is an old png.h in the search path. */
|
||||||
typedef version_1_2_2beta2 Your_png_h_is_not_version_1_2_2beta2;
|
typedef version_1_2_2beta3 Your_png_h_is_not_version_1_2_2beta3;
|
||||||
|
|
||||||
/* Version information for C files. This had better match the version
|
/* Version information for C files. This had better match the version
|
||||||
* string defined in png.h. */
|
* string defined in png.h. */
|
||||||
|
|
||||||
#ifdef PNG_USE_GLOBAL_ARRAYS
|
#ifdef PNG_USE_GLOBAL_ARRAYS
|
||||||
/* png_libpng_ver was changed to a function in version 1.0.5c */
|
/* png_libpng_ver was changed to a function in version 1.0.5c */
|
||||||
const char png_libpng_ver[18] = "1.2.2beta2";
|
const char png_libpng_ver[18] = "1.2.2beta3";
|
||||||
|
|
||||||
/* png_sig was changed to a function in version 1.0.5c */
|
/* png_sig was changed to a function in version 1.0.5c */
|
||||||
/* Place to hold the signature string for a PNG file. */
|
/* Place to hold the signature string for a PNG file. */
|
||||||
@ -135,7 +135,7 @@ png_check_sig(png_bytep sig, int num)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Function to allocate memory for zlib and clear it to 0. */
|
/* Function to allocate memory for zlib and clear it to 0. */
|
||||||
voidpf /* PRIVATE */
|
voidpf PNGAPI
|
||||||
png_zalloc(voidpf png_ptr, uInt items, uInt size)
|
png_zalloc(voidpf png_ptr, uInt items, uInt size)
|
||||||
{
|
{
|
||||||
png_uint_32 num_bytes = (png_uint_32)items * size;
|
png_uint_32 num_bytes = (png_uint_32)items * size;
|
||||||
@ -163,7 +163,7 @@ png_zalloc(voidpf png_ptr, uInt items, uInt size)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* function to free memory for zlib */
|
/* function to free memory for zlib */
|
||||||
void /* PRIVATE */
|
void PNGAPI
|
||||||
png_zfree(voidpf png_ptr, voidpf ptr)
|
png_zfree(voidpf png_ptr, voidpf ptr)
|
||||||
{
|
{
|
||||||
png_free((png_structp)png_ptr, (png_voidp)ptr);
|
png_free((png_structp)png_ptr, (png_voidp)ptr);
|
||||||
@ -351,6 +351,9 @@ if ((mask & PNG_FREE_TRNS) && (png_ptr->flags & PNG_FLAG_FREE_TRNS))
|
|||||||
{
|
{
|
||||||
png_free(png_ptr, info_ptr->trans);
|
png_free(png_ptr, info_ptr->trans);
|
||||||
info_ptr->valid &= ~PNG_INFO_tRNS;
|
info_ptr->valid &= ~PNG_INFO_tRNS;
|
||||||
|
#ifndef PNG_FREE_ME_SUPPORTED
|
||||||
|
png_ptr->flags &= ~PNG_FLAG_FREE_TRNS;
|
||||||
|
#endif
|
||||||
info_ptr->trans = NULL;
|
info_ptr->trans = NULL;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
@ -494,6 +497,9 @@ if ((mask & PNG_FREE_HIST) && (png_ptr->flags & PNG_FLAG_FREE_HIST))
|
|||||||
png_free(png_ptr, info_ptr->hist);
|
png_free(png_ptr, info_ptr->hist);
|
||||||
info_ptr->hist = NULL;
|
info_ptr->hist = NULL;
|
||||||
info_ptr->valid &= ~PNG_INFO_hIST;
|
info_ptr->valid &= ~PNG_INFO_hIST;
|
||||||
|
#ifndef PNG_FREE_ME_SUPPORTED
|
||||||
|
png_ptr->flags &= ~PNG_FLAG_FREE_HIST;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -507,6 +513,9 @@ if ((mask & PNG_FREE_PLTE) && (png_ptr->flags & PNG_FLAG_FREE_PLTE))
|
|||||||
png_zfree(png_ptr, info_ptr->palette);
|
png_zfree(png_ptr, info_ptr->palette);
|
||||||
info_ptr->palette = NULL;
|
info_ptr->palette = NULL;
|
||||||
info_ptr->valid &= ~PNG_INFO_PLTE;
|
info_ptr->valid &= ~PNG_INFO_PLTE;
|
||||||
|
#ifndef PNG_FREE_ME_SUPPORTED
|
||||||
|
png_ptr->flags &= ~PNG_FLAG_FREE_PLTE;
|
||||||
|
#endif
|
||||||
info_ptr->num_palette = 0;
|
info_ptr->num_palette = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -651,7 +660,7 @@ png_charp PNGAPI
|
|||||||
png_get_copyright(png_structp png_ptr)
|
png_get_copyright(png_structp png_ptr)
|
||||||
{
|
{
|
||||||
if (png_ptr != NULL || png_ptr == NULL) /* silence compiler warning */
|
if (png_ptr != NULL || png_ptr == NULL) /* silence compiler warning */
|
||||||
return ((png_charp) "\n libpng version 1.2.2beta2 - February 24, 2002\n\
|
return ((png_charp) "\n libpng version 1.2.2beta3 - March 7, 2002\n\
|
||||||
Copyright (c) 1998-2002 Glenn Randers-Pehrson\n\
|
Copyright (c) 1998-2002 Glenn Randers-Pehrson\n\
|
||||||
Copyright (c) 1996, 1997 Andreas Dilger\n\
|
Copyright (c) 1996, 1997 Andreas Dilger\n\
|
||||||
Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc.\n");
|
Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc.\n");
|
||||||
@ -669,8 +678,8 @@ png_get_libpng_ver(png_structp png_ptr)
|
|||||||
{
|
{
|
||||||
/* Version of *.c files used when building libpng */
|
/* Version of *.c files used when building libpng */
|
||||||
if(png_ptr != NULL) /* silence compiler warning about unused png_ptr */
|
if(png_ptr != NULL) /* silence compiler warning about unused png_ptr */
|
||||||
return((png_charp) "1.2.2beta2");
|
return((png_charp) "1.2.2beta3");
|
||||||
return((png_charp) "1.2.2beta2");
|
return((png_charp) "1.2.2beta3");
|
||||||
}
|
}
|
||||||
|
|
||||||
png_charp PNGAPI
|
png_charp PNGAPI
|
||||||
@ -692,7 +701,7 @@ png_get_header_version(png_structp png_ptr)
|
|||||||
}
|
}
|
||||||
|
|
||||||
#ifdef PNG_HANDLE_AS_UNKNOWN_SUPPORTED
|
#ifdef PNG_HANDLE_AS_UNKNOWN_SUPPORTED
|
||||||
int /* PRIVATE */
|
int PNGAPI
|
||||||
png_handle_as_unknown(png_structp png_ptr, png_bytep chunk_name)
|
png_handle_as_unknown(png_structp png_ptr, png_bytep chunk_name)
|
||||||
{
|
{
|
||||||
/* check chunk_name and return "keep" value if it's on the list, else 0 */
|
/* check chunk_name and return "keep" value if it's on the list, else 0 */
|
||||||
|
47
png.h
47
png.h
@ -1,7 +1,7 @@
|
|||||||
|
|
||||||
/* png.h - header file for PNG reference library
|
/* png.h - header file for PNG reference library
|
||||||
*
|
*
|
||||||
* libpng version 1.2.2beta2 - February 24, 2002
|
* libpng version 1.2.2beta3 - March 7, 2002
|
||||||
* Copyright (c) 1998-2002 Glenn Randers-Pehrson
|
* Copyright (c) 1998-2002 Glenn Randers-Pehrson
|
||||||
* (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
|
* (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
|
||||||
* (Version 0.88 Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc.)
|
* (Version 0.88 Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc.)
|
||||||
@ -9,7 +9,7 @@
|
|||||||
* Authors and maintainers:
|
* Authors and maintainers:
|
||||||
* libpng versions 0.71, May 1995, through 0.88, January 1996: Guy Schalnat
|
* libpng versions 0.71, May 1995, through 0.88, January 1996: Guy Schalnat
|
||||||
* libpng versions 0.89c, June 1996, through 0.96, May 1997: Andreas Dilger
|
* libpng versions 0.89c, June 1996, through 0.96, May 1997: Andreas Dilger
|
||||||
* libpng versions 0.97, January 1998, through 1.2.2beta2 - February 24, 2002: Glenn
|
* libpng versions 0.97, January 1998, through 1.2.2beta3 - March 7, 2002: Glenn
|
||||||
* See also "Contributing Authors", below.
|
* See also "Contributing Authors", below.
|
||||||
*
|
*
|
||||||
* Note about libpng version numbers:
|
* Note about libpng version numbers:
|
||||||
@ -81,7 +81,7 @@
|
|||||||
* 1.2.1beta1-4 3 10201 3.1.2.1beta1-4
|
* 1.2.1beta1-4 3 10201 3.1.2.1beta1-4
|
||||||
* 1.2.1rc1-2 3 10201 3.1.2.1rc1-2
|
* 1.2.1rc1-2 3 10201 3.1.2.1rc1-2
|
||||||
* 1.2.1 3 10201 3.1.2.1
|
* 1.2.1 3 10201 3.1.2.1
|
||||||
* 1.2.2beta1-2 12 10202 12.so.0.1.2.2beta1-2
|
* 1.2.2beta1-3 12 10202 12.so.0.1.2.2beta1-3
|
||||||
*
|
*
|
||||||
* Henceforth the source version will match the shared-library major
|
* Henceforth the source version will match the shared-library major
|
||||||
* and minor numbers; the shared-library major version number will be
|
* and minor numbers; the shared-library major version number will be
|
||||||
@ -111,7 +111,7 @@
|
|||||||
* If you modify libpng you may insert additional notices immediately following
|
* If you modify libpng you may insert additional notices immediately following
|
||||||
* this sentence.
|
* this sentence.
|
||||||
*
|
*
|
||||||
* libpng versions 1.0.7, July 1, 2000, through 1.2.2beta2, February 24, 2002, are
|
* libpng versions 1.0.7, July 1, 2000, through 1.2.2beta3, March 7, 2002, are
|
||||||
* Copyright (c) 2000, 2002 Glenn Randers-Pehrson, and are
|
* Copyright (c) 2000, 2002 Glenn Randers-Pehrson, and are
|
||||||
* distributed according to the same disclaimer and license as libpng-1.0.6
|
* distributed according to the same disclaimer and license as libpng-1.0.6
|
||||||
* with the following individuals added to the list of Contributing Authors
|
* with the following individuals added to the list of Contributing Authors
|
||||||
@ -216,13 +216,13 @@
|
|||||||
* Y2K compliance in libpng:
|
* Y2K compliance in libpng:
|
||||||
* =========================
|
* =========================
|
||||||
*
|
*
|
||||||
* February 24, 2002
|
* March 7, 2002
|
||||||
*
|
*
|
||||||
* Since the PNG Development group is an ad-hoc body, we can't make
|
* Since the PNG Development group is an ad-hoc body, we can't make
|
||||||
* an official declaration.
|
* an official declaration.
|
||||||
*
|
*
|
||||||
* This is your unofficial assurance that libpng from version 0.71 and
|
* This is your unofficial assurance that libpng from version 0.71 and
|
||||||
* upward through 1.2.2beta2 are Y2K compliant. It is my belief that earlier
|
* upward through 1.2.2beta3 are Y2K compliant. It is my belief that earlier
|
||||||
* versions were also Y2K compliant.
|
* versions were also Y2K compliant.
|
||||||
*
|
*
|
||||||
* Libpng only has three year fields. One is a 2-byte unsigned integer
|
* Libpng only has three year fields. One is a 2-byte unsigned integer
|
||||||
@ -278,7 +278,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/* Version information for png.h - this should match the version in png.c */
|
/* Version information for png.h - this should match the version in png.c */
|
||||||
#define PNG_LIBPNG_VER_STRING "1.2.2beta2"
|
#define PNG_LIBPNG_VER_STRING "1.2.2beta3"
|
||||||
|
|
||||||
#define PNG_LIBPNG_VER_SONUM 0
|
#define PNG_LIBPNG_VER_SONUM 0
|
||||||
#define PNG_LIBPNG_VER_DLLNUM %DLLNUM%
|
#define PNG_LIBPNG_VER_DLLNUM %DLLNUM%
|
||||||
@ -290,7 +290,7 @@
|
|||||||
/* This should match the numeric part of the final component of
|
/* This should match the numeric part of the final component of
|
||||||
* PNG_LIBPNG_VER_STRING, omitting any leading zero: */
|
* PNG_LIBPNG_VER_STRING, omitting any leading zero: */
|
||||||
|
|
||||||
#define PNG_LIBPNG_VER_BUILD 2
|
#define PNG_LIBPNG_VER_BUILD 3
|
||||||
|
|
||||||
#define PNG_LIBPNG_BUILD_ALPHA 1
|
#define PNG_LIBPNG_BUILD_ALPHA 1
|
||||||
#define PNG_LIBPNG_BUILD_BETA 2
|
#define PNG_LIBPNG_BUILD_BETA 2
|
||||||
@ -1254,9 +1254,9 @@ struct png_struct_def
|
|||||||
|
|
||||||
|
|
||||||
/* This prevents a compiler error in png_get_copyright() in png.c if png.c
|
/* This prevents a compiler error in png_get_copyright() in png.c if png.c
|
||||||
and png.h are both at version 1.2.2beta2
|
and png.h are both at version 1.2.2beta3
|
||||||
*/
|
*/
|
||||||
typedef png_structp version_1_2_2beta2;
|
typedef png_structp version_1_2_2beta3;
|
||||||
|
|
||||||
typedef png_struct FAR * FAR * png_structpp;
|
typedef png_struct FAR * FAR * png_structpp;
|
||||||
|
|
||||||
@ -1564,9 +1564,6 @@ extern void png_read_destroy PNGARG((png_structp png_ptr, png_infop info_ptr,
|
|||||||
extern PNG_EXPORT(void,png_destroy_write_struct)
|
extern PNG_EXPORT(void,png_destroy_write_struct)
|
||||||
PNGARG((png_structpp png_ptr_ptr, png_infopp info_ptr_ptr));
|
PNGARG((png_structpp png_ptr_ptr, png_infopp info_ptr_ptr));
|
||||||
|
|
||||||
/* free any memory used in info_ptr struct (old method - NOT DLL EXPORTED) */
|
|
||||||
extern void png_write_destroy_info PNGARG((png_infop info_ptr));
|
|
||||||
|
|
||||||
/* free any memory used in png_ptr struct (old method - NOT DLL EXPORTED) */
|
/* free any memory used in png_ptr struct (old method - NOT DLL EXPORTED) */
|
||||||
extern void png_write_destroy PNGARG((png_structp png_ptr));
|
extern void png_write_destroy PNGARG((png_structp png_ptr));
|
||||||
|
|
||||||
@ -1811,6 +1808,13 @@ extern PNG_EXPORT(png_voidp,png_malloc) PNGARG((png_structp png_ptr,
|
|||||||
/* frees a pointer allocated by png_malloc() */
|
/* frees a pointer allocated by png_malloc() */
|
||||||
extern PNG_EXPORT(void,png_free) PNGARG((png_structp png_ptr, png_voidp ptr));
|
extern PNG_EXPORT(void,png_free) PNGARG((png_structp png_ptr, png_voidp ptr));
|
||||||
|
|
||||||
|
/* Function to allocate memory for zlib. */
|
||||||
|
extern PNG_EXPORT(voidpf,png_zalloc) PNGARG((voidpf png_ptr, uInt items,
|
||||||
|
uInt size));
|
||||||
|
|
||||||
|
/* Function to free memory for zlib */
|
||||||
|
extern PNG_EXPORT(void,png_zfree) PNGARG((voidpf png_ptr, voidpf ptr));
|
||||||
|
|
||||||
/* Free data that was allocated internally */
|
/* Free data that was allocated internally */
|
||||||
extern PNG_EXPORT(void,png_free_data) PNGARG((png_structp png_ptr,
|
extern PNG_EXPORT(void,png_free_data) PNGARG((png_structp png_ptr,
|
||||||
png_infop info_ptr, png_uint_32 free_me, int num));
|
png_infop info_ptr, png_uint_32 free_me, int num));
|
||||||
@ -2218,6 +2222,10 @@ extern PNG_EXPORT(void, png_set_unknown_chunk_location)
|
|||||||
extern PNG_EXPORT(png_uint_32,png_get_unknown_chunks) PNGARG((png_structp
|
extern PNG_EXPORT(png_uint_32,png_get_unknown_chunks) PNGARG((png_structp
|
||||||
png_ptr, png_infop info_ptr, png_unknown_chunkpp entries));
|
png_ptr, png_infop info_ptr, png_unknown_chunkpp entries));
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef PNG_HANDLE_AS_UNKNOWN_SUPPORTED
|
||||||
|
PNG_EXPORT(int,png_handle_as_unknown) PNGARG((png_structp png_ptr, png_bytep
|
||||||
|
chunk_name));
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Png_free_data() will turn off the "valid" flag for anything it frees.
|
/* Png_free_data() will turn off the "valid" flag for anything it frees.
|
||||||
If you need to turn it off for a chunk that your application has freed,
|
If you need to turn it off for a chunk that your application has freed,
|
||||||
@ -2373,7 +2381,7 @@ extern PNG_EXPORT(void,png_set_strip_error_numbers) PNGARG((png_structp
|
|||||||
/* Maintainer: Put new public prototypes here ^, in libpng.3, and project defs */
|
/* Maintainer: Put new public prototypes here ^, in libpng.3, and project defs */
|
||||||
|
|
||||||
#define PNG_HEADER_VERSION_STRING \
|
#define PNG_HEADER_VERSION_STRING \
|
||||||
" libpng version 1.2.2beta2 - February 24, 2002 (header)\n"
|
" libpng version 1.2.2beta3 - March 7, 2002 (header)\n"
|
||||||
|
|
||||||
#ifdef PNG_READ_COMPOSITE_NODIV_SUPPORTED
|
#ifdef PNG_READ_COMPOSITE_NODIV_SUPPORTED
|
||||||
/* With these routines we avoid an integer divide, which will be slower on
|
/* With these routines we avoid an integer divide, which will be slower on
|
||||||
@ -2642,12 +2650,6 @@ PNG_EXTERN void png_destroy_struct_2 PNGARG((png_voidp struct_ptr,
|
|||||||
PNG_EXTERN void png_info_destroy PNGARG((png_structp png_ptr,
|
PNG_EXTERN void png_info_destroy PNGARG((png_structp png_ptr,
|
||||||
png_infop info_ptr));
|
png_infop info_ptr));
|
||||||
|
|
||||||
/* Function to allocate memory for zlib. */
|
|
||||||
PNG_EXTERN voidpf png_zalloc PNGARG((voidpf png_ptr, uInt items, uInt size));
|
|
||||||
|
|
||||||
/* Function to free memory for zlib */
|
|
||||||
PNG_EXTERN void png_zfree PNGARG((voidpf png_ptr, voidpf ptr));
|
|
||||||
|
|
||||||
/* Reset the CRC variable */
|
/* Reset the CRC variable */
|
||||||
PNG_EXTERN void png_reset_crc PNGARG((png_structp png_ptr));
|
PNG_EXTERN void png_reset_crc PNGARG((png_structp png_ptr));
|
||||||
|
|
||||||
@ -3110,11 +3112,6 @@ PNG_EXTERN void png_handle_zTXt PNGARG((png_structp png_ptr, png_infop info_ptr,
|
|||||||
png_uint_32 length));
|
png_uint_32 length));
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef PNG_HANDLE_AS_UNKNOWN_SUPPORTED
|
|
||||||
PNG_EXTERN int png_handle_as_unknown PNGARG((png_structp png_ptr, png_bytep
|
|
||||||
chunk_name));
|
|
||||||
#endif
|
|
||||||
|
|
||||||
PNG_EXTERN void png_handle_unknown PNGARG((png_structp png_ptr,
|
PNG_EXTERN void png_handle_unknown PNGARG((png_structp png_ptr,
|
||||||
png_infop info_ptr, png_uint_32 length));
|
png_infop info_ptr, png_uint_32 length));
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/* pngasmrd.h - assembler version of utilities to read a PNG file
|
/* pngasmrd.h - assembler version of utilities to read a PNG file
|
||||||
*
|
*
|
||||||
* libpng 1.2.2beta2 - February 24, 2002
|
* libpng 1.2.2beta3 - March 7, 2002
|
||||||
* For conditions of distribution and use, see copyright notice in png.h
|
* For conditions of distribution and use, see copyright notice in png.h
|
||||||
* Copyright (c) 2002 Glenn Randers-Pehrson
|
* Copyright (c) 2002 Glenn Randers-Pehrson
|
||||||
*
|
*
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/* pngconf.h - machine configurable file for libpng
|
/* pngconf.h - machine configurable file for libpng
|
||||||
*
|
*
|
||||||
* libpng 1.2.2beta2 - February 24, 2002
|
* libpng 1.2.2beta3 - March 7, 2002
|
||||||
* For conditions of distribution and use, see copyright notice in png.h
|
* For conditions of distribution and use, see copyright notice in png.h
|
||||||
* Copyright (c) 1998-2002 Glenn Randers-Pehrson
|
* Copyright (c) 1998-2002 Glenn Randers-Pehrson
|
||||||
* (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
|
* (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
|
|
||||||
/* pngerror.c - stub functions for i/o and memory allocation
|
/* pngerror.c - stub functions for i/o and memory allocation
|
||||||
*
|
*
|
||||||
* libpng 1.2.2beta2 - February 24, 2002
|
* libpng 1.2.2beta3 - March 7, 2002
|
||||||
* For conditions of distribution and use, see copyright notice in png.h
|
* For conditions of distribution and use, see copyright notice in png.h
|
||||||
* Copyright (c) 1998-2002 Glenn Randers-Pehrson
|
* Copyright (c) 1998-2002 Glenn Randers-Pehrson
|
||||||
* (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
|
* (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
|
||||||
|
13
pnggccrd.c
13
pnggccrd.c
@ -6,7 +6,7 @@
|
|||||||
* and http://www.intel.com/drg/pentiumII/appnotes/923/923.htm
|
* and http://www.intel.com/drg/pentiumII/appnotes/923/923.htm
|
||||||
* for Intel's performance analysis of the MMX vs. non-MMX code.
|
* for Intel's performance analysis of the MMX vs. non-MMX code.
|
||||||
*
|
*
|
||||||
* libpng version 1.2.2beta2 - February 24, 2002
|
* libpng version 1.2.2beta3 - March 7, 2002
|
||||||
* For conditions of distribution and use, see copyright notice in png.h
|
* For conditions of distribution and use, see copyright notice in png.h
|
||||||
* Copyright (c) 1998-2002 Glenn Randers-Pehrson
|
* Copyright (c) 1998-2002 Glenn Randers-Pehrson
|
||||||
* Copyright (c) 1998, Intel Corporation
|
* Copyright (c) 1998, Intel Corporation
|
||||||
@ -220,6 +220,9 @@
|
|||||||
* 20010310:
|
* 20010310:
|
||||||
* - fixed buffer-overrun bug in png_combine_row() C code (non-MMX)
|
* - fixed buffer-overrun bug in png_combine_row() C code (non-MMX)
|
||||||
*
|
*
|
||||||
|
* 20020304:
|
||||||
|
* - eliminated incorrect use of width_mmx in pixel_bytes == 8 case
|
||||||
|
*
|
||||||
* STILL TO DO:
|
* STILL TO DO:
|
||||||
* - test png_do_read_interlace() 64-bit case (pixel_bytes == 8)
|
* - test png_do_read_interlace() 64-bit case (pixel_bytes == 8)
|
||||||
* - write MMX code for 48-bit case (pixel_bytes == 6)
|
* - write MMX code for 48-bit case (pixel_bytes == 6)
|
||||||
@ -2464,9 +2467,8 @@ png_do_read_interlace(png_structp png_ptr)
|
|||||||
{
|
{
|
||||||
// source is 8-byte RRGGBBAA
|
// source is 8-byte RRGGBBAA
|
||||||
// dest is 32-byte RRGGBBAA RRGGBBAA RRGGBBAA RRGGBBAA
|
// dest is 32-byte RRGGBBAA RRGGBBAA RRGGBBAA RRGGBBAA
|
||||||
int width_mmx = ((width >> 1) << 1) ;
|
// (recall that expansion is _in place_: sptr and dp
|
||||||
width -= width_mmx;
|
// both point at locations within same row buffer)
|
||||||
if (width_mmx)
|
|
||||||
{
|
{
|
||||||
int dummy_value_c; // fix 'forbidden register spilled'
|
int dummy_value_c; // fix 'forbidden register spilled'
|
||||||
int dummy_value_S;
|
int dummy_value_S;
|
||||||
@ -2505,9 +2507,6 @@ png_do_read_interlace(png_structp png_ptr)
|
|||||||
{
|
{
|
||||||
// source is 8-byte RRGGBBAA
|
// source is 8-byte RRGGBBAA
|
||||||
// dest is 16-byte RRGGBBAA RRGGBBAA
|
// dest is 16-byte RRGGBBAA RRGGBBAA
|
||||||
int width_mmx = ((width >> 1) << 1) ;
|
|
||||||
width -= width_mmx;
|
|
||||||
if (width_mmx)
|
|
||||||
{
|
{
|
||||||
int dummy_value_c; // fix 'forbidden register spilled'
|
int dummy_value_c; // fix 'forbidden register spilled'
|
||||||
int dummy_value_S;
|
int dummy_value_S;
|
||||||
|
2
pngget.c
2
pngget.c
@ -1,7 +1,7 @@
|
|||||||
|
|
||||||
/* pngget.c - retrieval of values from info struct
|
/* pngget.c - retrieval of values from info struct
|
||||||
*
|
*
|
||||||
* libpng 1.2.2beta2 - February 24, 2002
|
* libpng 1.2.2beta3 - March 7, 2002
|
||||||
* For conditions of distribution and use, see copyright notice in png.h
|
* For conditions of distribution and use, see copyright notice in png.h
|
||||||
* Copyright (c) 1998-2002 Glenn Randers-Pehrson
|
* Copyright (c) 1998-2002 Glenn Randers-Pehrson
|
||||||
* (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
|
* (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
|
||||||
|
2
pngmem.c
2
pngmem.c
@ -1,7 +1,7 @@
|
|||||||
|
|
||||||
/* pngmem.c - stub functions for memory allocation
|
/* pngmem.c - stub functions for memory allocation
|
||||||
*
|
*
|
||||||
* libpng 1.2.2beta2 - February 24, 2002
|
* libpng 1.2.2beta3 - March 7, 2002
|
||||||
* For conditions of distribution and use, see copyright notice in png.h
|
* For conditions of distribution and use, see copyright notice in png.h
|
||||||
* Copyright (c) 1998-2002 Glenn Randers-Pehrson
|
* Copyright (c) 1998-2002 Glenn Randers-Pehrson
|
||||||
* (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
|
* (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
|
|
||||||
/* pngpread.c - read a png file in push mode
|
/* pngpread.c - read a png file in push mode
|
||||||
*
|
*
|
||||||
* libpng 1.2.2beta2 - February 24, 2002
|
* libpng 1.2.2beta3 - March 7, 2002
|
||||||
* For conditions of distribution and use, see copyright notice in png.h
|
* For conditions of distribution and use, see copyright notice in png.h
|
||||||
* Copyright (c) 1998-2002 Glenn Randers-Pehrson
|
* Copyright (c) 1998-2002 Glenn Randers-Pehrson
|
||||||
* (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
|
* (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
|
|
||||||
/* pngread.c - read a PNG file
|
/* pngread.c - read a PNG file
|
||||||
*
|
*
|
||||||
* libpng 1.2.2beta2 - February 24, 2002
|
* libpng 1.2.2beta3 - March 7, 2002
|
||||||
* For conditions of distribution and use, see copyright notice in png.h
|
* For conditions of distribution and use, see copyright notice in png.h
|
||||||
* Copyright (c) 1998-2002 Glenn Randers-Pehrson
|
* Copyright (c) 1998-2002 Glenn Randers-Pehrson
|
||||||
* (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
|
* (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
|
||||||
@ -774,7 +774,7 @@ png_read_row(png_structp png_ptr, png_bytep row, png_bytep dsp_row)
|
|||||||
* not called png_set_interlace_handling(), the display_row buffer will
|
* not called png_set_interlace_handling(), the display_row buffer will
|
||||||
* be ignored, so pass NULL to it.
|
* be ignored, so pass NULL to it.
|
||||||
*
|
*
|
||||||
* [*] png_handle_alpha() does not exist yet, as of libpng version 1.2.2beta2
|
* [*] png_handle_alpha() does not exist yet, as of libpng version 1.2.2beta3
|
||||||
*/
|
*/
|
||||||
|
|
||||||
void PNGAPI
|
void PNGAPI
|
||||||
@ -823,7 +823,7 @@ png_read_rows(png_structp png_ptr, png_bytepp row,
|
|||||||
* only call this function once. If you desire to have an image for
|
* only call this function once. If you desire to have an image for
|
||||||
* each pass of a interlaced image, use png_read_rows() instead.
|
* each pass of a interlaced image, use png_read_rows() instead.
|
||||||
*
|
*
|
||||||
* [*] png_handle_alpha() does not exist yet, as of libpng version 1.2.2beta2
|
* [*] png_handle_alpha() does not exist yet, as of libpng version 1.2.2beta3
|
||||||
*/
|
*/
|
||||||
void PNGAPI
|
void PNGAPI
|
||||||
png_read_image(png_structp png_ptr, png_bytepp image)
|
png_read_image(png_structp png_ptr, png_bytepp image)
|
||||||
|
2
pngrio.c
2
pngrio.c
@ -1,7 +1,7 @@
|
|||||||
|
|
||||||
/* pngrio.c - functions for data input
|
/* pngrio.c - functions for data input
|
||||||
*
|
*
|
||||||
* libpng 1.2.2beta2 - February 24, 2002
|
* libpng 1.2.2beta3 - March 7, 2002
|
||||||
* For conditions of distribution and use, see copyright notice in png.h
|
* For conditions of distribution and use, see copyright notice in png.h
|
||||||
* Copyright (c) 1998-2002 Glenn Randers-Pehrson
|
* Copyright (c) 1998-2002 Glenn Randers-Pehrson
|
||||||
* (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
|
* (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
|
|
||||||
/* pngrtran.c - transforms the data in a row for PNG readers
|
/* pngrtran.c - transforms the data in a row for PNG readers
|
||||||
*
|
*
|
||||||
* libpng 1.2.2beta2 - February 24, 2002
|
* libpng 1.2.2beta3 - March 7, 2002
|
||||||
* For conditions of distribution and use, see copyright notice in png.h
|
* For conditions of distribution and use, see copyright notice in png.h
|
||||||
* Copyright (c) 1998-2002 Glenn Randers-Pehrson
|
* Copyright (c) 1998-2002 Glenn Randers-Pehrson
|
||||||
* (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
|
* (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
|
|
||||||
/* pngrutil.c - utilities to read a PNG file
|
/* pngrutil.c - utilities to read a PNG file
|
||||||
*
|
*
|
||||||
* libpng 1.2.2beta2 - February 24, 2002
|
* libpng 1.2.2beta3 - March 7, 2002
|
||||||
* For conditions of distribution and use, see copyright notice in png.h
|
* For conditions of distribution and use, see copyright notice in png.h
|
||||||
* Copyright (c) 1998-2002 Glenn Randers-Pehrson
|
* Copyright (c) 1998-2002 Glenn Randers-Pehrson
|
||||||
* (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
|
* (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
|
||||||
|
2
pngset.c
2
pngset.c
@ -1,7 +1,7 @@
|
|||||||
|
|
||||||
/* pngset.c - storage of image information into info struct
|
/* pngset.c - storage of image information into info struct
|
||||||
*
|
*
|
||||||
* libpng 1.2.2beta2 - February 24, 2002
|
* libpng 1.2.2beta3 - March 7, 2002
|
||||||
* For conditions of distribution and use, see copyright notice in png.h
|
* For conditions of distribution and use, see copyright notice in png.h
|
||||||
* Copyright (c) 1998-2002 Glenn Randers-Pehrson
|
* Copyright (c) 1998-2002 Glenn Randers-Pehrson
|
||||||
* (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
|
* (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
|
|
||||||
/* pngtest.c - a simple test program to test libpng
|
/* pngtest.c - a simple test program to test libpng
|
||||||
*
|
*
|
||||||
* libpng 1.2.2beta2 - February 24, 2002
|
* libpng 1.2.2beta3 - March 7, 2002
|
||||||
* For conditions of distribution and use, see copyright notice in png.h
|
* For conditions of distribution and use, see copyright notice in png.h
|
||||||
* Copyright (c) 1998-2002 Glenn Randers-Pehrson
|
* Copyright (c) 1998-2002 Glenn Randers-Pehrson
|
||||||
* (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
|
* (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
|
||||||
@ -1512,4 +1512,4 @@ main(int argc, char *argv[])
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Generate a compiler error if there is an old png.h in the search path. */
|
/* Generate a compiler error if there is an old png.h in the search path. */
|
||||||
typedef version_1_2_2beta2 your_png_h_is_not_version_1_2_2beta2;
|
typedef version_1_2_2beta3 your_png_h_is_not_version_1_2_2beta3;
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
|
|
||||||
/* pngtrans.c - transforms the data in a row (used by both readers and writers)
|
/* pngtrans.c - transforms the data in a row (used by both readers and writers)
|
||||||
*
|
*
|
||||||
* libpng 1.2.2beta2 - February 24, 2002
|
* libpng 1.2.2beta3 - March 7, 2002
|
||||||
* For conditions of distribution and use, see copyright notice in png.h
|
* For conditions of distribution and use, see copyright notice in png.h
|
||||||
* Copyright (c) 1998-2002 Glenn Randers-Pehrson
|
* Copyright (c) 1998-2002 Glenn Randers-Pehrson
|
||||||
* (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
|
* (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
*
|
*
|
||||||
* For Intel x86 CPU and Microsoft Visual C++ compiler
|
* For Intel x86 CPU and Microsoft Visual C++ compiler
|
||||||
*
|
*
|
||||||
* libpng version 1.2.2beta2 - February 24, 2002
|
* libpng version 1.2.2beta3 - March 7, 2002
|
||||||
* For conditions of distribution and use, see copyright notice in png.h
|
* For conditions of distribution and use, see copyright notice in png.h
|
||||||
* Copyright (c) 1998-2002 Glenn Randers-Pehrson
|
* Copyright (c) 1998-2002 Glenn Randers-Pehrson
|
||||||
* Copyright (c) 1998, Intel Corporation
|
* Copyright (c) 1998, Intel Corporation
|
||||||
|
2
pngwio.c
2
pngwio.c
@ -1,7 +1,7 @@
|
|||||||
|
|
||||||
/* pngwio.c - functions for data output
|
/* pngwio.c - functions for data output
|
||||||
*
|
*
|
||||||
* libpng 1.2.2beta2 - February 24, 2002
|
* libpng 1.2.2beta3 - March 7, 2002
|
||||||
* For conditions of distribution and use, see copyright notice in png.h
|
* For conditions of distribution and use, see copyright notice in png.h
|
||||||
* Copyright (c) 1998-2002 Glenn Randers-Pehrson
|
* Copyright (c) 1998-2002 Glenn Randers-Pehrson
|
||||||
* (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
|
* (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
|
|
||||||
/* pngwrite.c - general routines to write a PNG file
|
/* pngwrite.c - general routines to write a PNG file
|
||||||
*
|
*
|
||||||
* libpng 1.2.2beta2 - February 24, 2002
|
* libpng 1.2.2beta3 - March 7, 2002
|
||||||
* For conditions of distribution and use, see copyright notice in png.h
|
* For conditions of distribution and use, see copyright notice in png.h
|
||||||
* Copyright (c) 1998-2002 Glenn Randers-Pehrson
|
* Copyright (c) 1998-2002 Glenn Randers-Pehrson
|
||||||
* (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
|
* (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
|
|
||||||
/* pngwtran.c - transforms the data in a row for PNG writers
|
/* pngwtran.c - transforms the data in a row for PNG writers
|
||||||
*
|
*
|
||||||
* libpng 1.2.2beta2 - February 24, 2002
|
* libpng 1.2.2beta3 - March 7, 2002
|
||||||
* For conditions of distribution and use, see copyright notice in png.h
|
* For conditions of distribution and use, see copyright notice in png.h
|
||||||
* Copyright (c) 1998-2002 Glenn Randers-Pehrson
|
* Copyright (c) 1998-2002 Glenn Randers-Pehrson
|
||||||
* (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
|
* (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
|
|
||||||
/* pngwutil.c - utilities to write a PNG file
|
/* pngwutil.c - utilities to write a PNG file
|
||||||
*
|
*
|
||||||
* libpng 1.2.2beta2 - February 24, 2002
|
* libpng 1.2.2beta3 - March 7, 2002
|
||||||
* For conditions of distribution and use, see copyright notice in png.h
|
* For conditions of distribution and use, see copyright notice in png.h
|
||||||
* Copyright (c) 1998-2002 Glenn Randers-Pehrson
|
* Copyright (c) 1998-2002 Glenn Randers-Pehrson
|
||||||
* (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
|
* (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
Microsoft Developer Studio Build File, Format Version 6.00 for
|
Microsoft Developer Studio Build File, Format Version 6.00 for
|
||||||
libpng 1.2.2beta2 (February 24, 2002) and zlib
|
libpng 1.2.2beta3 (March 7, 2002) and zlib
|
||||||
|
|
||||||
Copyright (C) 2000 Simon-Pierre Cadieux
|
Copyright (C) 2000 Simon-Pierre Cadieux
|
||||||
For conditions of distribution and use, see copyright notice in png.h
|
For conditions of distribution and use, see copyright notice in png.h
|
||||||
|
@ -6,7 +6,7 @@ LIBRARY
|
|||||||
DESCRIPTION "PNG image compression library for Windows"
|
DESCRIPTION "PNG image compression library for Windows"
|
||||||
|
|
||||||
EXPORTS
|
EXPORTS
|
||||||
;Version 1.2.2beta2
|
;Version 1.2.2beta3
|
||||||
png_build_grayscale_palette @1
|
png_build_grayscale_palette @1
|
||||||
png_check_sig @2
|
png_check_sig @2
|
||||||
png_chunk_error @3
|
png_chunk_error @3
|
||||||
@ -211,3 +211,7 @@ EXPORTS
|
|||||||
png_init_mmx_flags @192
|
png_init_mmx_flags @192
|
||||||
; Strip error numbers
|
; Strip error numbers
|
||||||
png_set_strip_error_numbers @193
|
png_set_strip_error_numbers @193
|
||||||
|
; Added at version 1.2.2
|
||||||
|
png_handle_as_unknown @194
|
||||||
|
png_zalloc @195
|
||||||
|
png_zfree @196
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
A set of project files is available for Netware. Get
|
A set of project files is available for Netware. Get
|
||||||
libpng-1.2.2beta2-project-netware.zip from a libpng distribution
|
libpng-1.2.2beta3-project-netware.zip from a libpng distribution
|
||||||
site such as http://libpng.sourceforge.net
|
site such as http://libpng.sourceforge.net
|
||||||
|
|
||||||
Put the zip file in this directory (projects) and then run
|
Put the zip file in this directory (projects) and then run
|
||||||
"unzip -a libpng-1.2.2beta2-project-netware.zip"
|
"unzip -a libpng-1.2.2beta3-project-netware.zip"
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
A set of project files is available for WinCE. Get
|
A set of project files is available for WinCE. Get
|
||||||
libpng-1.2.2beta2-project-wince.zip from a libpng distribution
|
libpng-1.2.2beta3-project-wince.zip from a libpng distribution
|
||||||
site such as http://libpng.sourceforge.net
|
site such as http://libpng.sourceforge.net
|
||||||
|
|
||||||
Put the zip file in this directory (projects) and then run
|
Put the zip file in this directory (projects) and then run
|
||||||
"unzip -a libpng-1.2.2beta2-project-wince.zip"
|
"unzip -a libpng-1.2.2beta3-project-wince.zip"
|
||||||
|
11
scripts/libpng.pc.in
Normal file
11
scripts/libpng.pc.in
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
|
||||||
|
prefix=@PREFIX@
|
||||||
|
exec_prefix=$(prefix)
|
||||||
|
libdir=$(exec_prefix)/lib
|
||||||
|
includedir=$(exec_prefix)/include
|
||||||
|
|
||||||
|
Name: libpng12
|
||||||
|
Description: Loads and saves PNG files
|
||||||
|
Version: 1.2.2beta3
|
||||||
|
Libs: -L$(libdir) -lpng12
|
||||||
|
Cflags: -I$(includedir)/libpng12
|
142
scripts/makefile.32sunu
Normal file
142
scripts/makefile.32sunu
Normal file
@ -0,0 +1,142 @@
|
|||||||
|
# makefile for libpng on Solaris 2.x with gcc
|
||||||
|
# Contributed by William L. Sebok, based on makefile.linux
|
||||||
|
# Copyright (C) 2002 Glenn Randers-Pehrson
|
||||||
|
# Copyright (C) 1998 Greg Roelofs
|
||||||
|
# Copyright (C) 1996, 1997 Andreas Dilger
|
||||||
|
# For conditions of distribution and use, see copyright notice in png.h
|
||||||
|
|
||||||
|
CC=cc
|
||||||
|
SUN_CC_FLAGS=-fast -xtarget=ultra
|
||||||
|
SUN_LD_FLAGS=-fast -xtarget=ultra
|
||||||
|
|
||||||
|
# where make install puts libpng.a, libpng12.so and libpng12/png.h
|
||||||
|
prefix=/a
|
||||||
|
|
||||||
|
# Where the zlib library and include files are located
|
||||||
|
# Changing these to ../zlib poses a security risk. If you want
|
||||||
|
# to have zlib in an adjacent directory, specify the full path instead of "..".
|
||||||
|
#ZLIBLIB=../zlib
|
||||||
|
#ZLIBINC=../zlib
|
||||||
|
|
||||||
|
ZLIBLIB=/usr/lib
|
||||||
|
ZLIBINC=/usr/include
|
||||||
|
|
||||||
|
WARNMORE=-Wwrite-strings -Wpointer-arith -Wshadow \
|
||||||
|
-Wmissing-declarations -Wtraditional -Wcast-align \
|
||||||
|
-Wstrict-prototypes -Wmissing-prototypes #-Wconversion
|
||||||
|
CFLAGS=-I$(ZLIBINC) $(SUN_CC_FLAGS) \
|
||||||
|
# $(WARNMORE) -g -DPNG_DEBUG=5
|
||||||
|
LDFLAGS=-L. -R. $(SUN_LD_FLAGS) -L$(ZLIBLIB) -R$(ZLIBLIB) -lpng12 -lz -lm
|
||||||
|
|
||||||
|
#RANLIB=ranlib
|
||||||
|
RANLIB=echo
|
||||||
|
|
||||||
|
LIBNAME=libpng12
|
||||||
|
PNGMAJ = 0
|
||||||
|
PNGMIN = 1.2.2beta3
|
||||||
|
PNGVER = $(PNGMAJ).$(PNGMIN)
|
||||||
|
|
||||||
|
INCPATH=$(prefix)/include
|
||||||
|
LIBPATH=$(prefix)/lib
|
||||||
|
|
||||||
|
OBJS = png.o pngset.o pngget.o pngrutil.o pngtrans.o pngwutil.o \
|
||||||
|
pngread.o pngrio.o pngwio.o pngwrite.o pngrtran.o \
|
||||||
|
pngwtran.o pngmem.o pngerror.o pngpread.o
|
||||||
|
|
||||||
|
OBJSDLL = $(OBJS:.o=.pic.o)
|
||||||
|
|
||||||
|
.SUFFIXES: .c .o .pic.o
|
||||||
|
|
||||||
|
.c.pic.o:
|
||||||
|
$(CC) -c $(CFLAGS) -KPIC -o $@ $*.c
|
||||||
|
|
||||||
|
all: libpng.a $(LIBNAME).so pngtest
|
||||||
|
|
||||||
|
libpng.a: $(OBJS)
|
||||||
|
ar rc $@ $(OBJS)
|
||||||
|
$(RANLIB) $@
|
||||||
|
|
||||||
|
$(LIBNAME).so: $(LIBNAME).so.$(PNGMAJ)
|
||||||
|
ln -f -s $(LIBNAME).so.$(PNGMAJ) $(LIBNAME).so
|
||||||
|
|
||||||
|
$(LIBNAME).so.$(PNGMAJ): $(LIBNAME).so.$(PNGVER)
|
||||||
|
ln -f -s $(LIBNAME).so.$(PNGVER) $(LIBNAME).so.$(PNGMAJ)
|
||||||
|
|
||||||
|
$(LIBNAME).so.$(PNGVER): $(OBJSDLL)
|
||||||
|
@case "`type ld`" in *ucb*) \
|
||||||
|
echo; \
|
||||||
|
echo '## WARNING:'; \
|
||||||
|
echo '## The commands "CC" and "LD" must NOT refer to /usr/ucb/cc'; \
|
||||||
|
echo '## and /usr/ucb/ld. If they do, you need to adjust your PATH'; \
|
||||||
|
echo '## environment variable to put /usr/ccs/bin ahead of /usr/ucb.'; \
|
||||||
|
echo '## The environment variable LD_LIBRARY_PATH should not be set'; \
|
||||||
|
echo '## at all. If it is, things are likely to break because of'; \
|
||||||
|
echo '## the libucb dependency that is created.'; \
|
||||||
|
echo; \
|
||||||
|
;; \
|
||||||
|
esac
|
||||||
|
$(LD) -G -L$(ZLIBLIB) -R$(ZLIBLIB) -h $(LIBNAME).so.$(PNGMAJ) \
|
||||||
|
-o $(LIBNAME).so.$(PNGVER) $(OBJSDLL) -lz
|
||||||
|
|
||||||
|
pngtest: pngtest.o $(LIBNAME).so
|
||||||
|
$(CC) -o pngtest $(CFLAGS) pngtest.o $(LDFLAGS)
|
||||||
|
|
||||||
|
test: pngtest
|
||||||
|
./pngtest
|
||||||
|
|
||||||
|
install-headers: png.h pngconf.h
|
||||||
|
-@if [ ! -d $(INCPATH) ]; then mkdir $(INCPATH); fi
|
||||||
|
-@if [ ! -d $(INCPATH)/$(LIBNAME) ]; then mkdir $(INCPATH)/$(LIBNAME); fi
|
||||||
|
cp png.h pngconf.h $(INCPATH)/$(LIBNAME)
|
||||||
|
chmod 644 $(INCPATH)/$(LIBNAME)/png.h $(INCPATH)/$(LIBNAME)/pngconf.h
|
||||||
|
-@/bin/rm -f $(INCPATH)/png.h $(INCPATH)/pngconf.h
|
||||||
|
ln -f -s $(INCPATH)/$(LIBNAME)/png.h $(INCPATH)
|
||||||
|
ln -f -s $(INCPATH)/$(LIBNAME)/pngconf.h $(INCPATH)
|
||||||
|
|
||||||
|
install-static: install-headers libpng.a
|
||||||
|
-@if [ ! -d $(LIBPATH) ]; then mkdir $(LIBPATH); fi
|
||||||
|
cp libpng.a $(LIBPATH)/$(LIBNAME).a
|
||||||
|
chmod 644 $(LIBPATH)/$(LIBNAME).a
|
||||||
|
-@/bin/rm -f $(LIBPATH)/libpng.a
|
||||||
|
ln -f -s $(LIBPATH)/$(LIBNAME).a $(LIBPATH)/libpng.a
|
||||||
|
|
||||||
|
install-shared: install-headers $(LIBNAME).so.$(PNGVER)
|
||||||
|
-@if [ ! -d $(LIBPATH) ]; then mkdir $(LIBPATH); fi
|
||||||
|
-@/bin/rm -f $(LIBPATH)/libpng.so.3*
|
||||||
|
cp $(LIBNAME).so.$(PNGVER) $(LIBPATH)
|
||||||
|
chmod 755 $(LIBPATH)/$(LIBNAME).so.$(PNGVER)
|
||||||
|
-@/bin/rm -f $(LIBPATH)/$(LIBNAME).so.$(PNGMAJ)* $(LIBPATH)/$(LIBNAME).so
|
||||||
|
(cd $(LIBPATH);
|
||||||
|
ln -f -s $(LIBNAME).so.$(PNGVER) $(LIBNAME).so.$(PNGMAJ); \
|
||||||
|
ln -f -s $(LIBNAME).so.$(PNGMAJ) $(LIBNAME).so)
|
||||||
|
-@if [ ! -d $(LIBPATH)/pkgconfig ]; then mkdir $(LIBPATH)/pkgconfig; fi
|
||||||
|
cat scripts/libpng.pc.in | sed -e s\!@PREFIX@!$(prefix)! > libpng.pc
|
||||||
|
cp libpng.pc $(LIBPATH)/pkgconfig/libpng12.pc
|
||||||
|
chmod 644 $(LIBPATH)/pkgconfig/libpng12.pc
|
||||||
|
|
||||||
|
clean:
|
||||||
|
/bin/rm -f *.o libpng.a $(LIBNAME).so $(LIBNAME).so.$(PNGMAJ)* pngtest pngout.png
|
||||||
|
|
||||||
|
DOCS = ANNOUNCE CHANGES INSTALL KNOWNBUG LICENSE README TODO Y2KINFO
|
||||||
|
writelock:
|
||||||
|
chmod a-w *.[ch35] $(DOCS) scripts/*
|
||||||
|
|
||||||
|
# DO NOT DELETE THIS LINE -- make depend depends on it.
|
||||||
|
|
||||||
|
png.o png.pic.o: png.h pngconf.h
|
||||||
|
pngerror.o pngerror.pic.o: png.h pngconf.h
|
||||||
|
pngrio.o pngrio.pic.o: png.h pngconf.h
|
||||||
|
pngwio.o pngwio.pic.o: png.h pngconf.h
|
||||||
|
pngmem.o pngmem.pic.o: png.h pngconf.h
|
||||||
|
pngset.o pngset.pic.o: png.h pngconf.h
|
||||||
|
pngget.o pngget.pic.o: png.h pngconf.h
|
||||||
|
pngread.o pngread.pic.o: png.h pngconf.h
|
||||||
|
pngrtran.o pngrtran.pic.o: png.h pngconf.h
|
||||||
|
pngrutil.o pngrutil.pic.o: png.h pngconf.h
|
||||||
|
pngtrans.o pngtrans.pic.o: png.h pngconf.h
|
||||||
|
pngwrite.o pngwrite.pic.o: png.h pngconf.h
|
||||||
|
pngwtran.o pngwtran.pic.o: png.h pngconf.h
|
||||||
|
pngwutil.o pngwutil.pic.o: png.h pngconf.h
|
||||||
|
pngpread.o pngpread.pic.o: png.h pngconf.h
|
||||||
|
|
||||||
|
pngtest.o: png.h pngconf.h
|
142
scripts/makefile.64sunu
Normal file
142
scripts/makefile.64sunu
Normal file
@ -0,0 +1,142 @@
|
|||||||
|
# makefile for libpng on Solaris 2.x with gcc
|
||||||
|
# Contributed by William L. Sebok, based on makefile.linux
|
||||||
|
# Copyright (C) 2002 Glenn Randers-Pehrson
|
||||||
|
# Copyright (C) 1998 Greg Roelofs
|
||||||
|
# Copyright (C) 1996, 1997 Andreas Dilger
|
||||||
|
# For conditions of distribution and use, see copyright notice in png.h
|
||||||
|
|
||||||
|
CC=cc
|
||||||
|
SUN_CC_FLAGS=-fast -xtarget=ultra -xarch=v9
|
||||||
|
SUN_LD_FLAGS=-fast -xtarget=ultra -xarch=v9
|
||||||
|
|
||||||
|
# where make install puts libpng.a, libpng12.so and libpng12/png.h
|
||||||
|
prefix=/a
|
||||||
|
|
||||||
|
# Where the zlib library and include files are located
|
||||||
|
# Changing these to ../zlib poses a security risk. If you want
|
||||||
|
# to have zlib in an adjacent directory, specify the full path instead of "..".
|
||||||
|
#ZLIBLIB=../zlib
|
||||||
|
#ZLIBINC=../zlib
|
||||||
|
|
||||||
|
ZLIBLIB=/usr/lib
|
||||||
|
ZLIBINC=/usr/include
|
||||||
|
|
||||||
|
WARNMORE=-Wwrite-strings -Wpointer-arith -Wshadow \
|
||||||
|
-Wmissing-declarations -Wtraditional -Wcast-align \
|
||||||
|
-Wstrict-prototypes -Wmissing-prototypes #-Wconversion
|
||||||
|
CFLAGS=-I$(ZLIBINC) $(SUN_CC_FLAGS) \
|
||||||
|
# $(WARNMORE) -g -DPNG_DEBUG=5
|
||||||
|
LDFLAGS=-L. -R. $(SUN_LD_FLAGS) -L$(ZLIBLIB) -R$(ZLIBLIB) -lpng12 -lz -lm
|
||||||
|
|
||||||
|
#RANLIB=ranlib
|
||||||
|
RANLIB=echo
|
||||||
|
|
||||||
|
LIBNAME=libpng12
|
||||||
|
PNGMAJ = 0
|
||||||
|
PNGMIN = 1.2.2beta3
|
||||||
|
PNGVER = $(PNGMAJ).$(PNGMIN)
|
||||||
|
|
||||||
|
INCPATH=$(prefix)/include
|
||||||
|
LIBPATH=$(prefix)/lib
|
||||||
|
|
||||||
|
OBJS = png.o pngset.o pngget.o pngrutil.o pngtrans.o pngwutil.o \
|
||||||
|
pngread.o pngrio.o pngwio.o pngwrite.o pngrtran.o \
|
||||||
|
pngwtran.o pngmem.o pngerror.o pngpread.o
|
||||||
|
|
||||||
|
OBJSDLL = $(OBJS:.o=.pic.o)
|
||||||
|
|
||||||
|
.SUFFIXES: .c .o .pic.o
|
||||||
|
|
||||||
|
.c.pic.o:
|
||||||
|
$(CC) -c $(CFLAGS) -KPIC -o $@ $*.c
|
||||||
|
|
||||||
|
all: libpng.a $(LIBNAME).so pngtest
|
||||||
|
|
||||||
|
libpng.a: $(OBJS)
|
||||||
|
ar rc $@ $(OBJS)
|
||||||
|
$(RANLIB) $@
|
||||||
|
|
||||||
|
$(LIBNAME).so: $(LIBNAME).so.$(PNGMAJ)
|
||||||
|
ln -f -s $(LIBNAME).so.$(PNGMAJ) $(LIBNAME).so
|
||||||
|
|
||||||
|
$(LIBNAME).so.$(PNGMAJ): $(LIBNAME).so.$(PNGVER)
|
||||||
|
ln -f -s $(LIBNAME).so.$(PNGVER) $(LIBNAME).so.$(PNGMAJ)
|
||||||
|
|
||||||
|
$(LIBNAME).so.$(PNGVER): $(OBJSDLL)
|
||||||
|
@case "`type ld`" in *ucb*) \
|
||||||
|
echo; \
|
||||||
|
echo '## WARNING:'; \
|
||||||
|
echo '## The commands "CC" and "LD" must NOT refer to /usr/ucb/cc'; \
|
||||||
|
echo '## and /usr/ucb/ld. If they do, you need to adjust your PATH'; \
|
||||||
|
echo '## environment variable to put /usr/ccs/bin ahead of /usr/ucb.'; \
|
||||||
|
echo '## The environment variable LD_LIBRARY_PATH should not be set'; \
|
||||||
|
echo '## at all. If it is, things are likely to break because of'; \
|
||||||
|
echo '## the libucb dependency that is created.'; \
|
||||||
|
echo; \
|
||||||
|
;; \
|
||||||
|
esac
|
||||||
|
$(LD) -G -L$(ZLIBLIB) -R$(ZLIBLIB) -h $(LIBNAME).so.$(PNGMAJ) \
|
||||||
|
-o $(LIBNAME).so.$(PNGVER) $(OBJSDLL) -lz
|
||||||
|
|
||||||
|
pngtest: pngtest.o $(LIBNAME).so
|
||||||
|
$(CC) -o pngtest $(CFLAGS) pngtest.o $(LDFLAGS)
|
||||||
|
|
||||||
|
test: pngtest
|
||||||
|
./pngtest
|
||||||
|
|
||||||
|
install-headers: png.h pngconf.h
|
||||||
|
-@if [ ! -d $(INCPATH) ]; then mkdir $(INCPATH); fi
|
||||||
|
-@if [ ! -d $(INCPATH)/$(LIBNAME) ]; then mkdir $(INCPATH)/$(LIBNAME); fi
|
||||||
|
cp png.h pngconf.h $(INCPATH)/$(LIBNAME)
|
||||||
|
chmod 644 $(INCPATH)/$(LIBNAME)/png.h $(INCPATH)/$(LIBNAME)/pngconf.h
|
||||||
|
-@/bin/rm -f $(INCPATH)/png.h $(INCPATH)/pngconf.h
|
||||||
|
ln -f -s $(INCPATH)/$(LIBNAME)/png.h $(INCPATH)
|
||||||
|
ln -f -s $(INCPATH)/$(LIBNAME)/pngconf.h $(INCPATH)
|
||||||
|
|
||||||
|
install-static: install-headers libpng.a
|
||||||
|
-@if [ ! -d $(LIBPATH) ]; then mkdir $(LIBPATH); fi
|
||||||
|
cp libpng.a $(LIBPATH)/$(LIBNAME).a
|
||||||
|
chmod 644 $(LIBPATH)/$(LIBNAME).a
|
||||||
|
-@/bin/rm -f $(LIBPATH)/libpng.a
|
||||||
|
ln -f -s $(LIBPATH)/$(LIBNAME).a $(LIBPATH)/libpng.a
|
||||||
|
|
||||||
|
install-shared: install-headers $(LIBNAME).so.$(PNGVER)
|
||||||
|
-@if [ ! -d $(LIBPATH) ]; then mkdir $(LIBPATH); fi
|
||||||
|
-@/bin/rm -f $(LIBPATH)/libpng.so.3*
|
||||||
|
cp $(LIBNAME).so.$(PNGVER) $(LIBPATH)
|
||||||
|
chmod 755 $(LIBPATH)/$(LIBNAME).so.$(PNGVER)
|
||||||
|
-@/bin/rm -f $(LIBPATH)/$(LIBNAME).so.$(PNGMAJ)* $(LIBPATH)/$(LIBNAME).so
|
||||||
|
(cd $(LIBPATH);
|
||||||
|
ln -f -s $(LIBNAME).so.$(PNGVER) $(LIBNAME).so.$(PNGMAJ); \
|
||||||
|
ln -f -s $(LIBNAME).so.$(PNGMAJ) $(LIBNAME).so)
|
||||||
|
-@if [ ! -d $(LIBPATH)/pkgconfig ]; then mkdir $(LIBPATH)/pkgconfig; fi
|
||||||
|
cat scripts/libpng.pc.in | sed -e s\!@PREFIX@!$(prefix)! > libpng.pc
|
||||||
|
cp libpng.pc $(LIBPATH)/pkgconfig/libpng12.pc
|
||||||
|
chmod 644 $(LIBPATH)/pkgconfig/libpng12.pc
|
||||||
|
|
||||||
|
clean:
|
||||||
|
/bin/rm -f *.o libpng.a $(LIBNAME).so $(LIBNAME).so.$(PNGMAJ)* pngtest pngout.png
|
||||||
|
|
||||||
|
DOCS = ANNOUNCE CHANGES INSTALL KNOWNBUG LICENSE README TODO Y2KINFO
|
||||||
|
writelock:
|
||||||
|
chmod a-w *.[ch35] $(DOCS) scripts/*
|
||||||
|
|
||||||
|
# DO NOT DELETE THIS LINE -- make depend depends on it.
|
||||||
|
|
||||||
|
png.o png.pic.o: png.h pngconf.h
|
||||||
|
pngerror.o pngerror.pic.o: png.h pngconf.h
|
||||||
|
pngrio.o pngrio.pic.o: png.h pngconf.h
|
||||||
|
pngwio.o pngwio.pic.o: png.h pngconf.h
|
||||||
|
pngmem.o pngmem.pic.o: png.h pngconf.h
|
||||||
|
pngset.o pngset.pic.o: png.h pngconf.h
|
||||||
|
pngget.o pngget.pic.o: png.h pngconf.h
|
||||||
|
pngread.o pngread.pic.o: png.h pngconf.h
|
||||||
|
pngrtran.o pngrtran.pic.o: png.h pngconf.h
|
||||||
|
pngrutil.o pngrutil.pic.o: png.h pngconf.h
|
||||||
|
pngtrans.o pngtrans.pic.o: png.h pngconf.h
|
||||||
|
pngwrite.o pngwrite.pic.o: png.h pngconf.h
|
||||||
|
pngwtran.o pngwtran.pic.o: png.h pngconf.h
|
||||||
|
pngwutil.o pngwutil.pic.o: png.h pngconf.h
|
||||||
|
pngpread.o pngpread.pic.o: png.h pngconf.h
|
||||||
|
|
||||||
|
pngtest.o: png.h pngconf.h
|
@ -18,7 +18,7 @@ RM = rm -f
|
|||||||
# read libpng.txt or png.h to see why PNGMAJ is 0. You should not
|
# read libpng.txt or png.h to see why PNGMAJ is 0. You should not
|
||||||
# have to change it.
|
# have to change it.
|
||||||
PNGMAJ = 0
|
PNGMAJ = 0
|
||||||
PNGMIN = 1.2.2beta2
|
PNGMIN = 1.2.2beta3
|
||||||
PNGVER = $(PNGMAJ).$(PNGMIN)
|
PNGVER = $(PNGMAJ).$(PNGMIN)
|
||||||
|
|
||||||
prefix=/usr/local
|
prefix=/usr/local
|
||||||
|
@ -14,7 +14,7 @@ ZLIBINC=/usr/local/include
|
|||||||
# read libpng.txt or png.h to see why PNGMAJ is 0. You should not
|
# read libpng.txt or png.h to see why PNGMAJ is 0. You should not
|
||||||
# have to change it.
|
# have to change it.
|
||||||
PNGMAJ = 0
|
PNGMAJ = 0
|
||||||
PNGMIN = 1.2.2beta2
|
PNGMIN = 1.2.2beta3
|
||||||
PNGVER = $(PNGMAJ).$(PNGMIN)
|
PNGVER = $(PNGMAJ).$(PNGMIN)
|
||||||
|
|
||||||
ALIGN=
|
ALIGN=
|
||||||
@ -73,32 +73,37 @@ pngtest: pngtest.o $(LIBNAME).so
|
|||||||
test: pngtest
|
test: pngtest
|
||||||
./pngtest
|
./pngtest
|
||||||
|
|
||||||
install-static: libpng.a
|
install-headers: png.h pngconf.h
|
||||||
-@if [ ! -d $(INCPATH) ]; then mkdir $(INCPATH); fi
|
-@if [ ! -d $(INCPATH) ]; then mkdir $(INCPATH); fi
|
||||||
-@if [ ! -d $(LIBPATH) ]; then mkdir $(LIBPATH); fi
|
|
||||||
cp png.h pngconf.h $(INCPATH)
|
|
||||||
chmod 644 $(INCPATH)/png.h $(INCPATH)/pngconf.h
|
|
||||||
cp libpng.a $(LIBPATH)
|
|
||||||
chmod 644 $(LIBPATH)/libpng.a
|
|
||||||
|
|
||||||
install: libpng.a $(LIBNAME).so.$(PNGVER)
|
|
||||||
-@if [ ! -d $(INCPATH) ]; then mkdir $(INCPATH); fi
|
|
||||||
-@if [ ! -d $(LIBPATH) ]; then mkdir $(LIBPATH); fi
|
|
||||||
-@if [ ! -d $(INCPATH)/$(LIBNAME) ]; then mkdir $(INCPATH)/$(LIBNAME); fi
|
-@if [ ! -d $(INCPATH)/$(LIBNAME) ]; then mkdir $(INCPATH)/$(LIBNAME); fi
|
||||||
cp png.h pngconf.h $(INCPATH)/$(LIBNAME)
|
cp png.h pngconf.h $(INCPATH)/$(LIBNAME)
|
||||||
chmod 644 $(INCPATH)/$(LIBNAME)/png.h $(INCPATH)/$(LIBNAME)/pngconf.h
|
chmod 644 $(INCPATH)/$(LIBNAME)/png.h $(INCPATH)/$(LIBNAME)/pngconf.h
|
||||||
-@/bin/rm -f $(INCPATH)/png.h $(INCPATH)/pngconf.h
|
-@/bin/rm -f $(INCPATH)/png.h $(INCPATH)/pngconf.h
|
||||||
ln -sf $(INCPATH)/$(LIBNAME)/png.h $(INCPATH)
|
ln -sf $(INCPATH)/$(LIBNAME)/png.h $(INCPATH)
|
||||||
ln -sf $(INCPATH)/$(LIBNAME)/pngconf.h $(INCPATH)
|
ln -sf $(INCPATH)/$(LIBNAME)/pngconf.h $(INCPATH)
|
||||||
|
|
||||||
|
install-static: install-headers libpng.a
|
||||||
|
-@if [ ! -d $(LIBPATH) ]; then mkdir $(LIBPATH); fi
|
||||||
cp libpng.a $(LIBPATH)/$(LIBNAME).a
|
cp libpng.a $(LIBPATH)/$(LIBNAME).a
|
||||||
chmod 644 $(LIBPATH)/$(LIBNAME).a
|
chmod 644 $(LIBPATH)/$(LIBNAME).a
|
||||||
-@/bin/rm -f $(LIBPATH)/libpng.a
|
-@/bin/rm -f $(LIBPATH)/libpng.a
|
||||||
ln -sf $(LIBPATH)/$(LIBNAME).a $(LIBPATH)/libpng.a
|
ln -sf $(LIBPATH)/$(LIBNAME).a $(LIBPATH)/libpng.a
|
||||||
|
|
||||||
|
install-shared: install-headers $(LIBNAME).so.$(PNGVER)
|
||||||
|
-@if [ ! -d $(LIBPATH) ]; then mkdir $(LIBPATH); fi
|
||||||
|
-@/bin/rm -f $(LIBPATH)/libpng.so.3*
|
||||||
cp $(LIBNAME).so.$(PNGVER) $(LIBPATH)
|
cp $(LIBNAME).so.$(PNGVER) $(LIBPATH)
|
||||||
chmod 755 $(LIBPATH)/$(LIBNAME).so.$(PNGVER)
|
chmod 755 $(LIBPATH)/$(LIBNAME).so.$(PNGVER)
|
||||||
-@/bin/rm -f $(LIBPATH)/$(LIBNAME).so.$(PNGMAJ)* $(LIBPATH)/$(LIBNAME).so
|
-@/bin/rm -f $(LIBPATH)/$(LIBNAME).so.$(PNGMAJ)* $(LIBPATH)/$(LIBNAME).so
|
||||||
(cd $(LIBPATH); ln -sf $(LIBNAME).so.$(PNGVER) $(LIBNAME).so.$(PNGMAJ); \
|
(cd $(LIBPATH);
|
||||||
|
ln -sf $(LIBNAME).so.$(PNGVER) $(LIBNAME).so.$(PNGMAJ); \
|
||||||
ln -sf $(LIBNAME).so.$(PNGMAJ) $(LIBNAME).so)
|
ln -sf $(LIBNAME).so.$(PNGMAJ) $(LIBNAME).so)
|
||||||
|
-@if [ ! -d $(LIBPATH)/pkgconfig ]; then mkdir $(LIBPATH)/pkgconfig; fi
|
||||||
|
cat scripts/libpng.pc.in | sed -e s\!@PREFIX@!$(prefix)! > libpng.pc
|
||||||
|
cp libpng.pc $(LIBPATH)/pkgconfig/libpng12.pc
|
||||||
|
chmod 644 $(LIBPATH)/pkgconfig/libpng12.pc
|
||||||
|
|
||||||
|
install: install-static install-shared
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
/bin/rm -f *.o libpng.a $(LIBNAME).so $(LIBNAME).so.$(PNGMAJ)* \
|
/bin/rm -f *.o libpng.a $(LIBNAME).so $(LIBNAME).so.$(PNGMAJ)* \
|
||||||
|
@ -39,7 +39,7 @@ CFLAGS=-I$(ZLIBINC) -Wall -O3 $(ALIGN) -funroll-loops \
|
|||||||
# have to change it.
|
# have to change it.
|
||||||
PNGMAJ = 0
|
PNGMAJ = 0
|
||||||
#PNGDLL = $12
|
#PNGDLL = $12
|
||||||
PNGMIN = 1.2.2beta2
|
PNGMIN = 1.2.2beta3
|
||||||
PNGMIN_BASE = 1.2.2
|
PNGMIN_BASE = 1.2.2
|
||||||
PNGVER = $(PNGMAJ).$(PNGMIN)
|
PNGVER = $(PNGMAJ).$(PNGMIN)
|
||||||
|
|
||||||
|
@ -25,7 +25,7 @@ RANLIB=ranlib
|
|||||||
# read libpng.txt or png.h to see why PNGMAJ is 0. You should not
|
# read libpng.txt or png.h to see why PNGMAJ is 0. You should not
|
||||||
# have to change it.
|
# have to change it.
|
||||||
PNGMAJ = 0
|
PNGMAJ = 0
|
||||||
PNGMIN = 1.2.2beta2
|
PNGMIN = 1.2.2beta3
|
||||||
PNGVER = $(PNGMAJ).$(PNGMIN)
|
PNGVER = $(PNGMAJ).$(PNGMIN)
|
||||||
LIBNAME = libpng12
|
LIBNAME = libpng12
|
||||||
|
|
||||||
@ -68,27 +68,25 @@ pngtest: pngtest.o $(LIBNAME).dylib
|
|||||||
test: pngtest
|
test: pngtest
|
||||||
./pngtest
|
./pngtest
|
||||||
|
|
||||||
install-static: libpng.a
|
install-headers: png.h pngconf.h
|
||||||
-@if [ ! -d $(INCPATH) ]; then mkdir $(INCPATH); fi
|
-@if [ ! -d $(INCPATH) ]; then mkdir $(INCPATH); fi
|
||||||
-@if [ ! -d $(LIBPATH) ]; then mkdir $(LIBPATH); fi
|
|
||||||
cp png.h pngconf.h $(INCPATH)
|
|
||||||
chmod 644 $(INCPATH)/png.h $(INCPATH)/pngconf.h
|
|
||||||
cp libpng.a $(LIBPATH)
|
|
||||||
chmod 644 $(LIBPATH)/libpng.a
|
|
||||||
|
|
||||||
install: libpng.a $(LIBNAME).dylib
|
|
||||||
-@if [ ! -d $(INCPATH) ]; then mkdir $(INCPATH); fi
|
|
||||||
-@if [ ! -d $(LIBPATH) ]; then mkdir $(LIBPATH); fi
|
|
||||||
-@if [ ! -d $(INCPATH)/$(LIBNAME) ]; then mkdir $(INCPATH)/$(LIBNAME); fi
|
-@if [ ! -d $(INCPATH)/$(LIBNAME) ]; then mkdir $(INCPATH)/$(LIBNAME); fi
|
||||||
cp png.h pngconf.h $(INCPATH)/$(LIBNAME)
|
cp png.h pngconf.h $(INCPATH)/$(LIBNAME)
|
||||||
chmod 644 $(INCPATH)/$(LIBNAME)/png.h $(INCPATH)/$(LIBNAME)/pngconf.h
|
chmod 644 $(INCPATH)/$(LIBNAME)/png.h $(INCPATH)/$(LIBNAME)/pngconf.h
|
||||||
-@/bin/rm -f $(INCPATH)/png.h $(INCPATH)/pngconf.h
|
-@/bin/rm -f $(INCPATH)/png.h $(INCPATH)/pngconf.h
|
||||||
ln -sf $(INCPATH)/$(LIBNAME)/png.h $(INCPATH)
|
ln -sf $(INCPATH)/$(LIBNAME)/png.h $(INCPATH)
|
||||||
ln -sf $(INCPATH)/$(LIBNAME)/pngconf.h $(INCPATH)
|
ln -sf $(INCPATH)/$(LIBNAME)/pngconf.h $(INCPATH)
|
||||||
|
|
||||||
|
install-static: install-headers libpng.a
|
||||||
|
-@if [ ! -d $(LIBPATH) ]; then mkdir $(LIBPATH); fi
|
||||||
cp libpng.a $(LIBPATH)/$(LIBNAME).a
|
cp libpng.a $(LIBPATH)/$(LIBNAME).a
|
||||||
chmod 644 $(LIBPATH)/$(LIBNAME).a
|
chmod 644 $(LIBPATH)/$(LIBNAME).a
|
||||||
-@/bin/rm -f $(LIBPATH)/libpng.a
|
-@/bin/rm -f $(LIBPATH)/libpng.a
|
||||||
ln -sf $(LIBPATH)/$(LIBNAME).a $(LIBPATH)/libpng.a
|
ln -sf $(LIBPATH)/$(LIBNAME).a $(LIBPATH)/libpng.a
|
||||||
|
|
||||||
|
install-shared: install-headers $(LIBNAME).dylib
|
||||||
|
-@if [ ! -d $(LIBPATH) ]; then mkdir $(LIBPATH); fi
|
||||||
|
-@/bin/rm -f $(LIBPATH)/libpng.so.3*.dylib
|
||||||
cp $(LIBNAME).$(PNGVER).dylib $(LIBPATH)
|
cp $(LIBNAME).$(PNGVER).dylib $(LIBPATH)
|
||||||
chmod 755 $(LIBPATH)/$(LIBNAME).$(PNGVER).dylib
|
chmod 755 $(LIBPATH)/$(LIBNAME).$(PNGVER).dylib
|
||||||
-@/bin/rm -f $(LIBPATH)/$(LIBNAME).$(PNGMAJ)*.dylib
|
-@/bin/rm -f $(LIBPATH)/$(LIBNAME).$(PNGMAJ)*.dylib
|
||||||
@ -96,6 +94,12 @@ install: libpng.a $(LIBNAME).dylib
|
|||||||
(cd $(LIBPATH);
|
(cd $(LIBPATH);
|
||||||
ln -sf $(LIBNAME).$(PNGVER).dylib $(LIBNAME).$(PNGMAJ).dylib; \
|
ln -sf $(LIBNAME).$(PNGVER).dylib $(LIBNAME).$(PNGMAJ).dylib; \
|
||||||
ln -sf $(LIBNAME).$(PNGMAJ).dylib $(LIBNAME).dylib)
|
ln -sf $(LIBNAME).$(PNGMAJ).dylib $(LIBNAME).dylib)
|
||||||
|
-@if [ ! -d $(LIBPATH)/pkgconfig ]; then mkdir $(LIBPATH)/pkgconfig; fi
|
||||||
|
cat scripts/libpng.pc.in | sed -e s\!@PREFIX@!$(prefix)! > libpng.pc
|
||||||
|
cp libpng.pc $(LIBPATH)/pkgconfig/libpng12.pc
|
||||||
|
chmod 644 $(LIBPATH)/pkgconfig/libpng12.pc
|
||||||
|
|
||||||
|
install: install-static install-shared
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f *.o libpng.a $(LIBNAME).*dylib pngtest pngout.png
|
rm -f *.o libpng.a $(LIBNAME).*dylib pngtest pngout.png
|
||||||
|
@ -17,7 +17,7 @@ ZLIBINC=../zlib
|
|||||||
# read libpng.txt or png.h to see why PNGMAJ is 0. You should not
|
# read libpng.txt or png.h to see why PNGMAJ is 0. You should not
|
||||||
# have to change it.
|
# have to change it.
|
||||||
PNGMAJ = 0
|
PNGMAJ = 0
|
||||||
PNGMIN = 1.2.2beta2
|
PNGMIN = 1.2.2beta3
|
||||||
PNGVER = $(PNGMAJ).$(PNGMIN)
|
PNGVER = $(PNGMAJ).$(PNGMIN)
|
||||||
LIBNAME = libpng12
|
LIBNAME = libpng12
|
||||||
|
|
||||||
@ -53,34 +53,37 @@ pngtest: pngtest.o libpng.a
|
|||||||
test: pngtest
|
test: pngtest
|
||||||
./pngtest
|
./pngtest
|
||||||
|
|
||||||
|
install-headers: png.h pngconf.h
|
||||||
install-static: libpng.a
|
|
||||||
-@if [ ! -d $(INCPATH) ]; then mkdir $(INCPATH); fi
|
-@if [ ! -d $(INCPATH) ]; then mkdir $(INCPATH); fi
|
||||||
-@if [ ! -d $(LIBPATH) ]; then mkdir $(LIBPATH); fi
|
|
||||||
cp png.h pngconf.h $(INCPATH)
|
|
||||||
chmod 644 $(INCPATH)/png.h $(INCPATH)/pngconf.h
|
|
||||||
cp libpng.a $(LIBPATH)
|
|
||||||
chmod 644 $(LIBPATH)/libpng.a
|
|
||||||
|
|
||||||
install: libpng.a $(LIBNAME).so.$(PNGVER)
|
|
||||||
-@if [ ! -d $(INCPATH) ]; then mkdir $(INCPATH); fi
|
|
||||||
-@if [ ! -d $(LIBPATH) ]; then mkdir $(LIBPATH); fi
|
|
||||||
-@if [ ! -d $(INCPATH)/$(LIBNAME) ]; then mkdir $(INCPATH)/$(LIBNAME); fi
|
-@if [ ! -d $(INCPATH)/$(LIBNAME) ]; then mkdir $(INCPATH)/$(LIBNAME); fi
|
||||||
cp png.h pngconf.h $(INCPATH)/$(LIBNAME)
|
cp png.h pngconf.h $(INCPATH)/$(LIBNAME)
|
||||||
chmod 644 $(INCPATH)/$(LIBNAME)/png.h $(INCPATH)/$(LIBNAME)/pngconf.h
|
chmod 644 $(INCPATH)/$(LIBNAME)/png.h $(INCPATH)/$(LIBNAME)/pngconf.h
|
||||||
-@/bin/rm -f $(INCPATH)/png.h $(INCPATH)/pngconf.h
|
-@/bin/rm -f $(INCPATH)/png.h $(INCPATH)/pngconf.h
|
||||||
ln -f -s $(INCPATH)/$(LIBNAME)/png.h $(INCPATH)
|
ln -sf $(INCPATH)/$(LIBNAME)/png.h $(INCPATH)
|
||||||
ln -f -s $(INCPATH)/$(LIBNAME)/pngconf.h $(INCPATH)
|
ln -sf $(INCPATH)/$(LIBNAME)/pngconf.h $(INCPATH)
|
||||||
|
|
||||||
|
install-static: install-headers libpng.a
|
||||||
|
-@if [ ! -d $(LIBPATH) ]; then mkdir $(LIBPATH); fi
|
||||||
cp libpng.a $(LIBPATH)/$(LIBNAME).a
|
cp libpng.a $(LIBPATH)/$(LIBNAME).a
|
||||||
chmod 644 $(LIBPATH)/$(LIBNAME).a
|
chmod 644 $(LIBPATH)/$(LIBNAME).a
|
||||||
-@/bin/rm -f $(LIBPATH)/libpng.a
|
-@/bin/rm -f $(LIBPATH)/libpng.a
|
||||||
ln -f -s $(LIBPATH)/$(LIBNAME).a $(LIBPATH)/libpng.a
|
ln -sf $(LIBPATH)/$(LIBNAME).a $(LIBPATH)/libpng.a
|
||||||
|
|
||||||
|
install-shared: install-headers $(LIBNAME).so.$(PNGVER)
|
||||||
|
-@if [ ! -d $(LIBPATH) ]; then mkdir $(LIBPATH); fi
|
||||||
|
-@/bin/rm -f $(LIBPATH)/libpng.so.3*
|
||||||
cp $(LIBNAME).so.$(PNGVER) $(LIBPATH)
|
cp $(LIBNAME).so.$(PNGVER) $(LIBPATH)
|
||||||
chmod 755 $(LIBPATH)/$(LIBNAME).so.$(PNGVER)
|
chmod 755 $(LIBPATH)/$(LIBNAME).so.$(PNGVER)
|
||||||
-@/bin/rm -f $(LIBPATH)/$(LIBNAME).so.$(PNGMAJ)* $(LIBPATH)/$(LIBNAME).so
|
-@/bin/rm -f $(LIBPATH)/$(LIBNAME).so.$(PNGMAJ)* $(LIBPATH)/$(LIBNAME).so
|
||||||
(cd $(LIBPATH); \
|
(cd $(LIBPATH);
|
||||||
ln -f -s $(LIBNAME).so.$(PNGVER) $(LIBNAME).so.$(PNGMAJ); \
|
ln -sf $(LIBNAME).so.$(PNGVER) $(LIBNAME).so.$(PNGMAJ); \
|
||||||
ln -f -s $(LIBNAME).so.$(PNGMAJ) $(LIBNAME).so)
|
ln -sf $(LIBNAME).so.$(PNGMAJ) $(LIBNAME).so)
|
||||||
|
-@if [ ! -d $(LIBPATH)/pkgconfig ]; then mkdir $(LIBPATH)/pkgconfig; fi
|
||||||
|
cat scripts/libpng.pc.in | sed -e s\!@PREFIX@!$(prefix)! > libpng.pc
|
||||||
|
cp libpng.pc $(LIBPATH)/pkgconfig/libpng12.pc
|
||||||
|
chmod 644 $(LIBPATH)/pkgconfig/libpng12.pc
|
||||||
|
|
||||||
|
install: install-static install-shared
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
/bin/rm -f *.o libpng.a $(LIBNAME).so $(LIBNAME).so.$(PNGMAJ)* pngtest pngout.png
|
/bin/rm -f *.o libpng.a $(LIBNAME).so $(LIBNAME).so.$(PNGMAJ)* pngtest pngout.png
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
|
|
||||||
LIBNAME = libpng12
|
LIBNAME = libpng12
|
||||||
PNGMAJ = 0
|
PNGMAJ = 0
|
||||||
PNGMIN = 1.2.2beta2
|
PNGMIN = 1.2.2beta3
|
||||||
PNGVER = $(PNGMAJ).$(PNGMIN)
|
PNGVER = $(PNGMAJ).$(PNGMIN)
|
||||||
|
|
||||||
CC=gcc
|
CC=gcc
|
||||||
@ -112,34 +112,41 @@ test: pngtest pngtest-static
|
|||||||
@echo ""
|
@echo ""
|
||||||
./pngtest-static
|
./pngtest-static
|
||||||
|
|
||||||
install-static: libpng.a
|
install-headers: png.h pngconf.h
|
||||||
-@if [ ! -d $(INCPATH) ]; then mkdir $(INCPATH); fi
|
-@if [ ! -d $(INCPATH) ]; then mkdir $(INCPATH); fi
|
||||||
-@if [ ! -d $(LIBPATH) ]; then mkdir $(LIBPATH); fi
|
|
||||||
cp png.h pngconf.h $(INCPATH)
|
|
||||||
chmod 644 $(INCPATH)/png.h $(INCPATH)/pngconf.h
|
|
||||||
cp libpng.a $(LIBPATH)
|
|
||||||
chmod 644 $(LIBPATH)/libpng.a
|
|
||||||
|
|
||||||
install: libpng.a $(LIBNAME).so.$(PNGVER)
|
|
||||||
-@if [ ! -d $(INCPATH) ]; then mkdir $(INCPATH); fi
|
|
||||||
-@if [ ! -d $(LIBPATH) ]; then mkdir $(LIBPATH); fi
|
|
||||||
-@if [ ! -d $(INCPATH)/$(LIBNAME) ]; then mkdir $(INCPATH)/$(LIBNAME); fi
|
-@if [ ! -d $(INCPATH)/$(LIBNAME) ]; then mkdir $(INCPATH)/$(LIBNAME); fi
|
||||||
cp png.h pngconf.h $(INCPATH)/$(LIBNAME)
|
cp png.h pngconf.h $(INCPATH)/$(LIBNAME)
|
||||||
chmod 644 $(INCPATH)/$(LIBNAME)/png.h $(INCPATH)/$(LIBNAME)/pngconf.h
|
chmod 644 $(INCPATH)/$(LIBNAME)/png.h $(INCPATH)/$(LIBNAME)/pngconf.h
|
||||||
-@/bin/rm -f $(INCPATH)/png.h $(INCPATH)/pngconf.h
|
-@/bin/rm -f $(INCPATH)/png.h $(INCPATH)/pngconf.h
|
||||||
ln -sf $(INCPATH)/$(LIBNAME)/png.h $(INCPATH)
|
ln -sf $(INCPATH)/$(LIBNAME)/png.h $(INCPATH)
|
||||||
ln -sf $(INCPATH)/$(LIBNAME)/pngconf.h $(INCPATH)
|
ln -sf $(INCPATH)/$(LIBNAME)/pngconf.h $(INCPATH)
|
||||||
|
|
||||||
|
install-static: install-headers libpng.a
|
||||||
|
-@if [ ! -d $(LIBPATH) ]; then mkdir $(LIBPATH); fi
|
||||||
cp libpng.a $(LIBPATH)/$(LIBNAME).a
|
cp libpng.a $(LIBPATH)/$(LIBNAME).a
|
||||||
chmod 644 $(LIBPATH)/$(LIBNAME).a
|
chmod 644 $(LIBPATH)/$(LIBNAME).a
|
||||||
-@/bin/rm -f $(LIBPATH)/libpng.a
|
-@/bin/rm -f $(LIBPATH)/libpng.a
|
||||||
ln -sf $(LIBPATH)/$(LIBNAME).a $(LIBPATH)/libpng.a
|
ln -sf $(LIBPATH)/$(LIBNAME).a $(LIBPATH)/libpng.a
|
||||||
|
|
||||||
|
install-shared: install-headers $(LIBNAME).so.$(PNGVER)
|
||||||
|
-@if [ ! -d $(LIBPATH) ]; then mkdir $(LIBPATH); fi
|
||||||
|
-@/bin/rm -f $(LIBPATH)/libpng.so.3*
|
||||||
cp $(LIBNAME).so.$(PNGVER) $(LIBPATH)
|
cp $(LIBNAME).so.$(PNGVER) $(LIBPATH)
|
||||||
chmod 755 $(LIBPATH)/$(LIBNAME).so.$(PNGVER)
|
chmod 755 $(LIBPATH)/$(LIBNAME).so.$(PNGVER)
|
||||||
-@/bin/rm -f $(LIBPATH)/$(LIBNAME).so.$(PNGMAJ)* $(LIBPATH)/$(LIBNAME).so
|
-@/bin/rm -f $(LIBPATH)/$(LIBNAME).so.$(PNGMAJ)* $(LIBPATH)/$(LIBNAME).so
|
||||||
(cd $(LIBPATH); ln -sf $(LIBNAME).so.$(PNGVER) $(LIBNAME).so.$(PNGMAJ); \
|
(cd $(LIBPATH);
|
||||||
|
ln -sf $(LIBNAME).so.$(PNGVER) $(LIBNAME).so.$(PNGMAJ); \
|
||||||
ln -sf $(LIBNAME).so.$(PNGMAJ) $(LIBNAME).so)
|
ln -sf $(LIBNAME).so.$(PNGMAJ) $(LIBNAME).so)
|
||||||
|
-@if [ ! -d $(LIBPATH)/pkgconfig ]; then mkdir $(LIBPATH)/pkgconfig; fi
|
||||||
|
cat scripts/libpng.pc.in | sed -e s\!@PREFIX@!$(prefix)! > libpng.pc
|
||||||
|
cp libpng.pc $(LIBPATH)/pkgconfig/libpng12.pc
|
||||||
|
chmod 644 $(LIBPATH)/pkgconfig/libpng12.pc
|
||||||
|
|
||||||
|
install: install-static install-shared
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
/bin/rm -f *.o libpng.a $(LIBNAME).so $(LIBNAME).so.$(PNGMAJ)* pngtest pngout.png
|
/bin/rm -f *.o libpng.a $(LIBNAME).so $(LIBNAME).so.$(PNGMAJ)* \
|
||||||
|
pngtest pngout.png
|
||||||
|
|
||||||
DOCS = ANNOUNCE CHANGES INSTALL KNOWNBUG LICENSE README TODO Y2KINFO
|
DOCS = ANNOUNCE CHANGES INSTALL KNOWNBUG LICENSE README TODO Y2KINFO
|
||||||
writelock:
|
writelock:
|
||||||
|
@ -35,7 +35,7 @@ RANLIB=ranlib
|
|||||||
# read libpng.txt or png.h to see why PNGMAJ is 0. You should not
|
# read libpng.txt or png.h to see why PNGMAJ is 0. You should not
|
||||||
# have to change it.
|
# have to change it.
|
||||||
PNGMAJ = 0
|
PNGMAJ = 0
|
||||||
PNGMIN = 1.2.2beta2
|
PNGMIN = 1.2.2beta3
|
||||||
PNGVER = $(PNGMAJ).$(PNGMIN)
|
PNGVER = $(PNGMAJ).$(PNGMIN)
|
||||||
LIBNAME = libpng12
|
LIBNAME = libpng12
|
||||||
|
|
||||||
@ -75,32 +75,38 @@ pngtest: pngtest.o $(LIBNAME).sl
|
|||||||
test: pngtest
|
test: pngtest
|
||||||
./pngtest
|
./pngtest
|
||||||
|
|
||||||
install-static: libpng.a
|
|
||||||
-@if [ ! -d $(INCPATH) ]; then mkdir $(INCPATH); fi
|
|
||||||
-@if [ ! -d $(LIBPATH) ]; then mkdir $(LIBPATH); fi
|
|
||||||
cp png.h pngconf.h $(INCPATH)
|
|
||||||
chmod 644 $(INCPATH)/png.h $(INCPATH)/pngconf.h
|
|
||||||
cp libpng.a $(LIBPATH)
|
|
||||||
chmod 644 $(LIBPATH)/libpng.a
|
|
||||||
|
|
||||||
install: libpng.a $(LIBNAME).sl.$(PNGVER)
|
install-headers: png.h pngconf.h
|
||||||
-@if [ ! -d $(INCPATH) ]; then mkdir $(INCPATH); fi
|
-@if [ ! -d $(INCPATH) ]; then mkdir $(INCPATH); fi
|
||||||
-@if [ ! -d $(LIBPATH) ]; then mkdir $(LIBPATH); fi
|
|
||||||
-@if [ ! -d $(INCPATH)/$(LIBNAME) ]; then mkdir $(INCPATH)/$(LIBNAME); fi
|
-@if [ ! -d $(INCPATH)/$(LIBNAME) ]; then mkdir $(INCPATH)/$(LIBNAME); fi
|
||||||
cp png.h pngconf.h $(INCPATH)/$(LIBNAME)
|
cp png.h pngconf.h $(INCPATH)/$(LIBNAME)
|
||||||
chmod 644 $(INCPATH)/$(LIBNAME)/png.h $(INCPATH)/$(LIBNAME)/pngconf.h
|
chmod 644 $(INCPATH)/$(LIBNAME)/png.h $(INCPATH)/$(LIBNAME)/pngconf.h
|
||||||
-@/bin/rm -f $(INCPATH)/png.h $(INCPATH)/pngconf.h
|
-@/bin/rm -f $(INCPATH)/png.h $(INCPATH)/pngconf.h
|
||||||
ln -sf $(INCPATH)/$(LIBNAME)/png.h $(INCPATH)
|
ln -sf $(INCPATH)/$(LIBNAME)/png.h $(INCPATH)
|
||||||
ln -sf $(INCPATH)/$(LIBNAME)/pngconf.h $(INCPATH)
|
ln -sf $(INCPATH)/$(LIBNAME)/pngconf.h $(INCPATH)
|
||||||
|
|
||||||
|
install-static: install-headers libpng.a
|
||||||
|
-@if [ ! -d $(LIBPATH) ]; then mkdir $(LIBPATH); fi
|
||||||
cp libpng.a $(LIBPATH)/$(LIBNAME).a
|
cp libpng.a $(LIBPATH)/$(LIBNAME).a
|
||||||
chmod 644 $(LIBPATH)/$(LIBNAME).a
|
chmod 644 $(LIBPATH)/$(LIBNAME).a
|
||||||
-@/bin/rm -f $(LIBPATH)/libpng.a
|
-@/bin/rm -f $(LIBPATH)/libpng.a
|
||||||
ln -sf $(LIBPATH)/$(LIBNAME).a $(LIBPATH)/libpng.a
|
ln -sf $(LIBPATH)/$(LIBNAME).a $(LIBPATH)/libpng.a
|
||||||
|
|
||||||
|
install-shared: install-headers $(LIBNAME).sl.$(PNGVER)
|
||||||
|
-@if [ ! -d $(LIBPATH) ]; then mkdir $(LIBPATH); fi
|
||||||
|
-@/bin/rm -f $(LIBPATH)/libpng.sl.3*
|
||||||
cp $(LIBNAME).sl.$(PNGVER) $(LIBPATH)
|
cp $(LIBNAME).sl.$(PNGVER) $(LIBPATH)
|
||||||
chmod 755 $(LIBPATH)/$(LIBNAME).sl.$(PNGVER)
|
chmod 755 $(LIBPATH)/$(LIBNAME).sl.$(PNGVER)
|
||||||
-@/bin/rm -f $(LIBPATH)/$(LIBNAME).sl.$(PNGMAJ)* $(LIBPATH)/$(LIBNAME).sl
|
-@/bin/rm -f $(LIBPATH)/$(LIBNAME).sl.$(PNGMAJ)* $(LIBPATH)/$(LIBNAME).sl
|
||||||
(cd $(LIBPATH); ln -sf $(LIBNAME).sl.$(PNGVER) $(LIBNAME).sl.$(PNGMAJ); \
|
(cd $(LIBPATH);
|
||||||
|
ln -sf $(LIBNAME).sl.$(PNGVER) $(LIBNAME).sl.$(PNGMAJ); \
|
||||||
ln -sf $(LIBNAME).sl.$(PNGMAJ) $(LIBNAME).sl)
|
ln -sf $(LIBNAME).sl.$(PNGMAJ) $(LIBNAME).sl)
|
||||||
|
-@if [ ! -d $(LIBPATH)/pkgconfig ]; then mkdir $(LIBPATH)/pkgconfig; fi
|
||||||
|
cat scripts/libpng.pc.in | sed -e s\!@PREFIX@!$(prefix)! > libpng.pc
|
||||||
|
cp libpng.pc $(LIBPATH)/pkgconfig/libpng12.pc
|
||||||
|
chmod 644 $(LIBPATH)/pkgconfig/libpng12.pc
|
||||||
|
|
||||||
|
install: install-static install-shared
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
/bin/rm -f *.o libpng.a $(SHAREDLIB).sl $(SHAREDLIB).sl.$(PNGMAJ)* \
|
/bin/rm -f *.o libpng.a $(SHAREDLIB).sl $(SHAREDLIB).sl.$(PNGMAJ)* \
|
||||||
|
@ -19,7 +19,7 @@ RANLIB=ranlib
|
|||||||
# read libpng.txt or png.h to see why PNGMAJ is 0. You should not
|
# read libpng.txt or png.h to see why PNGMAJ is 0. You should not
|
||||||
# have to change it.
|
# have to change it.
|
||||||
PNGMAJ = 0
|
PNGMAJ = 0
|
||||||
PNGMIN = 1.2.2beta2
|
PNGMIN = 1.2.2beta3
|
||||||
PNGVER = $(PNGMAJ).$(PNGMIN)
|
PNGVER = $(PNGMAJ).$(PNGMIN)
|
||||||
LIBNAME = libpng12
|
LIBNAME = libpng12
|
||||||
|
|
||||||
@ -46,10 +46,10 @@ libpng.a: $(OBJS)
|
|||||||
$(RANLIB) $@
|
$(RANLIB) $@
|
||||||
|
|
||||||
$(LIBNAME).sl: $(LIBNAME).sl.$(PNGMAJ)
|
$(LIBNAME).sl: $(LIBNAME).sl.$(PNGMAJ)
|
||||||
ln -f -s $(LIBNAME).sl.$(PNGMAJ) $(LIBNAME).sl
|
ln -sf $(LIBNAME).sl.$(PNGMAJ) $(LIBNAME).sl
|
||||||
|
|
||||||
$(LIBNAME).sl.$(PNGMAJ): $(LIBNAME).sl.$(PNGVER)
|
$(LIBNAME).sl.$(PNGMAJ): $(LIBNAME).sl.$(PNGVER)
|
||||||
ln -f -s $(LIBNAME).sl.$(PNGVER) $(LIBNAME).sl.$(PNGMAJ)
|
ln -sf $(LIBNAME).sl.$(PNGVER) $(LIBNAME).sl.$(PNGMAJ)
|
||||||
|
|
||||||
$(LIBNAME).sl.$(PNGVER): $(OBJSDLL)
|
$(LIBNAME).sl.$(PNGVER): $(OBJSDLL)
|
||||||
$(LD) -b -L$(ZLIBLIB) +s +b $(ZLIBLIB) \
|
$(LD) -b -L$(ZLIBLIB) +s +b $(ZLIBLIB) \
|
||||||
@ -62,33 +62,37 @@ pngtest: pngtest.o libpng.a
|
|||||||
test: pngtest
|
test: pngtest
|
||||||
./pngtest
|
./pngtest
|
||||||
|
|
||||||
install-static: libpng.a
|
install-headers: png.h pngconf.h
|
||||||
-@if [ ! -d $(INCPATH) ]; then mkdir $(INCPATH); fi
|
-@if [ ! -d $(INCPATH) ]; then mkdir $(INCPATH); fi
|
||||||
-@if [ ! -d $(LIBPATH) ]; then mkdir $(LIBPATH); fi
|
|
||||||
cp png.h pngconf.h $(INCPATH)
|
|
||||||
chmod 644 $(INCPATH)/png.h $(INCPATH)/pngconf.h
|
|
||||||
cp libpng.a $(LIBPATH)
|
|
||||||
chmod 644 $(LIBPATH)/libpng.a
|
|
||||||
|
|
||||||
install: libpng.a $(LIBNAME).sl.$(PNGVER)
|
|
||||||
-@if [ ! -d $(INCPATH) ]; then mkdir $(INCPATH); fi
|
|
||||||
-@if [ ! -d $(LIBPATH) ]; then mkdir $(LIBPATH); fi
|
|
||||||
-@if [ ! -d $(INCPATH)/$(LIBNAME) ]; then mkdir $(INCPATH)/$(LIBNAME); fi
|
-@if [ ! -d $(INCPATH)/$(LIBNAME) ]; then mkdir $(INCPATH)/$(LIBNAME); fi
|
||||||
cp png.h pngconf.h $(INCPATH)/$(LIBNAME)
|
cp png.h pngconf.h $(INCPATH)/$(LIBNAME)
|
||||||
chmod 644 $(INCPATH)/$(LIBNAME)/png.h $(INCPATH)/$(LIBNAME)/pngconf.h
|
chmod 644 $(INCPATH)/$(LIBNAME)/png.h $(INCPATH)/$(LIBNAME)/pngconf.h
|
||||||
-@/bin/rm -f $(INCPATH)/png.h $(INCPATH)/pngconf.h
|
-@/bin/rm -f $(INCPATH)/png.h $(INCPATH)/pngconf.h
|
||||||
ln -f -s $(INCPATH)/$(LIBNAME)/png.h $(INCPATH)
|
ln -sf $(INCPATH)/$(LIBNAME)/png.h $(INCPATH)
|
||||||
ln -f -s $(INCPATH)/$(LIBNAME)/pngconf.h $(INCPATH)
|
ln -sf $(INCPATH)/$(LIBNAME)/pngconf.h $(INCPATH)
|
||||||
|
|
||||||
|
install-static: install-headers libpng.a
|
||||||
|
-@if [ ! -d $(LIBPATH) ]; then mkdir $(LIBPATH); fi
|
||||||
cp libpng.a $(LIBPATH)/$(LIBNAME).a
|
cp libpng.a $(LIBPATH)/$(LIBNAME).a
|
||||||
chmod 644 $(LIBPATH)/$(LIBNAME).a
|
chmod 644 $(LIBPATH)/$(LIBNAME).a
|
||||||
-@/bin/rm -f $(LIBPATH)/libpng.a
|
-@/bin/rm -f $(LIBPATH)/libpng.a
|
||||||
ln -f -s $(LIBPATH)/$(LIBNAME).a $(LIBPATH)/libpng.a
|
ln -sf $(LIBPATH)/$(LIBNAME).a $(LIBPATH)/libpng.a
|
||||||
|
|
||||||
|
install-shared: install-headers $(LIBNAME).sl.$(PNGVER)
|
||||||
|
-@if [ ! -d $(LIBPATH) ]; then mkdir $(LIBPATH); fi
|
||||||
|
-@/bin/rm -f $(LIBPATH)/libpng.sl.3*
|
||||||
cp $(LIBNAME).sl.$(PNGVER) $(LIBPATH)
|
cp $(LIBNAME).sl.$(PNGVER) $(LIBPATH)
|
||||||
chmod 755 $(LIBPATH)/$(LIBNAME).sl.$(PNGVER)
|
chmod 755 $(LIBPATH)/$(LIBNAME).sl.$(PNGVER)
|
||||||
-@/bin/rm -f $(LIBPATH)/$(LIBNAME).sl.$(PNGMAJ)* $(LIBPATH)/$(LIBNAME).sl
|
-@/bin/rm -f $(LIBPATH)/$(LIBNAME).sl.$(PNGMAJ)* $(LIBPATH)/$(LIBNAME).sl
|
||||||
(cd $(LIBPATH); \
|
(cd $(LIBPATH);
|
||||||
ln -f -s $(LIBNAME).sl.$(PNGVER) $(LIBNAME).sl.$(PNGMAJ); \
|
ln -sf $(LIBNAME).sl.$(PNGVER) $(LIBNAME).sl.$(PNGMAJ); \
|
||||||
ln -f -s $(LIBNAME).sl.$(PNGMAJ) $(LIBNAME).sl)
|
ln -sf $(LIBNAME).sl.$(PNGMAJ) $(LIBNAME).sl)
|
||||||
|
-@if [ ! -d $(LIBPATH)/pkgconfig ]; then mkdir $(LIBPATH)/pkgconfig; fi
|
||||||
|
cat scripts/libpng.pc.in | sed -e s\!@PREFIX@!$(prefix)! > libpng.pc
|
||||||
|
cp libpng.pc $(LIBPATH)/pkgconfig/libpng12.pc
|
||||||
|
chmod 644 $(LIBPATH)/pkgconfig/libpng12.pc
|
||||||
|
|
||||||
|
install: install-static install-shared
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
/bin/rm -f *.o libpng.a $(LIBNAME).sl $(LIBNAME).sl.$(PNGMAJ)* \
|
/bin/rm -f *.o libpng.a $(LIBNAME).sl $(LIBNAME).sl.$(PNGMAJ)* \
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
LIBNAME = libpng12
|
LIBNAME = libpng12
|
||||||
PNGMAJ = 0
|
PNGMAJ = 0
|
||||||
PNGMIN = 1.2.2beta2
|
PNGMIN = 1.2.2beta3
|
||||||
PNGVER = $(PNGMAJ).$(PNGMIN)
|
PNGVER = $(PNGMAJ).$(PNGMIN)
|
||||||
|
|
||||||
CC=gcc
|
CC=gcc
|
||||||
@ -86,32 +86,38 @@ test: pngtest pngtest-static
|
|||||||
@echo ""
|
@echo ""
|
||||||
./pngtest-static
|
./pngtest-static
|
||||||
|
|
||||||
install-static: libpng.a
|
install-headers: png.h pngconf.h
|
||||||
-@if [ ! -d $(INCPATH) ]; then mkdir $(INCPATH); fi
|
-@if [ ! -d $(INCPATH) ]; then mkdir $(INCPATH); fi
|
||||||
-@if [ ! -d $(LIBPATH) ]; then mkdir $(LIBPATH); fi
|
|
||||||
cp png.h pngconf.h $(INCPATH)
|
|
||||||
chmod 644 $(INCPATH)/png.h $(INCPATH)/pngconf.h
|
|
||||||
cp libpng.a $(LIBPATH)
|
|
||||||
chmod 644 $(LIBPATH)/libpng.a
|
|
||||||
|
|
||||||
install: libpng.a $(LIBNAME).so.$(PNGVER)
|
|
||||||
-@if [ ! -d $(INCPATH) ]; then mkdir $(INCPATH); fi
|
|
||||||
-@if [ ! -d $(LIBPATH) ]; then mkdir $(LIBPATH); fi
|
|
||||||
-@if [ ! -d $(INCPATH)/$(LIBNAME) ]; then mkdir $(INCPATH)/$(LIBNAME); fi
|
-@if [ ! -d $(INCPATH)/$(LIBNAME) ]; then mkdir $(INCPATH)/$(LIBNAME); fi
|
||||||
cp png.h pngconf.h $(INCPATH)/$(LIBNAME)
|
cp png.h pngconf.h $(INCPATH)/$(LIBNAME)
|
||||||
chmod 644 $(INCPATH)/$(LIBNAME)/png.h $(INCPATH)/$(LIBNAME)/pngconf.h
|
chmod 644 $(INCPATH)/$(LIBNAME)/png.h $(INCPATH)/$(LIBNAME)/pngconf.h
|
||||||
-@/bin/rm -f $(INCPATH)/png.h $(INCPATH)/pngconf.h
|
-@/bin/rm -f $(INCPATH)/png.h $(INCPATH)/pngconf.h
|
||||||
ln -sf $(INCPATH)/$(LIBNAME)/png.h $(INCPATH)
|
ln -sf $(INCPATH)/$(LIBNAME)/png.h $(INCPATH)
|
||||||
ln -sf $(INCPATH)/$(LIBNAME)/pngconf.h $(INCPATH)
|
ln -sf $(INCPATH)/$(LIBNAME)/pngconf.h $(INCPATH)
|
||||||
|
|
||||||
|
install-static: install-headers libpng.a
|
||||||
|
-@if [ ! -d $(LIBPATH) ]; then mkdir $(LIBPATH); fi
|
||||||
cp libpng.a $(LIBPATH)/$(LIBNAME).a
|
cp libpng.a $(LIBPATH)/$(LIBNAME).a
|
||||||
chmod 644 $(LIBPATH)/$(LIBNAME).a
|
chmod 644 $(LIBPATH)/$(LIBNAME).a
|
||||||
-@/bin/rm -f $(LIBPATH)/libpng.a
|
-@/bin/rm -f $(LIBPATH)/libpng.a
|
||||||
ln -sf $(LIBPATH)/$(LIBNAME).a $(LIBPATH)/libpng.a
|
ln -sf $(LIBPATH)/$(LIBNAME).a $(LIBPATH)/libpng.a
|
||||||
|
|
||||||
|
install-shared: install-headers $(LIBNAME).so.$(PNGVER)
|
||||||
|
-@if [ ! -d $(LIBPATH) ]; then mkdir $(LIBPATH); fi
|
||||||
|
-@/bin/rm -f $(LIBPATH)/libpng.so.3*
|
||||||
cp $(LIBNAME).so.$(PNGVER) $(LIBPATH)
|
cp $(LIBNAME).so.$(PNGVER) $(LIBPATH)
|
||||||
chmod 755 $(LIBPATH)/$(LIBNAME).so.$(PNGVER)
|
chmod 755 $(LIBPATH)/$(LIBNAME).so.$(PNGVER)
|
||||||
-@/bin/rm -f $(LIBPATH)/$(LIBNAME).so.$(PNGMAJ)* $(LIBPATH)/$(LIBNAME).so
|
-@/bin/rm -f $(LIBPATH)/$(LIBNAME).so.$(PNGMAJ)* $(LIBPATH)/$(LIBNAME).so
|
||||||
(cd $(LIBPATH); ln -sf $(LIBNAME).so.$(PNGVER) $(LIBNAME).so.$(PNGMAJ); \
|
(cd $(LIBPATH);
|
||||||
|
ln -sf $(LIBNAME).so.$(PNGVER) $(LIBNAME).so.$(PNGMAJ); \
|
||||||
ln -sf $(LIBNAME).so.$(PNGMAJ) $(LIBNAME).so)
|
ln -sf $(LIBNAME).so.$(PNGMAJ) $(LIBNAME).so)
|
||||||
|
-@if [ ! -d $(LIBPATH)/pkgconfig ]; then mkdir $(LIBPATH)/pkgconfig; fi
|
||||||
|
cat scripts/libpng.pc.in | sed -e s\!@PREFIX@!$(prefix)! > libpng.pc
|
||||||
|
cp libpng.pc $(LIBPATH)/pkgconfig/libpng12.pc
|
||||||
|
chmod 644 $(LIBPATH)/pkgconfig/libpng12.pc
|
||||||
|
|
||||||
|
install: install-static install-shared
|
||||||
|
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
/bin/rm -f *.o libpng.a $(LIBNAME).so $(LIBNAME).so.$(PNMAJ)* \
|
/bin/rm -f *.o libpng.a $(LIBNAME).so $(LIBNAME).so.$(PNMAJ)* \
|
||||||
|
@ -20,7 +20,7 @@ LDFLAGS=-L. -L$(ZLIBLIB) -lpng -lz
|
|||||||
LDSHARED=cc -lz -dynamiclib -compatibility_version $(VER) -current_version $(VER)
|
LDSHARED=cc -lz -dynamiclib -compatibility_version $(VER) -current_version $(VER)
|
||||||
|
|
||||||
PNGMAJ = 0
|
PNGMAJ = 0
|
||||||
PNGMIN = 1.2.2beta2
|
PNGMIN = 1.2.2beta3
|
||||||
VER = $(PNGMAJ).$(PNGMIN)
|
VER = $(PNGMAJ).$(PNGMIN)
|
||||||
LIBNAME=libpng12
|
LIBNAME=libpng12
|
||||||
SHAREDLIB_POSTFIX=dylib
|
SHAREDLIB_POSTFIX=dylib
|
||||||
@ -51,27 +51,26 @@ pngtest: pngtest.o libpng.a
|
|||||||
test: pngtest
|
test: pngtest
|
||||||
./pngtest
|
./pngtest
|
||||||
|
|
||||||
install-static: libpng.a
|
|
||||||
-@if [ ! -d $(INCPATH) ]; then mkdir $(INCPATH); fi
|
|
||||||
-@if [ ! -d $(LIBPATH) ]; then mkdir $(LIBPATH); fi
|
|
||||||
cp png.h pngconf.h $(INCPATH)
|
|
||||||
chmod 644 $(INCPATH)/png.h $(INCPATH)/pngconf.h
|
|
||||||
cp libpng.a $(LIBPATH)
|
|
||||||
chmod 644 $(LIBPATH)/libpng.a
|
|
||||||
|
|
||||||
install: libpng.a $(LIBNAME).$(PNGVER).$(SHAREDLIB_POSTFIX)
|
install-headers: png.h pngconf.h
|
||||||
-@if [ ! -d $(INCPATH) ]; then mkdir $(INCPATH); fi
|
-@if [ ! -d $(INCPATH) ]; then mkdir $(INCPATH); fi
|
||||||
-@if [ ! -d $(LIBPATH) ]; then mkdir $(LIBPATH); fi
|
|
||||||
-@if [ ! -d $(INCPATH)/$(LIBNAME) ]; then mkdir $(INCPATH)/$(LIBNAME); fi
|
-@if [ ! -d $(INCPATH)/$(LIBNAME) ]; then mkdir $(INCPATH)/$(LIBNAME); fi
|
||||||
cp png.h pngconf.h $(INCPATH)/$(LIBNAME)
|
cp png.h pngconf.h $(INCPATH)/$(LIBNAME)
|
||||||
chmod 644 $(INCPATH)/$(LIBNAME)/png.h $(INCPATH)/$(LIBNAME)/pngconf.h
|
chmod 644 $(INCPATH)/$(LIBNAME)/png.h $(INCPATH)/$(LIBNAME)/pngconf.h
|
||||||
-@/bin/rm -f $(INCPATH)/png.h $(INCPATH)/pngconf.h
|
-@/bin/rm -f $(INCPATH)/png.h $(INCPATH)/pngconf.h
|
||||||
ln -sf $(INCPATH)/$(LIBNAME)/png.h $(INCPATH)
|
ln -sf $(INCPATH)/$(LIBNAME)/png.h $(INCPATH)
|
||||||
ln -sf $(INCPATH)/$(LIBNAME)/pngconf.h $(INCPATH)
|
ln -sf $(INCPATH)/$(LIBNAME)/pngconf.h $(INCPATH)
|
||||||
|
|
||||||
|
install-static: install-headers libpng.a
|
||||||
|
-@if [ ! -d $(LIBPATH) ]; then mkdir $(LIBPATH); fi
|
||||||
cp libpng.a $(LIBPATH)/$(LIBNAME).a
|
cp libpng.a $(LIBPATH)/$(LIBNAME).a
|
||||||
chmod 644 $(LIBPATH)/$(LIBNAME).a
|
chmod 644 $(LIBPATH)/$(LIBNAME).a
|
||||||
-@/bin/rm -f $(LIBPATH)/libpng.a
|
-@/bin/rm -f $(LIBPATH)/libpng.a
|
||||||
ln -sf $(LIBPATH)/$(LIBNAME).a $(LIBPATH)/libpng.a
|
ln -sf $(LIBPATH)/$(LIBNAME).a $(LIBPATH)/libpng.a
|
||||||
|
|
||||||
|
install-shared: install-headers $(LIBNAME).$(PNGVER).$(SHAREDLIB_POSTFIX)
|
||||||
|
-@if [ ! -d $(LIBPATH) ]; then mkdir $(LIBPATH); fi
|
||||||
|
-@/bin/rm -f $(LIBPATH)/libpng.3*$(SHAREDLIB_POSTFIX)
|
||||||
cp $(LIBNAME).$(PNGVER).$(SHAREDLIB_POSTFIX) $(LIBPATH)
|
cp $(LIBNAME).$(PNGVER).$(SHAREDLIB_POSTFIX) $(LIBPATH)
|
||||||
chmod 755 $(LIBPATH)/$(LIBNAME).$(PNGVER).$(SHAREDLIB_POSTFIX)
|
chmod 755 $(LIBPATH)/$(LIBNAME).$(PNGVER).$(SHAREDLIB_POSTFIX)
|
||||||
-@/bin/rm -f $(LIBPATH)/$(LIBNAME).$(PNGMAJ)*.$(SHAREDLIB_POSTFIX)
|
-@/bin/rm -f $(LIBPATH)/$(LIBNAME).$(PNGMAJ)*.$(SHAREDLIB_POSTFIX)
|
||||||
@ -80,6 +79,12 @@ install: libpng.a $(LIBNAME).$(PNGVER).$(SHAREDLIB_POSTFIX)
|
|||||||
$(LIBNAME).$(PNGMAJ).$(SHAREDLIB_POSTFIX); \
|
$(LIBNAME).$(PNGMAJ).$(SHAREDLIB_POSTFIX); \
|
||||||
ln -sf $(LIBNAME).$(PNGMAJ).$(SHAREDLIB_POSTFIX) \
|
ln -sf $(LIBNAME).$(PNGMAJ).$(SHAREDLIB_POSTFIX) \
|
||||||
$(LIBNAME).$(SHAREDLIB_POSTFIX))
|
$(LIBNAME).$(SHAREDLIB_POSTFIX))
|
||||||
|
-@if [ ! -d $(LIBPATH)/pkgconfig ]; then mkdir $(LIBPATH)/pkgconfig; fi
|
||||||
|
cat scripts/libpng.pc.in | sed -e s\!@PREFIX@!$(prefix)! > libpng.pc
|
||||||
|
cp libpng.pc $(LIBPATH)/pkgconfig/libpng12.pc
|
||||||
|
chmod 644 $(LIBPATH)/pkgconfig/libpng12.pc
|
||||||
|
|
||||||
|
install: install-shared
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f *.o libpng.a pngtest pngout.png \
|
rm -f *.o libpng.a pngtest pngout.png \
|
||||||
|
@ -13,7 +13,7 @@ INCSDIR=${LOCALBASE}/include
|
|||||||
LIB=png
|
LIB=png
|
||||||
# Shared lib name should be png12.
|
# Shared lib name should be png12.
|
||||||
SHLIB_MAJOR= 0
|
SHLIB_MAJOR= 0
|
||||||
SHLIB_MINOR= 1.2.2beta2
|
SHLIB_MINOR= 1.2.2beta3
|
||||||
SRCS= pnggccrd.c png.c pngset.c pngget.c pngrutil.c pngtrans.c pngwutil.c \
|
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 \
|
pngread.c pngrio.c pngwio.c pngwrite.c pngrtran.c \
|
||||||
pngwtran.c pngmem.c pngerror.c pngpread.c
|
pngwtran.c pngmem.c pngerror.c pngpread.c
|
||||||
|
68
scripts/makefile.openbsd
Normal file
68
scripts/makefile.openbsd
Normal file
@ -0,0 +1,68 @@
|
|||||||
|
# makefile for libpng
|
||||||
|
# Copyright (C) 1995 Guy Eric Schalnat, Group 42, Inc.
|
||||||
|
# For conditions of distribution and use, see copyright notice in png.h
|
||||||
|
|
||||||
|
PREFIX?= /usr/local
|
||||||
|
LIBDIR= ${PREFIX}/lib
|
||||||
|
MANDIR= ${PREFIX}/man/cat
|
||||||
|
|
||||||
|
SHLIB_MAJOR= 3
|
||||||
|
SHLIB_MINOR= 0
|
||||||
|
|
||||||
|
LIB= png
|
||||||
|
SRCS= png.c pngerror.c pnggccrd.c pngget.c pngmem.c pngpread.c \
|
||||||
|
pngread.c pngrio.c pngrtran.c pngrutil.c pngset.c pngtrans.c \
|
||||||
|
pngwio.c pngwrite.c pngwtran.c pngwutil.c
|
||||||
|
|
||||||
|
HDRS= png.h pngconf.h
|
||||||
|
|
||||||
|
CFLAGS+= -Wall
|
||||||
|
CPPFLAGS+= -I${.CURDIR} -DPNG_NO_ASSEMBLER_CODE -DPNG_USE_PNGGCCRD
|
||||||
|
|
||||||
|
NOPROFILE= Yes
|
||||||
|
|
||||||
|
CLEANFILES+= pngtest.o pngtest
|
||||||
|
|
||||||
|
MAN= libpng.3 libpngpf.3 png.5
|
||||||
|
DOCS= ANNOUNCE CHANGES LICENSE README libpng.txt
|
||||||
|
|
||||||
|
pngtest.o: pngtest.c
|
||||||
|
${CC} ${CPPFLAGS} ${CFLAGS} -c ${.ALLSRC} -o ${.TARGET}
|
||||||
|
|
||||||
|
pngtest: pngtest.o
|
||||||
|
${CC} ${LDFLAGS} ${.ALLSRC} -o ${.TARGET} -L${.OBJDIR} -lpng -lz -lm
|
||||||
|
|
||||||
|
test: pngtest
|
||||||
|
cd ${.OBJDIR} && env \
|
||||||
|
LD_LIBRARY_PATH="${.OBJDIR}" ${.OBJDIR}/pngtest
|
||||||
|
|
||||||
|
beforeinstall:
|
||||||
|
if [ ! -d ${DESTDIR}${PREFIX}/include ]; then \
|
||||||
|
${INSTALL} -d -o root -g wheel ${DESTDIR}${PREFIX}/include; \
|
||||||
|
fi
|
||||||
|
if [ ! -d ${DESTDIR}${LIBDIR} ]; then \
|
||||||
|
${INSTALL} -d -o root -g wheel ${DESTDIR}${LIBDIR}; \
|
||||||
|
fi
|
||||||
|
if [ ! -d ${DESTDIR}${LIBDIR}/debug ]; then \
|
||||||
|
${INSTALL} -d -o root -g wheel ${DESTDIR}${LIBDIR}/debug; \
|
||||||
|
fi
|
||||||
|
if [ ! -d ${DESTDIR}${MANDIR}3 ]; then \
|
||||||
|
${INSTALL} -d -o root -g wheel ${DESTDIR}${MANDIR}3; \
|
||||||
|
fi
|
||||||
|
if [ ! -d ${DESTDIR}${MANDIR}5 ]; then \
|
||||||
|
${INSTALL} -d -o root -g wheel ${DESTDIR}${MANDIR}5; \
|
||||||
|
fi
|
||||||
|
if [ ! -d ${DESTDIR}${PREFIX}/share/doc/png ]; then \
|
||||||
|
${INSTALL} -d -o root -g wheel ${DESTDIR}${PREFIX}/share/doc/png; \
|
||||||
|
fi
|
||||||
|
|
||||||
|
afterinstall:
|
||||||
|
@rm -f ${DESTDIR}${LIBDIR}/libpng_pic.a
|
||||||
|
@rm -f ${DESTDIR}${LIBDIR}/debug/libpng.a
|
||||||
|
@rmdir ${DESTDIR}${LIBDIR}/debug 2>/dev/null || true
|
||||||
|
${INSTALL} ${INSTALL_COPY} -o ${SHAREOWN} -g ${SHAREGRP} \
|
||||||
|
-m ${NONBINMODE} ${HDRS} ${DESTDIR}${PREFIX}/include
|
||||||
|
${INSTALL} ${INSTALL_COPY} -o ${SHAREOWN} -g ${SHAREGRP} \
|
||||||
|
-m ${NONBINMODE} ${DOCS} ${DESTDIR}${PREFIX}/share/doc/png
|
||||||
|
|
||||||
|
.include <bsd.lib.mk>
|
@ -25,7 +25,7 @@ RANLIB=echo
|
|||||||
# read libpng.txt or png.h to see why PNGMAJ is 0. You should not
|
# read libpng.txt or png.h to see why PNGMAJ is 0. You should not
|
||||||
# have to change it.
|
# have to change it.
|
||||||
PNGMAJ = 0
|
PNGMAJ = 0
|
||||||
PNGMIN = 1.2.2beta2
|
PNGMIN = 1.2.2beta3
|
||||||
PNGVER = $(PNGMAJ).$(PNGMIN)
|
PNGVER = $(PNGMAJ).$(PNGMIN)
|
||||||
LIBNAME = libpng12
|
LIBNAME = libpng12
|
||||||
|
|
||||||
@ -65,33 +65,38 @@ pngtest: pngtest.o $(LIBNAME).so
|
|||||||
test: pngtest
|
test: pngtest
|
||||||
./pngtest
|
./pngtest
|
||||||
|
|
||||||
install-static: libpng.a
|
|
||||||
-@if [ ! -d $(INCPATH) ]; then mkdir $(INCPATH); fi
|
|
||||||
-@if [ ! -d $(LIBPATH) ]; then mkdir $(LIBPATH); fi
|
|
||||||
cp png.h pngconf.h $(INCPATH)
|
|
||||||
chmod 644 $(INCPATH)/png.h $(INCPATH)/pngconf.h
|
|
||||||
cp libpng.a $(LIBPATH)
|
|
||||||
chmod 644 $(LIBPATH)/libpng.a
|
|
||||||
|
|
||||||
install: libpng.a $(LIBNAME).so.$(PNGVER)
|
install-headers: png.h pngconf.h
|
||||||
-@if [ ! -d $(INCPATH) ]; then mkdir $(INCPATH); fi
|
-@if [ ! -d $(INCPATH) ]; then mkdir $(INCPATH); fi
|
||||||
-@if [ ! -d $(LIBPATH) ]; then mkdir $(LIBPATH); fi
|
|
||||||
-@if [ ! -d $(INCPATH)/$(LIBNAME) ]; then mkdir $(INCPATH)/$(LIBNAME); fi
|
-@if [ ! -d $(INCPATH)/$(LIBNAME) ]; then mkdir $(INCPATH)/$(LIBNAME); fi
|
||||||
cp png.h pngconf.h $(INCPATH)/$(LIBNAME)
|
cp png.h pngconf.h $(INCPATH)/$(LIBNAME)
|
||||||
chmod 644 $(INCPATH)/$(LIBNAME)/png.h $(INCPATH)/$(LIBNAME)/pngconf.h
|
chmod 644 $(INCPATH)/$(LIBNAME)/png.h $(INCPATH)/$(LIBNAME)/pngconf.h
|
||||||
-@/bin/rm -f $(INCPATH)/png.h $(INCPATH)/pngconf.h
|
-@/bin/rm -f $(INCPATH)/png.h $(INCPATH)/pngconf.h
|
||||||
ln -f -s $(INCPATH)/$(LIBNAME)/png.h $(INCPATH)
|
ln -f -s $(INCPATH)/$(LIBNAME)/png.h $(INCPATH)
|
||||||
ln -f -s $(INCPATH)/$(LIBNAME)/pngconf.h $(INCPATH)
|
ln -f -s $(INCPATH)/$(LIBNAME)/pngconf.h $(INCPATH)
|
||||||
|
|
||||||
|
install-static: install-headers libpng.a
|
||||||
|
-@if [ ! -d $(LIBPATH) ]; then mkdir $(LIBPATH); fi
|
||||||
cp libpng.a $(LIBPATH)/$(LIBNAME).a
|
cp libpng.a $(LIBPATH)/$(LIBNAME).a
|
||||||
chmod 644 $(LIBPATH)/$(LIBNAME).a
|
chmod 644 $(LIBPATH)/$(LIBNAME).a
|
||||||
-@/bin/rm -f $(LIBPATH)/libpng.a
|
-@/bin/rm -f $(LIBPATH)/libpng.a
|
||||||
ln -f -s $(LIBPATH)/$(LIBNAME).a $(LIBPATH)/libpng.a
|
ln -f -s $(LIBPATH)/$(LIBNAME).a $(LIBPATH)/libpng.a
|
||||||
|
|
||||||
|
install-shared: install-headers $(LIBNAME).so.$(PNGVER)
|
||||||
|
-@if [ ! -d $(LIBPATH) ]; then mkdir $(LIBPATH); fi
|
||||||
|
-@/bin/rm -f $(LIBPATH)/libpng.so.3*
|
||||||
cp $(LIBNAME).so.$(PNGVER) $(LIBPATH)
|
cp $(LIBNAME).so.$(PNGVER) $(LIBPATH)
|
||||||
chmod 755 $(LIBPATH)/$(LIBNAME).so.$(PNGVER)
|
chmod 755 $(LIBPATH)/$(LIBNAME).so.$(PNGVER)
|
||||||
-@/bin/rm -f $(LIBPATH)/$(LIBNAME).so.$(PNGMAJ)* $(LIBPATH)/$(LIBNAME).so
|
-@/bin/rm -f $(LIBPATH)/$(LIBNAME).so.$(PNGMAJ)* $(LIBPATH)/$(LIBNAME).so
|
||||||
(cd $(LIBPATH); \
|
(cd $(LIBPATH);
|
||||||
ln -f -s $(LIBNAME).so.$(PNGVER) $(LIBNAME).so.$(PNGMAJ); \
|
ln -f -s $(LIBNAME).so.$(PNGVER) $(LIBNAME).so.$(PNGMAJ); \
|
||||||
ln -f -s $(LIBNAME).so.$(PNGMAJ) $(LIBNAME).so)
|
ln -f -s $(LIBNAME).so.$(PNGMAJ) $(LIBNAME).so)
|
||||||
|
-@if [ ! -d $(LIBPATH)/pkgconfig ]; then mkdir $(LIBPATH)/pkgconfig; fi
|
||||||
|
cat scripts/libpng.pc.in | sed -e s\!@PREFIX@!$(prefix)! > libpng.pc
|
||||||
|
cp libpng.pc $(LIBPATH)/pkgconfig/libpng12.pc
|
||||||
|
chmod 644 $(LIBPATH)/pkgconfig/libpng12.pc
|
||||||
|
|
||||||
|
install: install-static install-shared
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
/bin/rm -f *.o libpng.a $(LIBNAME).so $(LIBNAME).so.$(PNGMAJ)* pngtest pngout.png
|
/bin/rm -f *.o libpng.a $(LIBNAME).so $(LIBNAME).so.$(PNGMAJ)* pngtest pngout.png
|
||||||
|
@ -24,7 +24,7 @@ LDFLAGS=$(ABI) -L. -L$(ZLIBLIB) -lpng -lz -lm
|
|||||||
LDSHARED=CC $(ABI) -shared
|
LDSHARED=CC $(ABI) -shared
|
||||||
|
|
||||||
PNGMAJ = 0
|
PNGMAJ = 0
|
||||||
PNGMIN = 1.2.2beta2
|
PNGMIN = 1.2.2beta3
|
||||||
PNGVER = $(PNGMAJ).$(PNGMIN)
|
PNGVER = $(PNGMAJ).$(PNGMIN)
|
||||||
# See "man dso" for info about shared objects
|
# See "man dso" for info about shared objects
|
||||||
LIBS=libpng12.so.$(PNGMAJ).$(PNGVER)
|
LIBS=libpng12.so.$(PNGMAJ).$(PNGVER)
|
||||||
@ -56,34 +56,38 @@ pngtest: pngtest.o libpng.a
|
|||||||
test: pngtest
|
test: pngtest
|
||||||
./pngtest
|
./pngtest
|
||||||
|
|
||||||
install-static: libpng.a
|
|
||||||
-@if [ ! -d $(INCPATH) ]; then mkdir $(INCPATH); fi
|
|
||||||
-@if [ ! -d $(LIBPATH) ]; then mkdir $(LIBPATH); fi
|
|
||||||
cp png.h pngconf.h $(INCPATH)
|
|
||||||
chmod 644 $(INCPATH)/png.h $(INCPATH)/pngconf.h
|
|
||||||
cp libpng.a $(LIBPATH)
|
|
||||||
chmod 644 $(LIBPATH)/libpng.a
|
|
||||||
|
|
||||||
install: libpng.a $(LIBNAME).so.$(PNGVER)
|
install-headers: png.h pngconf.h
|
||||||
-@if [ ! -d $(INCPATH) ]; then mkdir $(INCPATH); fi
|
-@if [ ! -d $(INCPATH) ]; then mkdir $(INCPATH); fi
|
||||||
-@if [ ! -d $(LIBPATH) ]; then mkdir $(LIBPATH); fi
|
|
||||||
-@if [ ! -d $(INCPATH)/$(LIBNAME) ]; then mkdir $(INCPATH)/$(LIBNAME); fi
|
-@if [ ! -d $(INCPATH)/$(LIBNAME) ]; then mkdir $(INCPATH)/$(LIBNAME); fi
|
||||||
cp png.h pngconf.h $(INCPATH)/$(LIBNAME)
|
cp png.h pngconf.h $(INCPATH)/$(LIBNAME)
|
||||||
chmod 644 $(INCPATH)/$(LIBNAME)/png.h $(INCPATH)/$(LIBNAME)/pngconf.h
|
chmod 644 $(INCPATH)/$(LIBNAME)/png.h $(INCPATH)/$(LIBNAME)/pngconf.h
|
||||||
-@/bin/rm -f $(INCPATH)/png.h $(INCPATH)/pngconf.h
|
-@/bin/rm -f $(INCPATH)/png.h $(INCPATH)/pngconf.h
|
||||||
ln -sf $(INCPATH)/$(LIBNAME)/png.h $(INCPATH)
|
ln -f -s $(INCPATH)/$(LIBNAME)/png.h $(INCPATH)
|
||||||
ln -sf $(INCPATH)/$(LIBNAME)/pngconf.h $(INCPATH)
|
ln -f -s $(INCPATH)/$(LIBNAME)/pngconf.h $(INCPATH)
|
||||||
|
|
||||||
|
install-static: install-headers libpng.a
|
||||||
|
-@if [ ! -d $(LIBPATH) ]; then mkdir $(LIBPATH); fi
|
||||||
cp libpng.a $(LIBPATH)/$(LIBNAME).a
|
cp libpng.a $(LIBPATH)/$(LIBNAME).a
|
||||||
chmod 644 $(LIBPATH)/$(LIBNAME).a
|
chmod 644 $(LIBPATH)/$(LIBNAME).a
|
||||||
-@/bin/rm -f $(LIBPATH)/libpng.a
|
-@/bin/rm -f $(LIBPATH)/libpng.a
|
||||||
ln -sf $(LIBPATH)/$(LIBNAME).a $(LIBPATH)/libpng.a
|
ln -f -s $(LIBPATH)/$(LIBNAME).a $(LIBPATH)/libpng.a
|
||||||
|
|
||||||
|
install-shared: install-headers $(LIBNAME).so.$(PNGVER)
|
||||||
|
-@if [ ! -d $(LIBPATH) ]; then mkdir $(LIBPATH); fi
|
||||||
|
-@/bin/rm -f $(LIBPATH)/libpng.so.3*
|
||||||
cp $(LIBNAME).so.$(PNGVER) $(LIBPATH)
|
cp $(LIBNAME).so.$(PNGVER) $(LIBPATH)
|
||||||
chmod 755 $(LIBPATH)/$(LIBNAME).so.$(PNGVER)
|
chmod 755 $(LIBPATH)/$(LIBNAME).so.$(PNGVER)
|
||||||
-@/bin/rm -f $(LIBPATH)/$(LIBNAME).so.$(PNGMAJ)* $(LIBPATH)/$(LIBNAME).so
|
-@/bin/rm -f $(LIBPATH)/$(LIBNAME).so.$(PNGMAJ)* $(LIBPATH)/$(LIBNAME).so
|
||||||
(cd $(LIBPATH); ln -sf $(LIBNAME).so.$(PNGVER) $(LIBNAME).so.$(PNGMAJ); \
|
(cd $(LIBPATH);
|
||||||
ln -sf $(LIBNAME).so.$(PNGMAJ) $(LIBNAME).so)
|
ln -f -s $(LIBNAME).so.$(PNGVER) $(LIBNAME).so.$(PNGMAJ); \
|
||||||
(ldconfig || true) >/dev/null 2>&1; \
|
ln -f -s $(LIBNAME).so.$(PNGMAJ) $(LIBNAME).so)
|
||||||
fi)
|
-@if [ ! -d $(LIBPATH)/pkgconfig ]; then mkdir $(LIBPATH)/pkgconfig; fi
|
||||||
|
cat scripts/libpng.pc.in | sed -e s\!@PREFIX@!$(prefix)! > libpng.pc
|
||||||
|
cp libpng.pc $(LIBPATH)/pkgconfig/libpng12.pc
|
||||||
|
chmod 644 $(LIBPATH)/pkgconfig/libpng12.pc
|
||||||
|
|
||||||
|
install: install-static install-shared
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f *.o libpng.a pngtest pngout.png
|
rm -f *.o libpng.a pngtest pngout.png
|
||||||
|
@ -31,7 +31,7 @@ LDSHARED=cc $(ABI) -shared
|
|||||||
# See "man dso" for info about shared objects
|
# See "man dso" for info about shared objects
|
||||||
LIBNAME=libpng12
|
LIBNAME=libpng12
|
||||||
PNGMAJ = 0
|
PNGMAJ = 0
|
||||||
PNGMIN = 1.2.2beta2
|
PNGMIN = 1.2.2beta3
|
||||||
PNGVER = $(PNGMAJ).$(PNGMIN)
|
PNGVER = $(PNGMAJ).$(PNGMIN)
|
||||||
|
|
||||||
RANLIB=echo
|
RANLIB=echo
|
||||||
@ -65,32 +65,37 @@ pngtest: pngtest.o libpng.a
|
|||||||
test: pngtest
|
test: pngtest
|
||||||
./pngtest
|
./pngtest
|
||||||
|
|
||||||
install-static: libpng.a
|
install-headers: png.h pngconf.h
|
||||||
-@if [ ! -d $(INCPATH) ]; then mkdir $(INCPATH); fi
|
-@if [ ! -d $(INCPATH) ]; then mkdir $(INCPATH); fi
|
||||||
-@if [ ! -d $(LIBPATH) ]; then mkdir $(LIBPATH); fi
|
|
||||||
cp png.h pngconf.h $(INCPATH)
|
|
||||||
chmod 644 $(INCPATH)/png.h $(INCPATH)/pngconf.h
|
|
||||||
cp libpng.a $(LIBPATH)
|
|
||||||
chmod 644 $(LIBPATH)/libpng.a
|
|
||||||
|
|
||||||
install: libpng.a $(LIBNAME).so.$(PNGVER)
|
|
||||||
-@if [ ! -d $(INCPATH) ]; then mkdir $(INCPATH); fi
|
|
||||||
-@if [ ! -d $(LIBPATH) ]; then mkdir $(LIBPATH); fi
|
|
||||||
-@if [ ! -d $(INCPATH)/$(LIBNAME) ]; then mkdir $(INCPATH)/$(LIBNAME); fi
|
-@if [ ! -d $(INCPATH)/$(LIBNAME) ]; then mkdir $(INCPATH)/$(LIBNAME); fi
|
||||||
cp png.h pngconf.h $(INCPATH)/$(LIBNAME)
|
cp png.h pngconf.h $(INCPATH)/$(LIBNAME)
|
||||||
chmod 644 $(INCPATH)/$(LIBNAME)/png.h $(INCPATH)/$(LIBNAME)/pngconf.h
|
chmod 644 $(INCPATH)/$(LIBNAME)/png.h $(INCPATH)/$(LIBNAME)/pngconf.h
|
||||||
-@/bin/rm -f $(INCPATH)/png.h $(INCPATH)/pngconf.h
|
-@/bin/rm -f $(INCPATH)/png.h $(INCPATH)/pngconf.h
|
||||||
ln -sf $(INCPATH)/$(LIBNAME)/png.h $(INCPATH)
|
ln -f -s $(INCPATH)/$(LIBNAME)/png.h $(INCPATH)
|
||||||
ln -sf $(INCPATH)/$(LIBNAME)/pngconf.h $(INCPATH)
|
ln -f -s $(INCPATH)/$(LIBNAME)/pngconf.h $(INCPATH)
|
||||||
|
|
||||||
|
install-static: install-headers libpng.a
|
||||||
|
-@if [ ! -d $(LIBPATH) ]; then mkdir $(LIBPATH); fi
|
||||||
cp libpng.a $(LIBPATH)/$(LIBNAME).a
|
cp libpng.a $(LIBPATH)/$(LIBNAME).a
|
||||||
chmod 644 $(LIBPATH)/$(LIBNAME).a
|
chmod 644 $(LIBPATH)/$(LIBNAME).a
|
||||||
-@/bin/rm -f $(LIBPATH)/libpng.a
|
-@/bin/rm -f $(LIBPATH)/libpng.a
|
||||||
ln -sf $(LIBPATH)/$(LIBNAME).a $(LIBPATH)/libpng.a
|
ln -f -s $(LIBPATH)/$(LIBNAME).a $(LIBPATH)/libpng.a
|
||||||
|
|
||||||
|
install-shared: install-headers $(LIBNAME).so.$(PNGVER)
|
||||||
|
-@if [ ! -d $(LIBPATH) ]; then mkdir $(LIBPATH); fi
|
||||||
|
-@/bin/rm -f $(LIBPATH)/libpng.so.3*
|
||||||
cp $(LIBNAME).so.$(PNGVER) $(LIBPATH)
|
cp $(LIBNAME).so.$(PNGVER) $(LIBPATH)
|
||||||
chmod 755 $(LIBPATH)/$(LIBNAME).so.$(PNGVER)
|
chmod 755 $(LIBPATH)/$(LIBNAME).so.$(PNGVER)
|
||||||
-@/bin/rm -f $(LIBPATH)/$(LIBNAME).so.$(PNGMAJ)* $(LIBPATH)/$(LIBNAME).so
|
-@/bin/rm -f $(LIBPATH)/$(LIBNAME).so.$(PNGMAJ)* $(LIBPATH)/$(LIBNAME).so
|
||||||
(cd $(LIBPATH); ln -sf $(LIBNAME).so.$(PNGVER) $(LIBNAME).so.$(PNGMAJ); \
|
(cd $(LIBPATH);
|
||||||
ln -sf $(LIBNAME).so.$(PNGMAJ) $(LIBNAME).so)
|
ln -f -s $(LIBNAME).so.$(PNGVER) $(LIBNAME).so.$(PNGMAJ); \
|
||||||
|
ln -f -s $(LIBNAME).so.$(PNGMAJ) $(LIBNAME).so)
|
||||||
|
-@if [ ! -d $(LIBPATH)/pkgconfig ]; then mkdir $(LIBPATH)/pkgconfig; fi
|
||||||
|
cat scripts/libpng.pc.in | sed -e s\!@PREFIX@!$(prefix)! > libpng.pc
|
||||||
|
cp libpng.pc $(LIBPATH)/pkgconfig/libpng12.pc
|
||||||
|
chmod 644 $(LIBPATH)/pkgconfig/libpng12.pc
|
||||||
|
|
||||||
|
install: install-static install-shared
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f *.o libpng.a pngtest pngout.png $(LIBNAME).so \
|
rm -f *.o libpng.a pngtest pngout.png $(LIBNAME).so \
|
||||||
|
@ -35,7 +35,7 @@ RANLIB=echo
|
|||||||
# read libpng.txt or png.h to see why PNGMAJ is 0. You should not
|
# read libpng.txt or png.h to see why PNGMAJ is 0. You should not
|
||||||
# have to change it.
|
# have to change it.
|
||||||
PNGMAJ = 0
|
PNGMAJ = 0
|
||||||
PNGMIN = 1.2.2beta2
|
PNGMIN = 1.2.2beta3
|
||||||
PNGVER = $(PNGMAJ).$(PNGMIN)
|
PNGVER = $(PNGMAJ).$(PNGMIN)
|
||||||
LIBNAME = libpng12
|
LIBNAME = libpng12
|
||||||
|
|
||||||
@ -87,33 +87,37 @@ pngtest: pngtest.o $(LIBNAME).so
|
|||||||
test: pngtest
|
test: pngtest
|
||||||
./pngtest
|
./pngtest
|
||||||
|
|
||||||
install-static: libpng.a
|
install-headers: png.h pngconf.h
|
||||||
-@if [ ! -d $(INCPATH) ]; then mkdir $(INCPATH); fi
|
-@if [ ! -d $(INCPATH) ]; then mkdir $(INCPATH); fi
|
||||||
-@if [ ! -d $(LIBPATH) ]; then mkdir $(LIBPATH); fi
|
|
||||||
cp png.h pngconf.h $(INCPATH)
|
|
||||||
chmod 644 $(INCPATH)/png.h $(INCPATH)/pngconf.h
|
|
||||||
cp libpng.a $(LIBPATH)
|
|
||||||
chmod 644 $(LIBPATH)/libpng.a
|
|
||||||
|
|
||||||
install: libpng.a $(LIBNAME).so.$(PNGVER)
|
|
||||||
-@if [ ! -d $(INCPATH) ]; then mkdir $(INCPATH); fi
|
|
||||||
-@if [ ! -d $(LIBPATH) ]; then mkdir $(LIBPATH); fi
|
|
||||||
-@if [ ! -d $(INCPATH)/$(LIBNAME) ]; then mkdir $(INCPATH)/$(LIBNAME); fi
|
-@if [ ! -d $(INCPATH)/$(LIBNAME) ]; then mkdir $(INCPATH)/$(LIBNAME); fi
|
||||||
cp png.h pngconf.h $(INCPATH)/$(LIBNAME)
|
cp png.h pngconf.h $(INCPATH)/$(LIBNAME)
|
||||||
chmod 644 $(INCPATH)/$(LIBNAME)/png.h $(INCPATH)/$(LIBNAME)/pngconf.h
|
chmod 644 $(INCPATH)/$(LIBNAME)/png.h $(INCPATH)/$(LIBNAME)/pngconf.h
|
||||||
-@/bin/rm -f $(INCPATH)/png.h $(INCPATH)/pngconf.h
|
-@/bin/rm -f $(INCPATH)/png.h $(INCPATH)/pngconf.h
|
||||||
ln -f -s $(INCPATH)/$(LIBNAME)/png.h $(INCPATH)
|
ln -f -s $(INCPATH)/$(LIBNAME)/png.h $(INCPATH)
|
||||||
ln -f -s $(INCPATH)/$(LIBNAME)/pngconf.h $(INCPATH)
|
ln -f -s $(INCPATH)/$(LIBNAME)/pngconf.h $(INCPATH)
|
||||||
|
|
||||||
|
install-static: install-headers libpng.a
|
||||||
|
-@if [ ! -d $(LIBPATH) ]; then mkdir $(LIBPATH); fi
|
||||||
cp libpng.a $(LIBPATH)/$(LIBNAME).a
|
cp libpng.a $(LIBPATH)/$(LIBNAME).a
|
||||||
chmod 644 $(LIBPATH)/$(LIBNAME).a
|
chmod 644 $(LIBPATH)/$(LIBNAME).a
|
||||||
-@/bin/rm -f $(LIBPATH)/libpng.a
|
-@/bin/rm -f $(LIBPATH)/libpng.a
|
||||||
ln -f -s $(LIBPATH)/$(LIBNAME).a $(LIBPATH)/libpng.a
|
ln -f -s $(LIBPATH)/$(LIBNAME).a $(LIBPATH)/libpng.a
|
||||||
|
|
||||||
|
install-shared: install-headers $(LIBNAME).so.$(PNGVER)
|
||||||
|
-@if [ ! -d $(LIBPATH) ]; then mkdir $(LIBPATH); fi
|
||||||
|
-@/bin/rm -f $(LIBPATH)/libpng.so.3*
|
||||||
cp $(LIBNAME).so.$(PNGVER) $(LIBPATH)
|
cp $(LIBNAME).so.$(PNGVER) $(LIBPATH)
|
||||||
chmod 755 $(LIBPATH)/$(LIBNAME).so.$(PNGVER)
|
chmod 755 $(LIBPATH)/$(LIBNAME).so.$(PNGVER)
|
||||||
-@/bin/rm -f $(LIBPATH)/$(LIBNAME).so.$(PNGMAJ)* $(LIBPATH)/$(LIBNAME).so
|
-@/bin/rm -f $(LIBPATH)/$(LIBNAME).so.$(PNGMAJ)* $(LIBPATH)/$(LIBNAME).so
|
||||||
(cd $(LIBPATH); \
|
(cd $(LIBPATH);
|
||||||
ln -f -s $(LIBNAME).so.$(PNGVER) $(LIBNAME).so.$(PNGMAJ); \
|
ln -f -s $(LIBNAME).so.$(PNGVER) $(LIBNAME).so.$(PNGMAJ); \
|
||||||
ln -f -s $(LIBNAME).so.$(PNGMAJ) $(LIBNAME).so)
|
ln -f -s $(LIBNAME).so.$(PNGMAJ) $(LIBNAME).so)
|
||||||
|
-@if [ ! -d $(LIBPATH)/pkgconfig ]; then mkdir $(LIBPATH)/pkgconfig; fi
|
||||||
|
cat scripts/libpng.pc.in | sed -e s\!@PREFIX@!$(prefix)! > libpng.pc
|
||||||
|
cp libpng.pc $(LIBPATH)/pkgconfig/libpng12.pc
|
||||||
|
chmod 644 $(LIBPATH)/pkgconfig/libpng12.pc
|
||||||
|
|
||||||
|
install: install-static install-shared
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
/bin/rm -f *.o libpng.a $(LIBNAME).so $(LIBNAME).so.$(PNGMAJ)* \
|
/bin/rm -f *.o libpng.a $(LIBNAME).so $(LIBNAME).so.$(PNGMAJ)* \
|
||||||
|
@ -32,7 +32,7 @@ RANLIB=echo
|
|||||||
# read libpng.txt or png.h to see why PNGMAJ is 0. You should not
|
# read libpng.txt or png.h to see why PNGMAJ is 0. You should not
|
||||||
# have to change it.
|
# have to change it.
|
||||||
PNGMAJ = 0
|
PNGMAJ = 0
|
||||||
PNGMIN = 1.2.2beta2
|
PNGMIN = 1.2.2beta3
|
||||||
PNGVER = $(PNGMAJ).$(PNGMIN)
|
PNGVER = $(PNGMAJ).$(PNGMIN)
|
||||||
LIBNAME = libpng12
|
LIBNAME = libpng12
|
||||||
|
|
||||||
@ -84,33 +84,37 @@ pngtest: pngtest.o $(LIBNAME).so
|
|||||||
test: pngtest
|
test: pngtest
|
||||||
./pngtest
|
./pngtest
|
||||||
|
|
||||||
install-static: libpng.a
|
install-headers: png.h pngconf.h
|
||||||
-@if [ ! -d $(INCPATH) ]; then mkdir $(INCPATH); fi
|
-@if [ ! -d $(INCPATH) ]; then mkdir $(INCPATH); fi
|
||||||
-@if [ ! -d $(LIBPATH) ]; then mkdir $(LIBPATH); fi
|
|
||||||
cp png.h pngconf.h $(INCPATH)
|
|
||||||
chmod 644 $(INCPATH)/png.h $(INCPATH)/pngconf.h
|
|
||||||
cp libpng.a $(LIBPATH)
|
|
||||||
chmod 644 $(LIBPATH)/libpng.a
|
|
||||||
|
|
||||||
install: libpng.a $(LIBNAME).so.$(PNGVER)
|
|
||||||
-@if [ ! -d $(INCPATH) ]; then mkdir $(INCPATH); fi
|
|
||||||
-@if [ ! -d $(LIBPATH) ]; then mkdir $(LIBPATH); fi
|
|
||||||
-@if [ ! -d $(INCPATH)/$(LIBNAME) ]; then mkdir $(INCPATH)/$(LIBNAME); fi
|
-@if [ ! -d $(INCPATH)/$(LIBNAME) ]; then mkdir $(INCPATH)/$(LIBNAME); fi
|
||||||
cp png.h pngconf.h $(INCPATH)/$(LIBNAME)
|
cp png.h pngconf.h $(INCPATH)/$(LIBNAME)
|
||||||
chmod 644 $(INCPATH)/$(LIBNAME)/png.h $(INCPATH)/$(LIBNAME)/pngconf.h
|
chmod 644 $(INCPATH)/$(LIBNAME)/png.h $(INCPATH)/$(LIBNAME)/pngconf.h
|
||||||
-@/bin/rm -f $(INCPATH)/png.h $(INCPATH)/pngconf.h
|
-@/bin/rm -f $(INCPATH)/png.h $(INCPATH)/pngconf.h
|
||||||
ln -f -s $(INCPATH)/$(LIBNAME)/png.h $(INCPATH)
|
ln -f -s $(INCPATH)/$(LIBNAME)/png.h $(INCPATH)
|
||||||
ln -f -s $(INCPATH)/$(LIBNAME)/pngconf.h $(INCPATH)
|
ln -f -s $(INCPATH)/$(LIBNAME)/pngconf.h $(INCPATH)
|
||||||
|
|
||||||
|
install-static: install-headers libpng.a
|
||||||
|
-@if [ ! -d $(LIBPATH) ]; then mkdir $(LIBPATH); fi
|
||||||
cp libpng.a $(LIBPATH)/$(LIBNAME).a
|
cp libpng.a $(LIBPATH)/$(LIBNAME).a
|
||||||
chmod 644 $(LIBPATH)/$(LIBNAME).a
|
chmod 644 $(LIBPATH)/$(LIBNAME).a
|
||||||
-@/bin/rm -f $(LIBPATH)/libpng.a
|
-@/bin/rm -f $(LIBPATH)/libpng.a
|
||||||
ln -f -s $(LIBPATH)/$(LIBNAME).a $(LIBPATH)/libpng.a
|
ln -f -s $(LIBPATH)/$(LIBNAME).a $(LIBPATH)/libpng.a
|
||||||
|
|
||||||
|
install-shared: install-headers $(LIBNAME).so.$(PNGVER)
|
||||||
|
-@if [ ! -d $(LIBPATH) ]; then mkdir $(LIBPATH); fi
|
||||||
|
-@/bin/rm -f $(LIBPATH)/libpng.so.3*
|
||||||
cp $(LIBNAME).so.$(PNGVER) $(LIBPATH)
|
cp $(LIBNAME).so.$(PNGVER) $(LIBPATH)
|
||||||
chmod 755 $(LIBPATH)/$(LIBNAME).so.$(PNGVER)
|
chmod 755 $(LIBPATH)/$(LIBNAME).so.$(PNGVER)
|
||||||
-@/bin/rm -f $(LIBPATH)/$(LIBNAME).so.$(PNGMAJ)* $(LIBPATH)/$(LIBNAME).so
|
-@/bin/rm -f $(LIBPATH)/$(LIBNAME).so.$(PNGMAJ)* $(LIBPATH)/$(LIBNAME).so
|
||||||
(cd $(LIBPATH);
|
(cd $(LIBPATH);
|
||||||
ln -f -s $(LIBNAME).so.$(PNGVER) $(LIBNAME).so.$(PNGMAJ); \
|
ln -f -s $(LIBNAME).so.$(PNGVER) $(LIBNAME).so.$(PNGMAJ); \
|
||||||
ln -f -s $(LIBNAME).so.$(PNGMAJ) $(LIBNAME).so)
|
ln -f -s $(LIBNAME).so.$(PNGMAJ) $(LIBNAME).so)
|
||||||
|
-@if [ ! -d $(LIBPATH)/pkgconfig ]; then mkdir $(LIBPATH)/pkgconfig; fi
|
||||||
|
cat scripts/libpng.pc.in | sed -e s\!@PREFIX@!$(prefix)! > libpng.pc
|
||||||
|
cp libpng.pc $(LIBPATH)/pkgconfig/libpng12.pc
|
||||||
|
chmod 644 $(LIBPATH)/pkgconfig/libpng12.pc
|
||||||
|
|
||||||
|
install: install-static install-shared
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
/bin/rm -f *.o libpng.a $(LIBNAME).so $(LIBNAME).so.$(PNGMAJ)* \
|
/bin/rm -f *.o libpng.a $(LIBNAME).so $(LIBNAME).so.$(PNGMAJ)* \
|
||||||
|
@ -1,13 +1,13 @@
|
|||||||
unit pngdef;
|
unit pngdef;
|
||||||
|
|
||||||
// Caution: this file has fallen out of date since version 1.0.5. Write to
|
// Caution: this file has fallen out of date since version 1.0.5. Write to
|
||||||
// png-implement@ccrc.wustl.edu or to randeg@alum.rpi.edu about bringing
|
// png-implement@ccrc.wustl.edu or to randeg@alum.rpi.edu about volunteering
|
||||||
// it up to date.
|
// to it up to date.
|
||||||
|
|
||||||
interface
|
interface
|
||||||
|
|
||||||
const
|
const
|
||||||
PNG_LIBPNG_VER_STRING = '1.2.2beta2';
|
PNG_LIBPNG_VER_STRING = '1.2.2beta3';
|
||||||
PNG_LIBPNG_VER = 10202;
|
PNG_LIBPNG_VER = 10202;
|
||||||
|
|
||||||
type
|
type
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
; PNG.LIB module definition file for OS/2
|
; PNG.LIB module definition file for OS/2
|
||||||
;----------------------------------------
|
;----------------------------------------
|
||||||
|
|
||||||
; Version 1.2.2beta2
|
; Version 1.2.2beta3
|
||||||
|
|
||||||
LIBRARY PNG
|
LIBRARY PNG
|
||||||
DESCRIPTION "PNG image compression library for OS/2"
|
DESCRIPTION "PNG image compression library for OS/2"
|
||||||
@ -184,9 +184,6 @@ EXPORTS
|
|||||||
png_convert_to_rfc1123
|
png_convert_to_rfc1123
|
||||||
png_set_invalid
|
png_set_invalid
|
||||||
|
|
||||||
;To be added at version 1.2.0
|
|
||||||
; png_permit_mng_features
|
|
||||||
|
|
||||||
; Added at version 1.2.0:
|
; Added at version 1.2.0:
|
||||||
png_mmx_support
|
png_mmx_support
|
||||||
png_permit_empty_plte
|
png_permit_empty_plte
|
||||||
@ -199,6 +196,11 @@ EXPORTS
|
|||||||
png_set_asm_flags
|
png_set_asm_flags
|
||||||
png_init_mmx_flags
|
png_init_mmx_flags
|
||||||
|
|
||||||
|
; Added at version 1.2.2:
|
||||||
|
png_zalloc
|
||||||
|
png_zfree
|
||||||
|
png_handle_as_unknown
|
||||||
|
|
||||||
; These are not present when libpng is compiled with PNG_NO_GLOBAL_ARRAYS
|
; These are not present when libpng is compiled with PNG_NO_GLOBAL_ARRAYS
|
||||||
png_libpng_ver
|
png_libpng_ver
|
||||||
png_pass_start
|
png_pass_start
|
||||||
|
Reference in New Issue
Block a user