[libpng10] Imported from libpng-1.0.15.tar

This commit is contained in:
Glenn Randers-Pehrson
2002-10-03 06:13:23 -05:00
parent 3bdb7fed6e
commit 4fc3118b59
61 changed files with 181 additions and 143 deletions

View File

@@ -8,7 +8,7 @@
# Modeled after libxml-config.
version=1.0.15rc3
version=1.0.15
prefix=""
libdir=""
libs=""

View File

@@ -6,6 +6,6 @@ includedir=${exec_prefix}/include
Name: libpng10
Description: Loads and saves PNG files
Version: 1.0.15rc3
Version: 1.0.15
Libs: -L${libdir} -lpng10 -lz -lm
Cflags: -I${includedir}/libpng10

View File

@@ -33,7 +33,7 @@ RANLIB=echo
LIBNAME=libpng10
PNGMAJ = 0
PNGMIN = 1.0.15rc3
PNGMIN = 1.0.15
PNGVER = $(PNGMAJ).$(PNGMIN)
INCPATH=$(prefix)/include

View File

@@ -33,7 +33,7 @@ RANLIB=echo
LIBNAME=libpng10
PNGMAJ = 0
PNGMIN = 1.0.15rc3
PNGMIN = 1.0.15
PNGVER = $(PNGMAJ).$(PNGMIN)
INCPATH=$(prefix)/include
@@ -84,7 +84,7 @@ libpng-config:
echo L_opts=\"-L$(LIBPATH)\"; \
echo R_opts=\"-R$(LIBPATH)\"; \
echo ccopts=\"-xtarget=ultra -xarch=v9\"; \
echo ldopts=\"-xtarget=ultra -xarch=v9 \"; \
echo ldopts=\"-xtarget=ultra -xarch=v9\"; \
echo libs=\"-lpng10 -lz -lm\"; \
cat scripts/libpng-config-body.in ) > libpng-config
chmod +x libpng-config

View File

@@ -17,7 +17,7 @@ RANLIB = ranlib
RM = rm -f
PNGMAJ = 0
PNGMIN = 1.0.15rc3
PNGMIN = 1.0.15
PNGVER = $(PNGMAJ).$(PNGMIN)
prefix=/usr/local

View File

@@ -12,7 +12,7 @@ ZLIBLIB=/usr/local/lib
ZLIBINC=/usr/local/include
PNGMAJ = 0
PNGMIN = 1.0.15rc3
PNGMIN = 1.0.15
PNGVER = $(PNGMAJ).$(PNGMIN)
ALIGN=

View File

