Browse Source

Stefan Fiedler:


			
			
				rocklinux
			
			
		
Stefan Fiedler 19 years ago
parent
commit
f873bb7e6f
7 changed files with 318 additions and 0 deletions
  1. +27
    -0
      package/stf/openoffice/config.hlp
  2. +31
    -0
      package/stf/openoffice/config.in
  3. +13
    -0
      package/stf/openoffice/expat-use-dmake.patch
  4. +15
    -0
      package/stf/openoffice/idlc_ln.sh
  5. +89
    -0
      package/stf/openoffice/idlcpp_links.txt
  6. +94
    -0
      package/stf/openoffice/openoffice.conf
  7. +49
    -0
      package/stf/openoffice/openoffice.desc

+ 27
- 0
package/stf/openoffice/config.hlp

@ -0,0 +1,27 @@
# --- ROCK-COPYRIGHT-NOTE-BEGIN ---
#
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
# Please add additional copyright information _after_ the line containing
# the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by
# the ./scripts/Create-CopyPatch script. Do not edit this copyright text!
#
# ROCK Linux: rock-src/package/stf/openoffice/config.hlp
# ROCK Linux is Copyright (C) 1998 - 2005 Clifford Wolf
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version. A copy of the GNU General Public
# License can be found at Documentation/COPYING.
#
# Many people helped and are helping developing ROCK Linux. Please
# have a look at http://www.rocklinux.org/ and the Documentation/TEAM
# file for details.
#
# --- ROCK-COPYRIGHT-NOTE-END ---
MENU_PKG_OPENOFFICE
Here you'll find options for OpenOffice.
ROCKCFG_PKG_OPENOFFICE_LANGUAGE
Choose the language OpenOffice will be built for.

+ 31
- 0
package/stf/openoffice/config.in

@ -0,0 +1,31 @@
# --- ROCK-COPYRIGHT-NOTE-BEGIN ---
#
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
# Please add additional copyright information _after_ the line containing
# the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by
# the ./scripts/Create-CopyPatch script. Do not edit this copyright text!
#
# ROCK Linux: rock-src/package/stf/maverik/config.in
# ROCK Linux is Copyright (C) 1998 - 2005 Clifford Wolf
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version. A copy of the GNU General Public
# License can be found at Documentation/COPYING.
#
# Many people helped and are helping developing ROCK Linux. Please
# have a look at http://www.rocklinux.org/ and the Documentation/TEAM
# file for details.
#
# --- ROCK-COPYRIGHT-NOTE-END ---
if pkgcheck openoffice X ; then
menu_begin MENU_PKG_OPENOFFICE 'OpenOffice Package Options'
# only 01 and 49 language sets are built by default
choice ROCKCFG_PKG_OPENOFFICE_LANGUAGE 01 \
01 'US English version' \
49 'German version'
menu_end
fi

+ 13
- 0
package/stf/openoffice/expat-use-dmake.patch

@ -0,0 +1,13 @@
--- ./expat/expat.patch.orig 2005-05-23 13:57:24.000000000 +0200
+++ ./expat/expat.patch 2005-05-23 14:04:34.000000000 +0200
@@ -66,8 +66,8 @@
! #
! #*************************************************************************
! target:
-! +cd xmltok && $(MAKE) $(MFLAGS) $(CALLMACROS)
-! +cd xmlparse && $(MAKE) $(MFLAGS) $(CALLMACROS)
+! +cd xmltok && $(DMAKE) $(MFLAGS) $(CALLMACROS)
+! +cd xmlparse && $(DMAKE) $(MFLAGS) $(CALLMACROS)
*** misc/expat/xmlparse/makefile.mk Mon Apr 29 18:59:16 2002
--- misc/build/expat/xmlparse/makefile.mk Mon Apr 29 17:49:05 2002
***************

+ 15
- 0
package/stf/openoffice/idlc_ln.sh

