#!/bin/sh # See http://lfs.osuosl.org/blfs/view/svn/xsoft/openoffice.html CWD=`pwd` TMP=${TMP:-/tmp} PKG=$TMP/package-openoffice VERSION=2.0.4 ARCH=${ARCH:-powerpc} BUILD=${BUILD:-1} OUTDIR=OOD680_m5 if [ ! -d $TMP ]; then mkdir -p $TMP fi rm -rf $PKG mkdir $PKG mkdir $PKG/opt cd $TMP rm -rf $OUTDIR tar zxvf $CWD/OOo_${VERSION}_src.tar.gz cd $OUTDIR patch -p1 < $CWD/noPam.diff || exit 1 patch -p1 < $CWD/OOo_2.0.3-xauth-1.patch || exit 1 cd config_office autoconf ./configure --prefix=/opt/openoffice-${VERSION} \ --enable-libart --disable-fontooo --disable-gnome-vfs \ --without-fonts --with-system-stdlibs --with-system-freetype \ --with-system-expat --with-system-libxml --with-system-zlib \ --with-java=no --disable-mozilla --disable-build-mozilla --with-build-version=Slackintosh \ --with-package-format=native --disable-binfilter && cd .. ./bootstrap . LinuxPPCEnv.Set.sh dmake cd instsetoo_native/unxlngppc.pro/OpenOffice/native/install/en-US/linux-2.6-ppc64/buildroot/opt && cp -r -v openoffice.org2.0 ${PKG}/openoffice-${VERSION} mkdir $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cp $CWD/doinst.sh $PKG/install/ cd $PKG makepkg -l y -c n $TMP/openoffice-$VERSION-$ARCH-$BUILD.tgz