Ticket #2507: OOo.diff
File OOo.diff, 16.0 KB (added by , 16 years ago) |
---|
-
xsoft/suites/openoffice.xml
6 6 7 7 <!-- <!ENTITY openoffice-download-http "http://download.openoffice.org/&openoffice-version;/source.html"> --> 8 8 <!-- <!ENTITY openoffice-download-ftp "ftp://ftp.ussg.iu.edu/pub/openoffice/stable/&openoffice-version;/OOo_&openoffice-version;_src.tar.gz"> --> 9 <!ENTITY openoffice-core-download-http "http://ftp.osuosl.org/pub/openoffice/stable/&openoffice-version;/OOo_&openoffice-version;_src_core.tar.bz2">10 <!ENTITY openoffice-core-download-ftp "ftp://ftp.osuosl.org/pub/openoffice/stable/&openoffice-version;/OOo_&openoffice-version;_src_core.tar.bz2">11 <!ENTITY openoffice-core-md5sum "9555a2d5fae9a25c788cc732921ef57a">12 <!ENTITY openoffice-core-size "138 MB">9 <!ENTITY openoffice-core-download-http "http://ftp.osuosl.org/pub/openoffice/stable/&openoffice-version;/OOo_&openoffice-version;_src_core.tar.bz2"> 10 <!ENTITY openoffice-core-download-ftp "ftp://ftp.osuosl.org/pub/openoffice/stable/&openoffice-version;/OOo_&openoffice-version;_src_core.tar.bz2"> 11 <!ENTITY openoffice-core-md5sum "9555a2d5fae9a25c788cc732921ef57a"> 12 <!ENTITY openoffice-core-size "138 MB"> 13 13 <!ENTITY openoffice-system-download-http "http://ftp.osuosl.org/pub/openoffice/stable/&openoffice-version;/OOo_&openoffice-version;_src_system.tar.bz2"> 14 <!ENTITY openoffice-system-download-ftp "ftp://ftp.osuosl.org/pub/openoffice/stable/&openoffice-version;/OOo_&openoffice-version;_src_system.tar.bz2">15 <!ENTITY openoffice-system-md5sum "1e20befe2fdb65c00be11f1f5d9ebdca">16 <!ENTITY openoffice-system-size "36 MB">17 <!ENTITY openoffice-buildsize "4.3 GB">18 <!ENTITY openoffice-time "75 SBU">14 <!ENTITY openoffice-system-download-ftp "ftp://ftp.osuosl.org/pub/openoffice/stable/&openoffice-version;/OOo_&openoffice-version;_src_system.tar.bz2"> 15 <!ENTITY openoffice-system-md5sum "1e20befe2fdb65c00be11f1f5d9ebdca"> 16 <!ENTITY openoffice-system-size "36 MB"> 17 <!ENTITY openoffice-buildsize "4.3 GB"> 18 <!ENTITY openoffice-time "75 SBU"> 19 19 ]> 20 20 21 21 <sect1 id="openoffice" xreflabel="OpenOffice-&openoffice-version;"> … … 64 64 <listitem> 65 65 <para>OpenOffice System Download size: &openoffice-system-size;</para> 66 66 </listitem> 67 68 67 <listitem> 69 68 <para>Estimated disk space required: &openoffice-buildsize;</para> 70 69 </listitem> … … 75 74 76 75 <bridgehead renderas="sect3">Additional Downloads</bridgehead> 77 76 <itemizedlist spacing='compact'> 78 79 77 <listitem> 80 78 <para>Required patch: 81 79 <ulink url="&patch-root;/OOo_&openoffice-version;-use_bin_hsqldb-1.patch"/> 82 80 </para> 83 81 </listitem> 84 85 82 <listitem> 86 <para> Requireddownload if you wish to build the in-tree83 <para>Optional download if you wish to build the in-tree 87 84 <application>Mozilla</application> browser: 88 85 <ulink url="ftp://ftp.mozilla.org/pub/mozilla.org/mozilla/releases/mozilla1.7.5/source/mozilla-source-1.7.5.tar.gz"/></para> 89 86 </listitem> 90 91 87 <listitem> 92 88 <para>Optional download if you wish to build the 93 89 <application>OpenOffice</application> SDK: 94 90 <ulink url="ftp://ftp.osuosl.org/pub/openoffice/stable/&openoffice-version;/OOo_&openoffice-version;_src_sdk.tar.bz2"/></para> 95 91 </listitem> 96 97 92 <listitem> 98 93 <para>Optional download if you would like to localize the 99 94 installation: 100 95 <ulink url="ftp://ftp.osuosl.org/pub/openoffice/stable/&openoffice-version;/OOo_&openoffice-version;_src_l10n.tar.bz2"/></para> 101 96 </listitem> 102 103 97 <listitem> 104 98 <para>Optional download if you need to support the old 105 99 <application>StarOffice-5.x</application> file formats: 106 100 <ulink url="ftp://ftp.osuosl.org/pub/openoffice/stable/&openoffice-version;/OOo_&openoffice-version;_src_binfilter.tar.bz2"/></para> 107 101 </listitem> 108 109 102 </itemizedlist> 110 103 111 104 <bridgehead renderas="sect3">OpenOffice Dependencies</bridgehead> … … 131 124 <ulink url="http://boost.sourceforge.net/">boost</ulink>, 132 125 <xref linkend="cups"/>, 133 126 <xref linkend="curl"/>, 134 <xref linkend="db"/> ( with Java support),127 <xref linkend="db"/> (built with Java support), 135 128 <xref linkend="desktop-file-utils"/>, 136 129 <ulink url="http://www.easysw.com/epm/">EPM</ulink>, 137 130 <xref linkend="evolution"/>, … … 170 163 same top-level directory before entering the build directory. At 171 164 a minimum, you will need to extract the src and core tarballs. 172 165 Additionally, the source directory name is not consistent with 173 the tarball name amd will be named OOG680_m9.</para> 166 the tarball name amd will be named 167 <filename class='directory'>OOG680_m9</filename>.</para> 174 168 175 169 <para>If you wish to build an in-tree <application>Mozilla</application>, 176 170 as opposed to using a system wide installation, copy the … … 187 181 <option>-fomit-frame-pointer</option>. The best option is to not use any 188 182 custom optimizations.</para> 189 183 190 <note><para>Because of the complexity of the 191 <application>OpenOffice</application> build system, it is not possible to 192 provide generic build instructions for all systems. You should review 193 the output of <command>config_office/configure --help</command> and take 194 advantage of any system installed programs and libraries available using 195 the <parameter>--enable-*</parameter>, <parameter>--disable-*</parameter>, 196 and <parameter>--with-system-*</parameter> parameters. Additionally, if 197 you have installed <application>KDE</application> in the 198 <filename>/opt</filename> prefix, and would like to use the 199 <parameter>--enable-kde</parameter> switch, you must set 200 <command>KDEDIR=$KDE_PREFIX</command> before running 201 configure.</para></note> 184 <note> 185 <para>Because of the complexity of the 186 <application>OpenOffice</application> build system, it is not possible to 187 provide generic build instructions for all systems. You should review 188 the output of <command>config_office/configure --help</command> and take 189 advantage of any system installed programs and libraries available using 190 the <parameter>--enable-*</parameter>, <parameter>--disable-*</parameter>, 191 and <parameter>--with-system-*</parameter> parameters. Additionally, if 192 you have installed <application>KDE</application> in the 193 <filename class='directory'>/opt</filename> prefix, and would like to use the 194 <parameter>--enable-kde</parameter> switch, you must set 195 <command>KDEDIR=$KDE_PREFIX</command> before running 196 <command>configure</command>.</para> 197 </note> 202 198 203 199 <para>Configure <application>OpenOffice</application> using the following 204 200 commands:</para> 205 201 206 <screen><userinput> cd config_office/&&202 <screen><userinput>pushd config_office && 207 203 ./configure --prefix=/opt/openoffice-&openoffice-version; \ 208 --enable-libart --disable-fontooo --disable-gnome-vfs \ 209 --without-fonts --without-system-jars --without-pam \ 210 --with-system-stdlibs --with-system-freetype \ 211 --with-system-expat --with-system-libxml --with-system-zlib \ 212 --enable-cairo --enable-build-mozilla \ 213 --with-build-version=BLFS --with-package-format=native \ 214 --disable-binfilter --disable-odk --disable-qadevooo \ 215 --with-use-shell=bash && 216 cd ..</userinput></screen> 204 --enable-libart \ 205 --disable-fontooo \ 206 --disable-gnome-vfs \ 207 --without-fonts \ 208 --without-system-jars \ 209 --without-pam \ 210 --with-system-stdlibs \ 211 --with-system-freetype \ 212 --with-system-expat \ 213 --with-system-libxml \ 214 --with-system-zlib \ 215 --enable-cairo \ 216 --enable-build-mozilla \ 217 --with-build-version=BLFS \ 218 --with-package-format=native \ 219 --disable-binfilter \ 220 --disable-odk \ 221 --disable-qadevooo \ 222 --with-use-shell=bash && 223 popd</userinput></screen> 217 224 218 225 <para><application>OpenOffice</application> fails to compile if 219 226 <command>umask</command> is set to something exotic. The build can also … … 229 236 230 237 <screen><userinput>patch -Np1 -i ../OOo_&openoffice-version;-use_bin_hsqldb-1.patch && 231 238 ./bootstrap && 232 .LinuxX86Env.Set.sh &&239 source LinuxX86Env.Set.sh && 233 240 dmake</userinput></screen> 234 241 235 242 <para>This package does not come with a test suite.</para> … … 241 248 <screen role="root"><userinput>pushd instsetoo_native/unxlngi6.pro/OpenOffice/\ 242 249 native/install/en-US/linux-2.6-intel/buildroot/opt && 243 250 cp -r -v openoffice.org2.3 /opt/openoffice-&openoffice-version; && 244 popd </userinput></screen>251 popd && 245 252 246 <para>Still as the <systemitem class="username">root</systemitem> 247 user:</para> 248 249 <screen role="root"><userinput>for appl in sbase scalc sdraw simpress smath soffice spadmin swriter 253 for appl in sbase scalc sdraw simpress smath soffice spadmin swriter 250 254 do 251 255 ln -v -sf /opt/openoffice-&openoffice-version;/program/$appl /usr/bin/$appl 252 done </userinput></screen>256 done && 253 257 254 <para>The icons are not installed by default. While still the 255 <systemitem class="username">root</systemitem> user, install the icons 256 with the following commands:</para> 257 258 <screen role="root"><userinput>cd sysui/desktop/icons && 259 install -v -d /usr/share/icons/{HighContrast,hicolor,locolor} -m755 && 258 pushd sysui/desktop/icons && 259 install -v -m755 -d /usr/share/icons/{HighContrast,hicolor,locolor} && 260 260 cp -r -v HighContrast/*x* /usr/share/icons/HighContrast && 261 cp -r -v hicolor/*x* /usr/share/icons/hicolor && 262 cp -r -v locolor/*x* /usr/share/icons/locolor</userinput></screen> 261 cp -r -v hicolor/*x* /usr/share/icons/hicolor && 262 cp -r -v locolor/*x* /usr/share/icons/locolor && 263 popd</userinput></screen> 263 264 264 265 <para>If you have installed <xref linkend="desktop-file-utils"/>, you 265 266 should copy the <filename>*.desktop</filename> files to 266 267 <filename>/usr/share/applications</filename> with the following 267 268 commands as the <systemitem class="username">root</systemitem> user:</para> 268 269 269 <screen role="root"><userinput>install -v -d /usr/share/applications -m 755&&270 cd /opt/openoffice-&openoffice-version;/share/xdg/ &&270 <screen role="root"><userinput>install -v -d -m755 /usr/share/applications && 271 pushd /opt/openoffice-&openoffice-version;/share/xdg/ && 271 272 for appl in *.desktop 272 273 do 273 sed -i '/Exec/d' $appl 274 echo "Exec=/usr/bin/s`echo $appl | sed 's/.desktop//'`" >> $appl 275 sed -i '/Icon/d' $appl 274 sed -i '/Exec/d' $appl && 275 echo "Exec=/usr/bin/s`echo $appl | sed 's/.desktop//'`" >> $appl && 276 sed -i '/Icon/d' $appl && 276 277 echo "Icon=`echo $appl | sed 's/.desktop//'`" >> $appl 277 278 done && 278 279 sed -i 's@bin/sprinteradmin@bin/spadmin@' printeradmin.desktop && 279 280 cp -v *.desktop /usr/share/applications && 280 update-desktop-database</userinput></screen> 281 update-desktop-database && 282 popd</userinput></screen> 281 283 282 284 <para>Finally, if you'd like to edit <application>OpenOffice</application> 283 285 documents directly from <xref linkend="seamonkey"/> or 284 286 <xref linkend="firefox"/>, create a symbolic link in your 285 plugins directory to 286 <filename>/opt/openoffice-&openoffice-version;/program/libnpsoplugin.so</filename>.287 plugins directory to <filename 288 class='libraryfile'>/opt/openoffice-&openoffice-version;/program/libnpsoplugin.so</filename>. 287 289 Additionally, you must enable the plugin from the 288 290 <parameter>Internet Options</parameter> within any 289 291 <application>OpenOffice</application> application.</para> … … 294 296 <title>Command Explanations</title> 295 297 296 298 <para><parameter>--enable-*</parameter>: The switches listed in the 297 example configure command above force the use of system installed298 libraries that are known to be available on a BLFS system that meets299 the required and recommended dependencies.</para>299 example <command>configure</command> command above force the use of system 300 installed libraries that are known to be available on a BLFS system that 301 meets the required and recommended dependencies.</para> 300 302 301 303 <para><parameter>--disable-fontooo</parameter>: Use 302 <application>Fontconfig</application> instead of FontOOo.</para>304 <application>Fontconfig</application> instead of the FontOOo.</para> 303 305 304 306 <para><parameter>--disable-gnome-vfs</parameter>: Disable the use of 305 307 <application>Gnome Virtual File System</application> libraries. Omit 306 308 this switch if you have Gnome installed.</para> 307 309 308 310 <para><parameter>--without-fonts</parameter>: Do not install Bitstream 309 Vera fonts since they are already included in X Window System310 Environment.</para>311 Vera fonts since they are already included in the 312 <application>X</application> Window System Environment.</para> 311 313 312 314 <para><parameter>--with{,out}-system-*</parameter>: Determines 313 315 whether to use the system libraries and programs or to build … … 320 322 <para><parameter>--enable-build-mozilla</parameter>: Build the in-tree 321 323 <application>Mozilla</application> suite.</para> 322 324 323 <para><parameter>--with-build-version=BLFS</parameter>: Appends "BLFS"324 to the end of the version string.</para>325 <para><parameter>--with-build-version=BLFS</parameter>: Appends 326 <quote>BLFS</quote> to the end of the version string.</para> 325 327 326 328 <para><parameter>--with-package-format=native</parameter>: This switch 327 329 forces the build to skip the packaging process, leaving only the … … 330 332 331 333 <para><parameter>--disable-binfilter</parameter>: This switch disables 332 334 the build of legacy <application>StarOffice-5</application> import 333 filters. Omit this switch if you've downloaded the binfilter package 335 filters. Omit this switch if you've downloaded the 336 <application>binfilter</application> package 334 337 above. Warning: Installation of the legacy import filters increases the 335 338 build time considerably. Only install them if you have these old 336 339 file types, and need to edit them in … … 338 341 339 342 <para><parameter>--disable-odk</parameter>: This switch disables the build 340 343 of the <application>OpenOffice</application> SDK. Omit this switch if 341 you've downloaded the sdkpackage above.</para>344 you've downloaded the SDK package above.</para> 342 345 343 346 <para><parameter>--disable-qadevooo</parameter>: This switch skips 344 347 the building of the quality assurance tools used by the … … 361 364 <para> 362 365 <parameter>--with-lang=<replaceable><LANG></replaceable></parameter>: 363 366 Allows the use of additional languages in 364 <application>OpenOffice</application>. ENUS is the default.</para> 367 <application>OpenOffice</application>. English-US (ENUS) is the 368 default.</para> 365 369 366 370 <para> 367 371 <parameter>--with-dict=<replaceable><LANG></replaceable></parameter>: … … 369 373 <application>OpenOffice</application>. ENUS is the default.</para> 370 374 371 375 <para><parameter>--with-use-shell=bash</parameter>: Tells the 372 <application>OpenOffice</application> build system to use bash as opposed373 to tcsh.</para>376 <application>OpenOffice</application> build system to use 377 <command>bash</command> as opposed to <command>tcsh</command>.</para> 374 378 375 379 <para><command>./bootstrap</command>: Build the 376 < application>dmake</application> utility required to complete the380 <command>dmake</command> utility required to complete the 377 381 build.</para> 378 382 379 383 <para><command>dmake</command>: Compiles the package.</para>