BLFS制作KDE的命令

BLFS

wget

 

wget http://ftp.gnu.org/gnu/wget/wget-1.10.2.tar.gz

 

tar xvf wget-1.10.2.tar.gz
cd wget-1.10.2
./configure –prefix=/usr –sysconfdir=/etc&&
make
make install

 

 

 

openssh

wgethttp://www.openssl.org/source/openssl-0.9.8g.tar.gz
wget   
http://www.linuxfromscratch.org/patches/blfs/6.3/openssl-0.9.8g-fix_manpages-1.patch


wget
ftp://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-4.7p1.tar.gz

wget http://www.linuxfromscratch.org/blfs/downloads/6.2.0/blfs-bootscripts-20060910.tar.bz2

tar xvfopenssl-0.9.8g.tar.gz
cd openssl-0.9.8g
patch -Np1 -i ../openssl-0.9.8g-fix_manpages-1.patch &&
./config --openssldir=/etc/ssl --prefix=/usr shared &&
make MANDIR=/usr/share/man
make test
make MANDIR=/usr/share/man install &&
cp -v -r certs /etc/ssl &&
install -v -d -m755 /usr/share/doc/openssl-0.9.8g &&
cp -v -r doc/{HOWTO,README,*.{txt,html,gif}} \
/usr/share/doc/openssl-0.9.8g
cd ..
rm -rf openssl-0.9.8g


-------------openssh----------------
tar xvf openssh-4.7p1.tar.gz
cd openssh-4.7p1
install -v -m700 -d /var/lib/sshd &&
chown -v root:sys /var/lib/sshd &&
groupadd -g 50 sshd &&
useradd -c 'sshd PrivSep' -d /var/lib/sshd -g sshd \
-s /bin/false -u 50 sshd
sed -i 's@-lcrypto@/usr/lib/libcrypto.a -ldl@' configure
sed -i 's@ -ldes@@' configure &&
./configure --prefix=/usr --sysconfdir=/etc/ssh --datadir=/usr/share/sshd \
--libexecdir=/usr/lib/openssh --with-md5-passwords \
--with-privsep-path=/var/lib/sshd \
--with-xauth=/usr/bin/xauth &&
make

if test -f /usr/bin/scp
then
mv /usr/bin/scp /usr/bin/scp-bak
fi &&
cp scp /usr/bin/scp &&
make tests 2>&1 | tee check.log
grep "FATAL" check.log

rm /usr/bin/scp &&
if test -f /usr/bin/scp-bak
then
rm /usr/bin/scp-bak
fi &&

make install &&
install -v -m755 -d /usr/share/doc/openssh-4.7p1 &&
install -v -m644 INSTALL LICENCE OVERVIEW README* WARNING.RNG \
/usr/share/doc/openssh-4.7p1
cd ..
rm -rf openssh-4.7p1


----------------blfs-bootscripts----------------
tar xvf blfs-bootscripts-20060910.tar.bz2
cd blfs-bootscripts-20060910
make install-sshd
cd ..
rm -rf blfs-bootscripts-20060910

blfs-bootscripts里面makeinstall-sshdssh就会自动启动,这时候就可以复制粘贴命令了。

libpang

wget http://downloads.sourceforge.net/libpng/libpng-1.2.12.tar.bz2

 

tar -xvf libpng-1.2.12.tar.bz2

cd libpng-1.2.12

./configure --prefix=/usr &&

make

make install &&

install -v -m755 -d/usr/share/doc/libpng-1.2.12 &&

install -v -m644 README libpng.txt/usr/share/doc/libpng-1.2.12

cd ..

rm -rf libpng-1.2.12

 

expat-2.0.0

 

wget http://downloads.sourceforge.net/expat/expat-2.0.0.tar.gz

 

tar -zxvf expat-2.0.0.tar.gz

cd expat-2.0.0

./configure --prefix=/usr &&

make

make install &&

install -v -m755 -d/usr/share/doc/expat-2.0.0 &&

