2005-10-25 20:01:13 +02:00
|
|
|
source $stdenv/setup
|
|
|
|
|
2007-09-05 15:56:12 +02:00
|
|
|
export nodep=TRUE
|
|
|
|
export NO_HIDS=TRUE
|
2007-07-18 18:45:07 +02:00
|
|
|
|
2007-09-05 15:56:12 +02:00
|
|
|
export PATH=$icu/sbin:$PATH
|
2007-07-18 18:45:07 +02:00
|
|
|
|
2007-09-05 15:56:12 +02:00
|
|
|
preConfigure=preConfigure
|
|
|
|
preConfigure() {
|
2007-09-07 09:08:20 +02:00
|
|
|
for i in sysui/desktop/share/makefile.mk; do
|
2007-09-06 17:00:33 +02:00
|
|
|
substituteInPlace $i --replace /bin/bash $shell
|
2007-09-05 15:56:12 +02:00
|
|
|
done
|
|
|
|
|
2007-09-06 17:00:33 +02:00
|
|
|
SRCDIR=
|
|
|
|
|
2007-12-21 17:39:22 +01:00
|
|
|
sed -e '/CURL_NO_OLDIES/d' -i ucb/source/ucp/ftp/makefile.mk
|
|
|
|
|
2007-09-05 15:56:12 +02:00
|
|
|
cd config_office/
|
2005-10-25 20:01:13 +02:00
|
|
|
}
|
|
|
|
|
2007-09-06 17:00:33 +02:00
|
|
|
|
2007-09-07 09:08:20 +02:00
|
|
|
postConfigure=postConfigure
|
|
|
|
postConfigure() {
|
|
|
|
cd ..
|
2008-07-08 10:28:07 +02:00
|
|
|
for i in LinuxX86*Env.Set; do
|
2007-09-07 09:08:20 +02:00
|
|
|
substituteInPlace $i --replace /usr /no-such-path
|
|
|
|
done
|
|
|
|
substituteInPlace solenv/inc/libs.mk \
|
|
|
|
--replace /usr/lib/libjpeg.so $libjpeg/lib/libjpeg.so \
|
|
|
|
--replace /usr/lib64/libjpeg.so $libjpeg/lib/libjpeg.so
|
|
|
|
}
|
2005-10-26 22:42:12 +02:00
|
|
|
|
2007-09-06 17:00:33 +02:00
|
|
|
|
2007-09-05 15:56:12 +02:00
|
|
|
buildPhase=buildPhase
|
2005-10-26 22:42:12 +02:00
|
|
|
buildPhase() {
|
2008-07-08 10:28:07 +02:00
|
|
|
source LinuxX86*Env.Set.sh
|
2007-09-06 17:00:33 +02:00
|
|
|
./bootstrap
|
|
|
|
dmake # wait a few hours...
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
wrapSOffice() {
|
|
|
|
local fn=$1
|
|
|
|
local arg=$2
|
|
|
|
|
|
|
|
# !!! should use makeWrapper for this.
|
2007-09-05 15:56:12 +02:00
|
|
|
|
2007-09-06 17:00:33 +02:00
|
|
|
cat > $out/bin/$fn <<EOF
|
|
|
|
#! $shell
|
|
|
|
# Add fontconfig to the library search path; apparently OpenOffice
|
|
|
|
# looks for it at runtime.
|
2007-09-10 16:03:01 +02:00
|
|
|
export LD_LIBRARY_PATH=\$LD_LIBRARY_PATH\${LD_LIBRARY_PATH:+:}$fontconfig/lib:$libjpeg/lib:$cups/lib
|
|
|
|
export JAVA_HOME=$jdk
|
2007-09-06 17:00:33 +02:00
|
|
|
exec $ooFiles/program/soffice $arg "\$@"
|
|
|
|
EOF
|
|
|
|
chmod +x $out/bin/$fn
|
2005-10-26 22:42:12 +02:00
|
|
|
}
|
|
|
|
|
2007-09-06 17:00:33 +02:00
|
|
|
|
|
|
|
installPhase=installPhase
|
|
|
|
installPhase() {
|
|
|
|
ooFiles=$out/lib/openoffice
|
|
|
|
|
|
|
|
# This was all borrowed from ooo-build-2.2.1's bin/ooinstall.
|
|
|
|
eval $(grep 'BUILD\|LAST_MINOR' $SOLARENV/inc/minor.mk)
|
|
|
|
export PYTHONPATH=$SOLARVERSION/$INPATH/lib:$SRC_ROOT/instsetoo_native/$INPATH/bin:$PYTHONPATH
|
|
|
|
export OUT=../$INPATH
|
|
|
|
export LOCAL_OUT=../$INPATH
|
|
|
|
export LOCAL_COMMON_OUT=../$INPATH
|
|
|
|
|
|
|
|
# Do the actual installation into $out.
|
|
|
|
(cd $SRC_ROOT/instsetoo_native/util && perl -w $SOLARENV/bin/make_installer.pl \
|
|
|
|
-f openoffice.lst -l en-US -p OpenOffice \
|
|
|
|
-buildid $BUILD -simple $ooFiles)
|
|
|
|
|
|
|
|
ensureDir $out/bin
|
|
|
|
for i in soffice ooffice; do wrapSOffice $i; done
|
|
|
|
|
|
|
|
# Create some wrappers to start individual OpenOffice components.
|
|
|
|
for i in writer calc draw impress base math web; do wrapSOffice oo$i -$i; done
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2005-10-25 20:01:13 +02:00
|
|
|
genericBuild
|
2007-09-06 17:57:34 +02:00
|
|
|
|