|
|
|
@ -20,12 +20,9 @@ |
|
|
|
# |
|
|
|
# --- ROCK-COPYRIGHT-NOTE-END --- |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
main_mozilla() { |
|
|
|
export MOZILLA_OFFICIAL=1 BUILD_OFFICIAL=1 |
|
|
|
export MOZILLA_FIVE_HOME=/usr/lib/mozilla-$ver |
|
|
|
export MOZ_INTERNAL_LIBART_LGPL=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," \ |
|
|
|
@ -41,18 +38,19 @@ main_mozilla() { |
|
|
|
# mk_add_options MOZ_MAKE_FLAGS=-j4 |
|
|
|
|
|
|
|
# Options for 'configure' (same as command-line options). |
|
|
|
ac_add_options --prefix=/usr |
|
|
|
ac_add_options --sysconfdir=/etc |
|
|
|
ac_add_options --localstatedir=/var |
|
|
|
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-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-svg |
|
|
|
ac_add_options --enable-crypto |
|
|
|
ac_add_options --enable-module=psm |
|
|
|
ac_add_options --enable-xft |
|
|
|
@ -63,10 +61,10 @@ EOP |
|
|
|
|
|
|
|
echo "Copy all mozilla include files" \ |
|
|
|
"(required for building galeon, evolution, etc.) ..." |
|
|
|
cp -v xpcom/base/nscore.h /usr/include/mozilla-$ver/xpcom/ |
|
|
|
cp -v xpcom/glue/nsDebug.h /usr/include/mozilla-$ver/xpcom/ |
|
|
|
cp -rL dist/include/* /usr/include/mozilla-$ver/ |
|
|
|
cp -rL dist/public/* /usr/include/mozilla-$ver/ |
|
|
|
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 |
|
|
|
@ -74,16 +72,18 @@ EOP |
|
|
|
LD_LIBRARY_PATH=. ./regchrome |
|
|
|
|
|
|
|
echo "Creating /etc/profile.d/mozilla ..." |
|
|
|
cat <<- EOT > /etc/profile.d/mozilla |
|
|
|
export MOZILLA_FIVE_HOME=/usr/lib/mozilla-$ver |
|
|
|
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 /usr/lib ; ln -sf mozilla-$ver/libnspr4.so . |
|
|
|
cd $/usr/lib ; ln -sf mozilla-$ver/libnspr4.so . |
|
|
|
} |
|
|
|
|
|
|
|
custmain="main_mozilla" |
|
|
|
|
|
|
|
#export CC="${CXX//++/cc}" |
|
|
|
#export CXX="$CXX -fpermissive -Wno-deprecated" |
|
|
|
# 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" |
|
|
|
|