source: scripts/untested/blfs-scripts/blfs-libmad.sh@ e5345f18

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since e5345f18 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
RevLine 
[617118d]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.