source: scripts/untested/blfs-scripts/blfs-flac.sh@ b15e4602

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since b15e4602 was 1c379e4, checked in by Jim Gifford <clfs@…>, 19 years ago

r589@server (orig r587): ryan | 2005-08-05 22:57:16 -0700
Add a pile of new scripts, and add -32 and -64 symlinks



  • Property mode set to 100755
File size: 1.2 KB
RevLine 
[1c379e4]1#!/bin/bash
2
3### flac ###
4
5cd ${SRC}
6LOG=flac-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 flac-${FLAC_VER}
17cd ${PKGDIR}
18
19case ${TGT_ARCH} in
20 x86_64 | i686 ) extra_conf="${extra_conf} --enable-sse" ;;
21esac
22
23# Blatantly stolen from gentoo
24#apply_patch flac-1.1.2-xmms-config
25#apply_patch flac-1.1.2-m4
26#apply_patch flac-1.1.2-libtool
27#apply_patch flac-1.1.2-gas -Np0
28#apply_patch flac-1.1.2-makefile -Np0
29#apply_patch flac-1.1.2-noogg -Np0
30#./autogen
31#libtoolize --copy --force
32
33# This patch is above patches applied and autogen + libtoolize run
34apply_patch flac-1.1.2-fixes
35
36max_log_init flac ${FLAC_VER} "blfs (shared)" ${CONFLOGS} ${LOG}
37CC="${CC-gcc} ${ARCH_CFLAGS}" \
38CXX="${CXX-g++} ${ARCH_CFLAGS}" \
39CFLAGS="-O2 -pipe ${TGT_CFLAGS}" \
40CXXFLAGS="-O2 -pipe ${TGT_CFLAGS}" \
41LIBS="-lm" ./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.