LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1108|回复: 1

BLFS安装记录(Xorg-7.1)

[复制链接]
发表于 2006-11-30 01:10:46 | 显示全部楼层 |阅读模式
基本BLFS安装记录
http://chinajz.spaces.live.com/
c_xvidtune@hotmail.com
由于blfs选择包较多,这里选择常用包。这是第三次编译blfs,不当这处请指正.


1.准备

在~/.bashrc中加入以下内容:
export XORG_PREFIX="/usr"
export XORG_CONFIG="--prefix=$XORG_PREFIX --sysconfdir=/etc \
    --localstatedir=/var --datadir=$XORG_PREFIX/lib"
执行:
source ~/.bashrc
echo $XORG_PREFIX
echo $XORG_CONFIG
mkdir -vp /sources/xc && cd /sources/xc

在xc目录下建立批量编译 shell---wget_install为以下内容
for package in $(cat ../wgetlist.wget)
do
  packagedir=$(echo $package | sed 's/.tar.bz2//')
  tar -xf $package
  cd $packagedir
  ./configure $XORG_CONFIG
  make
  make install
  cd ..
  rm -rf $packagedir
  rm -f $package
done 2>&1 | tee -a ../xorg-compile.log #log the entire loop

2. Downloading and Install Xorg Protocol Headers
wget http://anduin.linuxfromscratch.o ... wget/proto-7.1.wget &&
mkdir proto &&
cd proto &&
wget -B http://xorg.freedesktop.org/releases/individual/proto/ -i ../proto-7.1.wget

安装:
mv ../{proto-7.1.wget,wgetlist.wget}
sh ../wget_install

3.安装pkg-config
cd ../..
wget http://pkgconfig.freedesktop.org/releases/pkg-config-0.20.tar.gz
tar xfv pkg-config-0.20.tar.gz
cd pkg-config-0.20
./configure --prefix=/usr && make
make install
4.安装Xorg Utilities
cd /sources/xc
source ~/.bashrc
wget http://anduin.linuxfromscratch.o ... /wget/util-7.1.wget &&
mkdir util &&
cd util &&
wget -B http://xorg.freedesktop.org/releases/individual/util/ -i ../util-7.1.wget

tar xfv xorg-cf-files-1.0.2.tar.bz2 &&
cd xorg-cf-files-1.0.2/ &&
sed -i "s@/usr/X11R6@$XORG_PREFIX@" X11.tmpl && ./configure $XORG_CONFIG --with-config-dir=$XORG_PREFIX/lib/X11/config

make install &&
cd .. &&
rm -rf xorg-cf-files-1.0.2*

tar xfv imake-1.0.2.tar.bz2 &&
cd imake-1.0.2 &&

./configure $XORG_CONFIG --with-config-dir=$XORG_PREFIX/lib/X11/config &&
make &&
make install &&
cd .. &&
rm -rf imake-1.0.2*

mv ../{util-7.1.wget,wgetlist.wget}

wgetlist.wget改为以下内容:
gccmakedep-1.0.2.tar.bz2
lndir-1.0.1.tar.bz2
makedepend-1.0.0.tar.bz2
util-macros-1.0.2.tar.bz2

sh ../wget_install
cd .. &&
rm -rf util
5.安装 Xorg Libraries
5.1安装ed
wget http://ftp.gnu.org/pub/gnu/ed/ed-0.2.tar.gz
wget http://www.linuxfromscratch.org/ ... 0.2-mkstemp-1.patch
tar xfv ed-0.2.tar.gz
cd ed-0.2
patch -Np1 -i ../ed-0.2-mkstemp-1.patch
./configure --prefix=/usr --exec-prefix="" &&
make
make install
cd .. && rm -rf ed*
5.2安装FreeType2

wget ftp://ftp.fu-berlin.de/unix/linu ... type-2.1.10.tar.bz2
wget http://prdownloads.sourceforge.n ... -doc-2.1.10.tar.bz2
tar xfv 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 's:.*(#.*BYTE.*) .*:\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-*

