ports

morpheus ports
git clone git://git.2f30.org/ports
Log | Files | Refs | LICENSE

commit 270d930b49e2dbde08104d8cbb9e4c0f94cdfbc9
parent afb82a72f87b0c4f3f93f11c8e781491a8451d36
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Fri, 23 May 2014 16:30:21 +0200

sexify bzip2

Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>

Diffstat:
Mbzip2/bzip2.mk | 59++++++++++++++++++++++++++++++++++++++++++++---------------
1 file changed, 44 insertions(+), 15 deletions(-)

diff --git a/bzip2/bzip2.mk b/bzip2/bzip2.mk @@ -1,15 +1,44 @@ -TARG = bzip2 -INSTALL_BIN = bzip2 bzip2recover bzgrep bzmore bzdiff -INSTALL_MAN1 = `ls -1 *.1` - -<$mkbuild/mk.common - -bzip2:QV: - # borrowed from Crux linux. - patch --silent --dry-run -N -p1 < ../bzip2.patch && \ - patch -Np1 < ../bzip2.patch - # make everything except doing tests. - # NOTE: don't use DESTDIR, it's not used in the Makefile. - make libbz2.a bzip2 bzip2recover -j$nprocs \ - CC="${CC} -static" LDFLAGS="$LDFLAGS" AR="${AR}" \ - RANLIB="${RANLIB}" PREFIX="$prefix" +<../v.mk + +BIN = \ + bzip2 \ + bzip2recover + +LIB = libbz2.a + +libbz2_a_OBJ = \ + blocksort.o \ + huffman.o \ + crctable.o \ + randtable.o \ + compress.o \ + decompress.o \ + bzlib.o +libbz2_a_LDFLAGS = + +bzip2_OBJ = bzip2.o +bzip2_LDFLAGS = -L. -lbz2 + +bzip2recover_OBJ = bzip2recover.o +bzip2recover_LDFLAGS = + +INSTALL_BIN = \ + bzip2 \ + bzip2recover \ + bzless \ + bzmore \ + bzdiff \ + bzgrep \ + bzcmp + +INSTALL_MAN1 = `{ ls *.1 } + +LOCAL_CFLAGS = \ + -D_FILE_OFFSET_BITS=64 \ + -ansi -I. +LOCAL_LDFLAGS = -L. + +<$mkbuild/mk.default + +bzip2: $LIB +