summaryrefslogtreecommitdiff
path: root/scripts/makefile.dec
diff options
context:
space:
mode:
authorGlenn Randers-Pehrson <glennrp at users.sourceforge.net>2002-05-02 20:49:40 -0500
committerGlenn Randers-Pehrson <glennrp at users.sourceforge.net>2009-04-06 16:07:04 -0500
commit704228f7e71191d711be50ee56be0bbcf7b2afd6 (patch)
tree2ca21292e3d4265dcbce5958c04bf8b4bf7dc5fb /scripts/makefile.dec
parent299d73503c16eaff09c3f03918d6c283d929d13e (diff)
downloadlibpng-704228f7e71191d711be50ee56be0bbcf7b2afd6.tar.gz
Imported from libpng-1.2.3rc4.tarv1.2.3rc4
Diffstat (limited to 'scripts/makefile.dec')
-rw-r--r--scripts/makefile.dec38
1 files changed, 25 insertions, 13 deletions
diff --git a/scripts/makefile.dec b/scripts/makefile.dec
index 753e23993..f037bc12d 100644
--- a/scripts/makefile.dec
+++ b/scripts/makefile.dec
@@ -8,6 +8,7 @@ prefix=/usr/local
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:
@@ -28,7 +29,7 @@ ZLIBINC=../zlib
# 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
@@ -102,24 +103,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)* pngtest pngout.png