install -v -m644 doc/*.{html,png,css}/usr/share/doc/expat-2.0.0

cd ..

rm -rf expat-2.0.0

 

freetype-2.1.10

 

wget http://downloads.sourceforge.net/freetype/freetype-2.1.10.tar.bz2

wget http://downloads.sourceforge.net/freetype/freetype-doc-2.1.10.tar.bz2

 

tar -jxvf freetype-2.1.10.tar.bz2

cd freetype-2.1.10

tar xf ../freetype-doc-2.1.10.tar.bz2 \

   --strip-components=2 -C docs

sed -i -r -e 's:.*(#.*BYTE.*) .*:\1:' \

         -e 's:.*(#.*SUBPIX.*) .*:\1:' \

         include/freetype/config/ftoption.h &&

./configure --prefix=/usr &&

make

make install &&

install -v -m755 -d /usr/share/doc/freetype-2.1.10&&

cp -v -R docs/* /usr/share/doc/freetype-2.1.10

cd ..

rm -rf freetype-2.1.10

 

 

fontconfig-2.3.2

wget http://fontconfig.org/release/fontconfig-2.3.2.tar.gz

 

tar -zxvf fontconfig-2.3.2.tar.gz

cd fontconfig-2.3.2

./configure --prefix=/usr --sysconfdir=/etc--disable-docs &&

make

make install &&

install -v -m755 -d/usr/share/doc/fontconfig/fontconfig-devel &&

install -v -m644 doc/*.3/usr/share/man/man3 &&

install -v -m644 doc/*.5/usr/share/man/man5 &&

install -v -m644 doc/*.{html,pdf,txt}/usr/share/doc/fontconfig &&

install -v -m644 doc/fontconfig-devel/* \

   /usr/share/doc/fontconfig/fontconfig-devel

cd ..

rm -rf fontconfig-2.3.2

 

linux-pam-0.99.10.0

wget ftp://ftp.lfs-matrix.net/pub/blfs/6.3/l/Linux-PAM-0.99.10.0.tar.bz2

wget  ftp://ftp.lfs-matrix.net/pub/blfs/6.3/l/Linux-PAM-0.99.10.0-docs.tar.bz2

tar -jxvfLinux-PAM-0.99.10.0.tar.bz2

cd Linux-PAM-0.99.10.0

./configure --libdir=/lib \

           --sbindir=/lib/security \

           --enable-securedir=/lib/security \

           --docdir=/usr/share/doc/Linux-PAM-0.99.10.0 \

           --enable-read-both-confs \

           --with-xauth=/usr/X11R6/bin/xauth &&

make

make install &&

chmod -v 4755 /lib/security/unix_chkpwd&&

 

mv -v /lib/security/pam_tally /sbin&&

 

mv -v /lib/libpam{,c,_misc}.la /usr/lib&&

sed -i 's| /lib| /usr/lib|'/usr/lib/libpam_misc.la &&

 

if [ -L /lib/libpam.so ]; then

  for LINK in libpam{,c,_misc}.so; do

      ln -v -sf ../../lib/$(readlink /lib/${LINK}) /usr/lib/${LINK} &&

      rm -v /lib/${LINK}

  done

fi

cd ..

rm -rf Linux-PAM-0.99.10.0

 

 

Xorg-6.9.0 

wget http://xorg.freedesktop.org/releases/X11R6.9.0/src-single/X11R6.9.0-src.tar.bz2

wget http://www.linuxfromscratch.org/patches/blfs/6.2.0/xorg-6.9.0-luit_race-1.patch

wget http://www.linuxfromscratch.org/patches/blfs/6.2.0/xorg-6.9.0-security-4.patch

 

 

tar-jxvf X11R6.9.0-src.tar.bz2

cd xc

patch-Np1 -i ../xorg-6.9.0-luit_race-1.patch &&

patch-Np1 -i ../xorg-6.9.0-security-4.patch

sed -i's@/usr/X11R6@</usr>@' programs/luit/parser.h

sed -i '/^SUBDIRS =/s/ etc$//'programs/Xserver/Xprint/Imakefile

pushd config/util &&

make -f Makefile.ini lndir

popd

mkdir ../xcbuild &&

cd ../xcbuild &&

../xc/config/util/lndir ../xc

cat > config/cf/host.def << "EOF"

/* Begin Xorg host.def file */

 

/* System Related Information.  If you read and configure only one

 * section then itshould be this one.  The Intel architecturedefaults

 * are set for ai686 and higher.  Axp is for the Alphaarchitecture

 * and Ppc is forthe Power PC.  AMD64 is for the Opteronprocessor.

 * Note that therehave been reports that the Ppc optimization line

 * causessegmentation faults during build.  Ifthat happens, try

 * building withoutthe DefaultGcc2PpcOpt line.  ***********/

 

/* #define DefaultGcc2i386Opt  -O2 -fno-strength-reduce \

                              -fno-strict-aliasing -march=i686 */

/* #define DefaultGcc2AMD64Opt -O2 -fno-strength-reduce \

                              -fno-strict-aliasing */

/* #define DefaultGcc2AxpOpt   -O2 -mcpu=ev6 */

/* #define DefaultGcc2PpcOpt   -O2 -mcpu=750 */

 

#define HasFreetype2            YES

#define HasFontconfig           YES

#define HasExpat                YES

#define HasLibpng               YES

#define HasZlib                 YES

 

/* Uncomment the following define if you'd like

 * xdm to useLinux-PAM

#define HasPam                  YES

 */

 

