source: scripts/untested/blfs-scripts/blfs-cdparanoia-III.sh@ 66f17d5

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 66f17d5 was 617118d, checked in by Jim Gifford <clfs@…>, 19 years ago

r561@server (orig r559): root | 2005-06-05 02:38:49 -0700
Fixed Directory Structure

  • Property mode set to 100755
File size: 1.3 KB
Line 
1#!/bin/bash
2#
3# cdparanoia-III
4#
5# Dependencies: None
6#
7
8cd ${SRC}
9LOG=blfs-cdparanoia-III.log
10
11SELF=`basename ${0}`
12set_buildenv
13set_libdirname
14setup_multiarch
15if [ ! "${libdirname}" = "lib" ]; then
16 extra_conf="--libdir=/usr/${libdirname}"
17fi
18
19unpack_tarball cdparanoia-III-${CDPARANOIA_VER}.src &&
20cd ${PKGDIR}
21
22# Patching
23
24# Retrieve target_gcc_ver from gcc -v output
25target_gcc_ver=`${CC-gcc} -v 2>&1 | grep " version " | \
26 sed 's@.*version \([0-9.]*\).*@\1@g'`
27
28case ${CDPARANOIA_VER} in
29 alpha9.8 )
30 apply_patch cdparanoia-III-alpha9.8-includes-1
31 case ${target_gcc_ver} in
32 3.4* ) apply_patch cdparanoia-III-alpha9.8-gcc34-1 ;;
33 esac
34 ;;
35 * )
36 echo "*** Please check if cdparanoia ${CDPARANOIA_VER} requires patching ***"
37 echo "*** then please update this script (and send patch) ***"
38 exit 1
39 ;;
40esac
41
42max_log_init cdparanoia ${CDPARANOIA_VER} "blfs (shared)" ${CONFLOGS} ${LOG}
43CC="${CC-gcc} ${ARCH_CFLAGS}" \
44 ./configure --prefix=/usr --host="${TARGET}" ${extra_conf} \
45 >> ${LOGFILE} 2>&1 &&
46echo " o Configure OK" &&
47
48min_log_init ${BUILDLOGS} &&
49make ${PMFLAGS} FLAGS="${TGT_CFLAGS} -fPIC" \
50 >> ${LOGFILE} 2>&1 &&
51echo " o Build OK" &&
52
53min_log_init ${INSTLOGS} &&
54make install \
55 >> ${LOGFILE} 2>&1 &&
56echo " o ALL OK" || barf
57
Note: See TracBrowser for help on using the repository browser.