mirror of
https://git.code.sf.net/p/libpng/code.git
synced 2025-07-10 18:04:09 +02:00
Imported from libpng-1.0.5c.tar
This commit is contained in:
@@ -31,7 +31,7 @@ RANLIB=ranlib
|
||||
# read libpng.txt or png.h to see why PNGMAJ is 2. You should not
|
||||
# have to change it.
|
||||
PNGMAJ = 2
|
||||
PNGMIN = 1.0.5a
|
||||
PNGMIN = 1.0.5c
|
||||
PNGVER = $(PNGMAJ).$(PNGMIN)
|
||||
|
||||
# where make install puts libpng.a, libpng.so*, and png.h
|
||||
|
||||
@@ -14,7 +14,7 @@ ZLIBINC=../zlib
|
||||
# read libpng.txt or png.h to see why PNGMAJ is 2. You should not
|
||||
# have to change it.
|
||||
PNGMAJ = 2
|
||||
PNGMIN = 1.0.5a
|
||||
PNGMIN = 1.0.5c
|
||||
PNGVER = $(PNGMAJ).$(PNGMIN)
|
||||
|
||||
CC=cc
|
||||
|
||||
@@ -34,7 +34,7 @@ RANLIB=ranlib
|
||||
# read libpng.txt or png.h to see why PNGMAJ is 2. You should not
|
||||
# have to change it.
|
||||
PNGMAJ = 2
|
||||
PNGMIN = 1.0.5a
|
||||
PNGMIN = 1.0.5c
|
||||
PNGVER = $(PNGMAJ).$(PNGMIN)
|
||||
|
||||
INCPATH=$(prefix)/include
|
||||
|
||||
@@ -25,7 +25,7 @@ RANLIB=echo
|
||||
# read libpng.txt or png.h to see why PNGMAJ is 2. You should not
|
||||
# have to change it.
|
||||
PNGMAJ = 2
|
||||
PNGMIN = 1.0.5a
|
||||
PNGMIN = 1.0.5c
|
||||
PNGVER = $(PNGMAJ).$(PNGMIN)
|
||||
|
||||
INCPATH=$(prefix)/include
|
||||
|
||||
@@ -7,9 +7,10 @@
|
||||
CC=gcc
|
||||
|
||||
# The commands "CC" and "LD" must NOT refer to /usr/ucb/cc and /usr/ucb/ld.
|
||||
# If they do, you need to adjust your PATH environment variable.
|
||||
# The environment variable LD_LIBRARY_PATH should not be set at all. If
|
||||
# it is, things are likely to break.
|
||||
# If they do, you need to adjust your PATH environment variable to put
|
||||
# /usr/ccs/bin ahead of /usr/ucb. The environment variable LD_LIBRARY_PATH
|
||||
# should not be set at all. If it is, things are likely to break because
|
||||
# of the libucb dependency that is created.
|
||||
|
||||
# Where make install puts libpng.a, libpng.so*, and png.h
|
||||
prefix=/usr/local
|
||||
@@ -36,7 +37,7 @@ RANLIB=echo
|
||||
# read libpng.txt or png.h to see why PNGMAJ is 2. You should not
|
||||
# have to change it.
|
||||
PNGMAJ = 2
|
||||
PNGMIN = 1.0.5a
|
||||
PNGMIN = 1.0.5c
|
||||
PNGVER = $(PNGMAJ).$(PNGMIN)
|
||||
|
||||
INCPATH=$(prefix)/include
|
||||
|
||||
@@ -1,6 +1,12 @@
|
||||
$! make libpng under VMS
|
||||
$!
|
||||
$!
|
||||
$! Check for MMK/MMS
|
||||
$!
|
||||
$ Make = ""
|
||||
$ If F$Search ("Sys$System:MMS.EXE") .nes. "" Then Make = "MMS"
|
||||
$ If F$Type (MMK) .eqs. "STRING" Then Make = "MMK"
|
||||
$!
|
||||
$! Look for the compiler used
|
||||
$!
|
||||
$ zlibsrc = "[-.zlib]"
|
||||
@@ -28,10 +34,10 @@ $ comp = "__decc__=1"
|
||||
$ endif
|
||||
$ endif
|
||||
$!
|
||||
$! Build the thing plain or with mms
|
||||
$! Build the thing plain or with mms/mmk
|
||||
$!
|
||||
$ write sys$output "Compiling Libpng sources ..."
|
||||
$ if f$search("SYS$SYSTEM:MMS.EXE").eqs.""
|
||||
$ if make.eqs.""
|
||||
$ then
|
||||
$ dele pngtest.obj;*
|
||||
$ CALL MAKE png.OBJ "cc ''CCOPT' png" -
|
||||
@@ -72,12 +78,12 @@ $ write sys$output "Building pngtest..."
|
||||
$ CALL MAKE pngtest.OBJ "cc ''CCOPT' pngtest" -
|
||||
pngtest.c png.h pngconf.h
|
||||
$ call make pngtest.exe -
|
||||
"LINK pngtest,libpng.olb/lib,''zlibsrc'libgz.olb/lib" -
|
||||
"LINK pngtest,libpng.olb/lib,''zlibsrc'libz.olb/lib" -
|
||||
pngtest.obj libpng.olb
|
||||
$ write sys$output "Testing Libpng..."
|
||||
$ run pngtest
|
||||
$ else
|
||||
$ mms/macro=('comp',zlibsrc='zlibsrc')
|
||||
$ 'make'/macro=('comp',zlibsrc='zlibsrc')
|
||||
$ endif
|
||||
$ write sys$output "Libpng build completed"
|
||||
$ exit
|
||||
|
||||
@@ -3,8 +3,8 @@ unit pngdef;
|
||||
interface
|
||||
|
||||
const
|
||||
PNG_LIBPNG_VER_STRING = '1.0.5a';
|
||||
PNG_LIBPNG_VER = 10005;
|
||||
PNG_LIBPNG_VER_STRING = '1.0.5c';
|
||||
PNG_LIBPNG_VER = 10006;
|
||||
|
||||
type
|
||||
png_uint_32 = Cardinal;
|
||||
@@ -261,8 +261,12 @@ function png_create_read_struct(user_png_ver: png_charp;
|
||||
stdcall;
|
||||
function png_get_copyright(png_ptr: png_structp): png_charp;
|
||||
stdcall;
|
||||
function png_get_header_ver(png_ptr: png_structp): png_charp;
|
||||
stdcall;
|
||||
function png_get_header_version(png_ptr: png_structp): png_charp;
|
||||
stdcall;
|
||||
function png_get_libpng_ver(png_ptr: png_structp): png_charp;
|
||||
stdcall;
|
||||
function png_create_write_struct(user_png_ver: png_charp;
|
||||
error_ptr: user_error_ptr; error_fn: png_error_ptr;
|
||||
warn_fn: png_error_ptr): png_structp;
|
||||
@@ -589,6 +593,8 @@ procedure png_write_image(png_ptr: png_structp; image: png_bytepp);
|
||||
stdcall;
|
||||
procedure png_write_info(png_ptr: png_structp; info_ptr: png_infop);
|
||||
stdcall;
|
||||
procedure png_write_info_before_PLTE(png_ptr: png_structp; info_ptr: png_infop);
|
||||
stdcall;
|
||||
procedure png_write_row(png_ptr: png_structp; row: png_bytep);
|
||||
stdcall;
|
||||
procedure png_write_rows(png_ptr: png_structp; row: png_bytepp;
|
||||
@@ -716,6 +722,7 @@ procedure png_write_end; external pngDLL;
|
||||
procedure png_write_flush; external pngDLL;
|
||||
procedure png_write_image; external pngDLL;
|
||||
procedure png_write_info; external pngDLL;
|
||||
procedure png_write_info_before_PLTE; external pngDLL;
|
||||
procedure png_write_row; external pngDLL;
|
||||
procedure png_write_rows; external pngDLL;
|
||||
|
||||
|
||||
@@ -22,6 +22,7 @@ EXPORTS
|
||||
png_create_info_struct
|
||||
png_info_init
|
||||
png_write_info
|
||||
png_write_info_before_PLTE
|
||||
png_read_info
|
||||
png_convert_to_rfc1123
|
||||
png_convert_from_struct_tm
|
||||
@@ -75,7 +76,9 @@ EXPORTS
|
||||
png_get_copyright
|
||||
png_set_error_fn
|
||||
png_get_error_ptr
|
||||
png_get_header_ver
|
||||
png_get_header_version
|
||||
png_get_libpng_ver
|
||||
; png_get_mem_fn
|
||||
; png_set_mem_fn
|
||||
png_set_write_fn
|
||||
|
||||
Reference in New Issue
Block a user