/*

 * Which drivers tobuild.  When building a static server,each of

 * these will beincluded in it.  When building theloadable server

 * each of thesemodules will be built.

 *

#define XF86CardDrivers         mga glint nv tga s3virge sis rendition\

                                neomagic i740 tdfxsavage \

                                cirrus vmwaretseng trident chips apm \

                                GlideDriverfbdev i128 \

                                atiDevelDrivers ark \

                                cyrix siliconmotion vesa vga \

                               XF86OSCardDrivers XF86ExtraCardDrivers

*/

 

/*

 * Select theXInput devices you want by uncommenting this.

 *

#define XInputDrivers           mouse keyboard acecad calcomp citron\

                                digitaledge dmcdynapro elographics \

                                microtouchmutouch penmount spaceorb \

                                summa wacomvoid magictouch aiptek

 */

 

/* Most installs will only need this */

 

#define XInputDrivers           mouse keyboard

 

/* Xterm is no longer built by default */

#define BuildXterm              YES

 

/* Disable building Xprint server and clients until weget them figured

 * out but buildXprint libraries to allow precompiled binaries such as

 * Acrobat Readerto run.

 */

 

#define XprtServer              NO

#define BuildXprintClients      NO

 

/* Uncomment the following define if you would prefer toinstall X into

 * /usr or changeit to any other location that you prefer.

 * The GL relateddefines disable compatibility symlinks (the links

 * are not neededwhen X is installed in /usr).

#define ProjectRoot             /usr

#define LinkGLToUsrInclude      NO

#define LinkGLToUsrLib          NO

 */

 

/* End Xorg host.def file */

EOF

sed -i -e "s@^#include <linux/config.h>@/*& */@" \

    `grep -lrlinux/config.h *` &&

( make World 2>&1 | tee xorg-compile.log&& exit $PIPESTATUS )

make install &&

make install.man

ln -v -s ../X11R6/bin /usr/bin/X11 &&

ln -v -s ../X11R6/lib/X11 /usr/lib/X11 &&

ln -v -s ../X11R6/include/X11 /usr/include/X11

install -d -m755 /usr/share/fonts &&

ln -svn /usr/X11R6/lib/X11/fonts/OTF/usr/share/fonts/X11-OTF &&

ln -svn /usr/X11R6/lib/X11/fonts/TTF/usr/share/fonts/X11-TTF

 

cat >> /etc/ld.so.conf << "EOF"&&

/usr/X11R6/lib

EOF

ldconfig &&

cat >> /etc/profile << "EOF"&&

export PATH=$PATH:/usr/X11R6/bin

exportPKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/X11R6/lib/pkgconfig

EOF

/sbin/ldconfig &&

cd ~ &&

Xorg –configure

install -v -m755 -D ~/xorg.conf.new /etc/X11/xorg.conf

cat > ~/.xinitrc << "EOF" &&

# Begin .xinitrc file

xterm -g 80x40+0+0 &

xclock -g 100x100-0+0 &

twm

EOF

cat >> /etc/sysconfig/createfiles <<"EOF"

/tmp/.ICE-unix dir 1777 root root

EOF

 

pkg-config-0.20

wget  http://pkgconfig.freedesktop.org/releases/pkg-config-0.20.tar.gz

tar -zxvf pkg-config-0.20.tar.gz

cd pkg-config-0.20

./configure --prefix=/usr &&

make

make install

cd ..

rm -rf pkg-config-0.20

 

glib-2.10.3

wget  http://ftp.gnome.org/pub/gnome/sources/glib/2.12/glib-2.12.12.tar.bz2

tar -jxvf glib-2.12.12.tar.bz2

cd glib-2.12.12

./configure --prefix=/usr &&

make

make install

cd ..

rm -rf glib-2.12.12

 

ATK-1.11.4 

wget http://ftp.gnome.org/pub/gnome/sources/atk/1.11/atk-1.11.4.tar.bz2

tar -jxvf atk-1.11.4.tar.bz2

cd atk-1.11.4

./configure --prefix=/usr &&

make

make install

cd ..

rm -rf atk-1.11.4

cairo-1.2.4

wget  http://cairographics.org/releases/cairo-1.2.4.tar.gz

tar xvf cairo-1.2.4.tar.gz

cd cairo-1.2.4

./configure --prefix=/usr &&

make

make install

cd ..

rm -rf cairo-1.2.4

 

Pango-1.12.3

wget http://ftp.gnome.org/pub/gnome/sources/pango/1.12/pango-1.12.3.tar.bz2

tar -jxvf pango-1.12.3.tar.bz2

cd pango-1.12.3

./configure --prefix=/usr --sysconfdir=/etc &&

make

make install

cd ..

rm -rf pango-1.12.3

 

libtiff-3.8.2

wget http://libtiff.maptools.org/dl/tiff-3.8.2.tar.gz

tar -zxvf tiff-3.8.2.tar.gz

cd tiff-3.8.2

./configure --prefix=/usr &&

make

make install

