source: scripts/untested/blfs-scripts/blfs-xmms.sh@ 8a3554d

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

r595@server (orig r593): ryan | 2005-08-05 23:08:26 -0700
Add hack to change sys_lib_dlsearch_path_spec and sys_lib_search_path_spec that
gets passed to libtool via configure so we look in the correct places for libs


Use MULTIARCH instead of BIARCH (duh)



  • 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.