Ravenports generated: 16 Aug 2020 16:19
[ravenports.git] / bucket_18 / bzip2
1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
2
3 NAMEBASE=               bzip2
4 VERSION=                1.0.8
5 KEYWORDS=               archivers
6 VARIANTS=               standard
7 SDESC[standard]=        Block-sorting file compressor
8 HOMEPAGE=               none
9 CONTACT=                nobody
10
11 DOWNLOAD_GROUPS=        main
12 SITES[main]=            https://sourceware.org/pub/bzip2/
13 DISTFILE[1]=            bzip2-1.0.8.tar.gz:main
14 DF_INDEX=               1
15 SPKGS[standard]=        complete
16                         shared
17                         static
18                         docs
19
20 OPTIONS_AVAILABLE=      none
21 OPTIONS_STANDARD=       none
22
23 USES=                   cpe
24
25 LICENSE=                BSD4CLAUSE:static
26 LICENSE_FILE=           BSD4CLAUSE:{{WRKSRC}}/LICENSE
27 LICENSE_SCHEME=         solo
28
29 CPE_VENDOR=             bzip
30 FPC_EQUIVALENT=         archivers/bzip2
31
32 MAKE_ARGS=              PREFIX={{PREFIX}}
33
34 [FILE:153:descriptions/desc.shared]
35 This is bzip2, a advanced block-sorting file compressor.  It is believed
36 to be free from any patents.  This subpackage contains only the shared
37 library.
38
39
40 [FILE:210:descriptions/desc.static]
41 This is bzip2, a advanced block-sorting file compressor.  It is believed
42 to be free from any patents.  This is the primary subpackage that contains
43 everything except the documentation and the shared libraries.
44
45
46 [FILE:97:distinfo]
47 ab5a03176ee106d3f0fa90e381da478ddae405918153cca248e682cd0c4a2269       810029 bzip2-1.0.8.tar.gz
48
49
50 [FILE:29:manifests/plist.shared]
51 lib/
52  libbz2.so
53  libbz2.so.1
54
55
56 [FILE:274:manifests/plist.static]
57 bin/
58  bunzip2
59  bz2cat
60  bzcat
61  bzegrep
62  bzfgrep
63  bzgrep
64  bzip2
65  bzip2recover
66  bzless
67  bzmore
68 include/bzlib.h
69 lib/libbz2.a
70 share/man/man1/
71  bunzip2.1.gz
72  bz2cat.1.gz
73  bzcat.1.gz
74  bzegrep.1.gz
75  bzfgrep.1.gz
76  bzgrep.1.gz
77  bzip2.1.gz
78  bzip2recover.1.gz
79  bzless.1.gz
80  bzmore.1.gz
81
82
83 [FILE:80:manifests/plist.docs]
84 share/doc/bzip2/
85  bzip2.txt
86  manual.html
87  manual.pdf
88  manual.ps.bz2
89  manual.xml
90
91
92 [FILE:4270:patches/patch-Makefile]
93 --- Makefile.orig       2010-09-10 22:46:02 UTC
94 +++ Makefile
95 @@ -15,13 +15,22 @@
96  SHELL=/bin/sh
97  
98  # To assist in cross-compiling
99 -CC=gcc
100 +CC?=gcc
101  AR=ar
102  RANLIB=ranlib
103 -LDFLAGS=
104  
105  BIGFILES=-D_FILE_OFFSET_BITS=64
106 -CFLAGS=-Wall -Winline -O2 -g $(BIGFILES)
107 +CFLAGS?=-O2
108 +CFLAGS+=-Wall -Winline -fomit-frame-pointer -fno-strength-reduce $(BIGFILES)
109 +SOFLAGS=-fPIC -fpic -DPIC
110 +
111 +.if "${OPSYS}" == "Darwin"
112 +MYLIBRARY=     libbz2.1.dylib
113 +MYLIBLINK=     libbz2.dylib
114 +.else
115 +MYLIBRARY=     libbz2.so.1
116 +MYLIBLINK=     libbz2.so
117 +.endif
118  
119  # Where you want it installed when you do 'make install'
120  PREFIX=/usr/local
121 @@ -35,22 +44,33 @@
122        decompress.o \
123        bzlib.o
124  
125 -all: libbz2.a bzip2 bzip2recover test
126 +SO_OBJS= blocksort.so  \
127 +      huffman.so    \
128 +      crctable.so   \
129 +      randtable.so  \
130 +      compress.so   \
131 +      decompress.so \
132 +      bzlib.so
133  
134 -bzip2: libbz2.a bzip2.o
135 -       $(CC) $(CFLAGS) $(LDFLAGS) -o bzip2 bzip2.o -L. -lbz2
136 +all: ${MYLIBRARY} libbz2.a bzip2 bzip2recover test
137 +
138 +bzip2: ${MYLIBRARY} libbz2.a bzip2.o
139 +       $(CC) $(CFLAGS) $(LDFLAGS) -o bzip2 bzip2.o libbz2.a
140  
141  bzip2recover: bzip2recover.o
142         $(CC) $(CFLAGS) $(LDFLAGS) -o bzip2recover bzip2recover.o
143  
144  libbz2.a: $(OBJS)
145         rm -f libbz2.a
146 -       $(AR) cq libbz2.a $(OBJS)
147 -       @if ( test -f $(RANLIB) -o -f /usr/bin/ranlib -o \
148 -               -f /bin/ranlib -o -f /usr/ccs/bin/ranlib ) ; then \
149 -               echo $(RANLIB) libbz2.a ; \
150 -               $(RANLIB) libbz2.a ; \
151 -       fi
152 +       $(AR) -rcs libbz2.a $(OBJS)
153 +
154 +libbz2.so.1: $(SO_OBJS)
155 +       $(CC) $(LDFLAGS) -shared -Wl,-soname -Wl,libbz2.so.1 -o libbz2.so.1 $(SO_OBJS)
156 +       ln -sf libbz2.so.1 libbz2.so
157 +
158 +libbz2.1.dylib: $(SO_OBJS)
159 +       $(CC) $(LDFLAGS) -dynamiclib -o ${.TARGET} -install_name $(PREFIX)/lib/${.TARGET} -Wl,-single_module $(SO_OBJS)
160 +       ln -sf ${.TARGET} libbz2.dylib
161  
162  check: test
163  test: bzip2
164 @@ -69,7 +89,34 @@
165         cmp sample3.tst sample3.ref
166         @cat words3
167  
168 -install: bzip2 bzip2recover
169 +install:
170 +       mkdir -p $(DESTDIR)$(PREFIX)/bin \
171 +               $(DESTDIR)$(PREFIX)/lib \
172 +               $(DESTDIR)$(PREFIX)/include \
173 +               $(DESTDIR)$(PREFIX)/share/doc/bzip2 \
174 +               $(DESTDIR)$(MANPREFIX)/man/man1
175 +       $(BSD_INSTALL_PROGRAM) bzip2 bzip2recover $(DESTDIR)$(PREFIX)/bin
176 +       $(BSD_INSTALL_SCRIPT) bzgrep bzmore $(DESTDIR)$(PREFIX)/bin
177 +       $(BSD_INSTALL_DATA) bzlib.h $(DESTDIR)$(PREFIX)/include
178 +       $(BSD_INSTALL_DATA) libbz2.a $(DESTDIR)$(PREFIX)/lib
179 +       $(BSD_INSTALL_LIB) $(MYLIBRARY) $(DESTDIR)$(PREFIX)/lib
180 +       $(BSD_INSTALL_MAN) bzip2.1 bzgrep.1 bzmore.1 $(DESTDIR)$(MANPREFIX)/man/man1
181 +       ln -sf bzmore $(DESTDIR)$(PREFIX)/bin/bzless
182 +       ln -sf $(MYLIBRARY) $(DESTDIR)$(PREFIX)/lib/$(MYLIBLINK)
183 +.for nf in bunzip2 bzcat bz2cat
184 +       ln -sf bzip2 $(DESTDIR)$(PREFIX)/bin/$(nf)
185 +       ln -sf bzip2.1 $(DESTDIR)$(MANPREFIX)/man/man1/$(nf).1
186 +.endfor
187 +.for nf in bzegrep bzfgrep
188 +       ln -sf bzgrep $(DESTDIR)$(PREFIX)/bin/$(nf)
189 +       ln -sf bzgrep.1 $(DESTDIR)$(MANPREFIX)/man/man1/$(nf).1
190 +.endfor
191 +       ln -sf bzip2.1 $(DESTDIR)$(MANPREFIX)/man/man1/bzip2recover.1
192 +       ln -sf bzmore.1 $(DESTDIR)$(MANPREFIX)/man/man1/bzless.1
193 +       $(BSD_INSTALL_DATA) manual* bzip2.txt $(DESTDIR)$(PREFIX)/share/doc/bzip2/
194 +       ./bzip2 -f $(DESTDIR)$(PREFIX)/share/doc/bzip2/manual.ps
195 +
196 +install-disable: bzip2 bzip2recover
197         if ( test ! -d $(PREFIX)/bin ) ; then mkdir -p $(PREFIX)/bin ; fi
198         if ( test ! -d $(PREFIX)/lib ) ; then mkdir -p $(PREFIX)/lib ; fi
199         if ( test ! -d $(PREFIX)/man ) ; then mkdir -p $(PREFIX)/man ; fi
200 @@ -109,10 +156,26 @@
201         echo ".so man1/bzdiff.1" > $(PREFIX)/man/man1/bzcmp.1
202  
203  clean: 
204 -       rm -f *.o libbz2.a bzip2 bzip2recover \
205 +       rm -f *.o *.so libbz2.a ${MYLIBRARY} bzip2 bzip2recover \
206         sample1.rb2 sample2.rb2 sample3.rb2 \
207         sample1.tst sample2.tst sample3.tst
208  
209 +blocksort.so: blocksort.c
210 +       @cat words0
211 +       $(CC) $(CFLAGS) $(SOFLAGS) -c blocksort.c -o blocksort.so
212 +huffman.so: huffman.c
213 +       $(CC) $(CFLAGS) $(SOFLAGS) -c huffman.c -o huffman.so
214 +crctable.so: crctable.c
215 +       $(CC) $(CFLAGS) $(SOFLAGS) -c crctable.c -o crctable.so
216 +randtable.so: randtable.c
217 +       $(CC) $(CFLAGS) $(SOFLAGS) -c randtable.c -o randtable.so
218 +compress.so: compress.c
219 +       $(CC) $(CFLAGS) $(SOFLAGS) -c compress.c -o compress.so
220 +decompress.so: decompress.c
221 +       $(CC) $(CFLAGS) $(SOFLAGS) -c decompress.c -o decompress.so
222 +bzlib.so: bzlib.c
223 +       $(CC) $(CFLAGS) $(SOFLAGS) -c bzlib.c -o bzlib.so
224 +
225  blocksort.o: blocksort.c
226         @cat words0
227         $(CC) $(CFLAGS) -c blocksort.c
228