source $stdenv/setup export nodep=TRUE export NO_HIDS=TRUE export PATH=$icu/sbin:$PATH postUnpack() { tar xvjf $src_system } preConfigure() { ./configure --help for i in sysui/desktop/share/makefile.mk; do substituteInPlace $i --replace /bin/bash $shell done SRCDIR= sed -e '/CURL_NO_OLDIES/d' -i ucb/source/ucp/ftp/makefile.mk } postConfigure() { for i in LinuxX86*Env.Set; do 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 } buildPhase() { source LinuxX86*Env.Set.sh ./bootstrap # bootstrap defines the alias 'build', that mostly runs this perl script: (cd instsetoo_native; perl ../solenv/bin/build.pl --all) # wait a few hours... add -P4 for quadcores } wrapSOffice() { local fn=$1 local arg=$2 # !!! should use makeWrapper for this. cat > $out/bin/$fn <> $appl done # Copy icons so that the menu items in KDE and GNOME will look much nicer (cd $SRC_ROOT/sysui/desktop/icons install -v -d $out/share/icons/{hicolor,locolor} -m 755 cp -rv hicolor/*x* $out/share/icons/hicolor cp -rv locolor/*x* $out/share/icons/locolor ) # The desktop files expect a openoffice.org3 executable in the PATH, which is a symlink to soffice ln -s $out/bin/soffice $out/bin/openoffice.org3 } genericBuild