cd ..

rm -rf tiff-3.8.2

 

GTK+-2.10.13

wget http://ftp.gnome.org/pub/gnome/sources/gtk+/2.10/gtk+-2.10.13.tar.bz2

tar -jxvf gtk+-2.10.13.tar.bz2

cd gtk+-2.10.13

./configure --prefix=/usr --sysconfdir=/etc --without-libjpeg&&

make

make install &&

install -v -m755 -d /usr/share/doc/gtk+-2.10.13/{faq,tutorial}&&

cp -v -R docs/faq/html/* /usr/share/doc/gtk+-2.10.13/faq&&

cp -v -R docs/tutorial/html/*/usr/share/doc/gtk+-2.10.13/tutorial &&

install -v -m644 docs/*.txt /usr/share/doc/gtk+-2.10.13

cd ..

rm -rf gtk+-2.8.20

 

libjpeg-6b

wget http://www.ijg.org/files/jpegsrc.v6b.tar.gz

tar xvf jpegsrc.v6b.tar.gz

cd jpeg-6b

./configure --prefix=/usr --enable-static --enable-shared&&

make

make install

cd ..

rm -rf jpeg-6b

 

little cms-1.15

wget http://www.littlecms.com/lcms-1.16.tar.gz

tar xvf lcms-1.16.tar.gz

cd lcms-1.16

patch -Np1 -i ../lcms-1.16-swig_fixes-1.patch &&

./configure --prefix=/usr &&

make

make install &&

install -v -m755 -d /usr/share/doc/lcms-1.16 &&

install -v -m644 README.1ST doc/*/usr/share/doc/lcms-1.16cd

cd ..

rm -rf lcms-1.16

 

libmng-1.0.9

wget http://downloads.sourceforge.net/libmng/libmng-1.0.9.tar.gz

tar xvf libmng-1.0.9.tar.gz

cd libmng-1.0.9

cp makefiles/makefile.linux Makefile&&

make

make prefix=/usr install &&

install -v -m644 doc/man/*.3/usr/share/man/man3 &&

install -v -m644 doc/man/*.5/usr/share/man/man5 &&

install -v -m755 -d/usr/share/doc/libmng-1.0.9 &&

install -v -m644 doc/*.{png,txt}/usr/share/doc/libmng-1.0.9

cd ..

rm -rf libmng-1.0.9

 

blfs-bootscripts-20060910.tar.bz2

wget http://www.linuxfromscratch.org/blfs...060910.tar.bz2

tar -jxvf blfs-bootscripts-20060910.tar.bz2

nas-1.7

 

wget ftp://ftp.lfs-matrix.net/pub/blfs/6.3/n/nas-1.9.src.tar.gz

tar xvf nas-1.9.src.tar.gz

cd nas-1.9

xmkmf &&

make World

make install install.man &&

install -v -m755 -d/usr/share/doc/nas-1.9/{html,pdf} &&

install -v -m644 doc/html/*/usr/share/doc/nas-1.9/html &&

install -v -m644 doc/pdf/*/usr/share/doc/nas-1.9/pdf &&

install -v -m644doc/{README,actions,*.{ps,txt}} \

/usr/share/doc/nas-1.9

cd ..

rm -rf nas-1.9

 

qt-3.3.8b

wget  http://ftp.silug.org/mirrors/ftp.trolltech.com/qt/source/qt-x11-free-3.3.8b.tar.gz

 

 

tar -zxvfqt-x11-free-3.3.8b.tar.gz

cdqt-x11-free-3.3.8b

 

sed -i'/QMAKE_RPATH/d' mkspecs/linux*/qmake.conf

exportQTDIR=$PWD &&

exportLD_LIBRARY_PATH=$PWD/lib:$LD_LIBRARY_PATH &&

exportPATH=$PWD/bin:$PATH

 

 

./configure-prefix /opt/qt-3.3.8b \

            -sysconfdir /etc/qt \

            -qt-gif \

            -system-zlib \

            -system-libpng \

            -system-libjpeg \

            -system-libmng \

            -plugin-imgfmt-png \

            -plugin-imgfmt-jpeg \

            -plugin-imgfmt-mng \

            -no-exceptions \

            -thread \

            -tablet &&

makemakesub-tools

 

make install&&

ln -v -sfnqt-3.3.8b /opt/qt-3.3.8b &&

ln -v -slibqt-mt.so /opt/qt-3.3.8b/lib/libqt.so &&

cp -v -r doc/man/opt/qt-3.3.8b/doc &&

cp -v -rexamples /opt/qt-3.3.8b/doc

exportQTDIR=/opt/qt-3.3.8b

cat >>/etc/ld.so.conf << "EOF" &&

# Begin qtaddition to /etc/ld.so.conf

 

/opt/qt/lib

 

# End qt addition

EOF

ldconfig&&

