| 1 | NAME = pbzip2 |
|---|
| 2 | VERSION = 1.1.6 |
|---|
| 3 | CATEGORIES = utils |
|---|
| 4 | GARTYPE = v2 |
|---|
| 5 | |
|---|
| 6 | DESCRIPTION = Parallel BZIP2 Data Compression Software |
|---|
| 7 | define BLURB |
|---|
| 8 | PBZIP2 is a parallel implementation of the bzip2 block-sorting file |
|---|
| 9 | compressor that uses pthreads and achieves near-linear speedup on SMP |
|---|
| 10 | machines. The output of this version is fully compatible with |
|---|
| 11 | bzip2 v1.0.2 or newer |
|---|
| 12 | endef |
|---|
| 13 | |
|---|
| 14 | MASTER_SITES = http://compression.ca/pbzip2/ |
|---|
| 15 | DISTFILES = $(NAME)-$(VERSION).tar.gz |
|---|
| 16 | |
|---|
| 17 | PACKAGES += CSWpbzip2 |
|---|
| 18 | CATALOGNAME_CSWpbzip2 = pbzip2 |
|---|
| 19 | SPKG_DESC_CSWpbzip2 = Parallel BZIP2 data compression software |
|---|
| 20 | RUNTIME_DEP_PKGS_CSWpbzip2 += CSWlibbz2-1-0 |
|---|
| 21 | |
|---|
| 22 | # Since there is no configure script, this is intentionally left empty |
|---|
| 23 | CONFIGURE_SCRIPTS = |
|---|
| 24 | |
|---|
| 25 | # There is no testsuite |
|---|
| 26 | TEST_SCRIPTS = |
|---|
| 27 | |
|---|
| 28 | INSTALL_SCRIPTS = custom |
|---|
| 29 | |
|---|
| 30 | # After some testing. Using a special ISA modulation does *not* speed |
|---|
| 31 | # up bzip2. Therefore I will just stick to a regular 32bit build here. |
|---|
| 32 | |
|---|
| 33 | include gar/category.mk |
|---|
| 34 | |
|---|
| 35 | pre-build-modulated: |
|---|
| 36 | gsed -i'' 's,-lpthread,-norunpath -lpthread,g;s,-pthread,-I$(includedir) -L$(libdir),g;s,g++,$(CXX),;s,-O2,-fast $(filter-out -xnorunpath,$(CFLAGS)),' $(WORKSRC)/Makefile |
|---|
| 37 | |
|---|
| 38 | install-custom: |
|---|
| 39 | [ ! -d "$(DESTDIR)$(mandir)/man1" ] && \ |
|---|
| 40 | ginstall -d $(DESTDIR)$(mandir)/man1 |
|---|
| 41 | ginstall -m 0644 $(WORKSRC)/pbzip2.1 $(DESTDIR)$(mandir)/man1 |
|---|
| 42 | [ ! -d "$(DESTDIR)$(bindir)" ] && \ |
|---|
| 43 | ginstall -d $(DESTDIR)$(bindir) |
|---|
| 44 | ginstall -m 0755 $(WORKSRC)/$(NAME) $(DESTDIR)$(bindir) |
|---|
| 45 | ln -s -f $(bindir)/$(NAME) $(DESTDIR)$(bindir)/pbunzip2 |
|---|
| 46 | ln -s -f $(bindir)/$(NAME) $(DESTDIR)$(bindir)/pbzcat |
|---|