clfs-1.2
clfs-2.1
clfs-3.0.0-systemd
clfs-3.0.0-sysvinit
systemd
sysvinit
Last change
on this file since 1c9c5c3 was 1c9c5c3, checked in by Jim Gifford <clfs@…>, 19 years ago |
r624@server (orig r622): jim | 2005-10-31 12:40:28 -0800
Rearranging Archive
|
-
Property mode
set to
100755
|
File size:
1.2 KB
|
Line | |
---|
1 | #!/bin/bash
|
---|
2 |
|
---|
3 | ### flac ###
|
---|
4 |
|
---|
5 | cd ${SRC}
|
---|
6 | LOG=flac-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 | unpack_tarball flac-${FLAC_VER}
|
---|
17 | cd ${PKGDIR}
|
---|
18 |
|
---|
19 | case ${TGT_ARCH} in
|
---|
20 | x86_64 | i686 ) extra_conf="${extra_conf} --enable-sse" ;;
|
---|
21 | esac
|
---|
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
|
---|
34 | apply_patch flac-1.1.2-fixes
|
---|
35 |
|
---|
36 | max_log_init flac ${FLAC_VER} "blfs (shared)" ${CONFLOGS} ${LOG}
|
---|
37 | CC="${CC-gcc} ${ARCH_CFLAGS}" \
|
---|
38 | CXX="${CXX-g++} ${ARCH_CFLAGS}" \
|
---|
39 | CFLAGS="-O2 -pipe ${TGT_CFLAGS}" \
|
---|
40 | CXXFLAGS="-O2 -pipe ${TGT_CFLAGS}" \
|
---|
41 | LIBS="-lm" ./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.