diff options
Diffstat (limited to 'scripts/makefile.gcmmx')
-rw-r--r-- | scripts/makefile.gcmmx | 38 |
1 files changed, 25 insertions, 13 deletions
diff --git a/scripts/makefile.gcmmx b/scripts/makefile.gcmmx index 63f58459a..df01c3c1b 100644 --- a/scripts/makefile.gcmmx +++ b/scripts/makefile.gcmmx @@ -15,7 +15,7 @@ LIBNAME = libpng12 PNGMAJ = 0 -PNGMIN = 1.2.3rc3 +PNGMIN = 1.2.3rc4 PNGVER = $(PNGMAJ).$(PNGMIN) CC=gcc @@ -63,6 +63,7 @@ RANLIB=ranlib 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: @@ -161,24 +162,35 @@ install-shared: install-headers $(LIBNAME).so.$(PNGVER) libpng.pc ln -sf $(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 -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: /bin/rm -f *.o libpng.a $(LIBNAME).so $(LIBNAME).so.$(PNGMAJ)* \ |