source: scripts/scripts/untested/blfs-scripts/blfs-xine-lib.sh @ 0b402ff

clfs-1.2clfs-2.1clfs-3.0.0-systemdclfs-3.0.0-sysvinitsystemdsysvinit
Last change on this file since 0b402ff was 0b402ff, checked in by Jim Gifford <clfs@…>, 15 years ago

r698@server (orig r696): ryan | 2005-11-13 00:00:47 -0800

r704@rei: lfs | 2005-11-13 19:01:08 +1100
Import updates for untested blfs-scripts



  • Property mode set to 100755
File size: 1.5 KB
Line 
1#!/bin/bash
2
3### xine-lib ###
4
5cd ${SRC}
6LOG=xine-lib-blfs.log
7
8SELF=`basename ${0}`
9set_buildenv
10set_libdirname
11setup_multiarch
12if [ ! "${libdirname}" = "lib" ]; then
13   extra_conf="--libdir=/usr/${libdirname}"
14fi
15
16# Uncomment to use external ffmpeg
17use_external_ffmpeg="Y"
18
19case ${TGT_ARCH} in
20   x86_64 )
21      if [ "${BUILDENV}" = "32" ]; then
22         extra_conf="${extra_conf} --host=${ALT_TGT}"
23         extra_conf="${extra_conf} --build=${ALT_TGT}"
24      fi
25   ;;
26esac
27
28unpack_tarball xine-lib-${XINE_LIB_VER}
29cd ${PKGDIR}
30
31if [ "${use_external_ffmpeg}" = "Y" ]; then
32   extra_conf="${extra_conf} --with-external-ffmpeg"
33fi
34
35if [ "${use_directx}" = "Y" -a "${BUILDENV}" = "32" ]; then
36   extra_conf="${extra_conf} --with-dxheaders=/usr/include/wine/windows"
37   extra_ldflags="-L/usr/lib/wine"
38fi
39
40# Add -m32 to
41max_log_init xine-lib ${XINE_LIB_VER} "blfs (shared)" ${CONFLOGS} ${LOG}
42CC="${CC-gcc} ${ARCH_CFLAGS}" \
43CXX="${CXX-g++} ${ARCH_CFLAGS}" \
44CFLAGS="-O3 -pipe ${TGT_CFLAGS}" \
45CXXFLAGS="-O3 -pipe ${TGT_CFLAGS}" \
46LDFLAGS="-L/usr/${libdirname} ${extra_ldflags}" \
47./configure --prefix=/usr ${extra_conf} \
48   --mandir=/usr/share/man \
49   --infodir=/usr/share/info \
50   >> ${LOGFILE} 2>&1 &&
51echo " o Configure OK" &&
52
53min_log_init ${BUILDLOGS} &&
54make ${PMFLAGS} \
55   >> ${LOGFILE} 2>&1 &&
56echo " o Build OK" &&
57
58min_log_init ${INSTLOGS} &&
59make install \
60   >> ${LOGFILE} 2>&1 &&
61echo " o ALL OK" || barf
62
63if [ "${MULTIARCH}" = "Y" ]; then
64   use_wrapper /usr/bin/xine-config
65fi
Note: See TracBrowser for help on using the repository browser.