5.3 安装Expat
wget http://prdownloads.sourceforge.net/expat/expat-2.0.0.tar.gz

tar xfv 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 expat-2.0.0* -rf
5.4 安装Fontconfig
tar xfv fontconfig-2.3.2.tar.gz
cd fontconfig-2.3.2/
./configure --prefix=/usr --sysconfdir=/etc \
    --disable-docs --without-add-fonts \
    --with-docdir=/usr/share/doc/fontconfig-2.3.2 &&
make

如果你以其前装过libiconv将出现以下错误
----------------------------------
mkdir .libs
gcc -g -O2 -o .libs/fc-cache fc-cache.o  ../src/.libs/libfontconfig.so
../src/.libs/libfontconfig.so: undefined reference to `libiconv_open'
../src/.libs/libfontconfig.so: undefined reference to `libiconv_close'
../src/.libs/libfontconfig.so: undefined reference to `libiconv'
collect2: ld returned 1 exit status
make[2]: *** [fc-cache] Error 1
make[2]: Leaving directory `/sources/xc/fontconfig-2.3.2/fc-cache'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/sources/xc/fontconfig-2.3.2'
make: *** [all] Error 2
-------------------------------------------
解决方法:
./configure CFLAGS="-liconv" --prefix=/usr --sysconfdir=/etc     --disable-docs  --without-add-fonts     --with-docdir=/usr/share/doc/fontconfig-2.3.2 &&
make  &&
make install

5.5安装Xorg Libraries

wget http://anduin.linuxfromscratch.o ... x/wget/lib-7.1.wget &&
mkdir lib &&
cd lib &&
wget -B http://xorg.freedesktop.org/releases/individual/lib/ -i ../lib-7.1.wget

mv ../{lib-7.1.wget,wgetlist.wget}

wget_install内容:
----------------------------
for package in $(cat ../wgetlist.wget)
do
  packagedir=$(echo $package | sed 's/.tar.bz2//')
  tar -xf $package
  cd $packagedir
  ./configure $XORG_CONFIG
  make
  make install
  ldconfig
  cd ..
done 2>&1 | tee -a ../xorg-compile.log #log the

----------------------------
sh ../wget_install

cd lib
wget http://www.linuxfromscratch.org/ ... .0.1-setuid-1.patch
wget http://www.linuxfromscratch.org/ ... .0.0-setuid-1.patch
wget http://www.linuxfromscratch.org/ ... .0-cidfonts-1.patch
5.5.1安装xtrans补丁
cd xtrans-1.0.0
patch -Np1 -i ../xtrans-1.0.0-setuid-1.patch
./configure $XORG_CONFIG && make && make install && ldconfig

cd .. && rm -rf xtrans-1.0.*


5.5.2安装libX11补丁
cd libX11-1.0.1/
patch -Np1 -i ../libX11-1.0.1-setuid-1.patch
./configure $XORG_CONFIG && make && make install && ldconfig && cd ..
5.53安装libXfont补丁
cd libXfont-1.1.0
patch -Np1 -i ../libXfont-1.1.0-cidfonts-1.patch
./configure $XORG_CONFIG && make && make install && ldconfig && cd ..

cd ../ && rm -rf lib
ln -sv $XORG_PREFIX/lib/X11 /usr/lib/X11 &&
ln -sv $XORG_PREFIX/include/X11 /usr/include/X11
6.安装xbitmaps
wget http://xorg.freedesktop.org/rele ... tmaps-1.0.1.tar.bz2
tar xfv xbitmaps-1.0.1.tar.bz2
cd xbitmaps-1.0.1

./configure $XORG_CONFIG && make install
7.安装 Xorg Applications
7.1安装libpng
wget http://prdownloads.sourceforge.net/libpng/libpng-1.2.12.tar.bz2
tar xfv 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
7.2批量安装app包
wget http://anduin.linuxfromscratch.o ... x/wget/app-7.1.wget &&
mkdir app &&
cd app &&
wget -B http://xorg.freedesktop.org/releases/individual/app/ -i ../app-7.1.wget

