source: scripts/scripts/untested/blfs-scripts/blfs-ncompress.sh @ 7f65c0e

clfs-1.2clfs-2.1clfs-3.0.0-systemdclfs-3.0.0-sysvinitsystemdsysvinit
Last change on this file since 7f65c0e was 7f65c0e, checked in by Jim Gifford <clfs@…>, 18 years ago

r625@server (orig r623): jim | 2005-10-31 12:43:24 -0800
Final Move

  • Property mode set to 100755
File size: 879 bytes
Line 
1#!/bin/bash
2#
3# ncompress
4#
5
6cd ${SRC}
7LOG=blfs-ncompress.log
8
9set_libdirname
10setup_multiarch
11
12unpack_tarball ncompress-${NCOMPRESS_VER} &&
13cd ${PKGDIR}
14
15case ${NCOMPRESS_VER} in
16   4.2.4 )
17      apply_patch ncompress-4.2.4-gcc34
18      apply_patch ncompress_4.2.4-15
19   ;;
20   * )
21      echo "*** Please check if ncompress ${NCOMPRESS_VER} requires patching ***"
22      echo "*** then please update this script (and send patch)      ***"
23      exit 1
24   ;;
25esac
26
27max_log_init ncompress ${NCOMPRESS_VER} "blfs (shared)" ${BUILDLOGS} ${LOG}
28
29sed -e "s@options= @options= -O3 ${TGT_CFLAGS} @" \
30    -e "s@CC=cc@CC=${CC-gcc} ${ARCH_CFLAGS}@" \
31        Makefile.def > Makefile
32
33make \
34  >> ${LOGFILE} 2>&1 &&
35echo " o Build OK" || barf
36
37if [ -f /usr/bin/compress ]; then rm -f /usr/bin/compress ; fi
38rm -f /usr/bin/uncompress
39cp compress /usr/bin/compress
40ln -sf compress /usr/bin/uncompress
41
Note: See TracBrowser for help on using the repository browser.