mirror of
https://git.code.sf.net/p/libpng/code.git
synced 2025-07-10 18:04:09 +02:00
Imported from libpng-1.2.3rc4.tar
This commit is contained in:
@@ -33,12 +33,13 @@ RANLIB=echo
|
||||
|
||||
LIBNAME=libpng12
|
||||
PNGMAJ = 0
|
||||
PNGMIN = 1.2.3rc3
|
||||
PNGMIN = 1.2.3rc4
|
||||
PNGVER = $(PNGMAJ).$(PNGMIN)
|
||||
|
||||
INCPATH=$(prefix)/include
|
||||
LIBPATH=$(prefix)/lib
|
||||
MANPATH=$(prefix)/man
|
||||
BINPATH=$(prefix)/bin
|
||||
|
||||
# override DESTDIR= on the make install command line to easily support
|
||||
# installing into a temporary location. Example:
|
||||
@@ -134,24 +135,35 @@ install-shared: install-headers $(LIBNAME).so.$(PNGVER) libpng.pc
|
||||
ln -f -s $(LIBNAME).so.$(PNGMAJ) $(LIBNAME).so)
|
||||
-@if [ ! -d $(DESTDIR)$(LIBPATH)/pkgconfig ]; then \
|
||||
mkdir $(DESTDIR)$(LIBPATH)/pkgconfig; fi
|
||||
-@/bin/rm -f $(DESTDIR)$(LIBPATH)/pkgconfig/libpng.12.pc
|
||||
-@/bin/rm -f $(DESTDIR)$(LIBPATH)/pkgconfig/libpng12.pc
|
||||
-@/bin/rm -f $(DESTDIR)$(LIBPATH)/pkgconfig/libpng.pc
|
||||
cp libpng.pc $(DESTDIR)$(LIBPATH)/pkgconfig/libpng12.pc
|
||||
chmod 644 $(DESTDIR)$(LIBPATH)/pkgconfig/libpng12.pc
|
||||
(cd $(DESTDIR)$(LIBPATH)/pkgconfig; ln -f -s libpng12.pc libpng.pc)
|
||||
|
||||
install-man: libpng.3 libpngpf.3 png.5
|
||||
-@if [ ! -d $(MANPATH) ]; then mkdir $(MANPATH); fi
|
||||
-@if [ ! -d $(MANPATH)/man3 ]; then mkdir $(MANPATH)/man3; fi
|
||||
-@/bin/rm -f $(MANPATH)/man3/libpng.3
|
||||
-@/bin/rm -f $(MANPATH)/man3/libpngpf.3
|
||||
cp libpng.3 $(MANPATH)/man3
|
||||
cp libpngpf.3 $(MANPATH)/man3
|
||||
-@if [ ! -d $(MANPATH)/man5 ]; then mkdir $(MANPATH)/man5; fi
|
||||
-@/bin/rm -f $(MANPATH)/man5/png.5
|
||||
cp png.5 $(MANPATH)/man5
|
||||
-@if [ ! -d $(DESTDIR)$(MANPATH) ]; then mkdir $(DESTDIR)$(MANPATH); fi
|
||||
-@if [ ! -d $(DESTDIR)$(MANPATH)/man3 ]; then \
|
||||
mkdir $(DESTDIR)$(MANPATH)/man3; fi
|
||||
-@/bin/rm -f $(DESTDIR)$(MANPATH)/man3/libpng.3
|
||||
-@/bin/rm -f $(DESTDIR)$(MANPATH)/man3/libpngpf.3
|
||||
cp libpng.3 $(DESTDIR)$(MANPATH)/man3
|
||||
cp libpngpf.3 $(DESTDIR)$(MANPATH)/man3
|
||||
-@if [ ! -d $(DESTDIR)$(MANPATH)/man5 ]; then \
|
||||
mkdir $(DESTDIR)$(MANPATH)/man5; fi
|
||||
-@/bin/rm -f $(DESTDIR)$(MANPATH)/man5/png.5
|
||||
cp png.5 $(DESTDIR)$(MANPATH)/man5
|
||||
|
||||
install: install-static install-shared install-man
|
||||
install-config: scripts/libpng-config
|
||||
-@if [ ! -d $(DESTDIR)$(BINPATH) ]; then \
|
||||
mkdir $(DESTDIR)$(BINPATH); fi
|
||||
-@/bin/rm -f $(DESTDIR)$(BINPATH)/libpng-config
|
||||
-@/bin/rm -f $(DESTDIR)$(BINPATH)/libpng12-config
|
||||
cp scripts/libpng-config $(DESTDIR)$(BINPATH)/libpng12-config
|
||||
chmod 755 $(DESTDIR)$(BINPATH)/libpng12-config
|
||||
(cd $(DESTDIR)$(BINPATH); ln -sf libpng12-config libpng-config)
|
||||
|
||||
install: install-static install-shared install-man install-config
|
||||
|
||||
clean:
|
||||
/bin/rm -f *.o libpng.a $(LIBNAME).so $(LIBNAME).so.$(PNGMAJ)* \
|
||||
|
||||
Reference in New Issue
Block a user