1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
8 SDESC[standard]= Block-sorting file compressor
13 SITES[main]= https://sourceware.org/pub/bzip2/
14 DISTFILE[1]= bzip2-1.0.8.tar.gz:main
16 SPKGS[standard]= complete
23 OPTIONS_AVAILABLE= none
24 OPTIONS_STANDARD= none
28 LICENSE= BSD4CLAUSE:primary
29 LICENSE_FILE= BSD4CLAUSE:{{WRKSRC}}/LICENSE
33 FPC_EQUIVALENT= archivers/bzip2
35 MAKE_ARGS= PREFIX={{PREFIX}}
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.
45 This package contains the shared bzip2 shared library.
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.
54 ab5a03176ee106d3f0fa90e381da478ddae405918153cca248e682cd0c4a2269 810029 bzip2-1.0.8.tar.gz
57 [FILE:16:manifests/plist.primary]
61 [FILE:42:manifests/plist.dev]
68 [FILE:92:manifests/plist.tools]
82 [FILE:153:manifests/plist.man]
96 [FILE:80:manifests/plist.docs]
105 [FILE:4270:patches/patch-Makefile]
106 --- Makefile.orig 2010-09-10 22:46:02 UTC
111 # To assist in cross-compiling
118 BIGFILES=-D_FILE_OFFSET_BITS=64
119 -CFLAGS=-Wall -Winline -O2 -g $(BIGFILES)
121 +CFLAGS+=-Wall -Winline -fomit-frame-pointer -fno-strength-reduce $(BIGFILES)
122 +SOFLAGS=-fPIC -fpic -DPIC
124 +.if "${OPSYS}" == "Darwin"
125 +MYLIBRARY= libbz2.1.dylib
126 +MYLIBLINK= libbz2.dylib
128 +MYLIBRARY= libbz2.so.1
129 +MYLIBLINK= libbz2.so
132 # Where you want it installed when you do 'make install'
138 -all: libbz2.a bzip2 bzip2recover test
139 +SO_OBJS= blocksort.so \
147 -bzip2: libbz2.a bzip2.o
148 - $(CC) $(CFLAGS) $(LDFLAGS) -o bzip2 bzip2.o -L. -lbz2
149 +all: ${MYLIBRARY} libbz2.a bzip2 bzip2recover test
151 +bzip2: ${MYLIBRARY} libbz2.a bzip2.o
152 + $(CC) $(CFLAGS) $(LDFLAGS) -o bzip2 bzip2.o libbz2.a
154 bzip2recover: bzip2recover.o
155 $(CC) $(CFLAGS) $(LDFLAGS) -o bzip2recover bzip2recover.o
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 ; \
165 + $(AR) -rcs libbz2.a $(OBJS)
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
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
178 cmp sample3.tst sample3.ref
181 -install: bzip2 bzip2recover
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
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
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
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
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
222 +blocksort.so: blocksort.c
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
236 + $(CC) $(CFLAGS) $(SOFLAGS) -c bzlib.c -o bzlib.so
238 blocksort.o: blocksort.c
240 $(CC) $(CFLAGS) -c blocksort.c