source: scripts/untested/blfs-scripts/blfs-mas.sh@ 9b5d6cdc

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 9b5d6cdc 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### mas ###
4
5cd ${SRC}
6LOG=mas-blfs.log
7
8SELF=`basename ${0}`
9set_buildenv
10set_libdirname
11setup_multiarch
12if [ ! "${libdirname}" = "lib" ]; then
13 extra_conf="--libdir=/usr/${libdirname}"
14fi
15
16unpack_tarball mas-${MAS_VER}
17cd ${PKGDIR}
18
19apply_patch mas-cvs-add_amd64
20
21max_log_init mas ${MAS_VER} "blfs (shared)" ${CONFLOGS} ${LOG}
22
23# Adjust config/host.def to install to /usr and to use standard
24# installation
25cat >> config/host.def <<EOF
26#define ProjectRoot /usr
27#define UsesSeparateInstallHierarchy NO
28EOF
29
30# use previously installed fftw2 libs
31sed -i 's@\(HasFFTW\).*@\1 YES@g' config/host.def
32
33imake -I./config \
34 >> ${LOGFILE} 2>&1 &&
35echo " o Configure OK" &&
36
37min_log_init ${BUILDLOGS} &&
38make \
39CC="${CC-gcc} ${ARCH_CFLAGS} ${TGT_CFLAGS}" \
40CXX="${CXX-g++} ${ARCH_CFLAGS} ${TGT_CFLAGS}" \
41World \
42 >> ${LOGFILE} 2>&1 &&
43echo " o Build OK" &&
44
45min_log_init ${INSTLOGS} &&
46make install \
47 >> ${LOGFILE} 2>&1 &&
48echo " o ALL OK" || barf
49
50# for some reason, mas-config and mas-launch are missing the #! line
51
52if [ "Y" = "${MULTIARCH}" ]; then
53 use_wrapper /usr/bin/{masmkmf,mas-config,mas-launch}
54fi
55
56cd ${SRC}
57# Install libmas codec
58unpack_tarball mas-codec_mp1a_mad-${MAS_MAD_CODEC_VER}
59
60cd ${PKGDIR}
61mkdir -p build/lib
62masmkmf -a
63make \
64CC="${CC-gcc} ${ARCH_CFLAGS} ${TGT_CFLAGS}" \
65make install
66
Note: See TracBrowser for help on using the repository browser.