|
|
# --- ROCK-COPYRIGHT-NOTE-BEGIN --- # # This copyright note is auto-generated by ./scripts/Create-CopyPatch. # Please add additional copyright information _after_ the line containing # the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by # the ./scripts/Create-CopyPatch script. Do not edit this copyright text! # # ROCK Linux: rock-src/package/x11/mozilla/mozilla.conf # ROCK Linux is Copyright (C) 1998 - 2003 Clifford Wolf # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. A copy of the GNU General Public # License can be found at Documentation/COPYING. # # Many people helped and are helping developing ROCK Linux. Please # have a look at http://www.rocklinux.org/ and the Documentation/TEAM # file for details. # # --- ROCK-COPYRIGHT-NOTE-END ---
main_mozilla() { export MOZILLA_OFFICIAL=1 BUILD_OFFICIAL=1 export MOZILLA_FIVE_HOME=$root/usr/lib/mozilla-$ver
# replace the 00... build-id with s.th. useful sed "s,0000000000,ROCK Linux - $rockver," \ xpfe/global/build.dtd.in > xpfe/global/build.dtd.in.new mv xpfe/global/build.dtd.in.new xpfe/global/build.dtd.in
cp security/coreconf/Linux2.5.mk security/coreconf/Linux2.6.mk
cat > .mozconfig <<-EOP # sh # Build configuration script # Options for client.mk. # mk_add_options MOZ_MAKE_FLAGS=-j4
# Options for 'configure' (same as command-line options). ac_add_options --prefix=$root/usr ac_add_options --sysconfdir=$root/etc ac_add_options --localstatedir=$root/var ac_add_options --host=$arch_target ac_add_options --disable-debug ac_add_options --disable-dtd-debug ac_add_options --disable-tests ac_add_options --disable-pedantic ac_add_options --enable-calendar ac_add_options --with-extensions ac_add_options --enable-extensions=default,venkman,inspector ac_add_options --enable-jsd ac_add_options --enable-mathml #ac_add_options --enable-svg ac_add_options --enable-crypto ac_add_options --enable-module=psm ac_add_options --enable-xft ac_add_options --enable-default-toolkit=gtk2 EOP eval $MAKE -f client.mk build ; eval $MAKE install
echo "Copy all mozilla include files" \ "(required for building galeon, evolution, etc.) ..." cp -v xpcom/base/nscore.h $root/usr/include/mozilla-$ver/xpcom/ cp -v xpcom/glue/nsDebug.h $root/usr/include/mozilla-$ver/xpcom/ cp -rL dist/include/* $root/usr/include/mozilla-$ver/ cp -rL dist/public/* $root/usr/include/mozilla-$ver/
echo "Run the component registration ..." cd $MOZILLA_FIVE_HOME LD_LIBRARY_PATH=. ./regxpcom LD_LIBRARY_PATH=. ./regchrome
echo "Creating /etc/profile.d/mozilla ..." cat <<- EOT > $root/etc/profile.d/mozilla export MOZILLA_FIVE_HOME=$root/usr/lib/mozilla-$ver EOT
echo "Creating /usr/lib/libnspr4.so symlink ..." cd $root/usr/lib ; ln -sf mozilla-$ver/libnspr4.so . }
# from time to time the tarball does include .CVS directories, and a cleanup # in this fat directory is a bit expensive, and the files should not make # and problem ... nocvsinsrcdir=0
custmain="main_mozilla"
|