clfs-1.2
clfs-2.1
clfs-3.0.0-systemd
clfs-3.0.0-sysvinit
systemd
sysvinit
Last change
on this file since 4af6403 was 4af6403, checked in by Jim Gifford <clfs@…>, 19 years ago |
r592@server (orig r590): ryan | 2005-08-05 23:02:02 -0700
Fix wrong tarball name
|
-
Property mode
set to
100755
|
File size:
1.3 KB
|
Line | |
---|
1 | #!/bin/bash
|
---|
2 |
|
---|
3 | ### libmpeg3 ###
|
---|
4 |
|
---|
5 | cd ${SRC}
|
---|
6 | LOG=libmpeg3-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 libmpeg3-${LIBMPEG3_VER}-src
|
---|
17 | cd ${PKGDIR}
|
---|
18 |
|
---|
19 | # Eeeek this is a mess...
|
---|
20 | # Firstly, fix for gcc-3.4
|
---|
21 | apply_patch libmpeg3-1.5.4-gcc34-1
|
---|
22 |
|
---|
23 | # Secondly, we are going to use the system a52dec, so blow that
|
---|
24 | # directory away...
|
---|
25 | rm -rf a52dec-0.7.3
|
---|
26 |
|
---|
27 | # We will also modify the Makefile to adjusting the A52 include search path
|
---|
28 | # enabling shared libmpeg, and also enabling mpeg3split
|
---|
29 | # (parts stolen from gentoo)
|
---|
30 | apply_patch libmpeg3-1.5.4-shared_libmpeg3-1
|
---|
31 |
|
---|
32 | # override OBJDIR
|
---|
33 | # use uname --machine except where it equals x86_64 and BUILDENV=32
|
---|
34 | MACHINE=`uname --machine`
|
---|
35 | if [ "${MACHINE}" = "x86_64" -a "${BUILDENV}" = "32" ]; then
|
---|
36 | MACHINE=i686
|
---|
37 | fi
|
---|
38 |
|
---|
39 | max_log_init libmpeg3 ${LIBMPEG3_VER} "blfs (shared)" ${BUILDLOGS} ${LOG}
|
---|
40 | make \
|
---|
41 | CC="${CC-gcc} ${ARCH_CFLAGS}" \
|
---|
42 | OBJDIR=${MACHINE} \
|
---|
43 | >> ${LOGFILE} 2>&1 &&
|
---|
44 | echo " o Configure OK" &&
|
---|
45 |
|
---|
46 | min_log_init ${INSTLOGS} &&
|
---|
47 | make OBJDIR=${MACHINE} install \
|
---|
48 | >> ${LOGFILE} 2>&1 &&
|
---|
49 | echo " o ALL OK" || barf
|
---|
50 |
|
---|
51 | # Fix the produced headers
|
---|
52 | PREFIX=/usr
|
---|
53 | for file in `find ${PREFIX}/include/libmpeg3 -type f` ; do
|
---|
54 | sed -i 's@\(#include\s\)\"\([-+_a-zA-Z0-9/.]*\)\"@\1<libmpeg3/\2>@' \
|
---|
55 | ${file}
|
---|
56 | done
|
---|
Note:
See
TracBrowser
for help on using the repository browser.