@ -0,0 +1,15 @@
#! /bin/bash
dmake > test.txt 2>&1
LNDIR="`sed -n test.txt -e"s,ERROR: [a-zA-Z0-9 ]* /[^/]*/[^/]*\(.*\),\1,gp"`"
LN2DIR="`echo $LNDIR | sed -n -e"s,/[^/]*,/..,gp"`"
IDLC="`grep test.txt -e"idlc: compile"`"
while [ "$IDLC" != "" ];
do
echo \"$LNDIR\" \"$LN2DIR\" \"$IDLC\"
ln -svf ./$LN2DIR/solver/645/unxlngi4.pro/bin/idlcpp ./$LNDIR/idlcpp
dmake > test.txt 2>&1
LNDIR="`sed -n test.txt -e"s,ERROR: [a-zA-Z0-9 ]* /[^/]*/[^/]*\(.*\),\1,gp"`"
LN2DIR="`echo $LNDIR | sed -n -e"s,/[^/]*,/..,gp"`"
IDLC="`grep test.txt -e"idlc: compile"`"
done

+ 89
- 0
package/stf/openoffice/idlcpp_links.txt

@ -0,0 +1,89 @@
./setup2/util/idlcpp
./scaddins/source/analysis/idlcpp
./scaddins/source/datefunc/idlcpp
./udkapi/com/sun/star/beans/idlcpp
./udkapi/com/sun/star/bridge/oleautomation/idlcpp
./udkapi/com/sun/star/bridge/idlcpp
./udkapi/com/sun/star/connection/idlcpp
./udkapi/com/sun/star/container/idlcpp
./udkapi/com/sun/star/corba/giop/idlcpp
./udkapi/com/sun/star/corba/iiop/idlcpp
./udkapi/com/sun/star/corba/iop/idlcpp
./udkapi/com/sun/star/corba/idlcpp
./udkapi/com/sun/star/io/idlcpp
./udkapi/com/sun/star/java/idlcpp
./udkapi/com/sun/star/lang/idlcpp
./udkapi/com/sun/star/loader/idlcpp
./udkapi/com/sun/star/reflection/idlcpp
./udkapi/com/sun/star/registry/idlcpp
./udkapi/com/sun/star/script/idlcpp
./udkapi/com/sun/star/security/idlcpp
./udkapi/com/sun/star/task/idlcpp
./udkapi/com/sun/star/test/bridge/idlcpp
./udkapi/com/sun/star/test/performance/idlcpp
./udkapi/com/sun/star/test/idlcpp
./udkapi/com/sun/star/uno/idlcpp
./udkapi/com/sun/star/util/logging/idlcpp
./udkapi/com/sun/star/util/idlcpp
./udkapi/com/sun/star/idlcpp
./offapi/com/sun/star/accessibility/idlcpp
./offapi/com/sun/star/auth/idlcpp
./offapi/com/sun/star/awt/idlcpp
./offapi/com/sun/star/chart/idlcpp
./offapi/com/sun/star/configuration/backend/xml/idlcpp
./offapi/com/sun/star/configuration/backend/idlcpp
./offapi/com/sun/star/configuration/bootstrap/idlcpp
./offapi/com/sun/star/configuration/idlcpp
./offapi/com/sun/star/datatransfer/clipboard/idlcpp
./offapi/com/sun/star/datatransfer/dnd/idlcpp
./offapi/com/sun/star/datatransfer/idlcpp
./offapi/com/sun/star/document/idlcpp
./offapi/com/sun/star/drawing/idlcpp
./offapi/com/sun/star/form/component/idlcpp
./offapi/com/sun/star/form/control/idlcpp
./offapi/com/sun/star/form/idlcpp
./offapi/com/sun/star/formula/idlcpp
./offapi/com/sun/star/frame/idlcpp
./offapi/com/sun/star/i18n/idlcpp
./offapi/com/sun/star/image/idlcpp
./offapi/com/sun/star/installation/idlcpp
./offapi/com/sun/star/ldap/idlcpp
./offapi/com/sun/star/linguistic2/idlcpp
./offapi/com/sun/star/mozilla/idlcpp
./offapi/com/sun/star/packages/manifest/idlcpp
./offapi/com/sun/star/packages/zip/idlcpp
./offapi/com/sun/star/packages/idlcpp
./offapi/com/sun/star/plugin/idlcpp
./offapi/com/sun/star/presentation/idlcpp
./offapi/com/sun/star/resource/idlcpp
./offapi/com/sun/star/scanner/idlcpp
./offapi/com/sun/star/sdb/idlcpp
./offapi/com/sun/star/sdbc/idlcpp
./offapi/com/sun/star/sdbcx/idlcpp
./offapi/com/sun/star/setup/idlcpp
./offapi/com/sun/star/sheet/idlcpp
./offapi/com/sun/star/style/idlcpp
./offapi/com/sun/star/svg/idlcpp
./offapi/com/sun/star/sync/idlcpp
./offapi/com/sun/star/sync2/idlcpp
./offapi/com/sun/star/system/idlcpp
./offapi/com/sun/star/table/idlcpp
./offapi/com/sun/star/task/idlcpp
./offapi/com/sun/star/text/fieldmaster/idlcpp
./offapi/com/sun/star/text/textfield/docinfo/idlcpp
./offapi/com/sun/star/text/textfield/idlcpp
./offapi/com/sun/star/text/idlcpp
./offapi/com/sun/star/ucb/idlcpp
./offapi/com/sun/star/ui/dialogs/idlcpp
./offapi/com/sun/star/ui/idlcpp
./offapi/com/sun/star/util/idlcpp
./offapi/com/sun/star/view/idlcpp
./offapi/com/sun/star/xml/sax/idlcpp
./offapi/com/sun/star/xml/idlcpp
./offapi/com/sun/star/idlcpp
./offapi/drafts/com/sun/star/form/component/idlcpp
./offapi/drafts/com/sun/star/form/idlcpp
./offapi/drafts/com/sun/star/table/idlcpp
./xmlscript/unotypes/idlcpp
./rvpapi/com/sun/star/portal/client/idlcpp
./rvpapi/com/sun/star/webservices/context/idlcpp

