[color="Red"]第五章 Multimedia
这一章对于打造个人桌面的系统比较重要,关系到konquorer能不能发挥出强大的多媒体功能。俺以前用过几个发行版,系统自带的noatun和kaboodle这两个播放器,简直就是无用的摆设,除了ogg和flac以外,好多媒体格式的文件都不能播放,真的很不爽。这下可好了,俺先把这些东西装上,再编译KDE,KDE的多媒体性能就显现出来了。同样,你需要建立一个文件夹,取名05M。将本章所有的软件包和脚本放在里面,安装时,只要进入该文件夹,按先后顺序执行脚本文件便可以了。主要安装的软件包有21个。
05.01
audiofile-0.2.6
脚本编号:01audiofile-0.2.6
------------------------------------------------------------------------------------
#!/bin/sh
set -e
tar -jxvf audiofile-0.2.6.tar.bz2
cd audiofile-0.2.6
./configure --prefix=/usr &&
make
make install
cd ..
rm -rf audiofile-0.2.6
exit
------------------------------------------------------------------------------------
05.02
esound-0.2.36
脚本编号:02esound-0.2.36
------------------------------------------------------------------------------------
#!/bin/sh
set +e
tar -jxvf esound-0.2.36.tar.bz2
cd esound-0.2.36
sed -i 's@doc/esound@&-0.2.36@' configure &&
./configure --prefix=/usr --sysconfdir=/etc &&
make
make install
cp -v -R docs/html /usr/share/doc/esound-0.2.36
cd ..
rm -rf esound-0.2.36
exit
------------------------------------------------------------------------------------
05.03
SDL-1.2.11
http://www.libsdl.org/release/SDL-1.2.11.tar.gz
脚本编号:03SDL-1.2.11
------------------------------------------------------------------------------------
#!/bin/sh
set -e
tar zxvf SDL-1.2.11.tar.gz
cd SDL-1.2.11
./configure --prefix=/usr &&
make
make install &&
install -v -m755 -d /usr/share/doc/SDL-1.2.11/html &&
install -v -m644 docs/html/*.html /usr/share/doc/SDL-1.2.11/html
cd ..
rm -rf SDL-1.2.11
exit
------------------------------------------------------------------------------------
05.04
Libao-0.8.6
http://downloads.xiph.org/releases/ao/libao-0.8.6.tar.gz
脚本编号:04Libao-0.8.6
------------------------------------------------------------------------------------
#!/bin/sh
set -e
tar xvf libao-0.8.6.tar.gz
cd libao-0.8.6
./configure --prefix=/usr &&
make
make install
cd ..
rm -rf libao-0.8.6
exit
------------------------------------------------------------------------------------
05.05
libogg-1.1.3
脚本编号:05libogg-1.1.3
------------------------------------------------------------------------------------
#!/bin/sh
set +e
tar -xvf libogg-1.1.3.tar.gz
cd libogg-1.1.3
./configure --prefix=/usr &&
make
make install
cd ..
rm -rf libogg-1.1.3
exit
------------------------------------------------------------------------------------
05.06
libvorbis-1.1.2
脚本编号:06libvorbis-1.1.2
------------------------------------------------------------------------------------
#!/bin/sh
set +e
tar xvf libvorbis-1.1.2.tar.gz
cd libvorbis-1.1.2
./configure --prefix=/usr &&
make
sed -i.bak -e 's/-mno-ieee-fp//' lib/Makefile
make install &&
install -v -m644 doc/Vorbis* /usr/share/doc/libvorbis-1.1.2
cd ..
rm -rf libvorbis-1.1.2
exit
------------------------------------------------------------------------------------
05.07
nasm-0.98.39
http://downloads.sourceforge.net/nasm/nasm-0.98.39.tar.bz2
脚本编号:07nasm-0.98.39
------------------------------------------------------------------------------------
#!/bin/sh
set +e
tar -jxvf nasm-0.98.39.tar.bz2
cd nasm-0.98.39
patch -Np1 -i ../nasm-0.98.39-security_fix-1.patch &&
./configure --prefix=/usr &&
make &&
make install &&
cd ..
rm -rf nasm-0.98.39
exit
------------------------------------------------------------------------------------
05.08
LibMPEG3-1.6
http://downloads.sourceforge.net ... eg3-1.6-src.tar.bz2
脚本编号:08LibMPEG3-1.6
---------------------------------------------------------
#!/bin/sh
set -e
tar -jxvf libmpeg3-1.6-src.tar.bz2
cd libmpeg3-1.6
patch -Np1 -i ../libmpeg3-1.6-blfs_install-1.patch &&
./configure &&
make
make install
cd ..
rm -rf libmpeg3-1.6
exit
------------------------------------------------------------------------------------
05.09
libmad-0.15
ftp://ftp.mars.org/pub/mpeg/libmad-0.15.1b.tar.gz
脚本编号:09libmad-0.15
------------------------------------------------------------------------------------
#!/bin/sh
set +e
tar xvf libmad-0.15.1b.tar.gz
cd libmad-0.15.1b
./configure --prefix=/usr &&
make
make install
cat > /usr/lib/pkgconfig/mad.pc << "EOF"
prefix=/usr
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include
Name: mad
Description: MPEG audio decoder
Requires:
Version: 0.15.1b
Libs: -L${libdir} -lmad
Cflags: -I${includedir}
EOF
cd ..
rm -rf libmad-0.15.1b
exit
------------------------------------------------------------------------------------
05.10
libquicktime-0.9.9
http://downloads.sourceforge.net ... cktime-0.9.9.tar.gz
脚本编号:10libquicktime-0.9.9
------------------------------------------------------------------------------------
#!/bin/sh
set -e
tar xvf libquicktime-0.9.9.tar.gz
cd libquicktime-0.9.9
./configure --prefix=/usr &&
make
make install &&
install -v -m755 -d /usr/share/doc/libquicktime-0.9.9/api &&
install -v -m644 README doc/* \
/usr/share/doc/libquicktime-0.9.9
cd ..
rm -rf libquicktime-0.9.9
exit
------------------------------------------------------------------------------------
05.11
libFAME-0.9.1
http://downloads.sourceforge.net/fame/libfame-0.9.1.tar.gz
脚本编号:11libFAME-0.9.1
------------------------------------------------------------------------------------
#!/bin/sh
set -e
tar zxvf libfame-0.9.1.tar.gz
cd libfame-0.9.1
patch -Np1 -i ../libfame-0.9.1-gcc34-1.patch &&
sed -i 's/$CC --version/$CC -dumpversion/' configure &&
./configure --prefix=/usr &&
make
make install
cd ..
rm -rf libfame-0.9.1
exit
------------------------------------------------------------------------------------
05.12
FLAC-1.1.2
http://downloads.sourceforge.net/flac/flac-1.1.2.tar.gz
脚本编号:12FLAC-1.1.2
------------------------------------------------------------------------------------
#!/bin/sh
set -e
tar zxvf flac-1.1.2.tar.gz
cd flac-1.1.2
patch -Np1 -i ../flac-1.1.2-xmms_plugin_fix-1.patch &&
LIBS=-lm ./configure --prefix=/usr &&
make
make install
cd ..
rm -rf flac-1.1.2
exit
------------------------------------------------------------------------------------
05.13
Liba52-0.7.4
http://liba52.sourceforge.net/files/a52dec-0.7.4.tar.gz
脚本编号:13Liba52-0.7.4
------------------------------------------------------------------------------------
#!/bin/sh
set -e
tar zxvf a52dec-0.7.4.tar.gz
cd a52dec-0.7.4
./configure --prefix=/usr --enable-shared &&
make
make install &&
install -v -m644 -D doc/liba52.txt \
/usr/share/doc/liba52-0.7.4/liba52.txt
cd ..
rm -rf a52dec-0.7.4
exit
------------------------------------------------------------------------------------
05.14
XviD-1.1.0
http://downloads.xvid.org/downloads/xvidcore-1.1.0.tar.bz2
脚本编号:14XviD-1.1.0
------------------------------------------------------------------------------------
#!/bin/sh
set -e
tar -jxvf xvidcore-1.1.0.tar.bz2
cd xvidcore-1.1.0
cd build/generic &&
./configure --prefix=/usr &&
make
make install &&
chmod -v 755 /usr/lib/libxvidcore.so.4.1 &&
ln -v -sf libxvidcore.so.4.1 /usr/lib/libxvidcore.so.4 &&
ln -v -sf libxvidcore.so.4 /usr/lib/libxvidcore.so &&
install -v -m755 -d /usr/share/doc/xvidcore-1.1.0/examples &&
install -v -m644 ../../doc/* /usr/share/doc/xvidcore-1.1.0 &&
install -v -m644 ../../examples/* \
/usr/share/doc/xvidcore-1.1.0/examples
cd ../../..
rm -rf xvidcore-1.1.0
exit
------------------------------------------------------------------------------------
05.15
Mpg123-0.60
http://downloads.sourceforge.net/mpg123/mpg123-0.60.tar.bz2
脚本编号:15Mpg123-0.60
------------------------------------------------------------------------------------
#!/bin/sh
set -e
tar -jxvf mpg123-0.60.tar.bz2
cd mpg123-0.60
./configure --prefix=/usr &&
make
make install
cd ..
rm -rf mpg123-0.60
exit
------------------------------------------------------------------------------------
05.16
VorbisTools-1.1.1
http://downloads.xiph.org/releas ... -tools-1.1.1.tar.gz
脚本编号:16VorbisTools-1.1.1
------------------------------------------------------------------------------------
#!/bin/sh
set -e
tar zxvf vorbis-tools-1.1.1.tar.gz
cd vorbis-tools-1.1.1
patch -Np1 -i ../vorbis-tools-1.1.1-utf8-1.patch &&
./configure --prefix=/usr --enable-vcut &&
make
make install
cd ..
rm -rf vorbis-tools-1.1.1
exit
------------------------------------------------------------------------------------
05.17
lame-3.96.1
http://downloads.sourceforge.net/lam...-3.96.1.tar.gz
脚本编号:17lame-3.96.1
------------------------------------------------------------------------------------
#!/bin/sh
set -e
tar zxvf lame-3.96.1.tar.gz
cd lame-3.96.1
./configure --prefix=/usr --enable-mp3rtp &&
make
make install
cd ..
rm -rf lame-3.96.1
exit
------------------------------------------------------------------------------------
05.18
ffmpeg-0.4.9-pre1
脚本编号:18ffmpeg-0.4.9-pre1
------------------------------------------------------------------------------------
#!/bin/sh
set -e
tar zxvf ffmpeg-0.4.9-pre1.tar.gz
cd ffmpeg-0.4.9-pre1
patch -Np1 -i ../ffmpeg-0.4.9-pre1-gcc4-1.patch &&
patch -Np1 -i ../ffmpeg-0.4.9-pre1-amr_fixes-1.patch &&
sed -i "s/static uint64/const uint64/" \
libavcodec/liba52/resample_mmx.c &&
./configure --prefix=/usr --enable-shared \
--enable-pthreads --disable-ffplay &&
make
make -C doc ff{mpeg,play,server}.1
make install
install -v -m755 -d /usr/share/doc/ffmpeg-0.4.9-pre1 &&
install -v -m644 doc/* /usr/share/doc/ffmpeg-0.4.9-pre1
cd ..
rm -rf ffmpeg-0.4.9-pre1
exit
------------------------------------------------------------------------------------
05.19
Avifile-0.7.45
http://downloads.sourceforge.net ... -0.7-0.7.45.tar.bz2
脚本编号:19Avifile-0.7.45
------------------------------------------------------------------------------------
#!/bin/sh
set -e
tar -jxvf avifile-0.7.45.tar.bz2
cd avifile-0.7-0.7.45
install -v -d -m755 /usr/lib/avifile-0.7/win32 &&
tar -xvf ../avifile-binaries-011002.tgz -C /usr/lib/avifile-0.7
./configure --prefix=/usr \
--with-win32-path=/usr/lib/avifile-0.7/win32 &&
make
make install
cd ..
rm -rf avifile-0.7-0.7.45
exit
------------------------------------------------------------------------------------
05.20
libdts-0.0.2
脚本编号:20libdts-0.0.2
------------------------------------------------------------------------------------
#!/bin/sh
set -e
tar -xvf libdca-0.0.2.tar.gz
cd libdts-0.0.2
./configure --prefix=/usr &&
make
make install
cd ..
rm -rf libdts-0.0.2
exit
------------------------------------------------------------------------------------
05.21
x264-snapshot-20070403-2245
脚本编号:21x264-snapshot-20070403-2245
------------------------------------------------------------------------------------
#!/bin/sh
set -e
tar -jxvf x264-snapshot-20070403-2245.tar.bz2
cd x264-snapshot-20070403-2245
./configure &&
perl -pi -e 's|//(#define DEBUG_DUMP_FRAME)|$1|' encoder/encoder.c # define DEBUG_DUMP_FRAME
make
make install
cd ..
rm -rf x264-snapshot-20070403-2245
exit
------------------------------------------------------------------------------------ |