source: scripts_home/scripts/untested/blfs-scripts/blfs-xmms.sh@ 1c9c5c3

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.5 KB
Line 
1#!/bin/bash
2
3### xmms ###
4
5cd ${SRC}
6LOG=xmms-blfs.log
7
8SELF=`basename ${0}`
9set_buildenv
10set_libdirname
11setup_multiarch
12if [ ! "${libdirname}" = "lib" ]; then
13 extra_conf="--libdir=/usr/${libdirname}"
14 extra_conf="${extra_conf} --with-ogg-libraries=/usr/${libdirname}"
15 extra_conf="${extra_conf} --with-vorbis-libraries=/usr/${libdirname}"
16fi
17
18unpack_tarball xmms-${XMMS_VER}
19cd ${PKGDIR}
20
21#case ${TGT_ARCH} in
22# x86_64 )
23# if [ "${BUILDENV}" = "32" ]; then
24# extra_conf="${extra_conf} --enable-simd"
25# fi
26# ;;
27# i?86 ) extra_conf="${extra_conf} --enable-simd" ;;
28#esac
29
30if [ ! "${libdirname}" = "lib" ]; then
31 # configure hack so we set libtool lib search path to look in
32 # */${libdirname}
33 sed -i -e "/^sys_lib_\(\|dl\)search_path_spec/s@/lib@/${libdirname}@g" \
34 configure
35fi
36
37max_log_init xmms ${XMMS_VER} "blfs (shared)" ${CONFLOGS} ${LOG}
38CC="${CC-gcc} ${ARCH_CFLAGS}" \
39CXX="${CXX-g++} ${ARCH_CFLAGS}" \
40CFLAGS="-O2 -pipe ${TGT_CFLAGS}" \
41CXXFLAGS="-O2 -pipe ${TGT_CFLAGS}" \
42./configure --prefix=/usr ${extra_conf} \
43 --mandir=/usr/share/man \
44 --infodir=/usr/share/info \
45 >> ${LOGFILE} 2>&1 &&
46echo " o Configure OK" &&
47# Use only on 32bit
48# --enable-simd
49
50min_log_init ${BUILDLOGS} &&
51make \
52 >> ${LOGFILE} 2>&1 &&
53echo " o Build OK" &&
54
55min_log_init ${INSTLOGS} &&
56make install \
57 >> ${LOGFILE} 2>&1 &&
58echo " o ALL OK" || barf
59
60if [ "Y" = "${MULTIARCH}" ]; then
61 # keep 32bit xmms (why, I dont know ;-) )
62 use_wrapper /usr/bin/{xmms,xmms-config}
63fi
64
Note: See TracBrowser for help on using the repository browser.