+ 94
- 0
package/stf/openoffice/openoffice.conf

@ -0,0 +1,94 @@
# OpenOffice 1.1.4 produces build errors with gcc34 and later versions
CC=no_usable_CC_version_found
CXX=no_usable_CXX_version_found
for V in gcc-30 gcc-31 gcc-32 gcc-33 gcc g++-30 g++-31 g++-32 g++-33 g++;
do
[ "`type -p $V`" == "" ] && continue
case "`$V --version | grep "(GCC)" | cut -f3 -d" "`" in
3.[0-3].*) [ "${V:0:3}" == "gcc" ] && CC=$V || CXX=$V;;
esac
done
export CC CXX
# OpenOffice 1.1.4 produces build errors with JDK 1.5.0
JAVADIR="`ls /opt/j2sdk1.4* -d | tail -n1`"
build_openoffice() {
unzip $archdir/gpc${GPCVER//./}.zip
mv gpc*/* external/gpc
# set LD_LIBRARY_PATH so libstdc++.so.5 is found
CCVER="`$CC --version | grep "(GCC)" | cut -f3 -d" "`"
CXXVER="`$CXX --version | grep "(GCC)" | cut -f3 -d" "`"
CCMACHINE="`$CC -dumpmachine`"
CXXMACHINE="`$CXX -dumpmachine`"
LD_LIBRARY_PATH="/usr/lib/gcc-lib/$CCMACHINE/$CCVER:/usr/lib/gcc-lib/$CXXMACHINE/$CXXVER:$LD_LIBRARY_PATH"
export LD_LIBRARY_PATH
cd config_office
# --prefix=<prefix> is ignored!?
eval ./configure --prefix=/opt/OpenOffice --with-jdk-home=$JAVADIR
cd ..
./bootstrap
# OpenOffice 1.1.4 searches in /usr/lib/gcc-lib/*-*-1-*
# instead of /usr/lib/gcc-lib/*-*-linux-*
for N in /usr/lib/gcc-lib/*-*-*-*;
do
L="${N//-linux-/-1-}"
if [[ -e "$N" && ! -e "$L" ]]; then
tempLinks="$tempLinks $L"
ln -svf "${N##*/}" "$L"
fi
done
# the idl compiler needs a symlink to the idl preprocessor in every
# directory an .idl file is compiled in even if idlcpp is in the PATH. o_O
# run idlc_ln.sh in the src.openoffice*/debug.sh environment to
# automatically create additional symlinks as required. Then use
# 'find -type l -name idlcpp > idlcpp_links.txt' to get all symlinks.
while read N;
do
M="`echo ${N%/*} | sed -e's,/[^/]*,/..,g'`";
ln -svf "$M/solver/6*/unxlngi4.pro/bin/idlcpp" "$N"
done < $confdir/idlcpp_links.txt
# in expat/.../{xmltok,xmlparse} $MAKE is used but dmake is appropriate
DMAKE=dmake
# start build with bash
. LinuxIntelEnv.Set.sh
# set LD_LIBRARY_PATH so libstdc++.so.5 is found
CCVER="`$CC --version | grep "(GCC)" | cut -f3 -d" "`"
CXXVER="`$CXX --version | grep "(GCC)" | cut -f3 -d" "`"
CCMACHINE="`$CC -dumpmachine`"
CXXMACHINE="`$CXX -dumpmachine`"
LD_LIBRARY_PATH="/usr/lib/gcc-lib/$CCMACHINE/$CCVER:/usr/lib/gcc-lib/$CXXMACHINE/$CXXVER:$LD_LIBRARY_PATH"
export DMAKE LD_LIBRARY_PATH
dmake
# start build with tcsh
# echo "source LinuxIntelEnv.Set;"\
# " setenv LD_LIBRARY_PATH \"$LD_LIBRARY_PATH\";"\
# " setenv DMAKE $DMAKE;"\
# " rehash;"\
# " dmake; echo $LD_LIBRARY_PATH;" | tcsh -s
rm -f $tempLinks
cd instsetoo/unxlngi4.pro/$ROCKCFG_PKG_OPENOFFICE_LANGUAGE/normal/
# this will create an OpenOffice.org1.1.4 dir below prefix;
# --single means no network install, the installation
# will be ready to use without the need to run setup
./install --prefix=/opt --single
}
custmain=build_openoffice
hook_add prepare 3 "mkdir OpenOffice-$ver; cd OpenOffice-$ver"
nocvsinsrcdir=0

