source: scripts/untested/blfs-scripts/blfs-libmpeg3.sh@ 66f17d5

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 66f17d5 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
5cd ${SRC}
6LOG=libmpeg3-blfs.log
7
8SELF=`basename ${0}`
9set_buildenv
10set_libdirname
11setup_multiarch
12if [ ! "${libdirname}" = "lib" ]; then
13 extra_conf="--libdir=/usr/${libdirname}"
14fi
15
16unpack_tarball libmpeg3-${LIBMPEG3_VER}-src
17cd ${PKGDIR}
18
19# Eeeek this is a mess...
20# Firstly, fix for gcc-3.4
21apply_patch libmpeg3-1.5.4-gcc34-1
22
23# Secondly, we are going to use the system a52dec, so blow that
24# directory away...
25rm -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)
30apply_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
34MACHINE=`uname --machine`
35if [ "${MACHINE}" = "x86_64" -a "${BUILDENV}" = "32" ]; then
36 MACHINE=i686
37fi
38
39max_log_init libmpeg3 ${LIBMPEG3_VER} "blfs (shared)" ${BUILDLOGS} ${LOG}
40make \
41CC="${CC-gcc} ${ARCH_CFLAGS}" \
42OBJDIR=${MACHINE} \
43 >> ${LOGFILE} 2>&1 &&
44echo " o Configure OK" &&
45
46min_log_init ${INSTLOGS} &&
47make OBJDIR=${MACHINE} install \
48 >> ${LOGFILE} 2>&1 &&
49echo " o ALL OK" || barf
50
51# Fix the produced headers
52PREFIX=/usr
53for file in `find ${PREFIX}/include/libmpeg3 -type f` ; do
54 sed -i 's@\(#include\s\)\"\([-+_a-zA-Z0-9/.]*\)\"@\1<libmpeg3/\2>@' \
55 ${file}
56done
Note: See TracBrowser for help on using the repository browser.