1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
7 SDESC[standard]= Block-sorting file compressor
12 SITES[main]= https://sourceware.org/pub/bzip2/
13 DISTFILE[1]= bzip2-1.0.8.tar.gz:main
15 SPKGS[standard]= complete
20 OPTIONS_AVAILABLE= none
21 OPTIONS_STANDARD= none
25 LICENSE= BSD4CLAUSE:static
26 LICENSE_FILE= BSD4CLAUSE:{{WRKSRC}}/LICENSE
30 FPC_EQUIVALENT= archivers/bzip2
32 MAKE_ARGS= PREFIX={{PREFIX}}
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
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.
47 ab5a03176ee106d3f0fa90e381da478ddae405918153cca248e682cd0c4a2269 810029 bzip2-1.0.8.tar.gz
50 [FILE:29:manifests/plist.shared]
56 [FILE:274:manifests/plist.static]
83 [FILE:80:manifests/plist.docs]
92 [FILE:4270:patches/patch-Makefile]
93 --- Makefile.orig 2010-09-10 22:46:02 UTC
98 # To assist in cross-compiling
105 BIGFILES=-D_FILE_OFFSET_BITS=64
106 -CFLAGS=-Wall -Winline -O2 -g $(BIGFILES)
108 +CFLAGS+=-Wall -Winline -fomit-frame-pointer -fno-strength-reduce $(BIGFILES)
109 +SOFLAGS=-fPIC -fpic -DPIC
111 +.if "${OPSYS}" == "Darwin"
112 +MYLIBRARY= libbz2.1.dylib
113 +MYLIBLINK= libbz2.dylib
115 +MYLIBRARY= libbz2.so.1
116 +MYLIBLINK= libbz2.so
119 # Where you want it installed when you do 'make install'
125 -all: libbz2.a bzip2 bzip2recover test
126 +SO_OBJS= blocksort.so \
134 -bzip2: libbz2.a bzip2.o
135 - $(CC) $(CFLAGS) $(LDFLAGS) -o bzip2 bzip2.o -L. -lbz2
136 +all: ${MYLIBRARY} libbz2.a bzip2 bzip2recover test
138 +bzip2: ${MYLIBRARY} libbz2.a bzip2.o
139 + $(CC) $(CFLAGS) $(LDFLAGS) -o bzip2 bzip2.o libbz2.a
141 bzip2recover: bzip2recover.o
142 $(CC) $(CFLAGS) $(LDFLAGS) -o bzip2recover bzip2recover.o
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 ; \
152 + $(AR) -rcs libbz2.a $(OBJS)
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
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
165 cmp sample3.tst sample3.ref
168 -install: bzip2 bzip2recover
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
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
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
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
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
209 +blocksort.so: blocksort.c
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
223 + $(CC) $(CFLAGS) $(SOFLAGS) -c bzlib.c -o bzlib.so
225 blocksort.o: blocksort.c
227 $(CC) $(CFLAGS) -c blocksort.c