source: scripts/untested/blfs-scripts/blfs-libmad.sh @ 617118d

clfs-1.2clfs-2.1clfs-3.0.0-systemdclfs-3.0.0-sysvinitsystemdsysvinit
Last change on this file since 617118d was 617118d, checked in by Jim Gifford <clfs@…>, 18 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### libmad ###
4
5cd ${SRC}
6LOG=libmad-blfs.log
7
8SELF=`basename ${0}`
9set_buildenv
10set_libdirname
11setup_multiarch
12if [ ! "${libdirname}" = "lib" ]; then
13   extra_conf="--libdir=/usr/${libdirname}"
14fi
15
16#====================================================
17# Following 2 if's for biarch predominately...
18# Set the fixed point math routines appropriately
19
20# if ALT_TGT is defined, set --host and --build
21if [ ! -z ${ALT_TGT} ]; then
22   extra_conf="${extra_conf} --host=${ALT_TGT}"
23   extra_conf="${extra_conf} --build=${ALT_TGT}"
24fi
25
26# TODO: this will have to be set on 64bit machines regardless
27#       if it is biarch or not...
28if [ "64" = "${BUILDENV}" ] ; then
29   extra_conf="${extra_conf} --enable-fpm=64bit"
30fi
31#====================================================
32
33unpack_tarball libmad-${LIBMAD_VER}
34cd ${PKGDIR}
35
36max_log_init libmad ${LIBMAD_VER} "blfs (shared)" ${CONFLOGS} ${LOG}
37CC="${CC-gcc} ${ARCH_CFLAGS}" \
38CXX="${CXX-g++} ${ARCH_CFLAGS}" \
39CFLAGS="${TGT_CFLAGS}" \
40CXXFLAGS="${TGT_CFLAGS}" \
41./configure --prefix=/usr ${extra_conf} \
42   >> ${LOGFILE} 2>&1 &&
43echo " o Configure OK" &&
44
45min_log_init ${BUILDLOGS} &&
46make \
47   >> ${LOGFILE} 2>&1 &&
48echo " o Build OK" &&
49
50min_log_init ${INSTLOGS} &&
51make install \
52   >> ${LOGFILE} 2>&1 &&
53echo " o ALL OK" || barf
54
Note: See TracBrowser for help on using the repository browser.