openbsd-ports/editors/openoffice/patches/patch-desktop_scripts_soffice_sh
robert 1dc03f4175 update to OpenOffice.org 2.4.0;
- rename the br-pt subpackage to pt-br because of an i18n change
   in openoffice
 - regen some patches
 - fix WANTLIB and LIB_DEPENDS
2008-04-28 11:18:46 +00:00

50 lines
1.4 KiB
Plaintext

$OpenBSD: patch-desktop_scripts_soffice_sh,v 1.3 2008/04/28 11:18:46 robert Exp $
--- desktop/scripts/soffice.sh.orig.port Wed Jan 2 15:47:34 2008
+++ desktop/scripts/soffice.sh Wed Apr 23 15:24:05 2008
@@ -47,6 +47,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
+
sd_platform=`uname -s`
# the following test is needed on Linux PPC with IBM j2sdk142
@@ -211,33 +216,6 @@ unset XENVIRONMENT
# uncomment line below to disable anti aliasing of fonts
# SAL_ANTIALIAS_DISABLE=true; export SAL_ANTIALIAS_DISABLE
-
-# pagein
-for sd_arg in ${1+"$@"} ; do
- case ${sd_arg} in
- -calc)
- sd_pagein_args="${sd_pagein_args:+${sd_pagein_args} }@pagein-calc"
- break;
- ;;
- -draw)
- sd_pagein_args="${sd_pagein_args:+${sd_pagein_args} }@pagein-draw"
- break;
- ;;
- -impress)
- sd_pagein_args="${sd_pagein_args:+${sd_pagein_args} }@pagein-impress"
- break;
- ;;
- -writer)
- sd_pagein_args="${sd_pagein_args:+${sd_pagein_args} }@pagein-writer"
- break;
- ;;
- *)
- ;;
- esac
-done
-
-sd_pagein_args="${sd_pagein_args:+${sd_pagein_args} }@pagein-common"
-"${sd_prog}"/pagein -L"${sd_prog}" ${sd_pagein_args}
# set path so that other apps can be started from soffice just by name
if [ "$PATH" ]; then