mirror of the now-defunct rocklinux.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

111 lines
4.2 KiB

  1. #!/bin/bash
  2. # --- ROCK-COPYRIGHT-NOTE-BEGIN ---
  3. #
  4. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  5. # Please add additional copyright information _after_ the line containing
  6. # the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by
  7. # the ./scripts/Create-CopyPatch script. Do not edit this copyright text!
  8. #
  9. # ROCK Linux: rock-src/package/stf/openoffice/openoffice.conf
  10. # ROCK Linux is Copyright (C) 1998 - 2006 Clifford Wolf
  11. #
  12. # This program is free software; you can redistribute it and/or modify
  13. # it under the terms of the GNU General Public License as published by
  14. # the Free Software Foundation; either version 2 of the License, or
  15. # (at your option) any later version. A copy of the GNU General Public
  16. # License can be found at Documentation/COPYING.
  17. #
  18. # Many people helped and are helping developing ROCK Linux. Please
  19. # have a look at http://www.rocklinux.org/ and the Documentation/TEAM
  20. # file for details.
  21. #
  22. # --- ROCK-COPYRIGHT-NOTE-END ---
  23. chownsrcdir=0
  24. nocvsinsrcdir=0
  25. with_java=0
  26. var_append extraconfopt " " "--with-package-format=portable --with-system-stdlibs"
  27. var_append extraconfopt " " "--disable-qadevooo --disable-odk"
  28. var_append extraconfopt " " "--disable-mozilla"
  29. # building with java only works in manual builds for some reason.
  30. [ "$with_java" == 0 ] && var_append extraconfopt " " " --without-java"
  31. pkginstalled evolution && var_append extraconfopt " " "--enable-evolution2"
  32. #pkginstalled firefox && var_append extraconfopt " " "--with-firefox"
  33. pkginstalled openldap && var_append extraconfopt " " "--with-openldap"
  34. pkginstalled bitstream-vera-fonts \
  35. && var_append extraconfopt " " "--without-fonts"
  36. pkginstalled cups && var_append extraconfopt " " "--without-ppds"
  37. # if pkginstalled mozilla || pkginstalled firefox ; then
  38. # var_append extraconfopt " " "--with-system-mozilla"
  39. # fi
  40. if pkginstalled "bdb[0-9]*" ; then
  41. if [ "$with_java" == 0 ] ; then
  42. var_append extraconfopt " " "--with-system-db"
  43. else
  44. # bdb4[12] with java bindings required; bdb 4.3 and above
  45. # miss a class Dbt.
  46. pkginstalled "bdb4[12]" && [ -e $root/usr/lib/db.jar ] && \
  47. var_append extraconfopt " " "--with-system-db --with-db-jar=/usr/lib/db.jar"
  48. fi
  49. fi
  50. # var_append extraconfopt " " "--with-system-dict"
  51. pkginstalled boost && var_append extraconfopt " " "--with-system-boost"
  52. pkginstalled curl && var_append extraconfopt " " "--with-system-curl"
  53. pkginstalled expat && var_append extraconfopt " " "--with-system-expat"
  54. pkginstalled freetype && var_append extraconfopt " " "--with-system-freetype"
  55. pkginstalled libjpeg && var_append extraconfopt " " "--with-system-jpeg"
  56. pkginstalled libicu && var_append extraconfopt " " "--with-system-icu"
  57. pkginstalled libmspack && var_append extraconfopt " " "--with-system-mspack"
  58. pkginstalled libxml2 && var_append extraconfopt " " "--with-system-libxml"
  59. pkginstalled nas && var_append extraconfopt " " "--with-system-nas"
  60. #pkginstalled neon && var_append extraconfopt " " "--with-system-neon"
  61. pkginstalled portaudio && var_append extraconfopt " " "--with-system-portaudio"
  62. pkginstalled python && var_append extraconfopt " " "--with-system-python"
  63. pkginstalled sndfile && var_append extraconfopt " " "--with-system-sndfile"
  64. pkginstalled startup-notification \
  65. && var_append extraconfopt " " "--with-system-libsn"
  66. pkginstalled zlib && var_append extraconfopt " " "--with-system-zlib"
  67. pkginstalled sane && var_append extraconfopt " " "--with-system-sane-headers"
  68. pkginstalled libxrender && var_append extraconfopt " " "--with-system-xrender-headers"
  69. openoffice_custmain() {
  70. # extract
  71. for x in system ; do
  72. tar $taropt $archdir/OOo_${ver}_src_${x}.tar.bz2 -C ../
  73. done
  74. unzip $archdir/gpc${GPCVER//./}.zip
  75. mv gpc*/* external/gpc
  76. cp -a $archdir/unowinreg.dll external/unowinreg
  77. # cp -a $archdir/mozilla-source-$MOZVER.tar.bz2 moz/download
  78. cd config_office
  79. eval $configprefix ./configure $confopt
  80. echo $configprefix ./configure $confopt
  81. # build
  82. cd ..
  83. . Linux*Env.Set.sh
  84. ./bootstrap
  85. dmake
  86. # install
  87. cd instsetoo_native/unxlngi6.pro/OpenOffice/portable/install
  88. for x in ./*/*/openoffice.org-*.sw ; do
  89. [ -f "$x" ] && tar xf "$x" -C ${root:-/}
  90. done
  91. }
  92. custmain=openoffice_custmain
  93. # cpan-archive-zip
  94. # sun-jdk15
  95. # orbit2 gconf gnome-mime-data gnome-vfs
  96. # ant