wget_install内容
---------------------------------------------------
for package in $(cat ../wgetlist.wget)
do
  packagedir=$(echo $package | sed 's/.tar.bz2//')
  tar -xf $package
  cd $packagedir
  ./configure $XORG_CONFIG
  make
  make install
  cd ..
done 2>&1 | tee -a ../xorg-compile.log #log the
-------------------------------------------------------------
mv ../app-7.1.wget ../wgetlist.wget
sh ../wget_install
7.3安装补丁包
wget http://www.linuxfromscratch.org/ ... .0.4-setuid-1.patch
wget http://www.linuxfromscratch.org/ ... .0.1-setuid-1.patch
wget http://www.linuxfromscratch.org/ ... .0.2-setuid-1.patch
wget http://www.linuxfromscratch.org/ ... .0.1-setuid-1.patch
7.3.1安装xdm补丁
cd xdm-1.0.4
patch -Np1 -i ../xdm-1.0.4-setuid-1.patch
  ./configure $XORG_CONFIG &&
  make &&
  make install &&
cd ..
7.3.2安装xf86dga补丁
cd xf86dga-1.0.1
patch -Np1 -i ../xf86dga-1.0.1-setuid-1.patch
  ./configure $XORG_CONFIG &&
  make &&
  make install &&
cd ..
7.3.3安装xinit补丁
cd xinit-1.0.2

patch -Np1 -i ../xinit-1.0.2-setuid-1.patch
  ./configure $XORG_CONFIG &&
  make &&
  make install &&
cd ..
7.3.4安装xload补丁
cd xload-1.0.1
patch -Np1 -i ../xload-1.0.1-setuid-1.patch
  ./configure $XORG_CONFIG &&
  make &&
  make install &&
cd ..
cd .. && rm -rf app
8. 安装Xorg Data

wget http://anduin.linuxfromscratch.o ... /wget/data-7.1.wget &&
mkdir data &&
cd data &&
wget -B http://xorg.freedesktop.org/releases/individual/data/ -i ../data-7.1.wget

mv -v ../{data-7.1.wget,wgetlist.wget}
sh ../wget_install
cd .. && rm -rf data
9安装font
wget http://anduin.linuxfromscratch.o ... /wget/font-7.1.wget &&
mkdir font &&
cd font &&
wget -B http://xorg.freedesktop.org/releases/individual/font/ -i ../font-7.1.wget
mv -v ../{font-7.1.wget,wgetlist.wget}
sh ../wget_install
cd .. && rm -rf font
install -v -d -m755 /usr/share/fonts &&
ln -svn $XORG_PREFIX/lib/X11/fonts/OTF /usr/share/fonts/X11-OTF &&
ln -svn $XORG_PREFIX/lib/X11/fonts/TTF /usr/share/fonts/X11-TTF

10安装luit

wget http://xorg.freedesktop.org/rele ... /luit-1.0.1.tar.bz2
tar xfv luit-1.0.1.tar.bz2
cd  luit-1.0.1
sed -i "s@/usr/X11R6@$XORG_PREFIX@" parser.h &&
patch -Np1 -i ../luit-1.0.1-race-1.patch &&
./configure $XORG_CONFIG &&
make && make install

