OpenSDE Packages Database (without history before r20070)
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.

282 lines
7.2 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../ooo/ooo.conf
  5. # Copyright (C) 2006 The OpenSDE Project
  6. # Copyright (C) 2004 - 2006 The T2 SDE Project
  7. #
  8. # More information can be found in the files COPYING and README.
  9. #
  10. # This program is free software; you can redistribute it and/or modify
  11. # it under the terms of the GNU General Public License as published by
  12. # the Free Software Foundation; version 2 of the License. A copy of the
  13. # GNU General Public License can be found in the file COPYING.
  14. # --- SDE-COPYRIGHT-NOTE-END ---
  15. if [ $prefix_auto = 1 ] ; then
  16. prefix=/opt/ooo
  17. set_confopt
  18. fi
  19. ooo_lang='en-US de es fr it' #ALL
  20. ############################################################################
  21. # Ximian build system configuration options
  22. var_append confopt ' ' "--with-installed-ooo-dirname=OpenOffice.org"
  23. var_append confopt ' ' "--with-docdir=$docdir"
  24. # src680-mXX
  25. cvstag=$( match_source_file -core.tar )
  26. var_append confopt ' ' "--with-tag=${cvstag%-core.tar*}"
  27. # populate src/ with every [D] on our .desc
  28. # (instead of --with-srcdir)
  29. #
  30. hook_add prepatch 5 'ooo_populate_src'
  31. ooo_populate_src() {
  32. local file= filename=
  33. for file in `match_source_file -p .`; do
  34. filename=${file##*/}
  35. case "$filename" in
  36. lp_solve*)
  37. # some files must be converted back to .gz
  38. echo "repacking '$file' to 'src/${filename%.bz2}.gz'"
  39. bzcat $file | gzip -c - > src/${filename%.bz2}.gz ;;
  40. *)
  41. ln -svf $file src/ ;;
  42. esac
  43. done
  44. }
  45. # instead of --with-internal-gcc=no
  46. var_append confopt ' ' "--with-system-gcc"
  47. # yes, we are ourselves
  48. dist=OpenSDE
  49. [ $arch_sizeof_char_p = 8 ] && dist=${dist}64
  50. var_append confopt ' ' "--with-distro=$dist"
  51. # and we only have one OOo on the systems
  52. var_append confopt ' ' '--with-binsuffix=no'
  53. var_append confopt ' ' '--disable-post-install-scripts'
  54. var_append confopt ' ' '--disable-binfilter'
  55. var_append confopt ' ' '--disable-odk'
  56. # UI language
  57. var_append confopt ' ' "'--with-lang=\"\$ooo_lang\"'"
  58. var_append confopt ' ' "'--with-dict=\"\$ooo_lang\"'"
  59. # enable/disable the features dependent on which packages we have
  60. # FIXME: mdbtool,silgraphite,hunspell have not been packaged yet
  61. for x in gtk+ arts cairo mono mdbtool silgraphite \
  62. hunspell
  63. do
  64. # x is the leading package
  65. # y is the feature at OOo
  66. case "$x" in
  67. silgraphite) y="graphite" ;;
  68. mdbtool) y="access" ;;
  69. gtk+) y="gtk" ;;
  70. arts) y="kde" ;;
  71. *) y="$x" ;;
  72. esac
  73. # leading package installed
  74. if pkginstalled $x; then
  75. var_append confopt ' ' "--enable-$y"
  76. # special tweakery
  77. case "$y" in
  78. #kde)
  79. # export QTLIB=$QTDIR/lib
  80. # ;;
  81. cairo)
  82. # to not get ooo-build asking for the source
  83. var_append confopt ' ' "--with-system-$y"
  84. ;;
  85. esac
  86. else
  87. var_append confopt ' ' "--disable-$y"
  88. fi
  89. done
  90. # disable java support
  91. var_append confopt ' ' '--with-java=no'
  92. # --with-openclipart=/usr/share/openclipart
  93. # Architecture (ppc,sparc,and the rest)
  94. cpu="`echo $arch | arch2uname`"
  95. var_append confopt ' ' "--with-arch=$cpu"
  96. hook_add preconf 5 'ooo_preconfigure'
  97. ooo_preconfigure() {
  98. # i don't want this common config, at least for now -mnemoc
  99. cat /dev/null > distro-configs/Common.conf.in
  100. # fixed config
  101. cat <<-EOT > distro-configs/OpenSDE.conf
  102. --disable-qadevooo
  103. --enable-crashdump=no
  104. --with-db-version=$( pkgprefix ver bdb | cut -d'.' -f1-2 )
  105. --with-use-shell=bash
  106. --with-vendor=\\"OpenSDE, http://www.opensde.org/\"
  107. --with-build-version=\\"OpenSDE v.$sdever - OO.o $ver\\"
  108. --with-system-libs
  109. --with-system-stdlibs
  110. --with-system-python
  111. --with-system-xmlsec=no
  112. --without-gpc
  113. --without-agg
  114. --disable-mathmldtd
  115. --disable-directx
  116. --enable-fontconfig
  117. --disable-fontooo
  118. --without-afms
  119. --without-ppds
  120. --without-myspell-dicts
  121. EOT
  122. # Usage: --with-lang="es sw tu cs sk"
  123. # Usage: --with-dict=ENGB,ENUS,ITIT
  124. # --disable-rpath: Disable the use of relative paths in shared libraries
  125. # --with-intro-bitmaps=/path/my_ooo_intro.bmp
  126. # --with-about-bitmaps=/path/my_ooo_about.bmp
  127. # --with-vendor="John the Builder"
  128. # conditional config
  129. #
  130. {
  131. # enable/disable the features dependent on which packages we have
  132. for x in gtk+ arts cairo mono openldap gconf cups dbus \
  133. libart_lgpl23 startup-notification gstreamer
  134. do
  135. # x is the leading package
  136. # y is the feature at OOo
  137. case "$x" in
  138. startup-notification) y="libsn" ;;
  139. openldap) y="ldap" ;;
  140. libart_lgpl23) y="libart" ;;
  141. gconf) y="lockdown" ;;
  142. gtk+) y="gtk" ;;
  143. arts) y="kde" ;;
  144. *) y="$x" ;;
  145. esac
  146. # leading package installed
  147. if pkginstalled $x; then
  148. echo "--enable-$y"
  149. # special tweakery
  150. case "$x" in
  151. # arts)
  152. # export QTLIB=$QTDIR/lib
  153. # ;;
  154. openldap)
  155. echo "--with-openldap"
  156. ;;
  157. gtk)
  158. echo "--enable-atkbridge" # does it exist?
  159. ;;
  160. esac
  161. else
  162. echo "--disable-$y"
  163. # special tweakery
  164. case "$x" in
  165. gconf) echo "--disable-gnome-vfs"
  166. ;;
  167. gtk) echo "--disable-atkbridge" # does it exist?
  168. ;;
  169. esac
  170. fi
  171. done
  172. #pkginstalled mozilla &&
  173. # echo "--with-system-mozilla" ||
  174. # --with-firefox Use Firefox instead of Mozilla Suite for building.
  175. # Only honoured with --with-system-mozilla
  176. # --with-xulrunner Use XULRunner instead of Mozilla Suite for building.
  177. # Only honoured with --with-system-mozilla
  178. # --with-mozilla-version=1.7.5 (is our version supported? [REVIEW]
  179. echo "--disable-mozilla"
  180. echo "--with-system-mozilla=no"
  181. # --with-stlport4
  182. echo "--without-stlport4"
  183. #--enable-evolution2
  184. echo "--disable-evolution2"
  185. # echo "--with-system-mspack"
  186. # disable support for sound using portaudio/sndfile
  187. echo "--disable-pasf"
  188. # mdb support, TODO: get it consistent to what was given on $confopt
  189. #--with-system-mdbtools
  190. echo "--disable-access"
  191. # Use xsltproc at buildtime, even when java is available [REVIEW]
  192. echo "--enable-xsltproc"
  193. # WebDAV support
  194. echo "--disable-neon"
  195. #if pkginstalled nas; then
  196. # echo "--with-system-nas"
  197. # export LDFLAGS=-L`pkgprefix libdir libx11`
  198. # export CFLAGS=-I/usr/X11/include
  199. # export CPPFLAGS=-I/usr/X11/include
  200. #fi
  201. echo "--without-nas"
  202. #if [[ $libdir == *lib64 ]]; then
  203. # echo "--enable-64bit-libs=yes"
  204. #fi
  205. # Java support
  206. #
  207. #if [ "$JAVA_HOME" ] && pkginstalled apache-ant; then
  208. # echo "--with-java=java"
  209. # echo "--with-jdk-home=$root$JAVA_HOME"
  210. # echo "--with-ant-home=$root/$( pkgprefix apache-ant )"
  211. # echo "--with-db-jar=$root$( pkgprefix libdir java-dirtree )/libdb_java-4.3.jar"
  212. # # Only if using GCJ! [REVIEW]
  213. # #echo "--enable-gcjaot"
  214. # #--with-java-target-version
  215. # #--with-java=gij
  216. #else
  217. # don't look for java things on the system if we don't have Java
  218. cat <<-EOT
  219. --with-system-hsqldb=no
  220. --with-system-beanshell=no
  221. --with-system-xml-apis=no
  222. --with-system-xerces=no
  223. --with-system-xalan=no
  224. EOT
  225. #fi
  226. # --with-beanshell-jar=JARFILE Specify path to jarfile manually
  227. # --with-db-jar=JARFILE
  228. # --with-xml-apis-jar=JARFILE Specify path to jarfile manually
  229. # --with-system-xalan Use xalan already on system
  230. # --with-xalan-jar=JARFILE Specify path to jarfile manually
  231. # --with-serializer-jar=JARFILE Specify path to jarfile manually
  232. } >> distro-configs/OpenSDE.conf
  233. cp distro-configs/OpenSDE{,64}.conf
  234. }