Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Libpng
提交
7455cbf4
T
Third Party Libpng
项目概览
OpenHarmony
/
Third Party Libpng
10 个月 前同步成功
通知
4
Star
22
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
Third Party Libpng
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
7455cbf4
编写于
11月 24, 2011
作者:
G
Glenn Randers-Pehrson
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[libpng16] Update internal version numbering and SO-numbers
上级
87fadd5e
变更
49
隐藏空白更改
内联
并排
Showing
49 changed file
with
336 addition
and
182 deletion
+336
-182
ANNOUNCE
ANNOUNCE
+1
-1
CHANGES
CHANGES
+1
-1
CMakeLists.txt
CMakeLists.txt
+4
-4
LICENSE
LICENSE
+2
-2
README
README
+1
-1
contrib/gregbook/Makefile.sgi
contrib/gregbook/Makefile.sgi
+3
-3
contrib/gregbook/Makefile.unx
contrib/gregbook/Makefile.unx
+4
-4
contrib/pngminus/makefile.std
contrib/pngminus/makefile.std
+3
-3
example.c
example.c
+158
-4
libpng-manual.txt
libpng-manual.txt
+3
-3
libpng.3
libpng.3
+7
-7
libpngpf.3
libpngpf.3
+1
-1
png.5
png.5
+1
-1
png.c
png.c
+2
-2
png.h
png.h
+2
-2
pngconf.h
pngconf.h
+1
-1
pngread.c
pngread.c
+1
-1
projects/visualc71/libpng.vcproj
projects/visualc71/libpng.vcproj
+3
-3
projects/visualc71/pngtest.vcproj
projects/visualc71/pngtest.vcproj
+1
-1
projects/vstudio/libpng/libpng.vcxproj
projects/vstudio/libpng/libpng.vcxproj
+6
-6
projects/vstudio/pngtest/pngtest.vcxproj
projects/vstudio/pngtest/pngtest.vcxproj
+4
-4
projects/vstudio/pngvalid/pngvalid.vcxproj
projects/vstudio/pngvalid/pngvalid.vcxproj
+4
-4
projects/vstudio/readme.txt
projects/vstudio/readme.txt
+2
-2
projects/vstudio/zlib.props
projects/vstudio/zlib.props
+1
-1
scripts/README.txt
scripts/README.txt
+6
-6
scripts/libpng.pc.in
scripts/libpng.pc.in
+2
-2
scripts/makefile.32sunu
scripts/makefile.32sunu
+5
-5
scripts/makefile.64sunu
scripts/makefile.64sunu
+6
-6
scripts/makefile.aix
scripts/makefile.aix
+3
-3
scripts/makefile.beos
scripts/makefile.beos
+6
-6
scripts/makefile.cegcc
scripts/makefile.cegcc
+3
-3
scripts/makefile.darwin
scripts/makefile.darwin
+7
-7
scripts/makefile.dec
scripts/makefile.dec
+4
-4
scripts/makefile.elf
scripts/makefile.elf
+12
-12
scripts/makefile.freebsd
scripts/makefile.freebsd
+1
-1
scripts/makefile.hp64
scripts/makefile.hp64
+5
-5
scripts/makefile.hpgcc
scripts/makefile.hpgcc
+6
-6
scripts/makefile.hpux
scripts/makefile.hpux
+5
-5
scripts/makefile.linux
scripts/makefile.linux
+8
-8
scripts/makefile.ne12bsd
scripts/makefile.ne12bsd
+2
-2
scripts/makefile.netbsd
scripts/makefile.netbsd
+2
-2
scripts/makefile.openbsd
scripts/makefile.openbsd
+1
-1
scripts/makefile.sco
scripts/makefile.sco
+5
-5
scripts/makefile.sggcc
scripts/makefile.sggcc
+6
-6
scripts/makefile.sgi
scripts/makefile.sgi
+7
-7
scripts/makefile.so9
scripts/makefile.so9
+5
-5
scripts/makefile.solaris
scripts/makefile.solaris
+6
-6
scripts/makefile.solaris-x86
scripts/makefile.solaris-x86
+6
-6
scripts/pnglibconf.h.prebuilt
scripts/pnglibconf.h.prebuilt
+1
-1
未找到文件。
ANNOUNCE
浏览文件 @
7455cbf4
...
...
@@ -110,7 +110,7 @@ Version 1.5.7beta05 [(PENDING RELEASE)]
Version 1.6.0alpha01 [November 24, 2011]
Added example programs for the new 'simplified' API.
Moved pngvalid.c into contrib/libtests
Rebuilt Makefile.in
and
configure, etc., with autoconf-2.68
Rebuilt Makefile.in
,
configure, etc., with autoconf-2.68
Send comments/corrections/commendations to png-mng-implement at lists.sf.net:
(subscription required; visit
...
...
CHANGES
浏览文件 @
7455cbf4
...
...
@@ -3755,7 +3755,7 @@ Version 1.5.7beta05 [(PENDING RELEASE)]
Version 1.6.0alpha01 [November 24, 2011]
Added example programs for the new 'simplified' API.
Moved pngvalid.c into contrib/libtests
Rebuilt Makefile.in
configure
with autoconf-2.68
Rebuilt Makefile.in
, configure, etc.,
with autoconf-2.68
Send comments/corrections/commendations to png-mng-implement at lists.sf.net
(subscription required; visit
...
...
CMakeLists.txt
浏览文件 @
7455cbf4
...
...
@@ -229,9 +229,9 @@ endif(NOT WIN32 OR CYGWIN OR MINGW)
# SET UP LINKS
if
(
PNG_SHARED
)
set_target_properties
(
${
PNG_LIB_NAME
}
PROPERTIES
# VERSION 1
5
.${PNGLIB_RELEASE}.1.6.0alpha01
VERSION 1
5
.
${
PNGLIB_RELEASE
}
.0
SOVERSION 1
5
# VERSION 1
6
.${PNGLIB_RELEASE}.1.6.0alpha01
VERSION 1
6
.
${
PNGLIB_RELEASE
}
.0
SOVERSION 1
6
CLEAN_DIRECT_OUTPUT 1
)
endif
()
if
(
PNG_STATIC
)
...
...
@@ -263,7 +263,7 @@ if(NOT SKIP_INSTALL_LIBRARIES AND NOT SKIP_INSTALL_ALL )
LIBRARY DESTINATION
${
CMAKE_INSTALL_LIBDIR
}
ARCHIVE DESTINATION
${
CMAKE_INSTALL_LIBDIR
}
)
# Create a symlink for libpng.dll.a => libpng1
5
.dll.a on Cygwin
# Create a symlink for libpng.dll.a => libpng1
6
.dll.a on Cygwin
if
(
CYGWIN OR MINGW
)
get_target_property
(
BUILD_TARGET_LOCATION
${
PNG_LIB_NAME
}
LOCATION_
${
CMAKE_BUILD_TYPE
}
)
get_filename_component
(
BUILD_TARGET_FILE
${
BUILD_TARGET_LOCATION
}
NAME
)
...
...
LICENSE
浏览文件 @
7455cbf4
...
...
@@ -10,7 +10,7 @@ this sentence.
This code is released under the libpng license.
libpng versions 1.2.6, August 15, 2004, through 1.6.0alpha01, November 2
3
, 2011, are
libpng versions 1.2.6, August 15, 2004, through 1.6.0alpha01, November 2
4
, 2011, are
Copyright (c) 2004, 2006-2011 Glenn Randers-Pehrson, and are
distributed according to the same disclaimer and license as libpng-1.2.5
with the following individual added to the list of Contributing Authors
...
...
@@ -108,4 +108,4 @@ certification mark of the Open Source Initiative.
Glenn Randers-Pehrson
glennrp at users.sourceforge.net
November 2
3
, 2011
November 2
4
, 2011
README
浏览文件 @
7455cbf4
README for libpng version 1.6.0alpha01 - November 2
3, 2011 (shared library 15
.0)
README for libpng version 1.6.0alpha01 - November 2
4, 2011 (shared library 16
.0)
See the note about version numbers near the top of png.h
See INSTALL for instructions on how to install libpng.
...
...
contrib/gregbook/Makefile.sgi
浏览文件 @
7455cbf4
...
...
@@ -23,9 +23,9 @@
# macros --------------------------------------------------------------------
PNGINC
=
-I
/usr/local/include/libpng1
5
PNGLIB
=
-L
/usr/local/lib
-lpng1
5
# dynamically linked against libpng
#PNGLIB = /usr/local/lib/libpng1
5
.a # statically linked against libpng
PNGINC
=
-I
/usr/local/include/libpng1
6
PNGLIB
=
-L
/usr/local/lib
-lpng1
6
# dynamically linked against libpng
#PNGLIB = /usr/local/lib/libpng1
6
.a # statically linked against libpng
# or:
#PNGINC = -I../..
#PNGLIB = -L../.. -lpng
...
...
contrib/gregbook/Makefile.unx
浏览文件 @
7455cbf4
...
...
@@ -26,14 +26,14 @@
# macros --------------------------------------------------------------------
#PNGDIR = /usr/local/lib
#PNGINC = -I/usr/local/include/libpng1
5
#PNGLIBd = -L$(PNGDIR) -lpng1
5
# dynamically linked, installed libpng
#PNGLIBs = $(PNGDIR)/libpng1
5
.a # statically linked, installed libpng
#PNGINC = -I/usr/local/include/libpng1
6
#PNGLIBd = -L$(PNGDIR) -lpng1
6
# dynamically linked, installed libpng
#PNGLIBs = $(PNGDIR)/libpng1
6
.a # statically linked, installed libpng
# or:
PNGDIR
=
../..# this one is
for
libpng-x.y.z/contrib/gregbook builds
#PNGDIR = ../libpng
PNGINC
=
-I
$(PNGDIR)
PNGLIBd
=
-Wl
,-rpath,
$(PNGDIR)
-L
$(PNGDIR)
-lpng1
5
# dynamically linked
PNGLIBd
=
-Wl
,-rpath,
$(PNGDIR)
-L
$(PNGDIR)
-lpng1
6
# dynamically linked
PNGLIBs
=
$(PNGDIR)
/libpng.a
# statically linked, local libpng
ZDIR
=
/usr/local/lib
...
...
contrib/pngminus/makefile.std
浏览文件 @
7455cbf4
...
...
@@ -8,9 +8,9 @@ LD=$(CC)
RM
=
rm
-f
#PNGPATH = /usr/local
#PNGINC = -I$(PNGPATH)/include/libpng1
5
#PNGLIB = -L$(PNGPATH)/lib -lpng1
5
#PNGLIBS = $(PNGPATH)/lib/libpng1
5
.a
#PNGINC = -I$(PNGPATH)/include/libpng1
6
#PNGLIB = -L$(PNGPATH)/lib -lpng1
6
#PNGLIBS = $(PNGPATH)/lib/libpng1
6
.a
PNGINC
=
-I
../..
PNGLIB
=
-L
../..
-lpng
PNGLIBS
=
../../libpng.a
...
...
example.c
浏览文件 @
7455cbf4
...
...
@@ -22,11 +22,165 @@
* see also the programs in the contrib directory.
*/
#define _POSIX_SOURCE 1 /* libpng and zlib are POSIX-compliant. You may
* change this if your application uses non-POSIX
* extensions. */
/* The simple, but restricted, approach to reading a PNG file or data stream
* just requires two function calls, as in the following complete program.
* Writing a file just needs one function call, so long as the data has an
* appropriate layout.
*
* The following code reads PNG image data from a file and writes it, in a
* potentially new format, to a new file. While this code will compile there is
* minimal (insufficient) error checking; for a more realistic version look at
* contrib/examples/pngtopng.c
*/
#include <stddef.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <png.h>
int main(int argc, const char **argv)
{
if (argc == 3)
{
png_image image; /* The control structure used by libpng */
/* Initialize the 'png_image' structure. */
memset(&image, 0, sizeof image);
/* The first argument is the file to read: */
if (png_image_begin_read_from_file(&image, argv[1]))
{
png_bytep buffer;
/* Set the format in which to read the PNG file; this code chooses a
* simple sRGB format with a non-associated alpha channel, adequate to
* store most images.
*/
image.format = PNG_FORMAT_RGBA;
/* Now allocate enough memory to hold the image in this format; the
* PNG_IMAGE_SIZE macro uses the information about the image (width,
* height and format) stored in 'image'.
*/
buffer = malloc(PNG_IMAGE_SIZE(image));
/* If enough memory was available read the image in the desired format
* then write the result out to the new file. 'background' is not
* necessary when reading the image because the alpha channel is
* preserved; if it were to be removed, for example if we requested
* PNG_FORMAT_RGB, then either a solid background color would have to
* be supplied or the output buffer would have to be initialized to the
* actual background of the image.
*
* The final argument to png_image_finish_read is the 'row_stride' -
* this is the number of components allocated for the image in each
* row. It has to be at least as big as the value returned by
* PNG_IMAGE_ROW_STRIDE, but if you just allocate space for the
* default, minimum, size using PNG_IMAGE_SIZE as above you can pass
* zero.
*/
if (buffer != NULL &&
png_image_finish_read(&image, NULL/*background*/, buffer,
0/*row_stride*/))
{
/* Now write the image out to the second argument. In the write
* call 'convert_to_8bit' allows 16-bit data to be squashed down to
* 8 bits; this isn't necessary here because the original read was
* to the 8-bit format.
*/
if (png_image_write_to_file(&image, argv[2], 0/*convert_to_8bit*/,
buffer, 0/*row_stride*/))
{
/* The image has been written successfully. */
exit(0);
}
}
}
/* Something went wrong reading or writing the image. libpng stores a
* textual message in the 'png_image' structure:
*/
fprintf(stderr, "pngtopng: error: %s\n", image.message);
exit (1);
}
#include "png.h"
fprintf(stderr, "pngtopng: usage: pngtopng input-file output-file\n");
exit(1);
}
/* That's it ;-) Of course you probably want to do more with PNG files than
* just converting them all to 32-bit RGBA PNG files; you can do that between
* the call to png_image_finish_read and png_image_write_to_file. You can also
* ask for the image data to be presented in a number of different formats. You
* do this by simply changing the 'format' parameter set before allocating the
* buffer.
*
* The format parameter consists of five flags that define various aspects of
* the image, you can simply add these together to get the format or you can use
* one of the predefined macros from png.h (as above):
*
* PNG_FORMAT_FLAG_COLOR: if set the image will have three color components per
* pixel (red, green and blue), if not set the image will just have one
* luminance (grayscale) component.
*
* PNG_FORMAT_FLAG_ALPHA: if set each pixel in the image will have an additional
* alpha value; a linear value that describes the degree the image pixel
* covers (overwrites) the contents of the existing pixel on the display.
*
* PNG_FORMAT_FLAG_LINEAR: if set the components of each pixel will be returned
* as a series of 16-bit linear values, if not set the components will be
* returned as a series of 8-bit values encoded according to the 'sRGB'
* standard. The 8-bit format is the normal format for images intended for
* direct display, because almost all display devices do the inverse of the
* sRGB transformation to the data they receive. The 16-bit format is more
* common for scientific data and image data that must be further processed;
* because it is linear simple math can be done on the component values.
* Regardless of the setting of this flag the alpha channel is always linear,
* although it will be 8 bits or 16 bits wide as specified by the flag.
*
* PNG_FORMAT_FLAG_BGR: if set the components of a color pixel will be returned
* in the order blue, then green, then red. If not set the pixel components
* are in the order red, then green, then blue.
*
* PNG_FORMAT_FLAG_AFIRST: if set the alpha channel (if present) precedes the
* color or grayscale components. If not set the alpha channel follows the
* components.
*
* You do not have to read directly from a file. You can read from memory or,
* on systems that support it, from a <stdio.h> FILE*. This is controlled by
* the particular png_image_read_from_ function you call at the start. Likewise
* on write you can write to a FILE* if your system supports it. Check the
* macro PNG_STDIO_SUPPORTED to see if stdio support has been included in your
* libpng build.
*
* If you read 16-bit (PNG_FORMAT_FLAG_LINEAR) data you may need to write it in
* the 8-bit format for display. You do this by setting the convert_to_8bit
* flag to 'true'.
*
* Don't repeatedly convert between the 8-bit and 16-bit forms. There is
* significant data loss when 16-bit data is converted to the 8-bit encoding and
* the current libpng implementation of convertion to 16-bit is also
* significantly lossy. The latter will be fixed in the future, but the former
* is unavoidable - the 8-bit format just doesn't have enough resolution.
*/
/* If your program needs more information from the PNG data it reads, or if you
* need to do more complex transformations, or minimise transformations, on the
* data you read, then you must use one of the several lower level libpng
* interfaces.
*
* All these interfaces require that you do your own error handling - your
* program must be able to arrange for control to return to your own code any
* time libpng encounters a problem. There are several ways to do this, but the
* standard way is to use the ANSI-C (C90) <setjmp.h> interface to establish a
* return point within your own code. You must do this if you do not use the
* simplified interface (above).
*
* The first step is to include the header files you need, including the libpng
* header file. Include any standard headers and feature test macros your
* program requires before including png.h:
*/
#include <png.h>
/* The png_jmpbuf() macro, used in error handling, became available in
* libpng version 1.0.6. If you want to be able to run your code with older
...
...
libpng-manual.txt
浏览文件 @
7455cbf4
libpng-manual.txt - A description on how to use and modify libpng
libpng version 1.6.0alpha01 - November 2
3
, 2011
libpng version 1.6.0alpha01 - November 2
4
, 2011
Updated and distributed by Glenn Randers-Pehrson
<glennrp at users.sourceforge.net>
Copyright (c) 1998-2011 Glenn Randers-Pehrson
...
...
@@ -11,7 +11,7 @@ libpng-manual.txt - A description on how to use and modify libpng
Based on:
libpng versions 0.97, January 1998, through 1.6.0alpha01 - November 2
3
, 2011
libpng versions 0.97, January 1998, through 1.6.0alpha01 - November 2
4
, 2011
Updated and distributed by Glenn Randers-Pehrson
Copyright (c) 1998-2011 Glenn Randers-Pehrson
...
...
@@ -4573,7 +4573,7 @@ Other rules can be inferred by inspecting the libpng source.
XIV. Y2K Compliance in libpng
November 2
3
, 2011
November 2
4
, 2011
Since the PNG Development group is an ad-hoc body, we can't make
an official declaration.
...
...
libpng.3
浏览文件 @
7455cbf4
.TH LIBPNG 3 "November 2
3
, 2011"
.TH LIBPNG 3 "November 2
4
, 2011"
.SH NAME
libpng \- Portable Network Graphics (PNG) Reference Library 1.6.0alpha01
.SH SYNOPSIS
...
...
@@ -1007,7 +1007,7 @@ Following is a copy of the libpng-manual.txt file that accompanies libpng.
.SH LIBPNG.TXT
libpng-manual.txt - A description on how to use and modify libpng
libpng version 1.6.0alpha01 - November 2
3
, 2011
libpng version 1.6.0alpha01 - November 2
4
, 2011
Updated and distributed by Glenn Randers-Pehrson
<glennrp at users.sourceforge.net>
Copyright (c) 1998-2011 Glenn Randers-Pehrson
...
...
@@ -1018,7 +1018,7 @@ libpng-manual.txt - A description on how to use and modify libpng
Based on:
libpng versions 0.97, January 1998, through 1.6.0alpha01 - November 2
3
, 2011
libpng versions 0.97, January 1998, through 1.6.0alpha01 - November 2
4
, 2011
Updated and distributed by Glenn Randers-Pehrson
Copyright (c) 1998-2011 Glenn Randers-Pehrson
...
...
@@ -5581,7 +5581,7 @@ Other rules can be inferred by inspecting the libpng source.
.SH XIV. Y2K Compliance in libpng
November 2
3
, 2011
November 2
4
, 2011
Since the PNG Development group is an ad-hoc body, we can't make
an official declaration.
...
...
@@ -5847,7 +5847,7 @@ possible without all of you.
Thanks to Frank J. T. Wojcik for helping with the documentation.
Libpng version 1.6.0alpha01 - November 2
3
, 2011:
Libpng version 1.6.0alpha01 - November 2
4
, 2011:
Initially created in 1995 by Guy Eric Schalnat, then of Group 42, Inc.
Currently maintained by Glenn Randers-Pehrson (glennrp at users.sourceforge.net).
...
...
@@ -5870,7 +5870,7 @@ this sentence.
This code is released under the libpng license.
libpng versions 1.2.6, August 15, 2004, through 1.6.0alpha01, November 2
3
, 2011, are
libpng versions 1.2.6, August 15, 2004, through 1.6.0alpha01, November 2
4
, 2011, are
Copyright (c) 2004,2006-2007 Glenn Randers-Pehrson, and are
distributed according to the same disclaimer and license as libpng-1.2.5
with the following individual added to the list of Contributing Authors
...
...
@@ -5969,7 +5969,7 @@ certification mark of the Open Source Initiative.
Glenn Randers-Pehrson
glennrp at users.sourceforge.net
November 2
3
, 2011
November 2
4
, 2011
.\" end of man page
libpngpf.3
浏览文件 @
7455cbf4
.TH LIBPNGPF 3 "November 2
3
, 2011"
.TH LIBPNGPF 3 "November 2
4
, 2011"
.SH NAME
libpng \- Portable Network Graphics (PNG) Reference Library 1.6.0alpha01
(private functions)
...
...
png.5
浏览文件 @
7455cbf4
.TH PNG 5 "November 2
3
, 2011"
.TH PNG 5 "November 2
4
, 2011"
.SH NAME
png \- Portable Network Graphics (PNG) format
.SH DESCRIPTION
...
...
png.c
浏览文件 @
7455cbf4
...
...
@@ -655,13 +655,13 @@ png_get_copyright(png_const_structp png_ptr)
#else
# ifdef __STDC__
return
PNG_STRING_NEWLINE
\
"libpng version 1.6.0alpha01 - November 2
3
, 2011"
PNG_STRING_NEWLINE
\
"libpng version 1.6.0alpha01 - November 2
4
, 2011"
PNG_STRING_NEWLINE
\
"Copyright (c) 1998-2011 Glenn Randers-Pehrson"
PNG_STRING_NEWLINE
\
"Copyright (c) 1996-1997 Andreas Dilger"
PNG_STRING_NEWLINE
\
"Copyright (c) 1995-1996 Guy Eric Schalnat, Group 42, Inc."
\
PNG_STRING_NEWLINE
;
# else
return
"libpng version 1.6.0alpha01 - November 2
3
, 2011\
return
"libpng version 1.6.0alpha01 - November 2
4
, 2011\
Copyright (c) 1998-2011 Glenn Randers-Pehrson\
Copyright (c) 1996-1997 Andreas Dilger\
Copyright (c) 1995-1996 Guy Eric Schalnat, Group 42, Inc."
;
...
...
png.h
浏览文件 @
7455cbf4
...
...
@@ -376,8 +376,8 @@
#define PNG_HEADER_VERSION_STRING \
" libpng version 1.6.0alpha01 - November 24, 2011\n"
#define PNG_LIBPNG_VER_SONUM 1
5
#define PNG_LIBPNG_VER_DLLNUM 1
5
#define PNG_LIBPNG_VER_SONUM 1
6
#define PNG_LIBPNG_VER_DLLNUM 1
6
/* These should match the first 3 components of PNG_LIBPNG_VER_STRING: */
#define PNG_LIBPNG_VER_MAJOR 1
...
...
pngconf.h
浏览文件 @
7455cbf4
/* pngconf.h - machine configurable file for libpng
*
* libpng version 1.6.0alpha01 - November 2
3
, 2011
* libpng version 1.6.0alpha01 - November 2
4
, 2011
*
* Copyright (c) 1998-2011 Glenn Randers-Pehrson
* (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
...
...
pngread.c
浏览文件 @
7455cbf4
...
...
@@ -1673,7 +1673,7 @@ png_image_read_composite(png_voidp argument)
/* So 'component' is scaled by 255*65535 and is
* therefore appropriate for the sRGB to linear
* conver
t
ion table.
* conver
s
ion table.
*/
component
=
PNG_sRGB_FROM_LINEAR
(
component
);
}
...
...
projects/visualc71/libpng.vcproj
浏览文件 @
7455cbf4
...
...
@@ -30,7 +30,7 @@
Name=
"VCCustomBuildTool"
/>
<Tool
Name=
"VCLinkerTool"
OutputFile=
"$(OutDir)/libpng1
5
.dll"
OutputFile=
"$(OutDir)/libpng1
6
.dll"
LinkIncremental=
"1"
/>
<Tool
Name=
"VCMIDLTool"
/>
...
...
@@ -78,7 +78,7 @@
Name=
"VCCustomBuildTool"
/>
<Tool
Name=
"VCLinkerTool"
OutputFile=
"$(OutDir)/libpng1
5
d.dll"
OutputFile=
"$(OutDir)/libpng1
6
d.dll"
GenerateDebugInformation=
"TRUE"
/>
<Tool
Name=
"VCMIDLTool"
/>
...
...
@@ -126,7 +126,7 @@
Name=
"VCCustomBuildTool"
/>
<Tool
Name=
"VCLinkerTool"
OutputFile=
"$(OutDir)/libpng1
5
vb.dll"
OutputFile=
"$(OutDir)/libpng1
6
vb.dll"
LinkIncremental=
"1"
/>
<Tool
Name=
"VCMIDLTool"
/>
...
...
projects/visualc71/pngtest.vcproj
浏览文件 @
7455cbf4
...
...
@@ -130,7 +130,7 @@ $(TargetPath) ..\..\pngtest.png $(IntDir)\pngout.png"
Name=
"VCLinkerTool"
OutputFile=
"$(OutDir)/pngtest.exe"
LinkIncremental=
"1"
IgnoreDefaultLibraryNames=
"$(IntDir)\libpng1
5
b.lib"
IgnoreDefaultLibraryNames=
"$(IntDir)\libpng1
6
b.lib"
SubSystem=
"1"
TargetMachine=
"1"
/>
<Tool
...
...
projects/vstudio/libpng/libpng.vcxproj
浏览文件 @
7455cbf4
...
...
@@ -63,23 +63,23 @@
<LinkIncremental>
false
</LinkIncremental>
<CustomBuildBeforeTargets>
</CustomBuildBeforeTargets>
<TargetName>
$(ProjectName)1
5
</TargetName>
<TargetName>
$(ProjectName)1
6
</TargetName>
</PropertyGroup>
<PropertyGroup
Condition=
"'$(Configuration)|$(Platform)'=='Debug Library|Win32'"
>
<LinkIncremental>
false
</LinkIncremental>
<CustomBuildBeforeTargets
/>
<TargetName>
$(ProjectName)1
5
</TargetName>
<TargetName>
$(ProjectName)1
6
</TargetName>
</PropertyGroup>
<PropertyGroup
Condition=
"'$(Configuration)|$(Platform)'=='Release|Win32'"
>
<LinkIncremental>
false
</LinkIncremental>
<CustomBuildBeforeTargets>
</CustomBuildBeforeTargets>
<TargetName>
$(ProjectName)1
5
</TargetName>
<TargetName>
$(ProjectName)1
6
</TargetName>
</PropertyGroup>
<PropertyGroup
Condition=
"'$(Configuration)|$(Platform)'=='Release Library|Win32'"
>
<LinkIncremental>
false
</LinkIncremental>
<CustomBuildBeforeTargets
/>
<TargetName>
$(ProjectName)1
5
</TargetName>
<TargetName>
$(ProjectName)1
6
</TargetName>
</PropertyGroup>
<ItemDefinitionGroup
Condition=
"'$(Configuration)|$(Platform)'=='Debug|Win32'"
>
<ClCompile>
...
...
@@ -106,7 +106,7 @@
<SubSystem>
Windows
</SubSystem>
<GenerateDebugInformation>
true
</GenerateDebugInformation>
<AdditionalDependencies>
zlib.lib
</AdditionalDependencies>
<Version>
1
5
</Version>
<Version>
1
6
</Version>
<AdditionalLibraryDirectories>
$(OutDir)
</AdditionalLibraryDirectories>
</Link>
</ItemDefinitionGroup>
...
...
@@ -163,7 +163,7 @@
<EnableCOMDATFolding>
true
</EnableCOMDATFolding>
<OptimizeReferences>
true
</OptimizeReferences>
<AdditionalDependencies>
zlib.lib
</AdditionalDependencies>
<Version>
1
5
</Version>
<Version>
1
6
</Version>
<AdditionalLibraryDirectories>
$(OutDir)
</AdditionalLibraryDirectories>
</Link>
</ItemDefinitionGroup>
...
...
projects/vstudio/pngtest/pngtest.vcxproj
浏览文件 @
7455cbf4
...
...
@@ -95,7 +95,7 @@
<Link>
<SubSystem>
Console
</SubSystem>
<GenerateDebugInformation>
true
</GenerateDebugInformation>
<AdditionalDependencies>
libpng1
5
.lib
</AdditionalDependencies>
<AdditionalDependencies>
libpng1
6
.lib
</AdditionalDependencies>
<AdditionalLibraryDirectories>
$(OutDir)
</AdditionalLibraryDirectories>
</Link>
<CustomBuildStep>
...
...
@@ -128,7 +128,7 @@
<Link>
<SubSystem>
Console
</SubSystem>
<GenerateDebugInformation>
true
</GenerateDebugInformation>
<AdditionalDependencies>
libpng1
5
.lib;zlib.lib
</AdditionalDependencies>
<AdditionalDependencies>
libpng1
6
.lib;zlib.lib
</AdditionalDependencies>
<AdditionalLibraryDirectories>
$(OutDir)
</AdditionalLibraryDirectories>
</Link>
<CustomBuildStep>
...
...
@@ -163,7 +163,7 @@
<EnableCOMDATFolding>
true
</EnableCOMDATFolding>
<OptimizeReferences>
true
</OptimizeReferences>
<LinkTimeCodeGeneration>
UseLinkTimeCodeGeneration
</LinkTimeCodeGeneration>
<AdditionalDependencies>
libpng1
5
.lib
</AdditionalDependencies>
<AdditionalDependencies>
libpng1
6
.lib
</AdditionalDependencies>
<AdditionalLibraryDirectories>
$(OutDir)
</AdditionalLibraryDirectories>
</Link>
<CustomBuildStep>
...
...
@@ -198,7 +198,7 @@
<GenerateDebugInformation>
true
</GenerateDebugInformation>
<EnableCOMDATFolding>
true
</EnableCOMDATFolding>
<OptimizeReferences>
true
</OptimizeReferences>
<AdditionalDependencies>
libpng1
5
.lib;zlib.lib
</AdditionalDependencies>
<AdditionalDependencies>
libpng1
6
.lib;zlib.lib
</AdditionalDependencies>
<LinkTimeCodeGeneration>
UseLinkTimeCodeGeneration
</LinkTimeCodeGeneration>
<AdditionalLibraryDirectories>
$(OutDir)
</AdditionalLibraryDirectories>
</Link>
...
...
projects/vstudio/pngvalid/pngvalid.vcxproj
浏览文件 @
7455cbf4
...
...
@@ -95,7 +95,7 @@
<Link>
<SubSystem>
Console
</SubSystem>
<GenerateDebugInformation>
true
</GenerateDebugInformation>
<AdditionalDependencies>
libpng1
5
.lib;zlib.lib
</AdditionalDependencies>
<AdditionalDependencies>
libpng1
6
.lib;zlib.lib
</AdditionalDependencies>
<AdditionalLibraryDirectories>
$(OutDir)
</AdditionalLibraryDirectories>
</Link>
<CustomBuildStep>
...
...
@@ -128,7 +128,7 @@
<Link>
<SubSystem>
Console
</SubSystem>
<GenerateDebugInformation>
true
</GenerateDebugInformation>
<AdditionalDependencies>
libpng1
5
.lib;zlib.lib
</AdditionalDependencies>
<AdditionalDependencies>
libpng1
6
.lib;zlib.lib
</AdditionalDependencies>
<AdditionalLibraryDirectories>
$(OutDir)
</AdditionalLibraryDirectories>
</Link>
<CustomBuildStep>
...
...
@@ -162,7 +162,7 @@
<GenerateDebugInformation>
true
</GenerateDebugInformation>
<EnableCOMDATFolding>
true
</EnableCOMDATFolding>
<OptimizeReferences>
true
</OptimizeReferences>
<AdditionalDependencies>
libpng1
5
.lib;zlib.lib
</AdditionalDependencies>
<AdditionalDependencies>
libpng1
6
.lib;zlib.lib
</AdditionalDependencies>
<AdditionalLibraryDirectories>
$(OutDir)
</AdditionalLibraryDirectories>
<LinkTimeCodeGeneration>
UseLinkTimeCodeGeneration
</LinkTimeCodeGeneration>
</Link>
...
...
@@ -198,7 +198,7 @@
<GenerateDebugInformation>
true
</GenerateDebugInformation>
<EnableCOMDATFolding>
true
</EnableCOMDATFolding>
<OptimizeReferences>
true
</OptimizeReferences>
<AdditionalDependencies>
libpng1
5
.lib;zlib.lib
</AdditionalDependencies>
<AdditionalDependencies>
libpng1
6
.lib;zlib.lib
</AdditionalDependencies>
<AdditionalLibraryDirectories>
$(OutDir)
</AdditionalLibraryDirectories>
<LinkTimeCodeGeneration>
UseLinkTimeCodeGeneration
</LinkTimeCodeGeneration>
</Link>
...
...
projects/vstudio/readme.txt
浏览文件 @
7455cbf4
VisualStudio instructions
libpng version 1.6.0alpha01 - November 2
3
, 2011
libpng version 1.6.0alpha01 - November 2
4
, 2011
Copyright (c) 1998-2010 Glenn Randers-Pehrson
...
...
@@ -40,7 +40,7 @@ problems.
If you don't use the Visual Studio defaults your application must still be built
with the default runtime option (/MD). If, for some reason, it is not then your
application will crash inside libpng1
5
.dll as soon as libpng tries to read
application will crash inside libpng1
6
.dll as soon as libpng tries to read
from a file handle you pass in.
If you do not want to use the DLL, for example for a very small application,
...
...
projects/vstudio/zlib.props
浏览文件 @
7455cbf4
...
...
@@ -2,7 +2,7 @@
<!--
* zlib.props - location of zlib source
*
* libpng version 1.6.0alpha01 - November 2
3
, 2011
* libpng version 1.6.0alpha01 - November 2
4
, 2011
*
* Copyright (c) 1998-2011 Glenn Randers-Pehrson
*
...
...
scripts/README.txt
浏览文件 @
7455cbf4
Makefiles for libpng version 1.6.0alpha01 - November 2
3
, 2011
Makefiles for libpng version 1.6.0alpha01 - November 2
4
, 2011
pnglibconf.h.prebuilt => Stores configuration settings
makefile.linux => Linux/ELF makefile
(gcc, creates libpng1
5.so.15
.1.6.0alpha01)
(gcc, creates libpng1
6.so.16
.1.6.0alpha01)
makefile.gcc => Generic makefile (gcc, creates static libpng.a)
makefile.knr => Archaic UNIX Makefile that converts files with
ansi2knr (Requires ansi2knr.c from
...
...
@@ -20,7 +20,7 @@ pnglibconf.h.prebuilt => Stores configuration settings
makefile.dec => DEC Alpha UNIX makefile
makefile.dj2 => DJGPP 2 makefile
makefile.elf => Linux/ELF makefile symbol versioning,
(gcc, creates libpng1
5.so.15
.1.6.0alpha01)
(gcc, creates libpng1
6.so.16
.1.6.0alpha01)
makefile.freebsd => FreeBSD makefile
makefile.gcc => Generic gcc makefile
makefile.hpgcc => HPUX makefile using gcc
...
...
@@ -35,12 +35,12 @@ pnglibconf.h.prebuilt => Stores configuration settings
makefile.os2 => OS/2 Makefile (gcc and emx, requires libpng.def)
makefile.sco => For SCO OSr5 ELF and Unixware 7 with Native cc
makefile.sggcc => Silicon Graphics (gcc,
creates libpng1
5.so.15
.1.6.0alpha01)
creates libpng1
6.so.16
.1.6.0alpha01)
makefile.sgi => Silicon Graphics IRIX makefile (cc, creates static lib)
makefile.solaris => Solaris 2.X makefile (gcc,
creates libpng1
5.so.15
.1.6.0alpha01)
creates libpng1
6.so.16
.1.6.0alpha01)
makefile.so9 => Solaris 9 makefile (gcc,
creates libpng1
5.so.15
.1.6.0alpha01)
creates libpng1
6.so.16
.1.6.0alpha01)
makefile.std => Generic UNIX makefile (cc, creates static libpng.a)
makefile.sunos => Sun makefile
makefile.32sunu => Sun Ultra 32-bit makefile
...
...
scripts/libpng.pc.in
浏览文件 @
7455cbf4
prefix=@prefix@
exec_prefix=@exec_prefix@
libdir=@libdir@
includedir=@includedir@/libpng1
5
includedir=@includedir@/libpng1
6
Name: libpng
Description: Loads and saves PNG files
Version: 1.6.0alpha01
Libs: -L${libdir} -lpng1
5
Libs: -L${libdir} -lpng1
6
Cflags: -I${includedir}
scripts/makefile.32sunu
浏览文件 @
7455cbf4
...
...
@@ -9,8 +9,8 @@
# and license in png.h
# Library name:
LIBNAME
=
libpng1
5
PNGMAJ
=
1
5
LIBNAME
=
libpng1
6
PNGMAJ
=
1
6
# Shared library names:
LIBSO
=
$(LIBNAME)
.so
...
...
@@ -29,7 +29,7 @@ RM_F=/bin/rm -f
SUN_CC_FLAGS
=
-fast
-xtarget
=
ultra
SUN_LD_FLAGS
=
-fast
-xtarget
=
ultra
# where make install puts libpng.a, libpng1
5.so and libpng15
/png.h
# where make install puts libpng.a, libpng1
6.so and libpng16
/png.h
prefix
=
/a
exec_prefix
=
$(prefix)
...
...
@@ -95,7 +95,7 @@ libpng.pc:
-e
s!@exec_prefix@!
$(exec_prefix)
!
\
-e
s!@libdir@!
$(LIBPATH)
!
\
-e
s!@includedir@!
$(INCPATH)
!
\
-e
s!-lpng1
5!-lpng15
\
-lz
\
-lm
!
>
libpng.pc
-e
s!-lpng1
6!-lpng16
\
-lz
\
-lm
!
>
libpng.pc
libpng-config
:
(
cat
scripts/libpng-config-head.in
;
\
...
...
@@ -106,7 +106,7 @@ libpng-config:
echo
R_opts
=
\"
-R
$(LIBPATH)
\"
;
\
echo
ccopts
=
\"
-xtarget
=
ultra
\"
;
\
echo
ldopts
=
\"
-xtarget
=
ultra
\"
;
\
echo
libs
=
\"
-lpng1
5
-lz
-lm
\"
;
\
echo
libs
=
\"
-lpng1
6
-lz
-lm
\"
;
\
cat
scripts/libpng-config-body.in
)
>
libpng-config
chmod
+x libpng-config
...
...
scripts/makefile.64sunu
浏览文件 @
7455cbf4
...
...
@@ -9,8 +9,8 @@
# and license in png.h
# Library name:
LIBNAME
=
libpng1
5
PNGMAJ
=
1
5
LIBNAME
=
libpng1
6
PNGMAJ
=
1
6
# Shared library names:
LIBSO
=
$(LIBNAME)
.so
...
...
@@ -29,7 +29,7 @@ RM_F=/bin/rm -f
SUN_CC_FLAGS
=
-fast
-xtarget
=
ultra
-xarch
=
v9
SUN_LD_FLAGS
=
-fast
-xtarget
=
ultra
-xarch
=
v9
# where make install puts libpng.a, libpng1
5.so and libpng15
/png.h
# where make install puts libpng.a, libpng1
6.so and libpng16
/png.h
prefix
=
/a
exec_prefix
=
$(prefix)
...
...
@@ -47,7 +47,7 @@ WARNMORE=-Wwrite-strings -Wpointer-arith -Wshadow \
-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)
-lpng1
5
-lz
-lm
LDFLAGS
=
-L
.
-R
.
$(SUN_LD_FLAGS)
-L
$(ZLIBLIB)
-R
$(ZLIBLIB)
-lpng1
6
-lz
-lm
INCPATH
=
$(prefix)
/include
LIBPATH
=
$(exec_prefix)
/lib
...
...
@@ -95,7 +95,7 @@ libpng.pc:
-e
s!@exec_prefix@!
$(exec_prefix)
!
\
-e
s!@libdir@!
$(LIBPATH)
!
\
-e
s!@includedir@!
$(INCPATH)
!
\
-e
s!-lpng1
5!-lpng15
\
-lz
\
-lm
!
>
libpng.pc
-e
s!-lpng1
6!-lpng16
\
-lz
\
-lm
!
>
libpng.pc
libpng-config
:
(
cat
scripts/libpng-config-head.in
;
\
...
...
@@ -106,7 +106,7 @@ libpng-config:
echo
R_opts
=
\"
-R
$(LIBPATH)
\"
;
\
echo
ccopts
=
\"
-xtarget
=
ultra
-xarch
=
v9
\"
;
\
echo
ldopts
=
\"
-xtarget
=
ultra
-xarch
=
v9
\"
;
\
echo
libs
=
\"
-lpng1
5
-lz
-lm
\"
;
\
echo
libs
=
\"
-lpng1
6
-lz
-lm
\"
;
\
cat
scripts/libpng-config-body.in
)
>
libpng-config
chmod
+x libpng-config
...
...
scripts/makefile.aix
浏览文件 @
7455cbf4
...
...
@@ -21,8 +21,8 @@ RANLIB = ranlib
RM_F
=
rm
-f
LN_SF
=
ln
-f
-s
LIBNAME
=
libpng1
5
PNGMAJ
=
1
5
LIBNAME
=
libpng1
6
PNGMAJ
=
1
6
prefix
=
/usr/local
INCPATH
=
$(prefix)
/include
...
...
@@ -47,7 +47,7 @@ CRELEASE = -O2
LDRELEASE
=
-s
WARNMORE
=
-W
-Wall
CFLAGS
=
-I
$(ZLIBINC)
$(WARNMORE)
$(CRELEASE)
LDFLAGS
=
-L
.
-L
$(ZLIBLIB)
-lpng1
5
-lz
-lm
$(LDRELEASE)
LDFLAGS
=
-L
.
-L
$(ZLIBLIB)
-lpng1
6
-lz
-lm
$(LDRELEASE)
# File extensions
O
=
.o
...
...
scripts/makefile.beos
浏览文件 @
7455cbf4
...
...
@@ -9,8 +9,8 @@
# and license in png.h
# Library name:
LIBNAME
=
libpng1
5
PNGMAJ
=
1
5
LIBNAME
=
libpng1
6
PNGMAJ
=
1
6
# Shared library names:
LIBSO
=
$(LIBNAME)
.so
...
...
@@ -45,7 +45,7 @@ CFLAGS=-I$(ZLIBINC) -W -Wall -O1 -funroll-loops \
# LDFLAGS=-L. -Wl,-rpath,. -L$(ZLIBLIB) -Wl,-rpath,$(ZLIBLIB) -lpng -lz
LDFLAGS
=
-L
.
-Wl
,-soname
=
$(LIBSOMAJ)
-L
$(ZLIBLIB)
-lz
# where make install puts libpng.a, libpng1
5
.so*, and png.h
# where make install puts libpng.a, libpng1
6
.so*, and png.h
prefix
=
/usr/local
exec_prefix
=
$(prefix)
INCPATH
=
$(prefix)
/include
...
...
@@ -91,13 +91,13 @@ libpng.pc:
-e
s!@exec_prefix@!
$(exec_prefix)
!
\
-e
s!@libdir@!
$(LIBPATH)
!
\
-e
s!@includedir@!
$(INCPATH)
!
\
-e
s!-lpng1
5!-lpng15
\
-lz
\
-lm
!
>
libpng.pc
-e
s!-lpng1
6!-lpng16
\
-lz
\
-lm
!
>
libpng.pc
libpng-config
:
(
cat
scripts/libpng-config-head.in
;
\
echo
prefix
=
\"
$(prefix)
\"
;
\
echo
I_opts
=
\"
-I
$(INCPATH)
/
$(LIBNAME)
\"
;
\
echo
libs
=
\"
-lpng1
5
-lz
\"
;
\
echo
libs
=
\"
-lpng1
6
-lz
\"
;
\
cat
scripts/libpng-config-body.in
)
>
libpng-config
chmod
+x libpng-config
...
...
@@ -110,7 +110,7 @@ $(LIBSOMAJ): $(OBJSDLL)
$(LIBSOMAJ)
$(OBJSDLL)
$(LDFLAGS)
pngtest
:
pngtest.o $(LIBSO)
$(CC)
-L
$(ZLIBLIB)
-L
.
-lz
-lpng1
5
-o
pngtest pngtest.o
$(CC)
-L
$(ZLIBLIB)
-L
.
-lz
-lpng1
6
-o
pngtest pngtest.o
test
:
pngtest
./pngtest
...
...
scripts/makefile.cegcc
浏览文件 @
7455cbf4
...
...
@@ -28,10 +28,10 @@ VER = $(VERMAJ).$(VERMIN).$(VERMIC)
NAME
=
libpng
PACKAGE
=
$(NAME)
-
$(VER)
BIN
=
libpng1
5
-0.dll
LIB
=
libpng1
5.a libpng15
.dll.a libpng.a libpng.dll.a
BIN
=
libpng1
6
-0.dll
LIB
=
libpng1
6.a libpng16
.dll.a libpng.a libpng.dll.a
INCLUDE
=
png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h
PC
=
libpng1
5
.pc libpng.pc
PC
=
libpng1
6
.pc libpng.pc
MANIFESTVERBIN
=
"Libpng-
$(VER)
: Binary files"
MANIFESTVERDEV
=
"Libpng-
$(VER)
: Developer files"
...
...
scripts/makefile.darwin
浏览文件 @
7455cbf4
...
...
@@ -9,7 +9,7 @@
# For conditions of distribution and use, see the disclaimer
# and license in png.h
# where "make install" puts libpng.a, libpng1
5
.dylib, png.h, pngconf.h,
# where "make install" puts libpng.a, libpng1
6
.dylib, png.h, pngconf.h,
# and pnglibconf.h
prefix
=
/usr/local
exec_prefix
=
$(prefix)
...
...
@@ -21,8 +21,8 @@ ZLIBLIB=../zlib
ZLIBINC
=
../zlib
# Library name:
LIBNAME
=
libpng1
5
PNGMAJ
=
1
5
LIBNAME
=
libpng1
6
PNGMAJ
=
1
6
# Shared library names:
LIBSO
=
$(LIBNAME)
.dylib
...
...
@@ -41,7 +41,7 @@ ARCH="-arch i386 -arch x86_64"
# CFLAGS=-I$(ZLIBINC) -W -Wall -O3 -funroll-loops
CFLAGS
=
-I
$(ZLIBINC)
-W
-Wall
-O
-funroll-loops
$(ARCH)
LDFLAGS
=
-L
.
-L
$(ZLIBLIB)
-lpng1
5
-lz
$(ARCH)
LDFLAGS
=
-L
.
-L
$(ZLIBLIB)
-lpng1
6
-lz
$(ARCH)
INCPATH
=
$(prefix)
/include
LIBPATH
=
$(exec_prefix)
/lib
...
...
@@ -89,14 +89,14 @@ libpng.pc:
-e
s!@exec_prefix@!
$(exec_prefix)
!
\
-e
s!@libdir@!
$(LIBPATH)
!
\
-e
s!@includedir@!
$(INCPATH)
!
\
-e
s!-lpng1
5!-lpng15
\
-lz
!
>
libpng.pc
-e
s!-lpng1
6!-lpng16
\
-lz
!
>
libpng.pc
libpng-config
:
(
cat
scripts/libpng-config-head.in
;
\
echo
prefix
=
\"
$(prefix)
\"
;
\
echo
I_opts
=
\"
-I
$(INCPATH)
/
$(LIBNAME)
\"
;
\
echo
L_opts
=
\"
-L
$(LIBPATH)
\"
;
\
echo
libs
=
\"
-lpng1
5
-lz
\"
;
\
echo
libs
=
\"
-lpng1
6
-lz
\"
;
\
cat
scripts/libpng-config-body.in
)
>
libpng-config
chmod
+x libpng-config
...
...
@@ -106,7 +106,7 @@ $(LIBSO): $(LIBSOMAJ)
$(LIBSOMAJ)
:
$(OBJSDLL)
$(CC)
-dynamiclib
\
-install_name
$(LIBPATH)
/
$(LIBSOMAJ)
\
-current_version
1
5
-compatibility_version
15
\
-current_version
1
6
-compatibility_version
16
\
-o
$(LIBSOMAJ)
\
$(OBJSDLL)
-L
$(ZLIBLIB)
-lz
...
...
scripts/makefile.dec
浏览文件 @
7455cbf4
...
...
@@ -7,8 +7,8 @@
# and license in png.h
# Library name:
PNGMAJ
=
1
5
LIBNAME
=
libpng1
5
PNGMAJ
=
1
6
LIBNAME
=
libpng1
6
# Shared library names:
LIBSO
=
$(LIBNAME)
.so
...
...
@@ -75,7 +75,7 @@ libpng.pc:
-e
s!@exec_prefix@!
$(exec_prefix)
!
\
-e
s!@libdir@!
$(LIBPATH)
!
\
-e
s!@includedir@!
$(INCPATH)
!
\
-e
s!-lpng1
5!-lpng15
\
-lz
\
-lm
!
>
libpng.pc
-e
s!-lpng1
6!-lpng16
\
-lz
\
-lm
!
>
libpng.pc
libpng-config
:
(
cat
scripts/libpng-config-head.in
;
\
...
...
@@ -83,7 +83,7 @@ libpng-config:
echo
I_opts
=
\"
-I
$(INCPATH)
/
$(LIBNAME)
\"
;
\
echo
ccopts
=
\"
-std
\"
;
\
echo
L_opts
=
\"
-L
$(LIBPATH)
\"
;
\
echo
libs
=
\"
-lpng1
5
-lz
-lm
\"
;
\
echo
libs
=
\"
-lpng1
6
-lz
-lm
\"
;
\
cat
scripts/libpng-config-body.in
)
>
libpng-config
chmod
+x libpng-config
...
...
scripts/makefile.elf
浏览文件 @
7455cbf4
# makefile for libpng.a and libpng1
5
.so on Linux ELF with gcc
# makefile for libpng.a and libpng1
6
.so on Linux ELF with gcc
# Copyright (C) 1998, 1999, 2002, 2006, 2008, 2010-2011 Greg Roelofs
# and Glenn Randers-Pehrson
# Copyright (C) 1996, 1997 Andreas Dilger
...
...
@@ -10,19 +10,19 @@
# Modified for Debian by Junichi Uekawa and Josselin Mouette
# Major modifications are:
# * link libpng explicitly with libz and libm
# * $(OLDSO).1
5
is a symlink rather than a different library
# * $(OLDSO).1
6
is a symlink rather than a different library
# * versioned symbols
# Library name:
LIBNAME
=
libpng1
5
PNGMAJ
=
1
5
LIBNAME
=
libpng1
6
PNGMAJ
=
1
6
# Shared library names:
LIBSO
=
$(LIBNAME)
.so
LIBSOMAJ
=
$(LIBNAME)
.so.
$(PNGMAJ)
LIBSOREL
=
$(LIBSOMAJ)
.
$(RELEASE)
OLDSO
=
libpng.so
OLDSOMAJ
=
libpng.so.1
5
OLDSOMAJ
=
libpng.so.1
6
# Utilities:
AR_RC
=
ar rc
...
...
@@ -32,8 +32,8 @@ LN_SF=ln -sf
RANLIB
=
ranlib
RM_F
=
/bin/rm
-f
# where "make install" puts libpng1
5.a, libpng15
.so*,
# libpng1
5/png.h, libpng15/pngconf.h, and libpng15
/pnglibconf.h
# where "make install" puts libpng1
6.a, libpng16
.so*,
# libpng1
6/png.h, libpng16/pngconf.h, and libpng16
/pnglibconf.h
# Prefix must be a full pathname.
prefix
=
/usr/local
exec_prefix
=
$(prefix)
...
...
@@ -57,7 +57,7 @@ WARNMORE=-Wwrite-strings -Wpointer-arith -Wshadow \
CFLAGS
=
-W
-Wall
-D_REENTRANT
-O2
\
$(ALIGN)
#
$(WARNMORE)
-g
-DPNG_DEBUG
=
5
LDFLAGS
=
-L
.
-lpng1
5
LDFLAGS
=
-L
.
-lpng1
6
LDFLAGS_A
=
libpng.a
-lz
-lm
LIBADDFLAGS
=
-lz
-lm
...
...
@@ -108,11 +108,11 @@ libpng.pc:
-e
s!@exec_prefix@!
$(exec_prefix)
!
\
-e
s!@libdir@!
$(LIBPATH)
!
\
-e
s!@includedir@!
$(INCPATH)
!
\
-e
s!-lpng1
5!-lpng15
\
-lz
\
-lm
!
>
libpng.pc
-e
s!-lpng1
6!-lpng16
\
-lz
\
-lm
!
>
libpng.pc
libpng.syms
:
png.h pngconf.h pnglibconf.h
$(CC)
$(CFLAGS)
-E
-DPNG_BUILDSYMS
-DPNG_INTERNAL
png.h |
\
awk
-F
'[\t [\\]();]'
-v
PNGMAJ
=
$(PNGMAJ)
'BEGIN{printf("PNG1
5
_%s {global:\n",PNGMAJ)}\
awk
-F
'[\t [\\]();]'
-v
PNGMAJ
=
$(PNGMAJ)
'BEGIN{printf("PNG1
6
_%s {global:\n",PNGMAJ)}\
{ for (i=1;i+2<=NF;++i)\
if ($
$(i)
=="PNG_FUNCTION_EXPORT" && $$(i+2)=="END")\
print $$(i+1) ";";\
...
...
@@ -129,8 +129,8 @@ libpng-config:
echo
I_opts
=
\"
-I
$(INCPATH)
/
$(LIBNAME)
\"
;
\
echo
L_opts
=
\"\"
;
\
echo
R_opts
=
\"\"
;
\
echo
libs
=
\"
-lpng1
5
\"
;
\
echo
all_libs
=
\"
-lpng1
5
$(LIBADDFLAGS)
\"
;
\
echo
libs
=
\"
-lpng1
6
\"
;
\
echo
all_libs
=
\"
-lpng1
6
$(LIBADDFLAGS)
\"
;
\
cat
scripts/libpng-config-body.in
)
>
libpng-config
chmod
+x libpng-config
...
...
scripts/makefile.freebsd
浏览文件 @
7455cbf4
...
...
@@ -6,7 +6,7 @@
# and license in png.h
PREFIX
?=
/usr/local
SHLIB_VER
?=
1
5
SHLIB_VER
?=
1
6
LIB
=
png
SHLIB_MAJOR
=
${SHLIB_VER}
...
...
scripts/makefile.hp64
浏览文件 @
7455cbf4
...
...
@@ -19,8 +19,8 @@ ZLIBINC=/opt/zlib/include
# SHAREDLIB=libz.sl
# Library name:
LIBNAME
=
libpng1
5
PNGMAJ
=
1
5
LIBNAME
=
libpng1
6
PNGMAJ
=
1
6
# Shared library names:
LIBSO
=
$(LIBNAME)
.sl
...
...
@@ -44,7 +44,7 @@ CCFLAGS=-I$(ZLIBINC) -O -Ae -Wl,+vnocompatwarnings +DD64 \
LDFLAGS
=
-L
.
-L
$(ZLIBLIB)
-lpng
-lz
-lm
# where make install puts libpng.a, libpng1
5
.sl, and png.h
# where make install puts libpng.a, libpng1
6
.sl, and png.h
prefix
=
/opt/libpng
exec_prefix
=
$(prefix)
INCPATH
=
$(prefix)
/include
...
...
@@ -93,7 +93,7 @@ libpng.pc:
-e
s!@exec_prefix@!
$(exec_prefix)
!
\
-e
s!@libdir@!
$(LIBPATH)
!
\
-e
s!@includedir@!
$(INCPATH)
!
\
-e
s!-lpng1
5!-lpng15
\
-lz
\
-lm
!
>
libpng.pc
-e
s!-lpng1
6!-lpng16
\
-lz
\
-lm
!
>
libpng.pc
libpng-config
:
(
cat
scripts/libpng-config-head.in
;
\
...
...
@@ -101,7 +101,7 @@ libpng-config:
echo
I_opts
=
\"
-I
$(INCPATH)
/
$(LIBNAME)
\"
;
\
echo
ccopts
=
\"
-Ae
+DA1.1 +DS2.0
\"
;
\
echo
L_opts
=
\"
-L
$(LIBPATH)
\"
;
\
echo
libs
=
\"
-lpng1
5
-lz
-lm
\"
;
\
echo
libs
=
\"
-lpng1
6
-lz
-lm
\"
;
\
cat
scripts/libpng-config-body.in
)
>
libpng-config
chmod
+x libpng-config
...
...
scripts/makefile.hpgcc
浏览文件 @
7455cbf4
...
...
@@ -9,8 +9,8 @@
# and license in png.h
# Library name:
LIBNAME
=
libpng1
5
PNGMAJ
=
1
5
LIBNAME
=
libpng1
6
PNGMAJ
=
1
6
# Shared library names:
LIBSO
=
$(LIBNAME)
.sl
...
...
@@ -55,8 +55,8 @@ WARNMORE=-Wwrite-strings -Wpointer-arith -Wshadow \
CFLAGS
=
-I
$(ZLIBINC)
-W
-Wall
-O3
-funroll-loops
-DPNG_NO_MMX_CODE
\
$(ALIGN)
#
$(WARNMORE)
-g
-DPNG_DEBUG
=
5
#LDFLAGS=-L. -Wl,-rpath,. -L$(ZLIBLIB) -Wl,-rpath,$(ZLIBLIB) -lpng1
5
-lz -lm
LDFLAGS
=
-L
.
-L
$(ZLIBLIB)
-lpng1
5
-lz
-lm
#LDFLAGS=-L. -Wl,-rpath,. -L$(ZLIBLIB) -Wl,-rpath,$(ZLIBLIB) -lpng1
6
-lz -lm
LDFLAGS
=
-L
.
-L
$(ZLIBLIB)
-lpng1
6
-lz
-lm
INCPATH
=
$(prefix)
/include
LIBPATH
=
$(exec_prefix)
/lib
...
...
@@ -100,13 +100,13 @@ libpng.pc:
-e
s!@exec_prefix@!
$(exec_prefix)
!
\
-e
s!@libdir@!
$(LIBPATH)
!
\
-e
s!@includedir@!
$(INCPATH)
!
\
-e
s!-lpng1
5!-lpng15
\
-lz
\
-lm
!
>
libpng.pc
-e
s!-lpng1
6!-lpng16
\
-lz
\
-lm
!
>
libpng.pc
libpng-config
:
(
cat
scripts/libpng-config-head.in
;
\
echo
prefix
=
\"
$(prefix)
\"
;
\
echo
I_opts
=
\"
-I
$(INCPATH)
/
$(LIBNAME)
\"
;
\
echo
libs
=
\"
-lpng1
5
-lz
-lm
\"
;
\
echo
libs
=
\"
-lpng1
6
-lz
-lm
\"
;
\
cat
scripts/libpng-config-body.in
)
>
libpng-config
chmod
+x libpng-config
...
...
scripts/makefile.hpux
浏览文件 @
7455cbf4
...
...
@@ -19,8 +19,8 @@ ZLIBINC=/opt/zlib/include
# SHAREDLIB=libz.sl
# Library name:
LIBNAME
=
libpng1
5
PNGMAJ
=
1
5
LIBNAME
=
libpng1
6
PNGMAJ
=
1
6
# Shared library names:
LIBSO
=
$(LIBNAME)
.sl
...
...
@@ -36,7 +36,7 @@ LN_SF=ln -sf
RANLIB
=
ranlib
RM_F
=
/bin/rm
-f
# where make install puts libpng.a, libpng1
5
.sl, and png.h
# where make install puts libpng.a, libpng1
6
.sl, and png.h
prefix
=
/opt/libpng
exec_prefix
=
$(prefix)
INCPATH
=
$(prefix)
/include
...
...
@@ -90,7 +90,7 @@ libpng.pc:
-e
s!@exec_prefix@!
$(exec_prefix)
!
\
-e
s!@libdir@!
$(LIBPATH)
!
\
-e
s!@includedir@!
$(INCPATH)
!
\
-e
s!-lpng1
5!-lpng15
\
-lz
\
-lm
!
>
libpng.pc
-e
s!-lpng1
6!-lpng16
\
-lz
\
-lm
!
>
libpng.pc
libpng-config
:
(
cat
scripts/libpng-config-head.in
;
\
...
...
@@ -98,7 +98,7 @@ libpng-config:
echo
I_opts
=
\"
-I
$(INCPATH)
/
$(LIBNAME)
\"
;
\
echo
ccopts
=
\"
-Ae
+DA1.1 +DS2.0
\"
;
\
echo
L_opts
=
\"
-L
$(LIBPATH)
\"
;
\
echo
libs
=
\"
-lpng1
5
-lz
-lm
\"
;
\
echo
libs
=
\"
-lpng1
6
-lz
-lm
\"
;
\
cat
scripts/libpng-config-body.in
)
>
libpng-config
chmod
+x libpng-config
...
...
scripts/makefile.linux
浏览文件 @
7455cbf4
# makefile for libpng.a and libpng1
5
.so on Linux ELF with gcc
# makefile for libpng.a and libpng1
6
.so on Linux ELF with gcc
# Copyright (C) 1998, 1999, 2002, 2006, 2008, 2010-2011 Greg Roelofs and
# Glenn Randers-Pehrson
# Copyright (C) 1996, 1997 Andreas Dilger
...
...
@@ -8,8 +8,8 @@
# and license in png.h
# Library name:
LIBNAME
=
libpng1
5
PNGMAJ
=
1
5
LIBNAME
=
libpng1
6
PNGMAJ
=
1
6
RELEASE
=
0
# Shared library names:
...
...
@@ -26,8 +26,8 @@ LN_SF=ln -sf
RANLIB
=
ranlib
RM_F
=
/bin/rm
-f
# where "make install" puts libpng1
5.a, libpng15
.so*,
# libpng1
5/png.h, libpng15/pngconf.h, and libpng15
/pnglibconf.h
# where "make install" puts libpng1
6.a, libpng16
.so*,
# libpng1
6/png.h, libpng16/pngconf.h, and libpng16
/pnglibconf.h
# Prefix must be a full pathname.
prefix
=
/usr/local
exec_prefix
=
$(prefix)
...
...
@@ -51,7 +51,7 @@ WARNMORE=-Wwrite-strings -Wpointer-arith -Wshadow \
CFLAGS
=
-I
$(ZLIBINC)
-W
-Wall
-O3
-funroll-loops
\
$(ALIGN)
#
$(WARNMORE)
-g
-DPNG_DEBUG
=
5
LDFLAGS
=
-L
.
-Wl
,-rpath,.
-L
$(ZLIBLIB)
-Wl
,-rpath,
$(ZLIBLIB)
-lpng1
5
-lz
-lm
LDFLAGS
=
-L
.
-Wl
,-rpath,.
-L
$(ZLIBLIB)
-Wl
,-rpath,
$(ZLIBLIB)
-lpng1
6
-lz
-lm
LDFLAGS_A
=
-L
$(ZLIBLIB)
-Wl
,-rpath,
$(ZLIBLIB)
libpng.a
-lz
-lm
INCPATH
=
$(prefix)
/include
...
...
@@ -100,7 +100,7 @@ libpng.pc:
-e
s!@exec_prefix@!
$(exec_prefix)
!
\
-e
s!@libdir@!
$(LIBPATH)
!
\
-e
s!@includedir@!
$(INCPATH)
!
\
-e
s!-lpng1
5!-lpng15
\
-lz
\
-lm
!
>
libpng.pc
-e
s!-lpng1
6!-lpng16
\
-lz
\
-lm
!
>
libpng.pc
libpng-config
:
(
cat
scripts/libpng-config-head.in
;
\
...
...
@@ -108,7 +108,7 @@ libpng-config:
echo
I_opts
=
\"
-I
$(INCPATH)
/
$(LIBNAME)
\"
;
\
echo
L_opts
=
\"
-L
$(LIBPATH)
\"
;
\
echo
R_opts
=
\"
-Wl
,-rpath,
$(LIBPATH)
\"
;
\
echo
libs
=
\"
-lpng1
5
-lz
-lm
\"
;
\
echo
libs
=
\"
-lpng1
6
-lz
-lm
\"
;
\
cat
scripts/libpng-config-body.in
)
>
libpng-config
chmod
+x libpng-config
...
...
scripts/makefile.ne12bsd
浏览文件 @
7455cbf4
...
...
@@ -13,9 +13,9 @@
LOCALBASE
?=
/usr/local
LIBDIR
=
${LOCALBASE}
/lib
MANDIR
=
${LOCALBASE}
/man
INCSDIR
=
${LOCALBASE}
/include/libpng1
5
INCSDIR
=
${LOCALBASE}
/include/libpng1
6
LIB
=
png1
5
LIB
=
png1
6
SHLIB_MAJOR
=
0
SHLIB_MINOR
=
1.6.0alpha01
SRCS
=
png.c pngset.c pngget.c pngrutil.c pngtrans.c pngwutil.c
\
...
...
scripts/makefile.netbsd
浏览文件 @
7455cbf4
...
...
@@ -8,7 +8,7 @@
# For conditions of distribution and use, see the disclaimer
# and license in png.h
# You should also run makefile.ne1
5
bsd
# You should also run makefile.ne1
6
bsd
LOCALBASE
?=
/usr/local
LIBDIR
=
${LOCALBASE}
/lib
...
...
@@ -16,7 +16,7 @@ MANDIR= ${LOCALBASE}/man
INCSDIR
=
${LOCALBASE}
/include
LIB
=
png
SHLIB_MAJOR
=
1
5
SHLIB_MAJOR
=
1
6
SHLIB_MINOR
=
1.6.0alpha01
SRCS
=
png.c pngset.c pngget.c pngrutil.c pngtrans.c pngwutil.c
\
pngread.c pngrio.c pngwio.c pngwrite.c pngrtran.c
\
...
...
scripts/makefile.openbsd
浏览文件 @
7455cbf4
...
...
@@ -10,7 +10,7 @@ PREFIX?= /usr/local
LIBDIR
=
${PREFIX}
/lib
MANDIR
=
${PREFIX}
/man/cat
SHLIB_MAJOR
=
1
5
SHLIB_MAJOR
=
1
6
SHLIB_MINOR
=
1.6.0alpha01
LIB
=
png
...
...
scripts/makefile.sco
浏览文件 @
7455cbf4
...
...
@@ -10,8 +10,8 @@
# and license in png.h
# Library name:
LIBNAME
=
libpng1
5
PNGMAJ
=
1
5
LIBNAME
=
libpng1
6
PNGMAJ
=
1
6
# Shared library names:
LIBSO
=
$(LIBNAME)
.so
...
...
@@ -38,7 +38,7 @@ ZLIBLIB=../zlib
ZLIBINC
=
../zlib
CFLAGS
=
-dy
-belf
-I
$(ZLIBINC)
-O3
LDFLAGS
=
-L
.
-L
$(ZLIBLIB)
-lpng1
5
-lz
-lm
LDFLAGS
=
-L
.
-L
$(ZLIBLIB)
-lpng1
6
-lz
-lm
INCPATH
=
$(prefix)
/include
LIBPATH
=
$(exec_prefix)
/lib
...
...
@@ -86,7 +86,7 @@ libpng.pc:
-e
s!@exec_prefix@!
$(exec_prefix)
!
\
-e
s!@libdir@!
$(LIBPATH)
!
\
-e
s!@includedir@!
$(INCPATH)
!
\
-e
s!-lpng1
5!-lpng15
\
-lz
\
-lm
!
>
libpng.pc
-e
s!-lpng1
6!-lpng16
\
-lz
\
-lm
!
>
libpng.pc
libpng-config
:
(
cat
scripts/libpng-config-head.in
;
\
...
...
@@ -94,7 +94,7 @@ libpng-config:
echo
I_opts
=
\"
-I
$(INCPATH)
/
$(LIBNAME)
\"
;
\
echo
ccopts
=
\"
-belf
\"
;
\
echo
L_opts
=
\"
-L
$(LIBPATH)
\"
;
\
echo
libs
=
\"
-lpng1
5
-lz
-lm
\"
;
\
echo
libs
=
\"
-lpng1
6
-lz
-lm
\"
;
\
cat
scripts/libpng-config-body.in
)
>
libpng-config
chmod
+x libpng-config
...
...
scripts/makefile.sggcc
浏览文件 @
7455cbf4
# makefile for libpng.a and libpng1
5
.so, SGI IRIX with 'cc'
# makefile for libpng.a and libpng1
6
.so, SGI IRIX with 'cc'
# Copyright (C) 2001-2002, 2006, 2010-2011 Glenn Randers-Pehrson
# Copyright (C) 1995 Guy Eric Schalnat, Group 42, Inc.
#
...
...
@@ -7,8 +7,8 @@
# and license in png.h
# Library name:
LIBNAME
=
libpng1
5
PNGMAJ
=
1
5
LIBNAME
=
libpng1
6
PNGMAJ
=
1
6
# Shared library names:
LIBSO
=
$(LIBNAME)
.so
...
...
@@ -24,7 +24,7 @@ LN_SF=ln -sf
RANLIB
=
echo
RM_F
=
/bin/rm
-f
# Where make install puts libpng.a, libpng1
5.so, and libpng15
/png.h
# Where make install puts libpng.a, libpng1
6.so, and libpng16
/png.h
# Prefix must be a full pathname.
prefix
=
/usr/local
...
...
@@ -91,7 +91,7 @@ libpng.pc:
-e
s!@exec_prefix@!
$(exec_prefix)
!
\
-e
s!@libdir@!
$(LIBPATH)
!
\
-e
s!@includedir@!
$(INCPATH)
!
\
-e
s!-lpng1
5!-lpng15
\
-lz
\
-lm
!
>
libpng.pc
-e
s!-lpng1
6!-lpng16
\
-lz
\
-lm
!
>
libpng.pc
libpng-config
:
(
cat
scripts/libpng-config-head.in
;
\
...
...
@@ -102,7 +102,7 @@ libpng-config:
echo
ldopts
=
\"
$(ABI)
\"
;
\
echo
L_opts
=
\"
-L
$(LIBPATH)
\"
;
\
echo
libdir
=
\"
$(LIBPATH)
\"
;
\
echo
libs
=
\"
-lpng1
5
-lz
-lm
\"
;
\
echo
libs
=
\"
-lpng1
6
-lz
-lm
\"
;
\
cat
scripts/libpng-config-body.in
)
>
libpng-config
chmod
+x libpng-config
...
...
scripts/makefile.sgi
浏览文件 @
7455cbf4
# makefile for libpng.a and libpng1
5
.so, SGI IRIX with 'cc'
# makefile for libpng.a and libpng1
6
.so, SGI IRIX with 'cc'
# Copyright (C) 2001-2002, 2006, 2007, 2010-2011 Glenn Randers-Pehrson
# Copyright (C) 1995 Guy Eric Schalnat, Group 42, Inc.
#
...
...
@@ -7,8 +7,8 @@
# and license in png.h
# Library name:
LIBNAME
=
libpng1
5
PNGMAJ
=
1
5
LIBNAME
=
libpng1
6
PNGMAJ
=
1
6
# Shared library names:
LIBSO
=
$(LIBNAME)
.so
...
...
@@ -24,7 +24,7 @@ LN_SF=ln -sf
RANLIB
=
echo
RM_F
=
/bin/rm
-f
# Where make install puts libpng.a, libpng1
5.so, and libpng15
/png.h
# Where make install puts libpng.a, libpng1
6.so, and libpng16
/png.h
# Prefix must be a full pathname.
prefix
=
/usr/local
...
...
@@ -46,7 +46,7 @@ WARNMORE=-fullwarn
# Note: -KPIC is the default anyhow
#CFLAGS= $(ABI) -I$(ZLIBINC) -O $(WARNMORE) -KPIC # -g -DPNG_DEBUG=5
CFLAGS
=
$(ABI)
-I
$(ZLIBINC)
-O
$(WARNMORE)
LDFLAGS_A
=
$(ABI)
-L
.
-L
$(ZLIBLIB)
-lpng1
5
-lz
-lm
LDFLAGS_A
=
$(ABI)
-L
.
-L
$(ZLIBLIB)
-lpng1
6
-lz
-lm
LDFLAGS
=
$(ABI)
-L
.
-L
$(ZLIBLIB)
-lpng
-lz
-lm
LDSHARED
=
cc
$(ABI)
-shared
-soname
$(LIBSOMAJ)
\
-set_version
sgi
$(PNGMAJ)
.0
...
...
@@ -92,7 +92,7 @@ libpng.pc:
-e
s!@exec_prefix@!
$(exec_prefix)
!
\
-e
s!@libdir@!
$(LIBPATH)
!
\
-e
s!@includedir@!
$(INCPATH)
!
\
-e
s!-lpng1
5!-lpng15
\
-lz
\
-lm
!
>
libpng.pc
-e
s!-lpng1
6!-lpng16
\
-lz
\
-lm
!
>
libpng.pc
libpng-config
:
(
cat
scripts/libpng-config-head.in
;
\
...
...
@@ -102,7 +102,7 @@ libpng-config:
echo
ldopts
=
\"
$(ABI)
\"
;
\
echo
L_opts
=
\"
-L
$(LIBPATH)
\"
;
\
echo
libdir
=
\"
$(LIBPATH)
\"
;
\
echo
libs
=
\"
-lpng1
5
-lz
-lm
\"
;
\
echo
libs
=
\"
-lpng1
6
-lz
-lm
\"
;
\
cat
scripts/libpng-config-body.in
)
>
libpng-config
chmod
+x libpng-config
...
...
scripts/makefile.so9
浏览文件 @
7455cbf4
...
...
@@ -10,8 +10,8 @@
# and license in png.h
# Library name:
PNGMAJ
=
1
5
LIBNAME
=
libpng1
5
PNGMAJ
=
1
6
LIBNAME
=
libpng1
6
# Shared library names:
LIBSO
=
$(LIBNAME)
.so
...
...
@@ -48,7 +48,7 @@ ZLIBINC=/usr/include
-Wstrict-prototypes
-Wmissing-prototypes
#-Wconversion
#CFLAGS=-I$(ZLIBINC) -W -Wall -O3 $(WARNMORE) -g -DPNG_DEBUG=5 -DPNG_NO_MMX_CODE
CFLAGS
=
-I
$(ZLIBINC)
-O3
-DPNG_NO_MMX_CODE
LDFLAGS
=
-L
.
-R
.
-L
$(ZLIBLIB)
-R
$(ZLIBLIB)
-lpng1
5
-lz
-lm
LDFLAGS
=
-L
.
-R
.
-L
$(ZLIBLIB)
-R
$(ZLIBLIB)
-lpng1
6
-lz
-lm
INCPATH
=
$(prefix)
/include
LIBPATH
=
$(exec_prefix)
/lib
...
...
@@ -96,7 +96,7 @@ libpng.pc:
-e
s!@exec_prefix@!
$(exec_prefix)
!
\
-e
s!@libdir@!
$(LIBPATH)
!
\
-e
s!@includedir@!
$(INCPATH)
!
\
-e
s!-lpng1
5!-lpng15
\
-lz
\
-lm
!
>
libpng.pc
-e
s!-lpng1
6!-lpng16
\
-lz
\
-lm
!
>
libpng.pc
libpng-config
:
(
cat
scripts/libpng-config-head.in
;
\
...
...
@@ -104,7 +104,7 @@ libpng-config:
echo
I_opts
=
\"
-I
$(INCPATH)
/
$(LIBNAME)
\"
;
\
echo
L_opts
=
\"
-L
$(LIBPATH)
\"
;
\
echo
R_opts
=
\"
-R
$(LIBPATH)
\"
;
\
echo
libs
=
\"
-lpng1
5
-lz
-lm
\"
;
\
echo
libs
=
\"
-lpng1
6
-lz
-lm
\"
;
\
cat
scripts/libpng-config-body.in
)
>
libpng-config
chmod
+x libpng-config
...
...
scripts/makefile.solaris
浏览文件 @
7455cbf4
...
...
@@ -9,8 +9,8 @@
# and license in png.h
# Library name:
LIBNAME
=
libpng1
5
PNGMAJ
=
1
5
LIBNAME
=
libpng1
6
PNGMAJ
=
1
6
# Shared library names:
LIBSO
=
$(LIBNAME)
.so
...
...
@@ -26,7 +26,7 @@ LN_SF=ln -f -s
RANLIB
=
echo
RM_F
=
/bin/rm
-f
# Where make install puts libpng.a, libpng1
5
.so*, and png.h
# Where make install puts libpng.a, libpng1
6
.so*, and png.h
prefix
=
/usr/local
exec_prefix
=
$(prefix)
...
...
@@ -44,7 +44,7 @@ WARNMORE=-Wwrite-strings -Wpointer-arith -Wshadow \
-Wstrict-prototypes
-Wmissing-prototypes
#-Wconversion
CFLAGS
=
-I
$(ZLIBINC)
-W
-Wall
-O
\
#
$(WARNMORE)
-g
-DPNG_DEBUG
=
5
LDFLAGS
=
-L
.
-R
.
-L
$(ZLIBLIB)
-R
$(ZLIBLIB)
-lpng1
5
-lz
-lm
LDFLAGS
=
-L
.
-R
.
-L
$(ZLIBLIB)
-R
$(ZLIBLIB)
-lpng1
6
-lz
-lm
INCPATH
=
$(prefix)
/include
LIBPATH
=
$(exec_prefix)
/lib
...
...
@@ -92,7 +92,7 @@ libpng.pc:
-e
s!@exec_prefix@!
$(exec_prefix)
!
\
-e
s!@libdir@!
$(LIBPATH)
!
\
-e
s!@includedir@!
$(INCPATH)
!
\
-e
s!-lpng1
5!-lpng15
\
-lz
\
-lm
!
>
libpng.pc
-e
s!-lpng1
6!-lpng16
\
-lz
\
-lm
!
>
libpng.pc
libpng-config
:
(
cat
scripts/libpng-config-head.in
;
\
...
...
@@ -101,7 +101,7 @@ libpng-config:
echo
cppflags
=
\"\"
;
\
echo
L_opts
=
\"
-L
$(LIBPATH)
\"
;
\
echo
R_opts
=
\"
-R
$(LIBPATH)
\"
;
\
echo
libs
=
\"
-lpng1
5
-lz
-lm
\"
;
\
echo
libs
=
\"
-lpng1
6
-lz
-lm
\"
;
\
cat
scripts/libpng-config-body.in
)
>
libpng-config
chmod
+x libpng-config
...
...
scripts/makefile.solaris-x86
浏览文件 @
7455cbf4
...
...
@@ -9,8 +9,8 @@
# and license in png.h
# Library name:
LIBNAME
=
libpng1
5
PNGMAJ
=
1
5
LIBNAME
=
libpng1
6
PNGMAJ
=
1
6
# Shared library names:
LIBSO
=
$(LIBNAME)
.so
...
...
@@ -26,7 +26,7 @@ LN_SF=ln -f -s
RANLIB
=
echo
RM_F
=
/bin/rm
-f
# Where make install puts libpng.a, libpng1
5
.so*, and png.h
# Where make install puts libpng.a, libpng1
6
.so*, and png.h
prefix
=
/usr/local
exec_prefix
=
$(prefix)
...
...
@@ -44,7 +44,7 @@ WARNMORE=-Wwrite-strings -Wpointer-arith -Wshadow \
-Wstrict-prototypes
-Wmissing-prototypes
#-Wconversion
CFLAGS
=
-I
$(ZLIBINC)
-W
-Wall
-O
\
#
$(WARNMORE)
-g
-DPNG_DEBUG
=
5
LDFLAGS
=
-L
.
-R
.
-L
$(ZLIBLIB)
-R
$(ZLIBLIB)
-lpng1
5
-lz
-lm
LDFLAGS
=
-L
.
-R
.
-L
$(ZLIBLIB)
-R
$(ZLIBLIB)
-lpng1
6
-lz
-lm
INCPATH
=
$(prefix)
/include
LIBPATH
=
$(exec_prefix)
/lib
...
...
@@ -92,7 +92,7 @@ libpng.pc:
-e
s!@exec_prefix@!
$(exec_prefix)
!
\
-e
s!@libdir@!
$(LIBPATH)
!
\
-e
s!@includedir@!
$(INCPATH)
!
\
-e
s!-lpng1
5!-lpng15
\
-lz
\
-lm
!
>
libpng.pc
-e
s!-lpng1
6!-lpng16
\
-lz
\
-lm
!
>
libpng.pc
libpng-config
:
(
cat
scripts/libpng-config-head.in
;
\
...
...
@@ -101,7 +101,7 @@ libpng-config:
echo
cppflags
=
\"
";
\
echo L_opts=
\"
-L
$(LIBPATH)
\"
;
\
echo R_opts=
\"
-R
$(LIBPATH)
\"
;
\
echo libs=
\"
-lpng1
5
-lz -lm
\"
;
\
echo libs=
\"
-lpng1
6
-lz -lm
\"
;
\
cat scripts/libpng-config-body.in ) > libpng-config
chmod +x libpng-config
...
...
scripts/pnglibconf.h.prebuilt
浏览文件 @
7455cbf4
...
...
@@ -3,7 +3,7 @@
/* pnglibconf.h - library build configuration */
/* Libpng 1.6.0alpha01 - November 2
3
, 2011 */
/* Libpng 1.6.0alpha01 - November 2
4
, 2011 */
/* Copyright (c) 1998-2011 Glenn Randers-Pehrson */
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录