11安装libdrm
wget ftp://ftp.fu-berlin.de/unix/linu ... libdrm-2.0.1.tar.gz
tar xfv libdrm-2.0.1.tar.gz
cd libdrm-2.0.1
./configure --prefix=$XORG_PREFIX &&
make && make install && cd ../
12安装bc
wget http://ftp.gnu.org/gnu/bc/bc-1.06.tar.gz
tar xfv bc-1.06.tar.gz
cd bc-1.06
sed -i '/PROTO.*readline/d' bc/scan.l &&
sed -i '/flex -I8/s/8//' configure &&
sed -i '/stdlib/a #include <string.h>' lib/number.c &&
sed -i 's/program.*save/static &/' bc/load.c &&
./configure --prefix=/usr --with-readline &&
make  && make install
13安装libxml
wget http://ftp.gnome.org/pub/gnome/s ... bxml2-2.6.26.tar.gz
tar xfv libxml2-2.6.26.tar.gz
cd libxml2-2.6.26
./configure --prefix=/usr &&
make && make install && cd ..
14 安装glib
wget http://ftp.gnome.org/pub/gnome/s ... glib-2.10.3.tar.bz2
tar xfv glib-2.10.3.tar.bz2
cd glib-2.10.3
./configure --prefix=/usr &&
make && make install && cd ..
15安装atk
wget http://ftp.gnome.org/pub/gnome/s ... /atk-1.11.4.tar.bz2
tar xfv atk-1.11.4.tar.bz2
cd atk-1.11.4
./configure --prefix=/usr &&
make  && make install && cd ..
16安装 cairo
wget http://cairographics.org/releases/cairo-1.2.4.tar.gz
tar xfv cairo-1.2.4.tar.gz
cd cairo-1.2.4
./configure --prefix=/usr  &&
make && make install && cd ..
17安装pango
wget http://ftp.gnome.org/pub/GNOME/p ... ango-1.14.7.tar.bz2
tar xfv pango-1.14.7.tar.bz2
cd pango-1.14.7
./configure --prefix=/usr --libdir=/usr/lib --sysconfdir=/etc --with-cairo CFLAGS="-liconv"  && make && make install && cd ..

