Oo require
From LocalizationWiki
Building OpenOffice.org 2.0 in Debian GNU/Linux based systems. Just a personal-howto; No guarantee; Use at your own risk. Subir Pradhanang (subirbp@gmail.com)
Script to add Debian etch as the download repository
cat >> /etc/apt/sources.list file << "EOF" deb http://ftp.debian.org/debian/ etch main contrib EOF
Packages Required for Development:
apt-get update apt-get install <pkgname>
dpkg-dev file gcc g++ libc6-dev make patch perl autoconf and automake libncurses flex bison
Build Requirements for OpenOffice.org 2.0:
libcupsys2-dev libpam0g-dev libexpat1-dev libice-dev libxaw8-dev libfontconfig1-dev libgtk2.0-dev zip and unzip tcsh
Perl Modules:
libcompress-zlib-perl (Compress::Zlib) libarchive-zip-perl (Archive::Zip) libxml-parser-perl (XML::Parser)
Installing JDK 1.4.2
http://java.sun.com/j2se/1.4.2 ./j2sdk-1_4_2_02-linux-i586.bin
Installing Apache-Ant
http://ant.apache.org/ unzip apache-ant-1.6.2-bin.zip
Installing translate toolkit
http://translate.sourceforge.net/ tar zxvf translate-toolkit-0.8rc5.tar.gz cd translate-toolkit-0.8rc5 ./setup.py install
export MILESTONE="150"
Generating PO files from POT files
http://ftp.linux.cz/pub/localization/OpenOffice.org/devel/POT/ tar zxvf OpenOffice.org-SRC680_m${MILESTONE}-POT.tar.gz pot2po -i pot -o po
Do all the translations using any of the tools like KBabel, POEdit, etc.
Converting po files to oo format...generating GSI_ne.sdf
po2oo -i po -o GSI_ne.sdf -t en-US.sdf -l ne 2>&1 | tee po2oo_error
Open office source file
http://download.openoffice.org/680/index.html tar zxvf OOo_SRC680_m${MILESTONE}_source.tar.gz
Placing gpc files
http://www.cs.man.ac.uk/aig/staff/alan/software/ unzip gpc232.zip cp gpc232/* ooo_SRC680_m${MILESTONE}_src/external/gpc/
Placing Mozilla prebuilt libraries
http://tools.openoffice.org/moz_prebuild/680/ cp LINUXGCCI{inc,lib,runtile}.zip ooo_SRC680_m${MILESTONE}_src/moz/zipped/
cd ooo_SRC680_m${MILESTONE}_src
cd config_office
./configure --with-lang="ne" --disable-build-mozilla --disable-gnome-vfs --with-jdk-home=j2sdk1.4.2_02 --with-ant-home=apache-ant-1.6.2
cd ..
source LinuxIntelEnv.Set.sh
./bootstrap
Build transex3 project first
cd transex3 build.pl --all deliver.pl cd ..
Checking the newly generated gsi file
gsicheck -c -l "" GSI_ne.sdf 2>&1 | tee gsicheck_error
Removing existing Nepali translations from source
for localize in `find . -name localize.sdf` do grep -v " ne " $localize >$localize.tmp mv -f $localize.tmp $localize done
Merging the latest translations to source
localize -m -l ne -f GSI_ne.sdf 2>&1 | tee localize_error
export DEFAULT_TO_ENGLISH_FOR_PACKING="yes"
Building OpenOffice.org for Nepali and English
Built packages will be in ./instsetoo_native/unxlngi6.pro_DEBIAN/OpenOffice/install/
dmake 2>&1 | tee dmake_error
Building language packs for Nepali and English. Built language packs will be in ./instsetoo_native/unxlngi6.pro_DEBIAN/OpenOffice_languagepack/install/
cd instsetoo_native/util/ dmake ooolanguagepack 2>&1 | tee ../../langpack_error
