mozilla-1.2.1
======================

Building mozilla 1.2.1 for UnixWare 7.1.3 with the native UDK C/C++
compilers.

Requirements:
   1. UnixWare 7.1.3 Update Service Pack 2 (compiler enhancements necessary
      to build mozilla)
   2. glib-1.2.10 built and installed
   3. gtk+-1.2.10 built and installed
   4. libIDL-0.6.8 built and installed
   5. zip 2.3 or later installed on your system

To Build:

1. Unlike other open source applications/tools, mozilla does not build
   in a separate directory from the source files.

   Unwind the bzip'ed tar file (mozilla-source-1.2.1.tar.bz2)in to a build
   directory.

2. Apply the cumulative set of UW and OSR5 specific patches for mozilla 1.2.1
   to the sete of source files

     cd build/mozilla
     patch -b -p0 < <this directory>/mozilla-1.2.1.patch

3. Copy in the SCO mozilla config file into the build directory

     cd build/mozilla
     cp <this directory>/mozconfig mozconfig.sco

4. Optionally replace the mozilla throbber gifs with the SCO gifs in both
   the classic and modern themes

     cp <this dir>/throbber-single.gif \
           ./themes/classic/communicator/brand/throbber-single.gif
     cp <this dir>/throbber-single.gif \
           ./themes/modern/communicator/brand/throbber-single.gif

     cp <this dir>/throbber-anim.gif \
           ./themes/classic/communicator/brand/throbber-anim.gif
     cp <this dir>/throbber-anim.gif \
           ./themes/modern/communicator/brand/throbber-anim.gif
     
     cp <this dir>/throbber16-single.gif \
           ./themes/classic/communicator/brand/throbber16-single.gif
     cp <this dir>/throbber16-single.gif \
           ./themes/modern/communicator/brand/throbber16-single.gif

     cp <this dir>/throbber16-anim.gif \
           ./themes/classic/communicator/brand/throbber16-anim.gif
     cp <this dir>/throbber16-anim.gif \
           ./themes/modern/communicator/brand/throbber16-anim.gif

5. Use the following script to reconfigure, and build mozilla.

# Make gmake visible
#
export PATH=$PATH:/usr/gnu/bin
 

# Make X tools visible
#
export PATH=$PATH:/usr/bin/X11


# setup environment
#
export MOZILLA_OFFICIAL=1
export BUILD_OFFICIAL=1
export MOZ_INTERNAL_LIBART_LGPL=1
export MOZCONFIG=`pwd`/mozconfig.sco

#
# Rerun autoconf where needed
#

autoconf > log.autoconf
cd nsprpub
autoconf > log.autoconf
cd -
cd directory/c-sdk
autoconf > log.autoconf
cd -


#
#  build
#

export RANLIB=:         # use ":" instead of /usr/gnu/bin/ranlib

MAKE="gmake -j2" gmake CC="/home/jlw/CPLU/NEWER/usr/ccs/bin/cc -Xb" CXX="/hom
e/jlw/CPLU/NEWER/usr/ccs/bin/CC" -f client.mk build_all> log.gmk.build_all 2>
&1

status=$?
if [ $status -eq 0 ]
then
  # Build the component.reg and chrome.rdf files
  cd dist/bin
  # register our components
  LD_LIBRARY_PATH=`pwd`:`pwd`/.. MOZILLA_FIVE_HOME=`pwd` ./regxpcom
  # set up the default skin and locale to trigger the generation of
  # the user-locales and users-skins.rdf
  echo "skin,install,select,classic/1.0" >> chrome/installed-chrome.txt
  echo "locale,install,select,en-US" >> chrome/installed-chrome.txt
  # set up the chrome rdf files
  LD_LIBRARY_PATH=`pwd`:`pwd`/.. MOZILLA_FIVE_HOME=`pwd` ./regchrome
  cd -

  # fix permissions of the chrome directories
  /usr/bin/find dist -type d -perm 0700 -exec chmod 755 {} \; || :
fi



5.  The results are in the dist/bin directory.

