summaryrefslogtreecommitdiff
path: root/editors/openoffice-devel/files
diff options
context:
space:
mode:
authorMaho Nakata <maho@FreeBSD.org>2013-03-21 06:55:25 +0000
committerMaho Nakata <maho@FreeBSD.org>2013-03-21 06:55:25 +0000
commitb35acd98c9330a86db6e03beec45aa6282073fa5 (patch)
treed91dde8bfeb38cbcdb3e5ebed5fd5afcd0211a99 /editors/openoffice-devel/files
parent- adoption of optionsNG (diff)
Rename openoffice-3-devel to openoffice-devel, as the version
number currently doesn't have significant meaning.
Notes
Notes: svn path=/head/; revision=314812
Diffstat (limited to 'editors/openoffice-devel/files')
-rw-r--r--editors/openoffice-devel/files/Makefile.knobs27
-rw-r--r--editors/openoffice-devel/files/Makefile.localized400
-rw-r--r--editors/openoffice-devel/files/Makefile.others71
-rw-r--r--editors/openoffice-devel/files/generate.pl40
-rw-r--r--editors/openoffice-devel/files/openoffice-wrapper18
-rw-r--r--editors/openoffice-devel/files/patch-freebsd.mk10
-rw-r--r--editors/openoffice-devel/files/patch-i118574323
-rw-r--r--editors/openoffice-devel/files/patch-jdk7-hsqldb-debian270
-rw-r--r--editors/openoffice-devel/files/patch-jdk7-hsqldb-debian-x12
-rw-r--r--editors/openoffice-devel/files/patch-unxfbsd.mk28
-rw-r--r--editors/openoffice-devel/files/pkg-message.in39
11 files changed, 1238 insertions, 0 deletions
diff --git a/editors/openoffice-devel/files/Makefile.knobs b/editors/openoffice-devel/files/Makefile.knobs
new file mode 100644
index 000000000000..a15493192192
--- /dev/null
+++ b/editors/openoffice-devel/files/Makefile.knobs
@@ -0,0 +1,27 @@
+# Makefile for knobs
+# Whom: Maho Nakata <maho@FreeBSD.org>
+# $FreeBSD$
+
+CONFIGURE_ARGS+= --with-jdk-home="${JAVA_HOME}" --with-ant-home="${LOCALBASE}/share/java/apache-ant"
+CONFIGURE_ARGS+= --with-lang=${LOCALIZED_LANG}
+
+pre-fetch:
+ @${ECHO} "OPTIONS:"
+ @${ECHO}
+ @${ECHO} "You can select the language for OOo by making it with:"
+ @${ECHO} "make LOCALIZED_LANG=xx"
+ @${ECHO} "while xx can be one of the following"
+ @${ECHO} "af ar as-IN be-BY bg br bn bn-BD bn-IN bs ca cs cy da"
+ @${ECHO} "de dz el en-GB en-US en-ZA eo es et eu fa fi fr ga gl"
+ @${ECHO} "gu-IN he hi-IN hr hu it ja ka km kn ko ku lo lt lv mk"
+ @${ECHO} "ms ml-IN mr-IN ne nb nl nn nr ns oc or-IN pa-IN pl pt"
+ @${ECHO} "pt-BR ru rw sk sl sh sr ss st sv sw sw-TZ te-IN ti-ER"
+ @${ECHO} "ta-IN th tn tr ts tg ur-IN uk uz ve vi xh zh-CN zh-TW"
+ @${ECHO} "zu"
+ @${ECHO} "Current setting: ${LOCALIZED_LANG}"
+ @${ECHO}
+ @${ECHO} "NOTICE:"
+ @${ECHO}
+ @${ECHO} "To build OOo, you should have a lot"
+ @${ECHO} "of free diskspace (~ 11GB) and memory (~ 2GB)."
+ @${ECHO} "If you want SDK and/or solver, please type make sdk and/or make solver"
diff --git a/editors/openoffice-devel/files/Makefile.localized b/editors/openoffice-devel/files/Makefile.localized
new file mode 100644
index 000000000000..15d12c9e6f09
--- /dev/null
+++ b/editors/openoffice-devel/files/Makefile.localized
@@ -0,0 +1,400 @@
+# localized makefile
+# Whom: Maho Nakata <maho@FreeBSD.org>
+# $FreeBSD$
+################################################################
+#See solenv/inc/postset.mk for details
+################################################################
+.if defined(LOCALIZED_LANG)
+.if ${LOCALIZED_LANG} == "af"
+LANG_PKGNAME= ${LOCALIZED_LANG}
+.endif
+################################################################
+.if ${LOCALIZED_LANG} == "ar"
+CATEGORIES+= arabic
+LANG_PKGNAME= ${LOCALIZED_LANG}
+.endif
+################################################################
+.if ${LOCALIZED_LANG} == "as-IN"
+LANG_PKGNAME= as
+LANG_SUFFIX= IN
+.endif
+################################################################
+.if ${LOCALIZED_LANG} == "be-BY"
+LANG_PKGNAME= be
+LANG_SUFFIX= BY
+.endif
+################################################################
+.if ${LOCALIZED_LANG} == "bg"
+LANG_PKGNAME= ${LOCALIZED_LANG}
+.endif
+################################################################
+.if ${LOCALIZED_LANG} == "bn-BD"
+LANG_PKGNAME= be
+LANG_SUFFIX= BD
+.endif
+################################################################
+.if ${LOCALIZED_LANG} == "bn-IN"
+LANG_PKGNAME= bn
+LANG_SUFFIX= IN
+.endif
+################################################################
+.if ${LOCALIZED_LANG} == "bn"
+LANG_PKGNAME= ${LOCALIZED_LANG}
+.endif
+################################################################
+.if ${LOCALIZED_LANG} == "br"
+LANG_PKGNAME= ${LOCALIZED_LANG}
+.endif
+################################################################
+.if ${LOCALIZED_LANG} == "bs"
+LANG_PKGNAME= ${LOCALIZED_LANG}
+.endif
+################################################################
+.if ${LOCALIZED_LANG} == "ca"
+LANG_PKGNAME= ${LOCALIZED_LANG}
+.endif
+################################################################
+.if ${LOCALIZED_LANG} == "cs"
+LANG_PKGNAME= ${LOCALIZED_LANG}
+.endif
+################################################################
+.if ${LOCALIZED_LANG} == "cy"
+LANG_PKGNAME= ${LOCALIZED_LANG}
+.endif
+################################################################
+.if ${LOCALIZED_LANG} == "da"
+LANG_PKGNAME= ${LOCALIZED_LANG}
+.endif
+################################################################
+.if ${LOCALIZED_LANG} == "de"
+CATEGORIES+= german
+LANG_PKGNAME= ${LOCALIZED_LANG}
+COMMENT= Office-Suite mit Textverarbeitung, Tabellenkalkulation, Datenbank und Praesentationsprogramm
+.endif
+################################################################
+.if ${LOCALIZED_LANG} == "dz"
+LANG_PKGNAME= ${LOCALIZED_LANG}
+.endif
+################################################################
+.if ${LOCALIZED_LANG} == "el"
+LANG_PKGNAME= ${LOCALIZED_LANG}
+.endif
+################################################################
+.if ${LOCALIZED_LANG} == "en-GB"
+LANG_PKGNAME= en
+LANG_SUFFIX= GB
+.endif
+################################################################
+.if ${LOCALIZED_LANG} == "en-US"
+LANG_PKGNAME= en
+LANG_SUFFIX= US
+.endif
+################################################################
+.if ${LOCALIZED_LANG} == "en-ZA"
+LANG_PKGNAME= en
+LANG_SUFFIX= ZA
+.endif
+################################################################
+.if ${LOCALIZED_LANG} == "eo"
+LANG_PKGNAME= ${LOCALIZED_LANG}
+.endif
+################################################################
+.if ${LOCALIZED_LANG} == "es"
+LANG_PKGNAME= ${LOCALIZED_LANG}
+.endif
+################################################################
+.if ${LOCALIZED_LANG} == "et"
+LANG_PKGNAME= ${LOCALIZED_LANG}
+.endif
+################################################################
+.if ${LOCALIZED_LANG} == "eu"
+LANG_PKGNAME= ${LOCALIZED_LANG}
+.endif
+################################################################
+.if ${LOCALIZED_LANG} == "fa"
+LANG_PKGNAME= ${LOCALIZED_LANG}
+.endif
+################################################################
+.if ${LOCALIZED_LANG} == "fi"
+LANG_PKGNAME= ${LOCALIZED_LANG}
+.endif
+################################################################
+.if ${LOCALIZED_LANG} == "fr"
+CATEGORIES+= french
+LANG_PKGNAME= ${LOCALIZED_LANG}
+.endif
+################################################################
+.if ${LOCALIZED_LANG} == "ga"
+LANG_PKGNAME= ${LOCALIZED_LANG}
+.endif
+################################################################
+.if ${LOCALIZED_LANG} == "gl"
+LANG_PKGNAME= ${LOCALIZED_LANG}
+.endif
+################################################################
+.if ${LOCALIZED_LANG} == "gu-IN"
+LANG_PKGNAME= gu
+LANG_SUFFIX= IN
+.endif
+################################################################
+.if ${LOCALIZED_LANG} == "he"
+LANG_PKGNAME= ${LOCALIZED_LANG}
+.endif
+################################################################
+.if ${LOCALIZED_LANG} == "hi-IN"
+LANG_PKGNAME= hi
+LANG_SUFFIX= IN
+.endif
+################################################################
+.if ${LOCALIZED_LANG} == "hr"
+LANG_PKGNAME= ${LOCALIZED_LANG}
+.endif
+################################################################
+.if ${LOCALIZED_LANG} == "hu"
+CATEGORIES+= hungarian
+LANG_PKGNAME= ${LOCALIZED_LANG}
+.endif
+################################################################
+.if ${LOCALIZED_LANG} == "it"
+LANG_PKGNAME= ${LOCALIZED_LANG}
+.endif
+################################################################
+.if ${LOCALIZED_LANG} == "ja"
+CATEGORIES+= japanese
+LANG_PKGNAME= ${LOCALIZED_LANG}
+RUN_DEPENDS+= ${LOCALBASE}/share/fonts/std.ja_JP/Ryumin-Light:${PORTSDIR}/japanese/font-std
+.endif
+################################################################
+.if ${LOCALIZED_LANG} == "ka"
+LANG_PKGNAME= ${LOCALIZED_LANG}
+.endif
+################################################################
+.if ${LOCALIZED_LANG} == "km"
+LANG_PKGNAME= ${LOCALIZED_LANG}
+.endif
+################################################################
+.if ${LOCALIZED_LANG} == "kn"
+LANG_PKGNAME= kn
+.endif
+################################################################
+.if ${LOCALIZED_LANG} == "ko"
+CATEGORIES+= korean
+LANG_PKGNAME= ${LOCALIZED_LANG}
+.endif
+################################################################
+.if ${LOCALIZED_LANG} == "ku"
+LANG_PKGNAME= ${LOCALIZED_LANG}
+.endif
+################################################################
+.if ${LOCALIZED_LANG} == "lo"
+LANG_PKGNAME= ${LOCALIZED_LANG}
+.endif
+################################################################
+.if ${LOCALIZED_LANG} == "lt"
+LANG_PKGNAME= ${LOCALIZED_LANG}
+.endif
+################################################################
+.if ${LOCALIZED_LANG} == "lv"
+LANG_PKGNAME= ${LOCALIZED_LANG}
+.endif
+################################################################
+.if ${LOCALIZED_LANG} == "mk"
+LANG_PKGNAME= ${LOCALIZED_LANG}
+.endif
+################################################################
+.if ${LOCALIZED_LANG} == "ml-IN"
+LANG_PKGNAME= ml
+LANG_SUFFIX= IN
+.endif
+################################################################
+.if ${LOCALIZED_LANG} == "mr-IN"
+LANG_PKGNAME= mr
+LANG_SUFFIX= IN
+.endif
+################################################################
+.if ${LOCALIZED_LANG} == "ms"
+LANG_PKGNAME= ${LOCALIZED_LANG}
+.endif
+################################################################
+.if ${LOCALIZED_LANG} == "nb"
+LANG_PKGNAME= ${LOCALIZED_LANG}
+.endif
+################################################################
+.if ${LOCALIZED_LANG} == "ne"
+LANG_PKGNAME= ${LOCALIZED_LANG}
+.endif
+################################################################
+.if ${LOCALIZED_LANG} == "nl"
+LANG_PKGNAME= ${LOCALIZED_LANG}
+.endif
+################################################################
+.if ${LOCALIZED_LANG} == "nn"
+LANG_PKGNAME= ${LOCALIZED_LANG}
+.endif
+################################################################
+.if ${LOCALIZED_LANG} == "nr"
+LANG_PKGNAME= ${LOCALIZED_LANG}
+.endif
+################################################################
+.if ${LOCALIZED_LANG} == "ns"
+LANG_PKGNAME= ${LOCALIZED_LANG}
+.endif
+################################################################
+.if ${LOCALIZED_LANG} == "oc"
+LANG_PKGNAME= ${LOCALIZED_LANG}
+.endif
+################################################################
+.if ${LOCALIZED_LANG} == "or-IN"
+LANG_PKGNAME= or
+LANG_SUFFIX= IN
+.endif
+################################################################
+.if ${LOCALIZED_LANG} == "pa-IN"
+LANG_PKGNAME= pa
+LANG_SUFFIX= IN
+.endif
+################################################################
+.if ${LOCALIZED_LANG} == "pl"
+CATEGORIES+= polish
+LANG_PKGNAME= ${LOCALIZED_LANG}
+.endif
+################################################################
+.if ${LOCALIZED_LANG} == "pt"
+COMMENT= Editor texto/grBaGico, banco de dados/planilha/navegador integrado
+CATEGORIES+= portuguese
+LANG_PKGNAME= ${LOCALIZED_LANG}
+LANG_CONFIGURE_ARG= PORT
+.endif
+################################################################
+.if ${LOCALIZED_LANG} == "pt-BR"
+COMMENT= Editor texto/grBaGico, banco de dados/planilha/navegador integrado
+CATEGORIES+= portuguese
+LANG_PKGNAME= pt
+LANG_SUFFIX= BR
+.endif
+################################################################
+.if ${LOCALIZED_LANG} == "ru"
+CATEGORIES+= russian
+LANG_PKGNAME= ${LOCALIZED_LANG}
+.endif
+################################################################
+.if ${LOCALIZED_LANG} == "rw"
+LANG_PKGNAME= ${LOCALIZED_LANG}
+.endif
+################################################################
+.if ${LOCALIZED_LANG} == "sh"
+LANG_PKGNAME= sh
+.endif
+################################################################
+.if ${LOCALIZED_LANG} == "sk"
+LANG_PKGNAME= ${LOCALIZED_LANG}
+.endif
+################################################################
+.if ${LOCALIZED_LANG} == "sl"
+LANG_PKGNAME= ${LOCALIZED_LANG}
+.endif
+################################################################
+.if ${LOCALIZED_LANG} == "sr"
+LANG_PKGNAME= sr
+.endif
+################################################################
+.if ${LOCALIZED_LANG} == "ss"
+LANG_PKGNAME= ${LOCALIZED_LANG}
+.endif
+################################################################
+.if ${LOCALIZED_LANG} == "st"
+LANG_PKGNAME= ${LOCALIZED_LANG}
+.endif
+################################################################
+.if ${LOCALIZED_LANG} == "sv"
+LANG_PKGNAME= ${LOCALIZED_LANG}
+.endif
+################################################################
+.if ${LOCALIZED_LANG} == "sw-TZ"
+LANG_PKGNAME= sw
+LANG_SUFFIX= TZ
+.endif
+################################################################
+.if ${LOCALIZED_LANG} == "sw"
+LANG_PKGNAME= ${LOCALIZED_LANG}
+.endif
+################################################################
+.if ${LOCALIZED_LANG} == "ta-IN"
+LANG_PKGNAME= ta
+LANG_SUFFIX= IN
+.endif
+################################################################
+.if ${LOCALIZED_LANG} == "te-IN"
+LANG_PKGNAME= te
+LANG_SUFFIX= IN
+.endif
+################################################################
+.if ${LOCALIZED_LANG} == "tg"
+LANG_PKGNAME= ${LOCALIZED_LANG}
+.endif
+################################################################
+.if ${LOCALIZED_LANG} == "th"
+LANG_PKGNAME= ${LOCALIZED_LANG}
+.endif
+################################################################
+.if ${LOCALIZED_LANG} == "ti-ER"
+LANG_PKGNAME= ti
+LANG_SUFFIX= ER
+.endif
+################################################################
+.if ${LOCALIZED_LANG} == "tn"
+LANG_PKGNAME= ${LOCALIZED_LANG}
+.endif
+################################################################
+.if ${LOCALIZED_LANG} == "tr"
+LANG_PKGNAME= ${LOCALIZED_LANG}
+.endif
+################################################################
+.if ${LOCALIZED_LANG} == "ts"
+LANG_PKGNAME= ${LOCALIZED_LANG}
+.endif
+################################################################
+.if ${LOCALIZED_LANG} == "uk"
+LANG_PKGNAME= ${LOCALIZED_LANG}
+.endif
+################################################################
+.if ${LOCALIZED_LANG} == "ur-IN"
+LANG_PKGNAME= ur
+LANG_SUFFIX= IN
+.endif
+################################################################
+.if ${LOCALIZED_LANG} == "uz"
+LANG_PKGNAME= ${LOCALIZED_LANG}
+.endif
+################################################################
+.if ${LOCALIZED_LANG} == "ve"
+LANG_PKGNAME= ${LOCALIZED_LANG}
+.endif
+################################################################
+.if ${LOCALIZED_LANG} == "vi"
+LANG_PKGNAME= ${LOCALIZED_LANG}
+.endif
+################################################################
+.if ${LOCALIZED_LANG} == "xh"
+LANG_PKGNAME= ${LOCALIZED_LANG}
+.endif
+################################################################
+.if ${LOCALIZED_LANG} == "zh-CN"
+CATEGORIES+= chinese
+LANG_PKGNAME= zh
+LANG_SUFFIX= CN
+BUILD_DEPENDS+= ${PREFIX}/share/fonts/TrueType/gbsn00lp.ttf:${PORTSDIR}/chinese/arphicttf
+.endif
+################################################################
+.if ${LOCALIZED_LANG} == "zh-TW"
+CATEGORIES+= chinese
+LANG_PKGNAME= zh
+LANG_SUFFIX= TW
+BUILD_DEPENDS+= ${PREFIX}/share/fonts/TrueType/bsmi00lp.ttf:${PORTSDIR}/chinese/arphicttf
+.endif
+################################################################
+.if ${LOCALIZED_LANG} == "zu"
+LANG_PKGNAME= ${LOCALIZED_LANG}
+.endif
+################################################################
+.endif
diff --git a/editors/openoffice-devel/files/Makefile.others b/editors/openoffice-devel/files/Makefile.others
new file mode 100644
index 000000000000..3eb9001c3118
--- /dev/null
+++ b/editors/openoffice-devel/files/Makefile.others
@@ -0,0 +1,71 @@
+# Makefile for other stuffs
+# Whom: Maho Nakata <maho@FreeBSD.org>
+# $FreeBSD$
+
+#other stuffs which are not directly related to making ports
+#package-rename: rename package for uploading
+#package-canonical: making official packages (WIP)
+#ure: URE (Uno Runtime Environment) packages (WIP)
+#solver: solver
+#languagepack: language pack
+
+package-rename:
+ @${ECHO_MSG} "===> Rename package for Apache OpenOffice mirror upload";
+ @${LN} ${PKGFILE} \
+ ${WRKDIR}/../OOo-Dev_${PACKAGE_BASENAME}_install_${LOCALIZED_LANG}${PKG_SUFX}
+
+package-canonical:
+ @${ECHO_MSG} "===> Canonical packaging for Apache OpenOffice";
+ @cd ${WRKSRC}/instsetoo_native/unxfbsd?.pro/OpenOffice/bsd/install/${LOCALIZED_LANG}/freebsd/ ;\
+ ${TAR} cfj ${WRKDIR}/../OOo-Dev_${PACKAGE_BASENAME}_native_install_${LOCALIZED_LANG}${PKG_SUFX} .
+
+sdk:
+ @${ECHO_MSG} "===> Make SDK of Apache OpenOffice"
+ @${RM} -fr ${WRKDIR}/sdk_tmp
+ @${MKDIR} ${WRKDIR}/sdk_tmp
+ @cd ${WRKDIR}/sdk_tmp ; \
+ ${TAR} xfz ${WRKSRC}/instsetoo_native/unxfbsd?.pro/OpenOffice_SDK/bsd/install/${LOCALIZED_LANG}/freebsd/ooobasis*.t?z
+ @cd ${WRKDIR}/sdk_tmp/opt/openoffice* ; \
+ ${MKDIR} ../${INSTALLATION_BASEDIR}_sdk ; \
+ ${MV} * ../${INSTALLATION_BASEDIR}_sdk ; cd .. ; \
+ ${TAR} cfj ${WRKDIR}/../OOo-Dev-SDK_${PACKAGE_BASENAME}_install_en-US.tbz ${INSTALLATION_BASEDIR}_sdk
+
+ure:
+ @${ECHO_MSG} "===> Make Uno Runtime Environment of Apache OpenOffice"
+ @${RM} -fr ${WRKDIR}/ure_tmp
+ @${MKDIR} ${WRKDIR}/ure_tmp
+ @cd ${WRKDIR}/ure_tmp ; \
+ ${TAR} xfz ${WRKSRC}/instsetoo_native/unxfbsd?.pro/URE/bsd/install/${LOCALIZED_LANG}/freebsd/openoffice*.t?z
+ @cd ${WRKDIR}/ure_tmp/opt/openoffice* ; \
+ ${MKDIR} ../${INSTALLATION_BASEDIR} ; \
+ ${MV} * ../${INSTALLATION_BASEDIR} ; cd .. ; \
+ ${TAR} cfj ${WRKDIR}/../OOo-Dev-URE_${PACKAGE_BASENAME}_install_en-US.tbz ${INSTALLATION_BASEDIR}
+
+solver:
+ @${ECHO_MSG} "===> Make Solver of Apache OpenOffice"
+ @cd ${WRKSRC} ; ${TAR} cfj ${WRKDIR}/../${PACKAGE_BASENAME}_solver.tar.bz2 solver
+
+languagepack:
+ @${ECHO_MSG} "===> Make languagepack of Apache OpenOffice"
+.if defined (ALL_LOCALIZED_LANGS)
+ @cd ${WRKSRC} ; ${BASH} -c 'source ${FREEBSD_ENV_SET} ; cd instsetoo_native/util ; dmake ooolanguagepack'
+.else
+ @cd ${WRKSRC} ; ${BASH} -c 'source ${FREEBSD_ENV_SET} ; cd instsetoo_native/util ; dmake ooolanguagepack_${LOCALIZED_LANG}'
+.endif
+
+.if !defined (ALL_LOCALIZED_LANGS)
+ @${RM} -fr ${WRKDIR}/langpack_tmp
+ @${MKDIR} ${WRKDIR}/langpack_tmp
+.if defined (LOCALIZED_LANG)
+ @cd ${WRKSRC}/instsetoo_native/unxfbsd?.pro/OpenOffice_languagepack/bsd/install/${LOCALIZED_LANG}/freebsd/ ; ls openoffice*.t?z ooobasis*.t?z > ${WRKDIR}/${LOCALIZED_LANG}_LANGPACK
+ @cd ${WRKDIR}/langpack_tmp ; \
+ for i in `${CAT} ${WRKDIR}/${LOCALIZED_LANG}_LANGPACK`; do \
+ ${ECHO_CMD} "extracting $$i" ; \
+ cd ${WRKDIR}/langpack_tmp ; ${TAR} xfz ${WRKSRC}/instsetoo_native/unxfbsd?.pro/OpenOffice_languagepack/bsd/install/${LOCALIZED_LANG}/freebsd/$$i ; \
+ done
+ @cd ${WRKDIR}/langpack_tmp/opt/ ; \
+ ${MKDIR} ../${INSTALLATION_BASEDIR} ; \
+ ${MV} * ../${INSTALLATION_BASEDIR} ; cd .. ; \
+ ${TAR} cfj ${WRKDIR}/../OOo-Dev_${PACKAGE_BASENAME}_langpack_${LOCALIZED_LANG}.tbz ${INSTALLATION_BASEDIR}
+.endif
+.endif
diff --git a/editors/openoffice-devel/files/generate.pl b/editors/openoffice-devel/files/generate.pl
new file mode 100644
index 000000000000..4dfa92bad119
--- /dev/null
+++ b/editors/openoffice-devel/files/generate.pl
@@ -0,0 +1,40 @@
+#!/usr/bin/perl
+# generate full build shell script for Apache OpenOffice
+# Whom: Maho Nakata <maho@FreeBSD.org>
+# $FreeBSD$
+
+print "#!/bin/csh\n";
+print "make deinstall clean\n";
+print "/usr/bin/time -h make WITH_CCACHE=yes install package package-rename solver sdk ure languagepack deinstall >& log.en\n";
+print "bzip2 log.en\n";
+#print "rm work/.configure* work/.build* \n";
+#workaround for breakage at odk sdk_oo
+print "make deinstall clean\n";
+
+print "/usr/bin/time -h make ALL_LOCALIZED_LANGS=yes >& log.all\n";
+print "bzip2 log.all\n";
+
+open ( FILE, "< Makefile.localized") ;
+while(<FILE>){
+@tmp=split (' ',$_);
+@tmp2=split ('"',$tmp[3]);
+if ( $tmp[0] eq ".if" && $tmp[1] eq "\${LOCALIZED_LANG}" ) { $LANG=$tmp2[1];
+ print "make TWEAK_L10N=yes LOCALIZED_LANG=$LANG pre-everything\n";
+ print "/usr/bin/time -h make LOCALIZED_LANG=$LANG WITH_CCACHE=yes languagepack package package-rename deinstall >& log.$LANG\n";
+ print "bzip2 log.$LANG\n";
+ }
+}
+close FILE;
+$oootag= `cd ..; make -V OOOTAG2`;
+chomp($oootag);
+$md5sumname = "$oootag" . "_md5sums.txt";
+print "md5 OOo* > $md5sumname\n";
+
+$arc= `uname -m`;
+if ($arc == "amd64" ) {
+print "sudo -u `who am i | awk '{print \$1}'` ssh build.good-day.net mkdir -p /home/ftp/pub/OpenOffice.org/contrib/freebsdx86-64/\n";
+print "sudo -u `who am i | awk '{print \$1}'` scp OOo* $md5sumname build.good-day.net:/home/ftp/pub/OpenOffice.org/contrib/freebsdx86-64/\n";
+} else {
+print "sudo -u `who am i | awk '{print \$1}'` ssh build.good-day.net mkdir -p /home/ftp/pub/OpenOffice.org/contrib/freebsdx86/\n";
+print "sudo -u `who am i | awk '{print \$1}'` scp OOo* $md5sumname build.good-day.net:/home/ftp/pub/OpenOffice.org/contrib/freebsdx86/\n";
+}
diff --git a/editors/openoffice-devel/files/openoffice-wrapper b/editors/openoffice-devel/files/openoffice-wrapper
new file mode 100644
index 000000000000..958878c645b4
--- /dev/null
+++ b/editors/openoffice-devel/files/openoffice-wrapper
@@ -0,0 +1,18 @@
+#!/bin/sh
+#
+# $FreeBSD$
+
+oopath=%%PREFIX%%/%%INSTALLATION_BASEDIR%%/%%OOODIR%%
+program=`echo $0 | sed -e 's|.*-%%SVNREVISION%%-||'`
+
+case $program in
+$0)
+ $oopath/program/soffice "$@"
+ ;;
+setofficelang)
+ $oopath/basis-link/program/$program "$@"
+ ;;
+*)
+ $oopath/program/$program "$@"
+ ;;
+esac
diff --git a/editors/openoffice-devel/files/patch-freebsd.mk b/editors/openoffice-devel/files/patch-freebsd.mk
new file mode 100644
index 000000000000..427de633d0a4
--- /dev/null
+++ b/editors/openoffice-devel/files/patch-freebsd.mk
@@ -0,0 +1,10 @@
+--- solenv/gbuild/platform/freebsd.mk 2012-10-31 10:39:44.000000000 +0900
++++ solenv/gbuild/platform/freebsd.mk 2012-10-31 17:40:48.000000000 +0900
+@@ -121,6 +121,7 @@
+ -Wl,-z,combreloc \
+ -Wl,-z,defs \
+ $(subst -L../lib , ,$(SOLARLIB)) \
++ %%RPATH%% \
+ \
+
+ ifeq ($(HAVE_LD_HASH_STYLE),TRUE)
diff --git a/editors/openoffice-devel/files/patch-i118574 b/editors/openoffice-devel/files/patch-i118574
new file mode 100644
index 000000000000..4f3c6467c22d
--- /dev/null
+++ b/editors/openoffice-devel/files/patch-i118574
@@ -0,0 +1,323 @@
+--- unoxml/source/dom/attr.hxx.orig 2011-11-03 21:05:47.000000000 -0500
++++ unoxml/source/dom/attr.hxx 2011-11-03 21:06:26.000000000 -0500
+@@ -30,6 +30,7 @@
+
+ #include <memory>
+
++#include <cwchar> // for std::mbstate_t
+ #include <libxml/tree.h>
+
+ #include <cppuhelper/implbase1.hxx>
+--- unoxml/source/dom/characterdata.hxx.orig 2011-11-03 21:12:41.000000000 -0500
++++ unoxml/source/dom/characterdata.hxx 2011-11-03 21:13:08.000000000 -0500
+@@ -28,6 +28,7 @@
+ #ifndef DOM_CHARACTERDATA_HXX
+ #define DOM_CHARACTERDATA_HXX
+
++#include <cwchar> // for std::mbstate_t
+ #include <libxml/tree.h>
+
+ #include <sal/types.h>
+--- unoxml/source/dom/childlist.cxx.orig 2011-11-03 21:36:22.000000000 -0500
++++ unoxml/source/dom/childlist.cxx 2011-11-03 21:37:22.000000000 -0500
+@@ -27,6 +27,7 @@
+
+ #include <childlist.hxx>
+
++#include <cwchar> // for std::mbstate_t
+ #include <libxml/tree.h>
+
+ #include <node.hxx>
+--- unoxml/source/dom/document.hxx.orig 2011-11-03 20:59:53.000000000 -0500
++++ unoxml/source/dom/document.hxx 2011-11-03 21:00:40.000000000 -0500
+@@ -31,6 +31,7 @@
+ #include <set>
+ #include <memory>
+
++#include <cwchar> // for std::mbstate_t
+ #include <libxml/tree.h>
+
+ #include <sal/types.h>
+--- unoxml/source/dom/documentbuilder.cxx.orig 2011-11-03 21:15:44.000000000 -0500
++++ unoxml/source/dom/documentbuilder.cxx 2011-11-03 21:16:26.000000000 -0500
+@@ -31,6 +31,7 @@
+ #include <stdio.h>
+ #include <stdarg.h>
+
++#include <cwchar> // for std::mbstate_t
+ #include <libxml/xmlerror.h>
+ #include <libxml/tree.h>
+
+--- unoxml/source/dom/documenttype.hxx.orig 2011-11-03 21:19:12.000000000 -0500
++++ unoxml/source/dom/documenttype.hxx 2011-11-03 21:19:39.000000000 -0500
+@@ -28,6 +28,7 @@
+ #ifndef DOM_DOCUMENTTYPE_HXX
+ #define DOM_DOCUMENTTYPE_HXX
+
++#include <cwchar> // for std::mbstate_t
+ #include <libxml/tree.h>
+
+ #include <sal/types.h>
+--- unoxml/source/dom/element.hxx.orig 2011-11-03 21:02:39.000000000 -0500
++++ unoxml/source/dom/element.hxx 2011-11-03 21:03:48.000000000 -0500
+@@ -28,6 +28,7 @@
+ #ifndef DOM_ELEMENT_HXX
+ #define DOM_ELEMENT_HXX
+
++#include <cwchar> // for std::mbstate_t
+ #include <libxml/tree.h>
+
+ #include <com/sun/star/uno/Reference.h>
+--- unoxml/source/dom/elementlist.hxx.orig 2011-11-03 21:33:35.000000000 -0500
++++ unoxml/source/dom/elementlist.hxx 2011-11-03 21:34:07.000000000 -0500
+@@ -32,6 +32,7 @@
+
+ #include <boost/scoped_array.hpp>
+
++#include <cwchar> // for std::mbstate_t
+ #include <libxml/tree.h>
+
+ #include <sal/types.h>
+--- unoxml/source/dom/entity.hxx.orig 2011-11-03 21:21:42.000000000 -0500
++++ unoxml/source/dom/entity.hxx 2011-11-03 21:22:28.000000000 -0500
+@@ -28,6 +28,7 @@
+ #ifndef DOM_ENTITY_HXX
+ #define DOM_ENTITY_HXX
+
++#include <cwchar> // for std::mbstate_t
+ #include <libxml/tree.h>
+ #include <libxml/entities.h>
+
+--- unoxml/source/dom/entityreference.hxx.orig 2011-11-03 21:24:36.000000000 -0500
++++ unoxml/source/dom/entityreference.hxx 2011-11-03 21:25:13.000000000 -0500
+@@ -28,6 +28,7 @@
+ #ifndef DOM_ENTITYREFERENCE_HXX
+ #define DOM_ENTITYREFERENCE_HXX
+
++#include <cwchar> // for std::mbstate_t
+ #include <libxml/tree.h>
+
+ #include <com/sun/star/uno/Reference.h>
+--- unoxml/source/dom/node.hxx.orig 2011-11-03 20:54:49.000000000 -0500
++++ unoxml/source/dom/node.hxx 2011-11-03 20:56:47.000000000 -0500
+@@ -30,6 +30,7 @@
+
+ #include <hash_map>
+
++#include <cwchar> // for std::mbstate_t
+ #include <libxml/tree.h>
+
+ #include <sal/types.h>
+--- unoxml/source/dom/notation.hxx.orig 2011-11-03 21:27:17.000000000 -0500
++++ unoxml/source/dom/notation.hxx 2011-11-03 21:28:12.000000000 -0500
+@@ -28,6 +28,7 @@
+ #ifndef DOM_NOTATION_HXX
+ #define DOM_NOTATION_HXX
+
++#include <cwchar> // for std::mbstate_t
+ #include <libxml/tree.h>
+
+ #include <com/sun/star/uno/Reference.h>
+--- unoxml/source/dom/processinginstruction.hxx.orig 2011-11-03 21:30:54.000000000 -0500
++++ unoxml/source/dom/processinginstruction.hxx 2011-11-03 21:31:30.000000000 -0500
+@@ -28,6 +28,7 @@
+ #ifndef DOM_PROCESSINGINSTRUCTION_HXX
+ #define DOM_PROCESSINGINSTRUCTION_HXX
+
++#include <cwchar> // for std::mbstate_t
+ #include <libxml/tree.h>
+
+ #include <com/sun/star/uno/Reference.h>
+--- unoxml/source/dom/text.hxx.orig 2011-11-03 21:10:46.000000000 -0500
++++ unoxml/source/dom/text.hxx 2011-11-03 21:11:14.000000000 -0500
+@@ -28,6 +28,7 @@
+ #ifndef DOM_TEXT_HXX
+ #define DOM_TEXT_HXX
+
++#include <cwchar> // for std::mbstate_t
+ #include <libxml/tree.h>
+
+ #include <sal/types.h>
+--- unoxml/source/events/eventdispatcher.hxx.orig 2011-11-03 21:51:05.000000000 -0500
++++ unoxml/source/events/eventdispatcher.hxx 2011-11-03 21:55:59.000000000 -0500
+@@ -31,6 +31,7 @@
+ #include <map>
+ #include <vector>
+
++#include <cwchar> // for std::mbstate_t
+ #include <libxml/tree.h>
+
+ #include <rtl/ustring.hxx>
+--- jvmfwk/source/elements.hxx.orig 2011-11-03 14:14:18.000000000 -0500
++++ jvmfwk/source/elements.hxx 2011-11-03 14:24:14.000000000 -0500
+@@ -32,6 +32,7 @@
+ #include "fwkutil.hxx"
+ #include "rtl/ustring.hxx"
+ #include "rtl/byteseq.hxx"
++#include <cwchar> // for std::mbstate_t
+ #include "libxml/parser.h"
+ #include "boost/optional.hpp"
+
+--- jvmfwk/source/fwkbase.cxx.orig 2011-11-03 14:31:12.000000000 -0500
++++ jvmfwk/source/fwkbase.cxx 2011-11-03 14:32:34.000000000 -0500
+@@ -32,6 +32,7 @@
+ #include "rtl/uri.hxx"
+ #include "osl/thread.hxx"
+ #include "osl/process.h"
++#include <cwchar> // for std::mbstate_t
+ #include "libxml/xpathInternals.h"
+ #include "osl/file.hxx"
+ #include "osl/module.hxx"
+--- jvmfwk/source/libxmlutil.hxx.orig 2011-11-03 14:28:02.000000000 -0500
++++ jvmfwk/source/libxmlutil.hxx 2011-11-03 14:28:52.000000000 -0500
+@@ -27,7 +27,7 @@
+ #if !defined INCLUDED_JVMFWK_LIBXMLUTIL_HXX
+ #define INCLUDED_JVMFWK_LIBXMLUTIL_HXX
+
+-
++#include <cwchar> // for std::mbstate_t
+ #include "libxml/parser.h"
+ #include "libxml/xpath.h"
+ //#include "libxml/xpathinternals.h"
+--- xmlhelp/source/cxxhelp/provider/urlparameter.cxx.orig 2011-11-03 23:28:51.000000000 -0500
++++ xmlhelp/source/cxxhelp/provider/urlparameter.cxx 2011-11-03 23:33:15.000000000 -0500
+@@ -46,6 +46,7 @@
+ #include <comphelper/processfactory.hxx>
+ #include <rtl/uri.hxx>
+ #include <rtl/ustrbuf.hxx>
++#include <cwchar> // for std::mbstate_t
+ #include <libxslt/xslt.h>
+ #include <libxslt/transform.h>
+ #include <libxslt/xsltutils.h>
+--- unoxml/source/xpath/nodelist.hxx.orig 2011-11-03 21:42:28.000000000 -0500
++++ unoxml/source/xpath/nodelist.hxx 2011-11-03 21:43:53.000000000 -0500
+@@ -38,6 +38,7 @@
+ #include <com/sun/star/xml/dom/XNodeList.hpp>
+ #include <com/sun/star/xml/xpath/XXPathObject.hpp>
+
++#include <cwchar> // for std::mbstate_t
+ #include "libxml/tree.h"
+ #include "libxml/xpath.h"
+
+--- unoxml/source/xpath/xpathapi.cxx.orig 2011-11-03 21:46:02.000000000 -0500
++++ unoxml/source/xpath/xpathapi.cxx 2011-11-03 21:46:34.000000000 -0500
+@@ -30,6 +30,7 @@
+ #include <stdarg.h>
+ #include <string.h>
+
++#include <cwchar> // for std::mbstate_t
+ #include <libxml/tree.h>
+ #include <libxml/xmlerror.h>
+ #include <libxml/xpath.h>
+Index: main/forms/source/xforms/xpathlib/xpathlib.hxx
+===================================================================
+--- forms/source/xforms/xpathlib/xpathlib.hxx (revision 1235458)
++++ forms/source/xforms/xpathlib/xpathlib.hxx (working copy)
+@@ -20,7 +20,7 @@
+ *************************************************************/
+
+
+-
++#include <cwchar> // for std::mbstate_t
+ #include <libxml/tree.h>
+ #include <libxml/xpath.h>
+ #include <libxml/xpathInternals.h>
+
+--- avmedia/source/gstreamer/gstplayer.hxx 2012-02-02 07:33:58.000000000 +0900
++++ avmedia/source/gstreamer/gstplayer.hxx 2012-02-02 07:35:03.000000000 +0900
+@@ -24,6 +24,8 @@
+ #ifndef _GSTPLAYER_HXX
+ #define _GSTPLAYER_HXX
+
++#include <cwchar> // for std::mbstate_t
++
+ #include "gstcommon.hxx"
+ #include <glib.h>
+ #include <glib/gatomic.h>
+
+
+--- xmlsecurity/source/xmlsec/biginteger.cxx 2012-02-04 10:36:05.000000000 +0900
++++ xmlsecurity/source/xmlsec/biginteger.cxx 2012-02-01 16:51:40.000000000 +0900
+@@ -19,7 +19,7 @@
+ *
+ *************************************************************/
+
+-
++#include <cwchar> // for std::mbstate_t
+
+ // MARKER(update_precomp.py): autogen include statement, do not remove
+ #include "precompiled_xmlsecurity.hxx"
+
+--- xmlsecurity/source/xmlsec/errorcallback.cxx 2012-02-04 10:37:52.000000000 +0900
++++ xmlsecurity/source/xmlsec/errorcallback.cxx 2012-02-01 16:51:40.000000000 +0900
+@@ -19,7 +19,7 @@
+ *
+ *************************************************************/
+
+-
++#include <cwchar> // for std::mbstate_t
+
+
+ // MARKER(update_precomp.py): autogen include statement, do not remove
+ #include "precompiled_xmlsecurity.hxx"
+
+--- xmlsecurity/source/xmlsec/nss/securityenvironment_nssimpl.hxx 2012-02-03 13:03:47.000000000 +0900
++++ xmlsecurity/source/xmlsec/nss/securityenvironment_nssimpl.hxx 2012-02-01 16:51:40.000000000 +0900
+@@ -24,6 +24,8 @@
+ #ifndef _XSECURITYENVIRONMENT_NSSIMPL_HXX_
+ #define _XSECURITYENVIRONMENT_NSSIMPL_HXX_
+
++#include <cwchar> // for std::mbstate_t
++
+ #include <sal/config.h>
+ #include <rtl/ustring.hxx>
+ #include <cppuhelper/factory.hxx>
+
+
+--- xmlsecurity/source/xmlsec/nss/seinitializer_nssimpl.hxx 2012-02-04 10:33:01.000000000 +0900
++++ xmlsecurity/source/xmlsec/nss/seinitializer_nssimpl.hxx 2012-02-01 16:51:40.000000000 +0900
+@@ -24,6 +24,8 @@
+ #ifndef _SEINITIALIZERIMPL_HXX
+ #define _SEINITIALIZERIMPL_HXX
+
++#include <cwchar> // for std::mbstate_t
++
+ #include <com/sun/star/xml/crypto/XXMLSecurityContext.hpp>
+ #include <com/sun/star/xml/crypto/XSEInitializer.hpp>
+
+
+--- xmlsecurity/source/xmlsec/saxhelper.hxx 2012-02-04 10:34:58.000000000 +0900
++++ xmlsecurity/source/xmlsec/saxhelper.hxx 2012-02-01 16:51:40.000000000 +0900
+@@ -24,6 +24,8 @@
+ #ifndef _SAXHELPER_HXX
+ #define _SAXHELPER_HXX
+
++#include <cwchar> // for std::mbstate_t
++
+ #include "libxml/tree.h"
+
+ #include <com/sun/star/xml/sax/SAXException.hpp>
+
+--- xmlsecurity/source/xmlsec/xmlelementwrapper_xmlsecimpl.hxx 2012-02-04 10:36:45.000000000 +0900
++++ xmlsecurity/source/xmlsec/xmlelementwrapper_xmlsecimpl.hxx 2012-02-01 16:51:40.000000000 +0900
+@@ -20,6 +20,7 @@
+ *************************************************************/
+
+
++#include <cwchar> // for std::mbstate_t
+
+ #ifndef _XMLELEMENTWRAPPER_XMLSECIMPL_HXX
+ #define _XMLELEMENTWRAPPER_XMLSECIMPL_HXX
+
+--- xmlsecurity/source/xmlsec/xmlstreamio.hxx 2012-02-04 10:37:09.000000000 +0900
++++ xmlsecurity/source/xmlsec/xmlstreamio.hxx 2012-02-01 16:51:40.000000000 +0900
+@@ -19,7 +19,7 @@
+ *
+ *************************************************************/
+
+-
++#include <cwchar> // for std::mbstate_t
+
+
+ #ifndef _XMLSTREAMIO_XMLSECIMPL_HXX_
+ #define _XMLSTREAMIO_XMLSECIMPL_HXX_
diff --git a/editors/openoffice-devel/files/patch-jdk7-hsqldb-debian b/editors/openoffice-devel/files/patch-jdk7-hsqldb-debian
new file mode 100644
index 000000000000..0f169774a37d
--- /dev/null
+++ b/editors/openoffice-devel/files/patch-jdk7-hsqldb-debian
@@ -0,0 +1,270 @@
+--- hsqldb/patches/jdbc-4.1.patch
++++ hsqldb/patches/jdbc-4.1.patch
+@@ -0,0 +1,267 @@
++--- misc/hsqldb/build/build.xml 2012-02-08 15:14:42.827123541 +0000
+++++ misc/build/hsqldb/build/build.xml 2012-02-08 15:21:43.827722388 +0000
++@@ -98,7 +98,11 @@
++ <echo message="ant.java.hasjsse=${ant.java.hasjsse}" />
++ </target>
++
++- <target name="javaversion6">
+++ <target name="javaversion7">
+++ <available classname="java.util.Objects" property="ant.java.iscjava17"/>
+++ </target>
+++
+++ <target name="javaversion6" depends="javaversion7" unless="ant.java.iscjava17">
++ <available classname="java.net.IDN" property="ant.java.iscjava16"/>
++ </target>
++
++@@ -210,6 +214,7 @@
++ <arg value="+JAVA2FULL"/>
++ <arg value="-JAVA4"/>
++ <arg value="-JAVA6"/>
+++ <arg value="-JAVA7"/>
++ </java>
++ </target>
++
++@@ -244,6 +249,7 @@
++ <arg value="+JAVA2FULL"/>
++ <arg value="+JAVA4"/>
++ <arg value="-JAVA6"/>
+++ <arg value="-JAVA7"/>
++ </java>
++ </target>
++
++@@ -279,10 +285,47 @@
++ <arg value="+JAVA2FULL"/>
++ <arg value="+JAVA4"/>
++ <arg value="+JAVA6"/>
+++ <arg value="+JAVA7"/>
+++ </java>
+++ </target>
+++
+++ <target name="switchtojdk17" depends="switchtojdk16"
+++ description="self explanatory" if="ant.java.iscjava17">
+++ <java classname="org.hsqldb.util.CodeSwitcher" classpath="classes" >
+++ <arg file="${src}/org/hsqldb/lib/java/JavaSystem.java"/>
+++ <arg file="${src}/org/hsqldb/lib/HsqlTimer.java"/>
+++ <arg file="${src}/org/hsqldb/jdbcDriver.java"/>
+++ <arg file="${src}/org/hsqldb/jdbc/jdbcBlob.java"/>
+++ <arg file="${src}/org/hsqldb/jdbc/jdbcDatabaseMetaData.java"/>
+++ <arg file="${src}/org/hsqldb/jdbc/jdbcDataSource.java"/>
+++ <arg file="${src}/org/hsqldb/jdbc/jdbcCallableStatement.java"/>
+++ <arg file="${src}/org/hsqldb/jdbc/jdbcClob.java"/>
+++ <arg file="${src}/org/hsqldb/jdbc/jdbcConnection.java"/>
+++ <arg file="${src}/org/hsqldb/jdbc/jdbcParameterMetaData.java"/>
+++ <arg file="${src}/org/hsqldb/jdbc/jdbcPreparedStatement.java"/>
+++ <arg file="${src}/org/hsqldb/jdbc/jdbcResultSet.java"/>
+++ <arg file="${src}/org/hsqldb/jdbc/jdbcResultSetMetaData.java"/>
+++ <arg file="${src}/org/hsqldb/jdbc/jdbcStatement.java"/>
+++ <arg file="${src}/org/hsqldb/persist/LockFile.java"/>
+++ <arg file="${src}/org/hsqldb/persist/Logger.java"/>
+++ <arg file="${src}/org/hsqldb/persist/ScaledRAFile.java"/>
+++ <arg file="${src}/org/hsqldb/rowio/RowInputTextLog.java"/>
+++ <arg file="${src}/org/hsqldb/util/DatabaseManager.java"/>
+++ <arg file="${src}/org/hsqldb/util/ConnectionDialogCommon.java"/>
+++ <arg file="${src}/org/hsqldb/lib/SimpleLog.java"/>
+++ <arg file="${src}/org/hsqldb/rowio/RowInputTextLog.java"/>
+++ <arg file="${src}/org/hsqldb/lib/SimpleLog.java"/>
+++ <arg file="${src}/org/hsqldb/rowio/RowInputTextLog.java"/>
+++ <arg file="${src}/org/hsqldb/HsqlDateTime.java"/>
+++ <arg value="+JAVA2"/>
+++ <arg value="+JAVA2FULL"/>
+++ <arg value="+JAVA4"/>
+++ <arg value="+JAVA6"/>
+++ <arg value="+JAVA7"/>
++ </java>
++ </target>
++
++- <target name="store" depends="switchtojdk16"
+++ <target name="store" depends="switchtojdk17"
++ description="compiles the /store folder">
++ <javac srcdir="${src}"
++ destdir="classes"
++--- misc/hsqldb/src/org/hsqldb/jdbc/jdbcCallableStatement.java 2012-02-08 15:14:42.802123563 +0000
+++++ misc/build/hsqldb/src/org/hsqldb/jdbc/jdbcCallableStatement.java 2012-02-08 15:47:35.842635642 +0000
++@@ -3375,4 +3375,18 @@
++ }
++
++ //#endif JAVA6
+++
+++//#ifdef JAVA7
+++ public <T> T getObject(String columnLabel, Class<T> type) throws SQLException
+++ {
+++ throw new UnsupportedOperationException("Not supported yet.");
+++ }
+++
+++ public <T> T getObject(int ColumnIndex, Class<T> type) throws SQLException
+++ {
+++ throw new UnsupportedOperationException("Not supported yet.");
+++ }
+++
+++
+++//#endif JAVA7
++ }
++--- misc/hsqldb/src/org/hsqldb/jdbc/jdbcConnection.java 2012-02-08 15:14:42.802123563 +0000
+++++ misc/build/hsqldb/src/org/hsqldb/jdbc/jdbcConnection.java 2012-02-08 15:47:35.851635628 +0000
++@@ -48,6 +48,12 @@
++ import java.sql.SQLXML;
++
++ //#endif JAVA6
+++
+++//#ifdef JAVA7
+++import java.util.concurrent.Executor;
+++
+++//#endif JAVA7
+++
++ import java.sql.PreparedStatement;
++ import java.sql.SQLException;
++ import java.sql.SQLWarning;
++@@ -2793,4 +2799,31 @@
++ }
++
++ //#endif JAVA6
+++
+++//#ifdef JAVA7
+++ public int getNetworkTimeout() throws SQLException
+++ {
+++ throw new UnsupportedOperationException("Not supported yet.");
+++ }
+++
+++ public void setNetworkTimeout(Executor executor, int millis) throws SQLException
+++ {
+++ throw new UnsupportedOperationException("Not supported yet.");
+++ }
+++
+++ public void abort(Executor executor) throws SQLException
+++ {
+++ throw new UnsupportedOperationException("Not supported yet.");
+++ }
+++
+++ public String getSchema() throws SQLException
+++ {
+++ throw new UnsupportedOperationException("Not supported yet.");
+++ }
+++
+++ public void setSchema(String schema) throws SQLException
+++ {
+++ throw new UnsupportedOperationException("Not supported yet.");
+++ }
+++//#endif JAVA7
++ }
++--- misc/hsqldb/src/org/hsqldb/jdbc/jdbcDatabaseMetaData.java 2012-02-08 15:14:42.802123563 +0000
+++++ misc/build/hsqldb/src/org/hsqldb/jdbc/jdbcDatabaseMetaData.java 2012-02-08 15:47:35.835635654 +0000
++@@ -5693,4 +5693,21 @@
++ }
++
++ //#endif JAVA6
+++
+++
+++//#ifdef JAVA7
+++ public boolean generatedKeyAlwaysReturned() throws SQLException
+++ {
+++ throw new UnsupportedOperationException("Not supported yet.");
+++ }
+++
+++ public ResultSet getPseudoColumns(String catalog, String schemaPattern,
+++ String tableNamePattern, String columnNamePattern) throws SQLException
+++ {
+++ throw new UnsupportedOperationException("Not supported yet.");
+++ }
+++
+++
+++//#endif JAVA7
+++
++ }
++--- misc/hsqldb/src/org/hsqldb/jdbc/jdbcDataSource.java 2012-02-08 15:14:42.802123563 +0000
+++++ misc/build/hsqldb/src/org/hsqldb/jdbc/jdbcDataSource.java 2012-02-08 15:47:35.836635653 +0000
++@@ -47,6 +47,11 @@
++ //#endif JAVA4
++ import org.hsqldb.jdbcDriver;
++
+++//#ifdef JAVA7
+++import java.sql.SQLFeatureNotSupportedException;
+++import java.util.logging.Logger;
+++//#endif JAVA7
+++
++ // boucherb@users 20040411 - doc 1.7.2 - javadoc updates toward 1.7.2 final
++
++ /**
++@@ -323,4 +328,12 @@
++ }
++
++ //#endif JAVA6
+++
+++//#ifdef JAVA7
+++ public Logger getParentLogger() throws SQLFeatureNotSupportedException
+++ {
+++ throw new SQLFeatureNotSupportedException("Not supported yet.");
+++ }
+++
+++//#endif JAVA7
++ }
++--- misc/hsqldb/src/org/hsqldb/jdbc/jdbcResultSet.java 2012-02-08 15:14:42.802123563 +0000
+++++ misc/build/hsqldb/src/org/hsqldb/jdbc/jdbcResultSet.java 2012-02-08 15:47:35.866635606 +0000
++@@ -5324,4 +5324,19 @@
++ }
++
++ //#endif JAVA6
+++
+++//#ifdef JAVA7
+++
+++ public <T> T getObject(String columnLabel, Class<T> type) throws SQLException
+++ {
+++ throw new UnsupportedOperationException("Not supported yet.");
+++ }
+++
+++ public <T> T getObject(int columnNum, Class<T> type) throws SQLException
+++ {
+++ throw new UnsupportedOperationException("Not supported yet.");
+++ }
+++
+++//#endif JAVA7
+++
++ }
++--- misc/hsqldb/src/org/hsqldb/jdbc/jdbcStatement.java 2012-02-08 15:14:42.802123563 +0000
+++++ misc/build/hsqldb/src/org/hsqldb/jdbc/jdbcStatement.java 2012-02-08 15:47:35.872635595 +0000
++@@ -1608,4 +1608,16 @@
++ throw new UnsupportedOperationException("Not supported yet.");
++ }
++ //#endif JAVA6
+++
+++//#ifdef JAVA7
+++ public boolean isCloseOnCompletion() throws SQLException
+++ {
+++ throw new UnsupportedOperationException("Not supported yet.");
+++ }
+++
+++ public void closeOnCompletion() throws SQLException
+++ {
+++ throw new UnsupportedOperationException("Not supported yet.");
+++ }
+++//#endif JAVA7
++ }
++--- misc/hsqldb/src/org/hsqldb/jdbcDriver.java 2012-02-08 15:14:42.800123566 +0000
+++++ misc/build/hsqldb/src/org/hsqldb/jdbcDriver.java 2012-02-08 15:47:35.826635667 +0000
++@@ -42,6 +42,11 @@
++ import org.hsqldb.persist.HsqlDatabaseProperties;
++ import org.hsqldb.persist.HsqlProperties;
++
+++//#ifdef JAVA7
+++import java.sql.SQLFeatureNotSupportedException;
+++import java.util.logging.Logger;
+++//#endif JAVA7
+++
++ // fredt@users 20011220 - patch 1.7.0 by fredt
++ // new version numbering scheme
++ // fredt@users 20020320 - patch 1.7.0 - JDBC 2 support and error trapping
++@@ -321,4 +326,12 @@
++ DriverManager.registerDriver(new jdbcDriver());
++ } catch (Exception e) {}
++ }
+++
+++//#ifdef JAVA7
+++ public Logger getParentLogger() throws SQLFeatureNotSupportedException
+++ {
+++ throw new SQLFeatureNotSupportedException("Not supported yet.");
+++ }
+++
+++//#endif JAVA7
++ }
diff --git a/editors/openoffice-devel/files/patch-jdk7-hsqldb-debian-x b/editors/openoffice-devel/files/patch-jdk7-hsqldb-debian-x
new file mode 100644
index 000000000000..0b3ead629058
--- /dev/null
+++ b/editors/openoffice-devel/files/patch-jdk7-hsqldb-debian-x
@@ -0,0 +1,12 @@
+--- hsqldb/makefile.mk.orig 2012-02-17 08:46:16.000000000 +0000
++++ hsqldb/makefile.mk 2012-09-15 18:00:27.000000000 +0000
+@@ -52,7 +52,8 @@
+ PATCH_FILES=patches$/i96823.patch \
+ patches$/i97032.patch \
+ patches$/i103528.patch \
+- patches$/i104901.patch
++ patches$/i104901.patch \
++ patches$/jdbc-4.1.patch
+
+ .IF "$(JAVACISGCJ)"=="yes"
+ JAVA_HOME=
diff --git a/editors/openoffice-devel/files/patch-unxfbsd.mk b/editors/openoffice-devel/files/patch-unxfbsd.mk
new file mode 100644
index 000000000000..55a159337693
--- /dev/null
+++ b/editors/openoffice-devel/files/patch-unxfbsd.mk
@@ -0,0 +1,28 @@
+--- solenv/inc/unxfbsd.mk~ 2012-10-31 10:39:44.000000000 +0900
++++ solenv/inc/unxfbsd.mk 2012-10-31 17:42:59.000000000 +0900
+@@ -80,14 +80,14 @@
+ .ENDIF
+
+ # flags for the C++ Compiler
+-CFLAGSCC= -pipe $(ARCH_FLAGS)
++CFLAGSCC= -pipe $(ARCH_FLAGS) %%RPATH%%
+ # Flags for enabling exception handling
+ CFLAGSEXCEPTIONS=-fexceptions -fno-enforce-eh-specs
+ # Flags for disabling exception handling
+ CFLAGS_NO_EXCEPTIONS=-fno-exceptions
+
+ # -fpermissive should be removed as soon as possible
+-CFLAGSCXX= -pipe $(ARCH_FLAGS)
++CFLAGSCXX= -pipe $(ARCH_FLAGS) %%RPATH%%
+ .IF "$(HAVE_GCC_VISIBILITY_FEATURE)" == "TRUE"
+ CFLAGSCXX += -fvisibility-inlines-hidden
+ .ENDIF # "$(HAVE_GCC_VISIBILITY_FEATURE)" == "TRUE"
+@@ -145,7 +145,7 @@
+ LINKFLAGSRUNPATH_OXT=
+ LINKFLAGSRUNPATH_BOXT=-Wl,-z,origin -Wl,-rpath,\''$$ORIGIN/../../../basis-link/program'\'
+ LINKFLAGSRUNPATH_NONE=
+-LINKFLAGS=-Wl,-z,combreloc $(LINKFLAGSDEFS) $(LINKFLAGS_SYSBASE)
++LINKFLAGS=-Wl,-z,combreloc %%RPATH%% $(LINKFLAGSDEFS) $(LINKFLAGS_SYSBASE)
+
+ # linker flags for linking applications
+ LINKFLAGSAPPGUI= -Wl,-export-dynamic -Wl,--noinhibit-exec \
diff --git a/editors/openoffice-devel/files/pkg-message.in b/editors/openoffice-devel/files/pkg-message.in
new file mode 100644
index 000000000000..5d4f68bb1a37
--- /dev/null
+++ b/editors/openoffice-devel/files/pkg-message.in
@@ -0,0 +1,39 @@
+Apache OpenOffice Build %%OOOTAG%% Personal Install How-To
+
+Written by: Martin Blapp <mbr@freebsd.org>
+ and Maho Nakata <maho@FreeBSD.org>
+
+Apache OpenOffice %%OOOTAG%% will soon been installed in
+%%PREFIX%%/%%EXECBASE%%
+
+1. User installation
+--------------------
+
+Just type "%%EXECBASE%%" after you have successfully
+installed the package. If there is no installed OO.org dir
+in your homedir, the setup installs ".%%OOODIR%%" folder.
+
+2. Starting OO.org
+------------------
+
+There are some wrappers installed for faster startup.
+Add "%%PREFIX%%/bin/" to your PATH and you will be able
+to use them.
+
+%%PREFIX%%/bin/%%EXECBASE%%
+%%PREFIX%%/bin/%%EXECBASE%%-sbase
+%%PREFIX%%/bin/%%EXECBASE%%-scalc
+%%PREFIX%%/bin/%%EXECBASE%%-sdraw
+%%PREFIX%%/bin/%%EXECBASE%%-setofficelang
+%%PREFIX%%/bin/%%EXECBASE%%-smath
+%%PREFIX%%/bin/%%EXECBASE%%-simpress
+%%PREFIX%%/bin/%%EXECBASE%%-spadmin
+%%PREFIX%%/bin/%%EXECBASE%%-swriter
+
+OO.org does need $LANG to be set to a suitable value.
+
+3. If you run into problems
+--------------------------------------------------
+If you somehow run into problems, please remove the already
+installed ".%%OOODIR%%" dir in your homedir. Redo the user
+installation and the problems should go away.