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