@@ -79,7 +79,7 @@ CFLAGS= $(strip $(MINGW_CCFLAGS) $(addprefix -I,$(ZLIBINC)) \
LIBNAME = libpng10
PNGMAJ = 0
CYGDLL = 10
PNGMIN = 1.0.15rc3
PNGMIN = 1.0.15
PNGVER = $(PNGMAJ).$(PNGMIN)
SHAREDLIB=cygpng$(CYGDLL).dll

View File

@@ -23,7 +23,7 @@ LDFLAGS=-L. -L$(ZLIBLIB) -lpng10 -lz
RANLIB=ranlib
PNGMAJ = 0
PNGMIN = 1.0.15rc3
PNGMIN = 1.0.15
PNGVER = $(PNGMAJ).$(PNGMIN)
LIBNAME = libpng10
@@ -86,14 +86,15 @@ $(LIBNAME).$(PNGMAJ).dylib: $(LIBNAME).$(PNGVER).dylib
$(LIBNAME).$(PNGVER).dylib: $(OBJSDLL)
$(CC) -dynamiclib \
-install_name $(DL)/$(LIBNAME).$(PNGMAJ).dylib \
-current_version $(PNGMIN) -compatibility_version $(PNGMIN) \
-flat_namespace -undefined suppress \
-o $(LIBNAME).$(PNGVER).dylib \
$(OBJSDLL)
libpng.2.$(PNGMIN).dylib: $(OBJSDLL)
$(CC) -dynamiclib \
-install_name $(DL)/libpng.2.dylib \
-current_version $(PNGMIN) -compatibility_version $(PNGMIN) \
-current_version 2 -compatibility_version 2 \
-flat_namespace -undefined suppress \
-o libpng.2.$(PNGMIN).dylib \
$(OBJSDLL)

View File

@@ -32,7 +32,7 @@ ZLIBLIB=../zlib
ZLIBINC=../zlib
PNGMAJ = 0
PNGMIN = 1.0.15rc3
PNGMIN = 1.0.15
PNGVER = $(PNGMAJ).$(PNGMIN)
LIBNAME = libpng10

View File

@@ -15,7 +15,7 @@
LIBNAME = libpng10
PNGMAJ = 0
PNGMIN = 1.0.15rc3
PNGMIN = 1.0.15
PNGVER = $(PNGMAJ).$(PNGMIN)
CC=gcc

View File

@@ -1,4 +1,4 @@
# makefile for libpng on HP-UX using GCC
# makefile for libpng on HP-UX using GCC with the HP ANSI/C linker.
# Copyright (C) 2002, Glenn Randers-Pehrson
# Copyright (C) 2001, Laurent faillie
# Copyright (C) 1998, 1999 Greg Roelofs
@@ -6,6 +6,7 @@
# For conditions of distribution and use, see copyright notice in png.h
CC=gcc
LD=ld
# where "make install" puts libpng.a, libpng.sl*, png.h and pngconf.h
prefix=/usr/local
@@ -14,6 +15,13 @@ prefix=/usr/local
ZLIBLIB=/opt/zlib/lib
ZLIBINC=/opt/zlib/include
# Note that if you plan to build a libpng shared library, zlib must also
# be a shared library, which zlib's configure does not do. After running
# zlib's configure, edit the appropriate lines of makefile to read:
# CFLAGS=-O1 -DHAVE_UNISTD -DUSE_MAP -fPIC \
# LDSHARED=ld -b
# SHAREDLIB=libz.sl
ALIGN=
# for i386:
#ALIGN=-malign-loops=2 -malign-functions=2
@@ -33,7 +41,7 @@ RANLIB=ranlib
#RANLIB=echo
PNGMAJ = 0
PNGMIN = 1.0.15rc3
PNGMIN = 1.0.15
PNGVER = $(PNGMAJ).$(PNGMIN)
LIBNAME = libpng10
@@ -92,11 +100,11 @@ $(LIBNAME).sl.$(PNGMAJ): $(LIBNAME).sl.$(PNGVER)
ln -sf $(LIBNAME).sl.$(PNGVER) $(LIBNAME).sl.$(PNGMAJ)
$(LIBNAME).sl.$(PNGVER): $(OBJSDLL)
$(LD) +s \
$(LD) -b +s \
+h $(LIBNAME).sl.$(PNGMAJ) -o $(LIBNAME).sl.$(PNGVER) $(OBJSDLL)
libpng.sl.2.$(PNGMIN): $(OBJSDLL)
$(LD) +s \
$(LD) -b +s \
+h libpng.sl.2 -o libpng.sl.2.$(PNGMIN) $(OBJSDLL)
pngtest: pngtest.o $(LIBNAME).sl

View File

@@ -1,4 +1,4 @@
# makefile for libpng, HPUX (10.20 and 11.00)
# makefile for libpng, HPUX (10.20 and 11.00) using the ANSI/C product.
# Copyright (C) 1999-2002 Glenn Randers-Pehrson
# Copyright (C) 1995 Guy Eric Schalnat, Group 42
# contributed by Jim Rice and updated by Chris Schleicher, Hewlett Packard
@@ -8,6 +8,13 @@
ZLIBLIB=/opt/zlib/lib
ZLIBINC=/opt/zlib/include
# Note that if you plan to build a libpng shared library, zlib must also
# be a shared library, which zlib's configure does not do. After running
# zlib's configure, edit the appropriate lines of makefile to read:
# CFLAGS=-O1 -DHAVE_UNISTD -DUSE_MAP -fPIC \
# LDSHARED=ld -b
# SHAREDLIB=libz.sl
CC=cc
CFLAGS=-I$(ZLIBINC) -O -Ae +DA1.1 +DS2.0
# Caution: be sure you have built zlib with the same CFLAGS.
@@ -17,7 +24,7 @@ LDFLAGS=-L. -L$(ZLIBLIB) -lpng -lz -lm
RANLIB=ranlib
PNGMAJ = 0
PNGMIN = 1.0.15rc3
PNGMIN = 1.0.15
PNGVER = $(PNGMAJ).$(PNGMIN)
LIBNAME = libpng10
@@ -67,7 +74,7 @@ libpng-config:
( cat scripts/libpng-config-head.in; \
echo prefix=\"$(prefix)\"; \
echo I_opts=\"-I$(INCPATH)/$(LIBNAME)\"; \
echo ccopts=\"-Ae +DA1.1 +DS2.0"; \
echo ccopts=\"-Ae +DA1.1 +DS2.0\"; \
echo L_opts=\"-L$(LIBPATH)\"; \
echo libs=\"-lpng10 -lz -lm\"; \
cat scripts/libpng-config-body.in ) > libpng-config
@@ -80,12 +87,12 @@ $(LIBNAME).sl.$(PNGMAJ): $(LIBNAME).sl.$(PNGVER)
ln -sf $(LIBNAME).sl.$(PNGVER) $(LIBNAME).sl.$(PNGMAJ)
$(LIBNAME).sl.$(PNGVER): $(OBJSDLL)
$(LD) +s \
$(LD) -b +s \
+h $(LIBNAME).sl.$(PNGMAJ) -o $(LIBNAME).sl.$(PNGVER) $(OBJSDLL)
libpng.sl.2.$(PNGMIN): $(OBJSDLL)
$(LD) +s \
+h libpng.sl.2 o libpng.sl.2.$(PNGMIN) $(OBJSDLL)
$(LD) -b +s \
+h libpng.sl.2 -o libpng.sl.2.$(PNGMIN) $(OBJSDLL)
pngtest: pngtest.o libpng.a
$(CC) -o pngtest $(CCFLAGS) pngtest.o $(LDFLAGS)

View File

@@ -5,7 +5,7 @@
LIBNAME = libpng10
PNGMAJ = 0
PNGMIN = 1.0.15rc3
PNGMIN = 1.0.15
PNGVER = $(PNGMAJ).$(PNGMIN)
CC=gcc

View File

@@ -17,13 +17,11 @@ ZLIBINC=../zlib
CC=cc
PNGMAJ = 0
PNGMIN = 1.0.15rc3
PNGMIN = 1.0.15
PNGVER = $(PNGMAJ).$(PNGMIN)
CFLAGS=-fno-common -I$(ZLIBINC) -O # -g -DPNG_DEBUG=5
LDFLAGS=-L. -L$(ZLIBLIB) -lpng -lz
LDSHARED=cc -lz -dynamiclib -compatibility_version $(PNGVER) \
-current_version $(PNGVER)
LDFLAGS=-L. -L$(ZLIBLIB) -lpng -lz -current_version $(PNGVER)
LIBNAME=libpng10
SHAREDLIB_POSTFIX=dylib
@@ -76,10 +74,11 @@ libpng.a: $(OBJS)
$(RANLIB) $@
$(LIBNAME).$(PNGVER).$(SHAREDLIB_POSTFIX): $(OBJS)
cc -dynamiclib -compatibility_version $(PNGMAJ) -o $@ $(OBJS)
cc -dynamiclib -flat_namespace -undefined suppress -o $@ $(OBJS)
libpng.2.$(PNGMIN).$(SHAREDLIB_POSTFIX): $(OBJS)
cc -dynamiclib -compatibility_version 2 -o $@ $(OBJS)
cc -dynamiclib -compatibility_version 2 -flat_namespace \
-undefined suppress -o $@ $(OBJS)
pngtest: pngtest.o libpng.a
$(CC) -o pngtest $(CFLAGS) pngtest.o $(LDFLAGS)

View File

@@ -13,7 +13,7 @@ INCSDIR=${LOCALBASE}/include/libpng10
LIB= png10
SHLIB_MAJOR= 0
SHLIB_MINOR= 1.0.15rc3
SHLIB_MINOR= 1.0.15
SRCS= pnggccrd.c png.c pngset.c pngget.c pngrutil.c pngtrans.c pngwutil.c \
pngread.c pngrio.c pngwio.c pngwrite.c pngrtran.c \
pngwtran.c pngmem.c pngerror.c pngpread.c

View File

@@ -13,7 +13,7 @@ INCSDIR=${LOCALBASE}/include/libpng
LIB= png
SHLIB_MAJOR= 2
SHLIB_MINOR= 1.0.15rc3
SHLIB_MINOR= 1.0.15
SRCS= pnggccrd.c png.c pngset.c pngget.c pngrutil.c pngtrans.c pngwutil.c \
pngread.c pngrio.c pngwio.c pngwrite.c pngrtran.c \
pngwtran.c pngmem.c pngerror.c pngpread.c

View File

@@ -7,7 +7,7 @@ LIBDIR= ${PREFIX}/lib
MANDIR= ${PREFIX}/man/cat
SHLIB_MAJOR= 0
SHLIB_MINOR= 1.0.15rc3
SHLIB_MINOR= 1.0.15
LIB= png
SRCS= png.c pngerror.c pnggccrd.c pngget.c pngmem.c pngpread.c \

View File

@@ -24,7 +24,7 @@ LDFLAGS=-L. -L$(ZLIBLIB) -lpng10 -lz -lm
RANLIB=echo
PNGMAJ = 0
PNGMIN = 1.0.15rc3
PNGMIN = 1.0.15
PNGVER = $(PNGMAJ).$(PNGMIN)
LIBNAME = libpng10

View File

@@ -18,7 +18,7 @@ ZLIBINC=../zlib
LIBNAME=libpng10
PNGMAJ = 0
PNGMIN = 1.0.15rc3
PNGMIN = 1.0.15
PNGVER = $(PNGMAJ).$(PNGMIN)
CC=gcc
@@ -29,8 +29,10 @@ ABI=
WARNMORE= # -g -DPNG_DEBUG=5
CFLAGS=$(ABI) -I$(ZLIBINC) -O2 $(WARNMORE) -fPIC -mabi=n32
LDFLAGS=$(ABI) -L. -L$(ZLIBLIB) -lpng -lz -lm
LDSHARED=cc $(ABI) -shared -soname $(LIBNAME).so.$(PNGMAJ)
LDLEGACY=cc $(ABI) -shared -soname libpng.so.2
LDSHARED=cc $(ABI) -shared -soname $(LIBNAME).so.$(PNGMAJ) \
-set_version sgi$(PNGMAJ).0
LDLEGACY=cc $(ABI) -shared -soname libpng.so.2 \
-set_version sgi$2.0
# See "man dso" for info about shared objects
RANLIB=echo
@@ -76,11 +78,10 @@ libpng-config:
( cat scripts/libpng-config-head.in; \
echo prefix=\"$(prefix)\"; \
echo I_opts=\"-I$(INCPATH)/$(LIBNAME)\"; \
echo cppflags=\"-DPNG_USE_PNGGCCRD -DPNG_NO_ASSEMBLER_CODE\"; \
echo ccopts=\"$(ABI)\"; \
echo ldopts=\"$(ABI)\"; \
echo L_opts=\"-L$(LIBPATH) \"; \
echo libdir=\"$(LIBPATH) \"; \
echo L_opts=\"-L$(LIBPATH)\"; \
echo libdir=\"$(LIBPATH)\"; \
echo libs=\"-lpng10 -lz -lm\"; \
cat scripts/libpng-config-body.in ) > libpng-config
chmod +x libpng-config

View File

@@ -5,7 +5,7 @@
LIBNAME=libpng10
PNGMAJ = 0
PNGMIN = 1.0.15rc3
PNGMIN = 1.0.15
PNGVER = $(PNGMAJ).$(PNGMIN)
# Where make install puts libpng.a, libpng10.so, and libpng10/png.h
@@ -30,11 +30,14 @@ ABI=
WARNMORE=-fullwarn
# Note: -KPIC is the default anyhow
#CFLAGS= $(ABI) -I$(ZLIBINC) -O $(WARNMORE) -KPIC -DPNG_USE_PNGGCCRD # -g -DPNG_DEBUG=5
CFLAGS=$(ABI) -I$(ZLIBINC) -O $(WARNMORE) -DPNG_USE_PNGGCCRD -DPNG_NO_ASSEMBLER_CODE
CFLAGS=$(ABI) -I$(ZLIBINC) -O $(WARNMORE) -DPNG_USE_PNGGCCRD \
-DPNG_NO_ASSEMBLER_CODE
LDFLAGS_A=$(ABI) -L. -L$(ZLIBLIB) -lpng10 -lz -lm
LDFLAGS=$(ABI) -L. -L$(ZLIBLIB) -lpng -lz -lm
LDSHARED=cc $(ABI) -shared -soname $(LIBNAME).so.$(PNGMAJ)
LDLEGACY=cc $(ABI) -shared -soname libpng.so.2
LDSHARED=cc $(ABI) -shared -soname $(LIBNAME).so.$(PNGMAJ) \
-set_version sgi$(PNGMAJ).0
LDLEGACY=cc $(ABI) -shared -soname libpng.so.2 \
-set_version sgi$2.0
# See "man dso" for info about shared objects
RANLIB=echo
@@ -83,8 +86,8 @@ libpng-config:
echo cppflags=\"-DPNG_USE_PNGGCCRD -DPNG_NO_ASSEMBLER_CODE\"; \
echo ccopts=\"$(ABI)\"; \
echo ldopts=\"$(ABI)\"; \
echo L_opts=\"-L$(LIBPATH) \"; \
echo libdir=\"$(LIBPATH) \"; \
echo L_opts=\"-L$(LIBPATH)\"; \
echo libdir=\"$(LIBPATH)\"; \
echo libs=\"-lpng10 -lz -lm\"; \
cat scripts/libpng-config-body.in ) > libpng-config
chmod +x libpng-config

View File

@@ -34,7 +34,7 @@ LDFLAGS=-L. -R. -L$(ZLIBLIB) -R$(ZLIBLIB) -lpng10 -lz -lm
RANLIB=echo
PNGMAJ = 0
PNGMIN = 1.0.15rc3
PNGMIN = 1.0.15
PNGVER = $(PNGMAJ).$(PNGMIN)
LIBNAME = libpng10

View File

@@ -30,7 +30,7 @@ LDFLAGS=-L. -R. -L$(ZLIBLIB) -R$(ZLIBLIB) -lpng10 -lz -lm
RANLIB=echo
PNGMAJ = 0
PNGMIN = 1.0.15rc3
PNGMIN = 1.0.15
PNGVER = $(PNGMAJ).$(PNGMIN)
LIBNAME = libpng10

View File

@@ -7,7 +7,7 @@ unit pngdef;
interface
const
PNG_LIBPNG_VER_STRING = '1.0.15rc3';
PNG_LIBPNG_VER_STRING = '1.0.15';
PNG_LIBPNG_VER = 10015;
type

View File

@@ -2,7 +2,7 @@
; PNG.LIB module definition file for OS/2
;----------------------------------------
; Version 1.0.15rc3
; Version 1.0.15
LIBRARY PNG
DESCRIPTION "PNG image compression library for OS/2"