+ 49
- 0
package/stf/openoffice/openoffice.desc

@ -0,0 +1,49 @@
[COPY] --- ROCK-COPYRIGHT-NOTE-BEGIN ---
[COPY]
[COPY] This copyright note is auto-generated by ./scripts/Create-CopyPatch.
[COPY] Please add additional copyright information _after_ the line containing
[COPY] the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by
[COPY] the ./scripts/Create-CopyPatch script. Do not edit this copyright text!
[COPY]
[COPY] ROCK Linux: rock-src/package/stf/rte/rte.desc
[COPY] ROCK Linux is Copyright (C) 1998 - 2005 Clifford Wolf
[COPY]
[COPY] This program is free software; you can redistribute it and/or modify
[COPY] it under the terms of the GNU General Public License as published by
[COPY] the Free Software Foundation; either version 2 of the License, or
[COPY] (at your option) any later version. A copy of the GNU General Public
[COPY] License can be found at Documentation/COPYING.
[COPY]
[COPY] Many people helped and are helping developing ROCK Linux. Please
[COPY] have a look at http://www.rocklinux.org/ and the Documentation/TEAM
[COPY] file for details.
[COPY]
[COPY] --- ROCK-COPYRIGHT-NOTE-END ---
[I] a free office suite
[T] OpenOffice.org is a multi-platform office productivity suite.
[T] It includes the key desktop applications, such as a word processor,
[T] spreadsheet, presentation manager, and drawing program, with a user interface
[T] and feature set similar to other office suites. Sophisticated and flexible,
[T] OpenOffice.org also works transparently with a variety of file formats,
[T] including those of Microsoft Office.
[U] http://www.openoffice.org
[A] StarDivision { original author of the StarOffice suite }
[A] The OpenOffice.org Team
[M] Stefan Fiedler <stefan.fiedler@students.jku.at>
[C] extra/office
[L] LGPL
[S] Stable
[V] 1.1.4
[O] GPCVER=2.3.2
[P] O -?---5---9 502.000
[D] 1168009070 OOo_1.1.4_source.tar.gz http://gd.tuwien.ac.at/office/openoffice/stable/1.1.4/
[D] 1392464539 gpc232.zip ftp://ftp.cs.man.ac.uk/pub/toby/gpc/

Loading…
Cancel
Save