--- libpng-1.0.14/scripts/makefile.linux.orig Thu Jul 18 22:42:47 2002 +++ libpng-1.0.14/scripts/makefile.linux Thu Jul 18 22:44:46 2002 @@ -1,17 +1,17 @@ -# makefile for libpng.a and libpng10.so on Linux ELF with gcc +# makefile for libpng.a and libpng.so on Linux ELF with gcc # Copyright (C) 1998, 1999, 2002 Greg Roelofs and Glenn Randers-Pehrson # Copyright (C) 1996, 1997 Andreas Dilger # For conditions of distribution and use, see copyright notice in png.h -LIBNAME = libpng10 -PNGMAJ = 0 +LIBNAME = libpng +PNGMAJ = 2 PNGMIN = 1.0.14 PNGVER = $(PNGMAJ).$(PNGMIN) CC=gcc -# where "make install" puts libpng10.a, libpng10.so*, -# libpng10/png.h and libpng10/pngconf.h +# where "make install" puts libpng.a, libpng.so*, +# libpng/png.h and libpng/pngconf.h # Prefix must be a full pathname. prefix=/usr/local @@ -34,7 +34,7 @@ CFLAGS= $(OPT_FLAGS) -Wall -funroll-loops \ $(ALIGN) # $(WARNMORE) -DPNG_DEBUG=5 -LDFLAGS=-L. -Wl,-rpath,. -L$(ZLIBLIB) -Wl,-rpath,$(ZLIBLIB) -lpng10 -lz -lm +LDFLAGS=-L. -Wl,-rpath,. -L$(ZLIBLIB) -Wl,-rpath,$(ZLIBLIB) -lpng -lz -lm LDFLAGS_A=-L$(ZLIBLIB) -Wl,-rpath,$(ZLIBLIB) libpng.a -lz -lm RANLIB=ranlib @@ -86,7 +86,7 @@ echo cppflags=\"-I$(INCPATH)/$(LIBNAME)\"; \ echo cflags=\"\"; \ echo ldflags=\"-L$(LIBPATH) -Wl,-rpath,$(LIBPATH)\"; \ - echo libs=\"-lpng10 -lz -lm\"; \ + echo libs=\"-lpng -lz -lm\"; \ cat scripts/libpng-config-body.in ) > libpng-config chmod +x libpng-config @@ -119,26 +119,16 @@ install-headers: png.h pngconf.h -@if [ ! -d $(DI) ]; then mkdir $(DI); fi - -@if [ ! -d $(DI)/$(LIBNAME) ]; then mkdir $(DI)/$(LIBNAME); fi - cp png.h pngconf.h $(DI)/$(LIBNAME) - chmod 644 $(DI)/$(LIBNAME)/png.h $(DI)/$(LIBNAME)/pngconf.h - -@/bin/rm -f $(DI)/png.h $(DI)/pngconf.h - -@/bin/rm -f $(DI)/libpng - (cd $(DI); ln -sf $(LIBNAME) libpng; ln -sf $(LIBNAME)/* .) + cp png.h pngconf.h $(DI) + chmod 644 $(DI)/png.h $(DI)/pngconf.h install-static: install-headers libpng.a -@if [ ! -d $(DL) ]; then mkdir $(DL); fi cp libpng.a $(DL)/$(LIBNAME).a chmod 644 $(DL)/$(LIBNAME).a - -@/bin/rm -f $(DL)/libpng.a - (cd $(DL); ln -sf $(LIBNAME).a libpng.a) install-shared: install-headers $(LIBNAME).so.$(PNGVER) libpng.pc -@if [ ! -d $(DL) ]; then mkdir $(DL); fi - -@/bin/rm -f $(DL)/$(LIBNAME).so.$(PNGMAJ)* $(DL)/$(LIBNAME).so - -@/bin/rm -f $(DL)/libpng.so - -@/bin/rm -f $(DL)/libpng.so.2 - -@/bin/rm -f $(DL)/libpng.so.2.* cp $(LIBNAME).so.$(PNGVER) $(DL) chmod 755 $(DL)/$(LIBNAME).so.$(PNGVER) (cd $(DL); \ @@ -148,30 +138,21 @@ ln -sf $(LIBNAME).so.$(PNGVER) $(LIBNAME).so.$(PNGMAJ); \ ln -sf $(LIBNAME).so.$(PNGMAJ) $(LIBNAME).so) -@if [ ! -d $(DL)/pkgconfig ]; then mkdir $(DL)/pkgconfig; fi - -@/bin/rm -f $(DL)/pkgconfig/$(LIBNAME).pc - -@/bin/rm -f $(DL)/pkgconfig/libpng.pc cp libpng.pc $(DL)/pkgconfig/$(LIBNAME).pc chmod 644 $(DL)/pkgconfig/$(LIBNAME).pc - (cd $(DL)/pkgconfig; ln -sf $(LIBNAME).pc libpng.pc) install-man: libpng.3 libpngpf.3 png.5 -@if [ ! -d $(DM) ]; then mkdir $(DM); fi -@if [ ! -d $(DM)/man3 ]; then mkdir $(DM)/man3; fi - -@/bin/rm -f $(DM)/man3/libpng.3 - -@/bin/rm -f $(DM)/man3/libpngpf.3 cp libpng.3 $(DM)/man3 cp libpngpf.3 $(DM)/man3 -@if [ ! -d $(DM)/man5 ]; then mkdir $(DM)/man5; fi - -@/bin/rm -f $(DM)/man5/png.5 cp png.5 $(DM)/man5 install-config: libpng-config -@if [ ! -d $(DB) ]; then mkdir $(DB); fi - -@/bin/rm -f $(DB)/libpng-config - -@/bin/rm -f $(DB)/$(LIBNAME)-config cp libpng-config $(DB)/$(LIBNAME)-config chmod 755 $(DB)/$(LIBNAME)-config - (cd $(DB); ln -sf $(LIBNAME)-config libpng-config) install: install-static install-shared install-man install-config