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
|
Rev | Line | |
---|
[617118d] | 1 | #!/bin/bash
|
---|
| 2 |
|
---|
| 3 | ### libmad ###
|
---|
| 4 |
|
---|
| 5 | cd ${SRC}
|
---|
| 6 | LOG=libmad-blfs.log
|
---|
| 7 |
|
---|
| 8 | SELF=`basename ${0}`
|
---|
| 9 | set_buildenv
|
---|
| 10 | set_libdirname
|
---|
| 11 | setup_multiarch
|
---|
| 12 | if [ ! "${libdirname}" = "lib" ]; then
|
---|
| 13 | extra_conf="--libdir=/usr/${libdirname}"
|
---|
| 14 | fi
|
---|
| 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
|
---|
| 21 | if [ ! -z ${ALT_TGT} ]; then
|
---|
| 22 | extra_conf="${extra_conf} --host=${ALT_TGT}"
|
---|
| 23 | extra_conf="${extra_conf} --build=${ALT_TGT}"
|
---|
| 24 | fi
|
---|
| 25 |
|
---|
| 26 | # TODO: this will have to be set on 64bit machines regardless
|
---|
| 27 | # if it is biarch or not...
|
---|
| 28 | if [ "64" = "${BUILDENV}" ] ; then
|
---|
| 29 | extra_conf="${extra_conf} --enable-fpm=64bit"
|
---|
| 30 | fi
|
---|
| 31 | #====================================================
|
---|
| 32 |
|
---|
| 33 | unpack_tarball libmad-${LIBMAD_VER}
|
---|
| 34 | cd ${PKGDIR}
|
---|
| 35 |
|
---|
| 36 | max_log_init libmad ${LIBMAD_VER} "blfs (shared)" ${CONFLOGS} ${LOG}
|
---|
| 37 | CC="${CC-gcc} ${ARCH_CFLAGS}" \
|
---|
| 38 | CXX="${CXX-g++} ${ARCH_CFLAGS}" \
|
---|
| 39 | CFLAGS="${TGT_CFLAGS}" \
|
---|
| 40 | CXXFLAGS="${TGT_CFLAGS}" \
|
---|
| 41 | ./configure --prefix=/usr ${extra_conf} \
|
---|
| 42 | >> ${LOGFILE} 2>&1 &&
|
---|
| 43 | echo " o Configure OK" &&
|
---|
| 44 |
|
---|
| 45 | min_log_init ${BUILDLOGS} &&
|
---|
| 46 | make \
|
---|
| 47 | >> ${LOGFILE} 2>&1 &&
|
---|
| 48 | echo " o Build OK" &&
|
---|
| 49 |
|
---|
| 50 | min_log_init ${INSTLOGS} &&
|
---|
| 51 | make install \
|
---|
| 52 | >> ${LOGFILE} 2>&1 &&
|
---|
| 53 | echo " o ALL OK" || barf
|
---|
| 54 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.