]> git.ipfire.org Git - people/arne_f/ipfire-3.x.git/blob - bzip2/patches/bzip2-1.0.5-install_docs-1.patch
bzip2: Fix soname and building with CFLAGS.
[people/arne_f/ipfire-3.x.git] / bzip2 / patches / bzip2-1.0.5-install_docs-1.patch
1 Submitted By: Matthew Burgess <matthew@linuxfromscratch.org>
2 Date: 2007-01-31
3 Initial Package Version: 1.0.4
4 Upstream Status: Not submitted
5 Origin: Randy McMurchy & Steve Crosby
6 Description: Installs pre-formatted documentation
7
8 diff -Naur bzip2-1.0.4.orig/Makefile bzip2-1.0.4/Makefile
9 --- bzip2-1.0.4.orig/Makefile 2007-01-03 03:49:21.000000000 +0000
10 +++ bzip2-1.0.4/Makefile 2007-01-26 20:00:01.000000000 +0000
11 @@ -25,7 +25,7 @@
12
13 # Where you want it installed when you do 'make install'
14 PREFIX=/usr/local
15 -
16 +DOCDIR=share/doc/$(DISTNAME)
17
18 OBJS= blocksort.o \
19 huffman.o \
20 @@ -74,6 +74,7 @@
21 if ( test ! -d $(PREFIX)/lib ) ; then mkdir -p $(PREFIX)/lib ; fi
22 if ( test ! -d $(PREFIX)/man ) ; then mkdir -p $(PREFIX)/man ; fi
23 if ( test ! -d $(PREFIX)/man/man1 ) ; then mkdir -p $(PREFIX)/man/man1 ; fi
24 + if ( test ! -d $(PREFIX)/$(DOCDIR) ) ; then mkdir -p $(PREFIX)/$(DOCDIR); fi
25 if ( test ! -d $(PREFIX)/include ) ; then mkdir -p $(PREFIX)/include ; fi
26 cp -f bzip2 $(PREFIX)/bin/bzip2
27 cp -f bzip2 $(PREFIX)/bin/bunzip2
28 @@ -107,6 +108,14 @@
29 echo ".so man1/bzgrep.1" > $(PREFIX)/man/man1/bzfgrep.1
30 echo ".so man1/bzmore.1" > $(PREFIX)/man/man1/bzless.1
31 echo ".so man1/bzdiff.1" > $(PREFIX)/man/man1/bzcmp.1
32 + cp -f manual.html $(PREFIX)/$(DOCDIR)
33 + cp -f manual.pdf $(PREFIX)/$(DOCDIR)
34 + cp -f manual.ps $(PREFIX)/$(DOCDIR)
35 + cp -f bzip2.txt $(PREFIX)/$(DOCDIR)
36 + chmod a+r $(PREFIX)/$(DOCDIR)/manual.html
37 + chmod a+r $(PREFIX)/$(DOCDIR)/manual.pdf
38 + chmod a+r $(PREFIX)/$(DOCDIR)/manual.ps
39 + chmod a+r $(PREFIX)/$(DOCDIR)/bzip2.txt
40
41 clean:
42 rm -f *.o libbz2.a bzip2 bzip2recover \