clfs-1.2
clfs-2.1
clfs-3.0.0-systemd
clfs-3.0.0-sysvinit
systemd
sysvinit
Last change
on this file since 0b402ff was 0b402ff, checked in by Jim Gifford <clfs@…>, 19 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 |
|
---|
5 | cd ${SRC}
|
---|
6 | LOG=xine-lib-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 | # Uncomment to use external ffmpeg
|
---|
17 | use_external_ffmpeg="Y"
|
---|
18 |
|
---|
19 | case ${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 | ;;
|
---|
26 | esac
|
---|
27 |
|
---|
28 | unpack_tarball xine-lib-${XINE_LIB_VER}
|
---|
29 | cd ${PKGDIR}
|
---|
30 |
|
---|
31 | if [ "${use_external_ffmpeg}" = "Y" ]; then
|
---|
32 | extra_conf="${extra_conf} --with-external-ffmpeg"
|
---|
33 | fi
|
---|
34 |
|
---|
35 | if [ "${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"
|
---|
38 | fi
|
---|
39 |
|
---|
40 | # Add -m32 to
|
---|
41 | max_log_init xine-lib ${XINE_LIB_VER} "blfs (shared)" ${CONFLOGS} ${LOG}
|
---|
42 | CC="${CC-gcc} ${ARCH_CFLAGS}" \
|
---|
43 | CXX="${CXX-g++} ${ARCH_CFLAGS}" \
|
---|
44 | CFLAGS="-O3 -pipe ${TGT_CFLAGS}" \
|
---|
45 | CXXFLAGS="-O3 -pipe ${TGT_CFLAGS}" \
|
---|
46 | LDFLAGS="-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 &&
|
---|
51 | echo " o Configure OK" &&
|
---|
52 |
|
---|
53 | min_log_init ${BUILDLOGS} &&
|
---|
54 | make ${PMFLAGS} \
|
---|
55 | >> ${LOGFILE} 2>&1 &&
|
---|
56 | echo " o Build OK" &&
|
---|
57 |
|
---|
58 | min_log_init ${INSTLOGS} &&
|
---|
59 | make install \
|
---|
60 | >> ${LOGFILE} 2>&1 &&
|
---|
61 | echo " o ALL OK" || barf
|
---|
62 |
|
---|
63 | if [ "${MULTIARCH}" = "Y" ]; then
|
---|
64 | use_wrapper /usr/bin/xine-config
|
---|
65 | fi
|
---|
Note:
See
TracBrowser
for help on using the repository browser.