ports

recipes for building multiple softwares
git clone git://z3bra.org/ports
Log | Files | Refs

commit 6e127601add0e7decfa7a2e5c5960e67fd3cc14d
parent 0809cf2e11a668b8933f6881dce73ae9c647c127
Author: z3bra <willyatmailoodotorg>
Date:   Fri Jan  8 20:26:52 2016

bzip2: for great compressions

Diffstat:
 bzip2/makeme                  | 15 ++++++++++++-
 bzip2/patches/000-mandir.diff | 56 ++++++++++++++++++++++++++++++++++++++++++++-
 2 files changed, 71 insertions(+), 0 deletions(-)

diff --git a/bzip2/makeme b/bzip2/makeme @@ -0,0 +1,15 @@ +name=bzip2 +version=1.0.6 +source=http://bzip.org/$version/$name-$version.tar.gz + +package() { + curl -# $source | tar xz + cd $name-$version + + cat ../patches/*.diff | patch -Np1 + make CC="$CC" + make PREFIX=$WORKDIR/$name install + + cd .. + rm -rf $name-$version +}+ \ No newline at end of file diff --git a/bzip2/patches/000-mandir.diff b/bzip2/patches/000-mandir.diff @@ -0,0 +1,56 @@ +diff -urN a/Makefile b/Makefile +--- a/Makefile 2010-09-11 00:46:02.000000000 +0200 ++++ b/Makefile 2016-01-08 20:13:22.865349354 +0100 +@@ -25,6 +25,7 @@ + + # Where you want it installed when you do 'make install' + PREFIX=/usr/local ++MANDIR=$(PREFIX)/share/man + + + OBJS= blocksort.o \ +@@ -72,8 +73,8 @@ + install: bzip2 bzip2recover + if ( test ! -d $(PREFIX)/bin ) ; then mkdir -p $(PREFIX)/bin ; fi + if ( test ! -d $(PREFIX)/lib ) ; then mkdir -p $(PREFIX)/lib ; fi +- if ( test ! -d $(PREFIX)/man ) ; then mkdir -p $(PREFIX)/man ; fi +- if ( test ! -d $(PREFIX)/man/man1 ) ; then mkdir -p $(PREFIX)/man/man1 ; fi ++ if ( test ! -d $(MANDIR) ) ; then mkdir -p $(MANDIR) ; fi ++ if ( test ! -d $(MANDIR)/man1 ) ; then mkdir -p $(MANDIR)/man1 ; fi + if ( test ! -d $(PREFIX)/include ) ; then mkdir -p $(PREFIX)/include ; fi + cp -f bzip2 $(PREFIX)/bin/bzip2 + cp -f bzip2 $(PREFIX)/bin/bunzip2 +@@ -83,8 +84,8 @@ + chmod a+x $(PREFIX)/bin/bunzip2 + chmod a+x $(PREFIX)/bin/bzcat + chmod a+x $(PREFIX)/bin/bzip2recover +- cp -f bzip2.1 $(PREFIX)/man/man1 +- chmod a+r $(PREFIX)/man/man1/bzip2.1 ++ cp -f bzip2.1 $(MANDIR)/man1 ++ chmod a+r $(MANDIR)/man1/bzip2.1 + cp -f bzlib.h $(PREFIX)/include + chmod a+r $(PREFIX)/include/bzlib.h + cp -f libbz2.a $(PREFIX)/lib +@@ -99,14 +100,14 @@ + cp -f bzdiff $(PREFIX)/bin/bzdiff + ln -s -f $(PREFIX)/bin/bzdiff $(PREFIX)/bin/bzcmp + chmod a+x $(PREFIX)/bin/bzdiff +- cp -f bzgrep.1 bzmore.1 bzdiff.1 $(PREFIX)/man/man1 +- chmod a+r $(PREFIX)/man/man1/bzgrep.1 +- chmod a+r $(PREFIX)/man/man1/bzmore.1 +- chmod a+r $(PREFIX)/man/man1/bzdiff.1 +- echo ".so man1/bzgrep.1" > $(PREFIX)/man/man1/bzegrep.1 +- echo ".so man1/bzgrep.1" > $(PREFIX)/man/man1/bzfgrep.1 +- echo ".so man1/bzmore.1" > $(PREFIX)/man/man1/bzless.1 +- echo ".so man1/bzdiff.1" > $(PREFIX)/man/man1/bzcmp.1 ++ cp -f bzgrep.1 bzmore.1 bzdiff.1 $(MANDIR)/man1 ++ chmod a+r $(MANDIR)/man1/bzgrep.1 ++ chmod a+r $(MANDIR)/man1/bzmore.1 ++ chmod a+r $(MANDIR)/man1/bzdiff.1 ++ echo ".so man1/bzgrep.1" > $(MANDIR)/man1/bzegrep.1 ++ echo ".so man1/bzgrep.1" > $(MANDIR)/man1/bzfgrep.1 ++ echo ".so man1/bzmore.1" > $(MANDIR)/man1/bzless.1 ++ echo ".so man1/bzdiff.1" > $(MANDIR)/man1/bzcmp.1 + + clean: + rm -f *.o libbz2.a bzip2 bzip2recover \