cat >>/etc/man_db.conf << "EOF"

# Begin qtaddition to man_db.conf

 

MANDATORY_MANPATH/opt/qt/doc/man

 

# End qtaddition to man_db.conf

EOF

ldconfig&&

cat >>/etc/man_db.conf << "EOF"

# Begin qtaddition to man_db.conf

 

MANDATORY_MANPATH/opt/qt/doc/man

 

# End qtaddition to man_db.conf

EOF

cat >>/etc/profile << "EOF"

exportPATH=$PATH:/opt/qt/bin

exportPKG_CONFIG_PATH=$PKG_CONFIG_PATH:/opt/qt/lib/pkgconfig

EOF

cd ..

 

 

alsa-lib-1.0.13

wget http://gd.tuwien.ac.at/opsys/linux/alsa/lib/alsa-lib-1.0.13.tar.bz2

tar -jxvfalsa-lib-1.0.13.tar.bz2

cdalsa-lib-1.0.13

./configure--enable-static &&

make

make install&&

install -v -m644-D doc/asoundrc.txt \

    /usr/share/doc/alsa-lib-1.0.13/asoundrc.txt

make doc

install -v -d-m755 /usr/share/doc/alsa-1.0.13/html &&

install -v -m644doc/doxygen/html/* /usr/share/doc/alsa-1.0.13/html

cd ..

rm -rfalsa-lib-1.0.13

alsa-plugins-1.0.13

wget  http://gd.tuwien.ac.at/opsys/linux/alsa/plugins/alsa-plugins-1.0.13.tar.bz2

tar -jxvf alsa-plugins-1.0.13.tar.bz2

cd alsa-plugins-1.0.13

./configure &&

make

make install &&

install -v -m755 -d /usr/share/doc/alsa-plugins-1.0.13&&

install -v -m644 doc/{README*,*.txt} \

/usr/share/doc/alsa-plugins-1.0.13

cd ..

rm -rf alsa-plugins-1.0.13

 

alsa-utils-1.0.13 

wget http://gd.tuwien.ac.at/opsys/linux/alsa/utils/alsa-utils-1.0.13.tar.bz2

tar -jxvfalsa-utils-1.0.13.tar.bz2

cdalsa-utils-1.0.13

./configure&&

make

make install

cd ..

rm -rfalsa-utils-1.0.13

 

cd../blfs-bootscripts-20060910

makeinstall-alsa

touch/etc/asound.state &&

alsactl store

cat >/etc/udev/rules.d/40-alsa.rules << "EOF"

#/etc/udev/rules.d/40-alsa.rules

 

# When a sounddevice is detected, restore the volume settings

KERNEL=="controlC[0-9]*",ACTION=="add", RUN+="/usr/sbin/alsactl restore %n"

EOF

chmod -v 644/etc/udev/rules.d/40-alsa.rules

alsa-tools-1.0.13 

wget http://gd.tuwien.ac.at/opsys/linux/alsa/tools/alsa-tools-1.0.13.tar.bz2

tar -jxvfalsa-tools-1.0.13.tar.bz2

cdalsa-tools-1.0.13

cd ac3dec

./configure--prefix=/usr &&

make

make install

cd ../..

rm -rfalsa-tools-1.0.13

alsa-oss-1.0.12 

wget http://gd.tuwien.ac.at/opsys/linux/alsa/oss-lib/alsa-oss-1.0.12.tar.bz2

tar -jxvfalsa-oss-1.0.12.tar.bz2

cdalsa-oss-1.0.12

./configure&&

make

make install

cd ..

rm -rfalsa-oss-1.0.12

 

 

 

audiofile-0.2.6

 

wget http://www.68k.org/~michael/audiofile/audiofile-0.2.6.tar.gz

 

tar -zxvf audiofile-0.2.6.tar.gz

./configure--prefix=/usr &&

make

make install

cd ..

rm -rfaudiofile-0.2.6

EsounD-0.2.36

 

wget http://ftp.gnome.org/pub/gnome/sources/esound/0.2/esound-0.2.36.tar.bz2

 

tar -jxvfesound-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 -Rdocs/html /usr/share/doc/esound-0.2.36

cd ..

rm -rfesound-0.2.36

SDL-1.2.11 

wget http://www.libsdl.org/release/SDL-1.2.11.tar.gz

tar zxvfSDL-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 -m644docs/html/*.html /usr/share/doc/SDL-1.2.11/html

cd ..

rm -rfSDL-1.2.11

Libao-0.8.6

wget http://downloads.xiph.org/releases/ao/libao-0.8.6.tar.gz 

 

tar xvflibao-0.8.6.tar.gz

cd libao-0.8.6

./configure--prefix=/usr &&

make

make install

cd ..

rm -rflibao-0.8.6

libogg-1.1.3

wget  http://downloads.xiph.org/releases/ogg/libogg-1.1.3.tar.gz

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

 

libvorbis-1.1.2 

wget http://downloads.xiph.org/releases/vorbis/libvorbis-1.1.2.tar.gz

tar xvflibvorbis-1.1.2.tar.gz

cdlibvorbis-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 -rflibvorbis-1.1.2

nasm-0.98.39 

wget http://downloads.sourceforge.net/nasm/nasm-0.98.39.tar.bz2

wget http://www.linuxfromscratch.org/patches/blfs/6.3/nasm-0.98.39-security_fix-1.patch

tar -jxvfnasm-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 -rfnasm-0.98.39

LibMPEG3-1.6

wget http://downloads.sourceforge.net/heroines/libmpeg3-1.6-src.tar.bz2 

wget http://www.linuxfromscratch.org/patches/blfs/6.2.0/libmpeg3-1.6-blfs_install-1.patch

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 -rflibmpeg3-1.6

libmad-0.15 

wget ftp://ftp.mars.org/pub/mpeg/libmad-0.15.1b.tar.gz 

wget http://www.linuxfromscratch.org/patches/blfs/svn/libmad-0.15.1b-fixes-1.patch

tar xvflibmad-0.15.1b.tar.gz

cdlibmad-0.15.1b

patch -Np1 -i../libmad-0.15.1b-fixes-1.patch               &&

sed"s@AM_CONFIG_HEADER@AC_CONFIG_HEADERS@g" -i configure.ac &&

touch NEWSAUTHORS ChangeLog                                 &&

autoreconf –fi

./configure--prefix=/usr --disable-static &&

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 -rflibmad-0.15.1b

 

libquicktime-1.0.0

wget http://downloads.sourceforge.net/libquicktime/libquicktime-1.0.0.tar.gz

tar xvflibquicktime-1.0.0.tar.gz

cdlibquicktime-1.0.0

./configure--prefix=/usr &&

make

make install&&

install -v-m755 -d /usr/share/doc/libquicktime-1.0.0 &&

install -v-m644    READMEdoc/{*.txt,*.html,mainpage.incl} \

                   /usr/share/doc/libquicktime-1.0.0

cd .. 
rm -rf libquicktime-1.0.0 

libFAME-0.9.1 

wget  http://downloads.sourceforge.net/fame/libfame-0.9.1.tar.gz 

wget http://www.linuxfromscratch.org/patches/blfs/6.2.0/libfame-0.9.1-gcc34-1.patch

tar zxvflibfame-0.9.1.tar.gz

cdlibfame-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 -rflibfame-0.9.1

FLAC-1.1.2 

wget http://downloads.sourceforge.net/flac/flac-1.1.2.tar.gz

tar zxvfflac-1.1.2.tar.gz

cd flac-1.1.2

LIBS=-lm./configure --prefix=/usr &&

make

make install

cd ..

rm -rfflac-1.1.2

Liba52-0.7.4

wget http://liba52.sourceforge.net/files/a52dec-0.7.4.tar.gz 

tar zxvfa52dec-0.7.4.tar.gz

cd a52dec-0.7.4

./configure--prefix=/usr --enable-shared &&

make

make install&&

cpliba52/a52_internal.h /usr/include/a52dec &&

install -v-m644 -D doc/liba52.txt \

    /usr/share/doc/liba52-0.7.4/liba52.txt

cd ..

rm -rfa52dec-0.7.4

XviD-1.1.0 

wget http://downloads.xvid.org/downloads/xvidcore-1.1.0.tar.bz2 

tar -jxvfxvidcore-1.1.0.tar.bz2

cdxvidcore-1.1.0

cdbuild/generic &&

./configure--prefix=/usr &&

make

cd ../../..

rm -rfxvidcore-1.1.0

Mpg123-0.60 

wget http://downloads.sourceforge.net/mpg123/mpg123-0.60.tar.bz2 

tar -jxvfmpg123-0.60.tar.bz2

cd mpg123-0.60

./configure--prefix=/usr &&

make

make install

cd ..

rm -rfmpg123-0.60

VorbisTools-1.1.1 

wget http://downloads.xiph.org/releases/vorbis/vorbis-tools-1.1.1.tar.gz 

tar zxvfvorbis-tools-1.1.1.tar.gz

cdvorbis-tools-1.1.1

./configure--prefix=/usr --enable-vcut &&

make

make install

cd ..

rm -rfvorbis-tools-1.1.1

lame-3.96.1 

wget http://downloads.sourceforge.net/lame/lame-3.96.1.tar.gz

tar zxvflame-3.96.1.tar.gz

cd lame-3.96.1

./configure--prefix=/usr --enable-mp3rtp &&

make

make install

cd ..

rm -rflame-3.96.1

ffmpeg-0.4.9-pre1 

wget http://downloads.sourceforge.net/ffmpeg/ffmpeg-0.4.9-pre1.tar.gz

wget http://www.linuxfromscratch.org/patches/blfs/6.2.0/ffmpeg-0.4.9-pre1-gcc4-1.patch

wget http://www.linuxfromscratch.org/patches/blfs/6.2.0/ffmpeg-0.4.9-pre1-amr_fixes-1.patch

tar zxvfffmpeg-0.4.9-pre1.tar.gz

cdffmpeg-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 docff{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 -rfffmpeg-0.4.9-pre1

Avifile-0.7.45 

wget http://downloads.sourceforge.net/avifile/avifile-0.7-0.7.45.tar.bz2

wget http://www.linuxfromscratch.org/patches/blfs/6.3/avifile-0.7-0.7.45-gcc41-1.patch

wget http://downloads.sourceforge.net/avifile/binaries-011002.tgz

tar -jxvf avifile-0.7-0.7.45.tar.bz2

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

 

 

 

libart_lgpl-2.3.17

wget http://ftp.gnome.org/pub/gnome/sources/libart_lgpl/2.3/libart_lgpl-2.3.17.tar.bz2

 

tar -jxvflibart_lgpl-2.3.17.tar.bz2

cdlibart_lgpl-2.3.17

./configure--prefix=/usr &&

make

make install

cd ..

rm -rflibart_lgpl-2.3.17

 

libxml2-2.6.26 

wget http://ftp.gnome.org/pub/gnome/sources/libxml2/2.6/libxml2-2.6.26.tar.gz

wget ftp://ftp.lfs-matrix.net/pub/blfs/6.3/l/libxml2-2.6.31.tar.gz

tar xvflibxml2-2.6.31.tar.gz

cd libxml2-2.6.31

./configure--prefix=/usr &&

make

make install

cd .. 
rm -rf libxml2-2.6.31

 

libxslt-1.1.17 

wget http://ftp.gnome.org/pub/gnome/sources/libxslt/1.1/libxslt-1.1.17.tar.gz 

tar xvflibxslt-1.1.17.tar.gz

cdlibxslt-1.1.17

./configure--prefix=/usr &&

make

make install

cd ..

rm -rflibxslt-1.1.17

pcre-7.6

wget http://downloads.sourceforge.net/pcre/pcre-7.6.tar.bz2

wget http://www.linuxfromscratch.org/patches/blfs/6.3/pcre-7.6-abi_breakage-1.patch

wget http://www.linuxfromscratch.org/patches/blfs/6.3/pcre-7.6-security_fix-1.patch

tar -jxvf pcre-7.6.tar.bz2

cd pcre-7.6

patch -Np1 -i../pcre-7.6-abi_breakage-1.patch &&

patch -Np1 -i../pcre-7.6-security_fix-1.patch &&

./configure--prefix=/usr \

            --docdir=/usr/share/doc/pcre-7.6 \

            --enable-utf8 \

            --enable-pcregrep-libz \

            --enable-pcregrep-libbz2 &&

make

make install

mv -v/usr/lib/libpcre.so.* /lib/ &&

ln -v -sf../../lib/libpcre.so.0 /usr/lib/libpcre.so

cd ..

rm -rf pcre-7.6

gamin-0.1.9 

wget http://www.gnome.org/~veillard/gamin/sources/gamin-0.1.9.tar.gz

openssl-0.9.8d 

wget http://www.openssl.org/source/openssl-0.9.8d.tar.gz 

tar xvf gamin-0.1.9.tar.gz 
cd gamin-0.1.9

./configure --prefix=/usr --libexecdir=/usr/sbin &&

make

make install &&

install -v -m755 -d /usr/share/doc/gamin-0.1.9 &&

install -v -m644 doc/*.{html,fig,gif,txt}/usr/share/doc/gamin-0.1.9

cd .. 
rm -rf gamin-0.1.9

 

openssl-0.9.8d 

wgetn http://www.openssl.org/source/openssl-0.9.8d.tar.gz

tar xvfopenssl-0.9.8d.tar.gz

cdopenssl-0.9.8d

sed -i -e's/mcpu/march/' config

patch -Np1 -i../openssl-0.9.8d-fix_manpages-1.patch &&

./config--openssldir=/etc/ssl --prefix=/usr shared &&

makeMANDIR=/usr/share/man

makeMANDIR=/usr/share/man install &&

cp -v -r certs/etc/ssl &&

install -v -d-m755 /usr/share/doc/openssl-0.9.8d &&

cp -v -rdoc/{HOWTO,README,*.{txt,html,gif}} \

/usr/share/doc/openssl-0.9.8d

cd ..

rm -rfopenssl-0.9.8d

libidn-0.6.14 

wget http://anduin.linuxfromscratch.org/sources/BLFS/6.3/l/libidn-0.6.14.tar.gz

tar xvflibidn-0.6.14.tar.gz

cd libidn-0.6.14

./configure--prefix=/usr &&

make

make install&&

find doc -name"Makefile*" -exec rm {} \; &&

install -v-m755 -d \

   /usr/share/doc/libidn-0.6.14/{api,java,specifications,tld} &&

install -v-m644 doc/components* \

                 doc/libidn.{pdf,ps,html} \

    /usr/share/doc/libidn-0.6.14 &&

install -v-m644 doc/reference/html/* \

    /usr/share/doc/libidn-0.6.14/api &&

install -v-m644 doc/specifications/* \

    /usr/share/doc/libidn-0.6.14/specifications&&

install -v-m644 doc/tld/* /usr/share/doc/libidn-0.6.14/tld &&

cp -v -Rdoc/java/* /usr/share/doc/libidn-0.6.14/java

cd ..

rm -rflibidn-0.6.14

graphviz-2.8 

wget http://www.graphviz.org/pub/graphviz/ARCHIVE/graphviz-2.8.tar.gz 

sed -i's|JAVA_LIBS=|& \

if test -n"$JAVA_HOME"; then \

  CPPFLAGS="$CPPFLAGS -I$JAVA_HOME/include-I$JAVA_HOME/include/linux" \

fi|' configure&&

./configure--prefix=/usr &&

make

make install

ln -v -s/usr/share/graphviz/doc \

         /usr/share/doc/graphviz-2.8

 

giflib-4.1.4 

wget http://downloads.sourceforge.net/giflib/giflib-4.1.4.tar.bz2

tar -jxvf giflib-4.1.4.tar.bz2 

doxygen-1.5.2

wget http://ftp.stack.nl/pub/users/dimitri/doxygen-1.5.2.src.tar.gz

tar zxvfdoxygen-1.5.2.src.tar.gz

cd doxygen-1.5.2 

./configure--prefix /usr \

            --docdir /usr/share/doc &&

make

make install

cd ..

rm -rfdoxygen-1.5.2

 

KDE Pre-installation Configuration 

exportKDE_PREFIX=/opt/kde-3.5.9

 

cat >>/etc/profile << "EOF" &&

exportPATH=$PATH:/opt/kde-3.5.9/bin

exportPKG_CONFIG_PATH=$PKG_CONFIG_PATH:/opt/kde-3.5.9/lib/pkgconfig

EOF

 

cat >>/etc/ld.so.conf << "EOF"

# Begin kdeaddition to /etc/ld.so.conf

 

/opt/kde-3.5.9/lib

 

# End kdeaddition

EOF

 

cat >>/etc/man_db.conf << "EOF"

# Begin kdeaddition to man_db.conf

 

MANDATORY_MANPATH/opt/kde-3.5.9/man

 

# End kdeaddition to man_db.conf

EOF

arts-1.5.9

wget ftp://ftp.lfs-matrix.net/pub/blfs/6.3/a/arts-1.5.9.tar.bz2

tar -jxvfarts-1.5.9.tar.bz2

cd arts-1.5.9

./configure--prefix=$KDE_PREFIX --disable-debug \

    --disable-dependency-tracking &&

make

make install

cd ..

rm -rf arts-1.5.9

kdelibs-3.5.9 

wget ftp://ftp.lfs-matrix.net/pub/blfs/6.3/k/kdelibs-3.5.9.tar.bz2

tar -jxvf kdelibs-3.5.9.tar.bz2

cdkdelibs-3.5.9

./configure--prefix=$KDE_PREFIX \

            --sysconfdir=/etc/kde \

            --disable-debug \

            --disable-dependency-tracking&&

LD_LIBRARY_PATH="$QTDIR/lib"make

make install

cd .. 
rm -rf kdelibs-3.5.9

kdebase-3.5.9

wget ftp://ftp.lfs-matrix.net/pub/blfs/6.3/k/kdebase-3.5.9.tar.bz2

tar -jxvf kdebase-3.5.9.tar.bz2 

cd kdebase-3.5.9 

./configure--prefix=$KDE_PREFIX --sysconfdir=/etc/kde \

    --disable-debug--disable-dependency-tracking &&

LD_LIBRARY_PATH="$KDE_PREFIX/lib"make

make install

cd ..

rm -rfkdebase-3.5.9

Configuring the Core KDE Packages 

echo "execstartkde" > ~/.xinitrc

  • 0
    点赞
  • 2
    收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
©️2022 CSDN 皮肤主题:大白 设计师:CSDN官方博客 返回首页
评论

打赏作者

EasyGOOO

你的鼓励将是我创作的最大动力

¥2 ¥4 ¥6 ¥10 ¥20
输入1-500的整数
余额支付 (余额:-- )
扫码支付
扫码支付:¥2
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、C币套餐、付费专栏及课程。

余额充值