diff options
Diffstat (limited to 'scripts/makefile.darwin')
-rw-r--r-- | scripts/makefile.darwin | 38 |
1 files changed, 25 insertions, 13 deletions
diff --git a/scripts/makefile.darwin b/scripts/makefile.darwin index 961606481..9f042c5b0 100644 --- a/scripts/makefile.darwin +++ b/scripts/makefile.darwin @@ -25,13 +25,14 @@ RANLIB=ranlib # read libpng.txt or png.h to see why PNGMAJ is 0. You should not # have to change it. PNGMAJ = 0 -PNGMIN = 1.2.3rc3 +PNGMIN = 1.2.3rc4 PNGVER = $(PNGMAJ).$(PNGMIN) LIBNAME = libpng12 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: @@ -115,24 +116,35 @@ install-shared: install-headers $(LIBNAME).dylib libpng.pc ln -sf $(LIBNAME).$(PNGMAJ).dylib $(LIBNAME).dylib) -@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 -sf 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 - -install: install-static install-shared install-man + -@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-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: rm -f *.o libpng.a $(LIBNAME).*dylib pngtest pngout.png |