* rebased llvm/hotfix-sparcv9-not-64.diff
[t2sde.git] / package / archiver / bzip2 / hotfix-destdir.patch
blobd737068d496861e061de01a7ce49ed698082c329
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
3 #
4 # T2 SDE: package/.../bzip2/destdir.patch
5 # Copyright (C) 2008 The T2 SDE Project
6 #
7 # More information can be found in the files COPYING and README.
8 #
9 # This patch file is dual-licensed. It is available under the license the
10 # patched project is licensed under, as long as it is an OpenSource license
11 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
12 # of the GNU General Public License as published by the Free Software
13 # Foundation; either version 2 of the License, or (at your option) any later
14 # version.
15 # --- T2-COPYRIGHT-NOTE-END ---
17 --- bzip2-1.0.5/Makefile.vanilla 2008-02-14 13:39:18.000000000 +0100
18 +++ bzip2-1.0.5/Makefile 2008-08-18 11:16:34.000000000 +0200
19 @@ -25,6 +25,7 @@
21 # Where you want it installed when you do 'make install'
22 PREFIX=/usr/local
23 +LIBDIR=lib
26 OBJS= blocksort.o \
27 @@ -70,43 +71,43 @@
28 @cat words3
30 install: bzip2 bzip2recover
31 - if ( test ! -d $(PREFIX)/bin ) ; then mkdir -p $(PREFIX)/bin ; fi
32 - if ( test ! -d $(PREFIX)/lib ) ; then mkdir -p $(PREFIX)/lib ; fi
33 - if ( test ! -d $(PREFIX)/man ) ; then mkdir -p $(PREFIX)/man ; fi
34 - if ( test ! -d $(PREFIX)/man/man1 ) ; then mkdir -p $(PREFIX)/man/man1 ; fi
35 - if ( test ! -d $(PREFIX)/include ) ; then mkdir -p $(PREFIX)/include ; fi
36 - cp -f bzip2 $(PREFIX)/bin/bzip2
37 - cp -f bzip2 $(PREFIX)/bin/bunzip2
38 - cp -f bzip2 $(PREFIX)/bin/bzcat
39 - cp -f bzip2recover $(PREFIX)/bin/bzip2recover
40 - chmod a+x $(PREFIX)/bin/bzip2
41 - chmod a+x $(PREFIX)/bin/bunzip2
42 - chmod a+x $(PREFIX)/bin/bzcat
43 - chmod a+x $(PREFIX)/bin/bzip2recover
44 - cp -f bzip2.1 $(PREFIX)/man/man1
45 - chmod a+r $(PREFIX)/man/man1/bzip2.1
46 - cp -f bzlib.h $(PREFIX)/include
47 - chmod a+r $(PREFIX)/include/bzlib.h
48 - cp -f libbz2.a $(PREFIX)/lib
49 - chmod a+r $(PREFIX)/lib/libbz2.a
50 - cp -f bzgrep $(PREFIX)/bin/bzgrep
51 - ln -s -f $(PREFIX)/bin/bzgrep $(PREFIX)/bin/bzegrep
52 - ln -s -f $(PREFIX)/bin/bzgrep $(PREFIX)/bin/bzfgrep
53 - chmod a+x $(PREFIX)/bin/bzgrep
54 - cp -f bzmore $(PREFIX)/bin/bzmore
55 - ln -s -f $(PREFIX)/bin/bzmore $(PREFIX)/bin/bzless
56 - chmod a+x $(PREFIX)/bin/bzmore
57 - cp -f bzdiff $(PREFIX)/bin/bzdiff
58 - ln -s -f $(PREFIX)/bin/bzdiff $(PREFIX)/bin/bzcmp
59 - chmod a+x $(PREFIX)/bin/bzdiff
60 - cp -f bzgrep.1 bzmore.1 bzdiff.1 $(PREFIX)/man/man1
61 - chmod a+r $(PREFIX)/man/man1/bzgrep.1
62 - chmod a+r $(PREFIX)/man/man1/bzmore.1
63 - chmod a+r $(PREFIX)/man/man1/bzdiff.1
64 - echo ".so man1/bzgrep.1" > $(PREFIX)/man/man1/bzegrep.1
65 - echo ".so man1/bzgrep.1" > $(PREFIX)/man/man1/bzfgrep.1
66 - echo ".so man1/bzmore.1" > $(PREFIX)/man/man1/bzless.1
67 - echo ".so man1/bzdiff.1" > $(PREFIX)/man/man1/bzcmp.1
68 + if ( test ! -d $(DESTDIR)$(PREFIX)/bin ) ; then mkdir -p $(DESTDIR)$(PREFIX)/bin ; fi
69 + if ( test ! -d $(DESTDIR)$(PREFIX)/$(LIBDIR) ) ; then mkdir -p $(DESTDIR)$(PREFIX)/$(LIBDIR) ; fi
70 + if ( test ! -d $(DESTDIR)$(PREFIX)/man ) ; then mkdir -p $(DESTDIR)$(PREFIX)/man ; fi
71 + if ( test ! -d $(DESTDIR)$(PREFIX)/man/man1 ) ; then mkdir -p $(DESTDIR)$(PREFIX)/man/man1 ; fi
72 + if ( test ! -d $(DESTDIR)$(PREFIX)/include ) ; then mkdir -p $(DESTDIR)$(PREFIX)/include ; fi
73 + cp -f bzip2 $(DESTDIR)$(PREFIX)/bin/bzip2
74 + cp -f bzip2 $(DESTDIR)$(PREFIX)/bin/bunzip2
75 + cp -f bzip2 $(DESTDIR)$(PREFIX)/bin/bzcat
76 + cp -f bzip2recover $(DESTDIR)$(PREFIX)/bin/bzip2recover
77 + chmod a+x $(DESTDIR)$(PREFIX)/bin/bzip2
78 + chmod a+x $(DESTDIR)$(PREFIX)/bin/bunzip2
79 + chmod a+x $(DESTDIR)$(PREFIX)/bin/bzcat
80 + chmod a+x $(DESTDIR)$(PREFIX)/bin/bzip2recover
81 + cp -f bzip2.1 $(DESTDIR)$(PREFIX)/man/man1
82 + chmod a+r $(DESTDIR)$(PREFIX)/man/man1/bzip2.1
83 + cp -f bzlib.h $(DESTDIR)$(PREFIX)/include
84 + chmod a+r $(DESTDIR)$(PREFIX)/include/bzlib.h
85 + cp -f libbz2.a $(DESTDIR)$(PREFIX)/$(LIBDIR)
86 + chmod a+r $(DESTDIR)$(PREFIX)/$(LIBDIR)/libbz2.a
87 + cp -f bzgrep $(DESTDIR)$(PREFIX)/bin/bzgrep
88 + ln -s -f bzgrep $(DESTDIR)$(PREFIX)/bin/bzegrep
89 + ln -s -f bzgrep $(DESTDIR)$(PREFIX)/bin/bzfgrep
90 + chmod a+x $(DESTDIR)$(PREFIX)/bin/bzgrep
91 + cp -f bzmore $(DESTDIR)$(PREFIX)/bin/bzmore
92 + ln -s -f bzmore $(DESTDIR)$(PREFIX)/bin/bzless
93 + chmod a+x $(DESTDIR)$(PREFIX)/bin/bzmore
94 + cp -f bzdiff $(DESTDIR)$(PREFIX)/bin/bzdiff
95 + ln -s -f bzdiff $(DESTDIR)$(PREFIX)/bin/bzcmp
96 + chmod a+x $(DESTDIR)$(PREFIX)/bin/bzdiff
97 + cp -f bzgrep.1 bzmore.1 bzdiff.1 $(DESTDIR)$(PREFIX)/man/man1
98 + chmod a+r $(DESTDIR)$(PREFIX)/man/man1/bzgrep.1
99 + chmod a+r $(DESTDIR)$(PREFIX)/man/man1/bzmore.1
100 + chmod a+r $(DESTDIR)$(PREFIX)/man/man1/bzdiff.1
101 + echo ".so man1/bzgrep.1" > $(DESTDIR)$(PREFIX)/man/man1/bzegrep.1
102 + echo ".so man1/bzgrep.1" > $(DESTDIR)$(PREFIX)/man/man1/bzfgrep.1
103 + echo ".so man1/bzmore.1" > $(DESTDIR)$(PREFIX)/man/man1/bzless.1
104 + echo ".so man1/bzdiff.1" > $(DESTDIR)$(PREFIX)/man/man1/bzcmp.1
106 clean:
107 rm -f *.o libbz2.a bzip2 bzip2recover \