18安装libtiff
wget http://libtiff.maptools.org/dl/tiff-3.8.2.tar.gz
tar xfv tiff-3.8.2.tar.gz
cd tiff-3.8.2 &&
./configure --prefix=/usr &&
make && make install && cd ..
19安装JPEG library
wget http://www.ijg.org/files/jpegsrc.v6b.tar.gz
tar xfv jpegsrc.v6b.tar.gz
cd jpeg-6b
./configure --prefix=/usr --enable-static --enable-shared &&
make && make install && cd ..
20安装 GTK+
20.1安装gtk+-1.2.10
wget http://gd.tuwien.ac.at/graphics/gimp/gtk/v1.2/gtk+-1.2.10.tar.gz
tar xfv gtk+-1.2.10.tar.gz
cd gtk+-1.2.10
./configure --prefix=/usr --sysconfdir=/etc &&
make &&
make install &&
install -v -m755 -d /usr/share/doc/gtk+-1.2.10/{html,text} &&
install -v -m644 docs/html/* /usr/share/doc/gtk+-1.2.10/html &&
install -v -m644 docs/text/* /usr/share/doc/gtk+-1.2.10/text

20.2安装gtk+-2.8.20
wget http://ftp.gnome.org/pub/gnome/s ... gtk+-2.8.20.tar.bz2
tar xfv gtk+-2.8.20.tar.bz2
cd gtk+-2.8.20 &&
./configure --prefix=/usr --sysconfdir=/etc &&
make &&
make install &&
install -v -m755 -d /usr/share/doc/gtk+-2.8.20/{faq,tutorial} &&
cp -v -R docs/faq/html/* /usr/share/doc/gtk+-2.8.20/faq &&
cp -v -R docs/tutorial/html/* /usr/share/doc/gtk+-2.8.20/tutorial &&
cd ..
21安装 libglade
wget http://ftp.gnome.org/pub/gnome/s ... glade-2.6.0.tar.bz2
tar xfv libglade-2.6.0.tar.bz2
cd libglade-2.6.0
./configure --prefix=/usr &&
make && make install && cd ..
22安装xscreensaver
wget http://www.jwz.org/xscreensaver/xscreensaver-4.24.tar.gz
tar xfv xscreensaver-4.24.tar.gz
cd xscreensaver-4.24 &&
./configure --prefix=/usr --libexecdir=/usr/lib &&
make && make install && cd ..
23安装MesaLib-6.5
wget http://prdownloads.sourceforge.net/mesa3d/MesaLib-6.5.tar.bz2
tar xfv  MesaLib-6.5.tar.bz2
cd Mesa-6.5/
find . -type f -exec sed -i "s@/usr/X11R6@$XORG_PREFIX@g" {} \; && sed -i 's@lib/modules@lib/X11/modules@' src/glx/x11/dri_glx.c && sed -i 's@lib/modules@lib/X11/modules@' src/mesa/drivers/dri/Makefile.template

sed -i 's%>& /dev/null%>/dev/null%' src/mesa/drivers/dri/Makefile.template

make OPT_FLAGS="-O2 -fno-strict-aliasing" linux-dri-x86

bin/installmesa $XORG_PREFIX

mkdir -v -p $XORG_PREFIX/lib/X11/modules/dri && install -v -m755 lib/*dri* $XORG_PREFIX/lib/X11/modules/dri

ln -s -v $XORG_PREFIX/include/GL /usr/include

24安装xorg-server-1.1.0

wget http://www.linuxfromscratch.org/ ... .1.0-setuid-2.patch
wget http://xorg.freedesktop.org/rele ... erver-1.1.0.tar.bz2
tar xfv xorg-server-1.1.0.tar.bz2
cd xorg-server-1.1.0
patch -Np1 -i ../xorg-server-1.1.0-setuid-2.patch

sed -i \
    's@-I$(top_builddir)/include@-I$(top_builddir)/GL/mesa/main@8' \
    GL/glx/Makefile.in &&
sed -i \
    's@-I$(top_builddir)/include@-I$(top_builddir)/GL/mesa/glapi@7' \
    GL/glx/Makefile.in &&
./configure $XORG_CONFIG --with-mesa-source='/sources/xc/Mesa-6.5' --with-fontdir=$XORG_PREFIX/lib/X11/fonts     --with-module-dir=$XORG_PREFIX/lib/X11/modules     --with-dri-driver-path=$XORG_PREFIX/lib/X11/modules/dri     --enable-install-setuid && make
make install

25安装 Xorg Drivers

wget http://anduin.linuxfromscratch.o ... get/driver-7.1.wget &&
mkdir driver &&
cd driver &&
wget -B http://xorg.freedesktop.org/releases/individual/driver/ -i ../driver-7.1.wget


编辑wget_install内容为:
----------------------------------
for package in $(cat ../wgetlist.wget)
do
  packagedir=$(echo $package | sed 's/.tar.bz2//')
  tar -xf $package
  cd $packagedir
  ./configure $XORG_CONFIG --with-xorg-module-dir=$XORG_PREFIX/lib/X11/modules
  make
  make install
  cd ..
done 2>&1 | tee -a ../xorg-compile.log #log the
----------------------------------
mv ../{driver-7.1.wget,wgetlist.wget}
sh ../wget_install
cd .. && rm -rf driver
26安装xterm
wget ftp://invisible-island.net/xterm/xterm-218.tgz
tar xfv xterm-218.tgz
cd xterm-218
./configure $XORG_CONFIG \
    --enable-luit --with-wide-chars &&
make &&
make install &&
make install-ti
至此,xorg-7.1安装成功,执行:
root:~# X -version

X Window System Version 7.1.0
Release Date: 22 May 2006
X Protocol Version 11, Revision 0, Release 7.1
Build Operating System: Linux 2.6.18-2-686 i686
Current Operating System: Linux CLFS 2.6.18.2 #10 Thu Nov 23 20:42:24 CST 2006 i686
Build Date: 30 November 2006
        Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
Module Loader present



27.安装 Perl Modules
27.1安装 XML:arser-2.34
wget http://cpan.org/authors/id/M/MS/MSERGEANT/XML-Parser-2.34.tar.gz
tar xfv XML-Parser-2.34.tar.gz
cd XML-Parser-2.34/ &&
perl Makefile.PL &&
make && make install && cd ..
27.2 URI-1.35
wget http://cpan.org/authors/id/G/GA/GAAS/URI-1.35.tar.gz
tar xfv URI-1.35.tar.gz
cd URI-1.35 &&
perl Makefile.PL &&
make && make install && cd ..
28安装Python-2.4.3
wget http://www.python.org/ftp/python/2.4.3/Python-2.4.3.tar.bz2
wget  http://www.linuxfromscratch.org/ ... -2.4.3-gdbm-1.patch

tar xfv Python-2.4.3.tar.bz2
cd Python-2.4.3
patch -Np1 -i ../Python-2.4.3-gdbm-1.patch &&
./configure --prefix=/usr --enable-shared &&
make && make install && cd ..

28安装VTE
wget http://ftp.gnome.org/pub/gnome/s ... /vte-0.12.2.tar.bz2
tar xfv vte-0.12.2.tar.bz2
cd vte-0.12.2
sed -i 's%\\177:%&kh=\\EOH7=\\EOF:%' termcaps/xterm &&
sed -i 's/FT2_LIBS $LIBS/& $X_LIBS/' configure &&
sed -i -e 's/^ssfe_LDADD =.*$/& -lncurses/' \
       -e 's/^LDFLAGS =.*$/& @X_LIBS@/' \
    src/Makefile.in &&

./configure --prefix=/usr \
            --libexecdir=/usr/lib/vte &&
make  && make install && cd ..
29安装libIDL
wget ftp://ftp.gnome.org/pub/gnome/so ... ibIDL-0.8.7.tar.bz2
tar xfv libIDL-0.8.7.tar.bz2
cd libIDL-0.8.7/
./configure --prefix=/usr &&
make && make install && cd ..
30 安装zip
wget http://ftp.br.freebsd.org/distfiles/zip232.tar.gz
tar xfv zip232.tar.gz
cd zip-2.32/ &&
make -f unix/Makefile generic_gcc &&
make prefix=/usr -f unix/Makefile install &&
cd ..
31.install desktop-file-utils
wget http://freedesktop.org/software/ ... e-utils-0.11.tar.gz
tar xfv desktop-file-utils-0.11.tar.gz
cd desktop-file-utils-0.11
./configure --prefix=/usr && make && make install && cd ..
32.install hicolor-icon-theme
wget http://icon-theme.freedesktop.or ... on-theme-0.9.tar.gz
tar xfv hicolor-icon-theme-0.9.tar.gz
cd hicolor-icon-theme-0.9
./configure --prefix=/usr && make install && cd ..
31安装firefox
wget http://releases.mozilla.org/pub/ ... .0.7-source.tar.bz2
md5sum firefox-1.5.0.7-source.tar.bz2
wget http://www.linuxfromscratch.org/ ... -system_nss-1.patch
wget http://www.linuxfromscratch.org/ ... .7-pangoxft-1.patch
tar xfv firefox-1.5.0.7-source.tar.bz2
cd mozilla/
---------------
cat > .mozconfig << "EOF"
# This file contains the options used in the Firefox build. You may
# need to specify additional options for your specific build needs.
# Use the information provided by running './configure --help' to
# help you determine if you need to add any additional options.
# Some additional options can be added by uncommenting the examples
# in this file or adding options by inserting a line containing
# 'ac_add_options --some-option-you-need'.


# Use the default settings specified in the source tree
. $topsrcdir/browser/config/mozconfig

# Create an object directory and specify to build the package in that
# directory. If desired, modify the location of the object directory
# to a directory inside the source tree by removing '../' from the
# line below.
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/../firefox-build

# Specify the installation prefix. If you would prefer Firefox
# installed in a different prefix, modify the line below to fit
# your needs. You'll also need to modify some of the instructions in
# the BLFS book to point to your desired prefix.
ac_add_options --prefix=/usr

# These options are used so that the Firefox binaries are linked to
# the system-installed copies of the specified libraries instead of
# the source tree code which may not be the most recent versions.
ac_add_options --with-system-zlib
ac_add_options --with-system-png
ac_add_options --with-system-jpeg
ac_add_options --enable-system-cairo

# This option causes the installed binaries to have the official
# Firefox name embedded in them. Due to license restrictions, you
# may not distribute binaries created using this option.
ac_add_options --enable-official-branding

# This option specifies to include support for rendering the HTML
# <canvas></canvas> tag in the Firefox browser.
ac_add_options --enable-canvas

# This option is used to enable support for rendering SVG files in the
# Firefox browser. Comment out the line to disable the option.
ac_add_options --enable-svg

# This option is used so that the debugging symbols are removed from
# the installed binaries during the installation process. Comment out
# this option if you may have a need to retain the debugging symbols
# in the installed binaries. Note that this can substantially
# increase the size of the installed binaries.
ac_add_options --enable-strip

# This option is added so that test libraries and programs are not
# built. These would only be required for debugging purposes.
ac_add_options --disable-tests

# This option is added so that the Mozilla Installer program is not
# built or installed. The program is not required for a BLFS
# installation of Firefox.
ac_add_options --disable-installer

# This option is used to disable the a11y support in the Firefox
# binaries. Comment out this option if you require a11y support.
ac_add_options --disable-accessibility

# This option is used to enable source tree included LDAP support in
# the Firefox binaries.
###################################################################
#
# NOTE: You must uncomment this option if there is any chance of
# compiling the OpenOffice package from source code using this copy
# of Firefox for your Mozilla support.
#
###################################################################
#ac_add_options --enable-ldap

# Uncomment this option if you desire support for dual-monitor
# display of Firefox using the X-Window Xinerama libraries.
#ac_add_options --enable-xinerama

# These two options enable support for building Firefox with
# system-installed versions of the Network Security Services (NSS)
# and Netscape Portable Runtime (NSPR) libraries. Uncomment both
# lines to enable support for system-installed NSS/NSPR.
#ac_add_options --with-system-nss
#ac_add_options --with-system-nspr

# Complex scripts such as Thai can only be rendered in Firefox with the
# help of Pango. This option significantly slows rendering, so only use
# it if necessary.
#ac_add_options --enable-pango

# This option identifies the default binary directory of the Firefox
# installation and is used to locate Firefox's installed files. This
# option is not required for end-user browsing, and is only used for
# development purposes.
#ac_add_options --with-default-mozilla-five-home=/usr/lib/firefox-1.5.0.7

EOF
---------------
patch -Np1 -i ../firefox-1.5.0.7-pangoxft-1.patch
patch -Np1 -i ../firefox-1.5.0.7-system_nss-1.patch

sed -i "s/^    enum$/& xptinfo_enum_1/" \
    xpcom/reflect/xptinfo/public/xptinfo.h &&
make -f client.mk build

make -f client.mk install &&
install -v -m755 -d /usr/lib/firefox-1.5.0.7/chrome/icons/default &&
ln -v -s ../../../icons/default.xpm \
    /usr/lib/firefox-1.5.0.7/chrome/icons/default &&
chown -v -R root:root \
    /usr/lib/firefox-1.5.0.7/extensions/inspector@mozilla.org/*

install -v -m755 -d /usr/include/firefox-1.5.0.7/nss &&
cp -v -Lf ../firefox-build/dist/{private,public}/nss/*.h \
    /usr/include/firefox-1.5.0.7/nss
33安装xfce4-4.4RC2

wget http://nchc.dl.sourceforge.net/s ... .4RC2-installer.run
启动X
startx
在X终端中执行
sh xfce4-4.4RC2-installer.run


(待续)
发表于 2006-11-30 09:01:40 | 显示全部楼层
谢楼主!准备做,先收下看看
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表