openbsd-ports/editors/openoffice3/patches/patch-desktop_scripts_soffice_sh
robert e6e6700ff2 Update to OpenOffice.Org 3.0.1, and finally make it work.
Some extensions have been added by default like the PDF Importer.
2009-01-31 01:06:20 +00:00

32 lines
1.0 KiB
Plaintext

--- desktop/scripts/soffice.sh.orig.port Wed Aug 6 18:44:36 2008
+++ desktop/scripts/soffice.sh Thu Jan 29 15:37:19 2009
@@ -43,6 +43,11 @@ export SAL_ENABLE_FILE_LOCKING
# working on your system.
# SAL_NOOPENGL=true; export SAL_NOOPENGL
+if [ -z $SAL_USE_VCLPLUGIN ]; then
+ export SAL_USE_VCLPLUGIN=gtk
+fi
+export SAL_ENABLE_NATIVE_XFONTS=0
+
# the following test is needed on Linux PPC with IBM j2sdk142
if [ "`uname -s`" = "Linux" -a "`uname -m`" = "ppc" ] ; then
JITC_PROCESSOR_TYPE=6
@@ -72,6 +77,16 @@ do
-env:*) BOOTSTRAPVARS=$BOOTSTRAPVARS" ""$arg";;
esac
done
+
+# this is a temporary hack until we can live with the default search paths
+case "`uname -s`" in
+OpenBSD)
+ sd_prog1="$sd_prog/../basis-link/program"
+ sd_prog2="$sd_prog/../basis-link/ure-link/lib"
+ LD_LIBRARY_PATH=$sd_prog1:$sd_prog2${LD_LIBRARY_PATH+:${LD_LIBRARY_PATH}}
+ export LD_LIBRARY_PATH
+ ;;
+esac
# extend the ld_library_path for java: javaldx checks the sofficerc for us
if [ -x "$sd_prog/../basis-link/ure-link/bin/javaldx" ] ; then