forked from kiss-community/repo
bzip2: Revert to prior build method
This commit is contained in:
parent
7f982e849b
commit
50df29f275
@ -2,15 +2,19 @@
|
||||
|
||||
make CC="${CC:-cc} $CFLAGS -fPIC $LDFLAGS" -f Makefile-libbz2_so
|
||||
make CC="${CC:-cc} $CFLAGS -fPIC $LDFLAGS" bzip2recover libbz2.a
|
||||
make PREFIX="$1/usr" install
|
||||
|
||||
# Fix nonsensical man page handling.
|
||||
mkdir -p "$1/usr/share"
|
||||
mv -f "$1/usr/man" "$1/usr/share/man"
|
||||
for bin in bzip2-shared bzdiff bzgrep bzip2recover bzmore; do
|
||||
install -Dm755 "$bin" "$1/usr/bin/${bin%%-shared}"
|
||||
done
|
||||
|
||||
# Install the shared library.
|
||||
install -Dm755 libbz2.so.1.0.8 "$1/usr/lib/libbz2.so.1.0.8"
|
||||
install -Dm644 libbz2.a "$1/usr/lib/libbz2.a"
|
||||
install -Dm644 bzip2.1 "$1/usr/share/man/man1/bzip2.1"
|
||||
install -Dm644 bzlib.h "$1/usr/include/bzlib.h"
|
||||
|
||||
for lib in libbz2.so libbz2.so.1 libbz2.so.1.0; do
|
||||
ln -sf libbz2.so.1.0.8 "$1/usr/lib/$lib"
|
||||
done
|
||||
|
||||
ln -sf bzip2 "$1/usr/bin/bunzip2"
|
||||
ln -sf bzip2 "$1/usr/bin/bzcat"
|
||||
|
Loading…
Reference in New Issue
Block a user