[libpng10] Imported from libpng-1.0.15rc3.tar

This commit is contained in:
Glenn Randers-Pehrson
2002-09-17 23:06:26 -05:00
parent 0e928a62e9
commit 3bdb7fed6e
62 changed files with 246 additions and 212 deletions

View File

@@ -5,7 +5,7 @@
LIBNAME=libpng10
PNGMAJ = 0
PNGMIN = 1.0.15rc2
PNGMIN = 1.0.15rc3
PNGVER = $(PNGMAJ).$(PNGMIN)
# Where make install puts libpng.a, libpng10.so, and libpng10/png.h
@@ -79,11 +79,12 @@ libpng.pc:
libpng-config:
( cat scripts/libpng-config-head.in; \
echo prefix=\"$(prefix)\"; \
echo cppflags=\"-I$(INCPATH)/$(LIBNAME) -DPNG_USE_PNGGCCRD \
-DPNG_NO_ASSEMBLER_CODE\"; \
echo cflags=\"$(ABI)\"; \
echo ldflags=\"-L$(LIBPATH) \"; \
echo rpath=\"$(LIBPATH) \"; \
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 libs=\"-lpng10 -lz -lm\"; \
cat scripts/libpng-config-body.in ) > libpng-config
chmod +x libpng-config
@@ -176,9 +177,9 @@ test-installed:
echo
echo Testing installed dynamic shared library.
$(CC) -I$(ZLIBINC) \
`$(BINPATH)/libpng10-config --cppflags --cflags` pngtest.c \
-L$(ZLIBLIB) -rpath $(ZLIBLIB):`$(BINPATH)/libpng10-config --rpath` \
-o pngtesti `$(BINPATH)/libpng10-config --ldflags --libs`
`$(BINPATH)/libpng10-config --cflags` pngtest.c \
-L$(ZLIBLIB) -rpath $(ZLIBLIB):`$(BINPATH)/libpng10-config --libdir` \
-o pngtesti `$(BINPATH)/libpng10-config --ldflags`
./pngtesti pngtest.png
clean: