1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by scripts/Create-CopyPatch.
4 # T2 SDE: package/*/libreoffice/libreoffice.conf
5 # Copyright (C) 2004 - 2021 The T2 SDE Project
7 # More information can be found in the files COPYING and README.
9 # This program is free software; you can redistribute it and/or modify
10 # it under the terms of the GNU General Public License as published by
11 # the Free Software Foundation; version 2 of the License. A copy of the
12 # GNU General Public License can be found in the file COPYING.
13 # --- T2-COPYRIGHT-NOTE-END ---
15 if [ $prefix_auto = 1 ]; then
16 prefix=/opt/openoffice.org
20 ooo_lang='en-US' # de es fr it' #ALL
22 #var_append confopt ' ' '--disable-fetch-external'
23 var_append confopt ' ' "--with-parallelism=$SDECFG_PARALLEL_MAX \
24 --disable-extension-integration \
26 --disable-database-connectivity \
27 --disable-extensions \
29 --disable-dynamic-loading \
30 --disable-report-builder \
38 --disable-cairo-canvas \
41 --disable-sdremote-bluetooth \
43 --disable-gstreamer-1-0 \
45 --disable-extension-update \
46 --disable-X-community-flavor \
47 --disable-mariadb-sdbc \
48 --disable-postgresql-sdbc \
49 --disable-lotuswordpro \
50 --disable-firebird-sdbc \
59 --disable-scripting-beanshell \
60 --disable-scripting-javascript \
62 --with-system-X-libs \
64 --with-system-X-headers \
69 --with-system-clucene \
71 --with-system-libxml \
73 --with-system-X-ucpp \
74 --with-system-openldap \
75 --with-system-poppler \
76 --with-system-gpgmepp \
77 --with-system-X-mariadb \
78 --with-system-X-postgresql \
79 --with-system-X-firebird \
80 --with-system-libtommath \
81 --with-system-X-hsqldb \
82 --with-system-X-beanshell \
83 --with-system-X-rhino \
84 --with-system-X-jfreereport \
85 --with-system-X-odbc \
91 --with-system-X-hunspell \
92 --with-system-X-zxing \
93 --with-system-X-box2d \
94 --with-system-X-mythes \
95 --with-system-X-altlinuxhyph \
96 --with-system-X-lpsolve \
97 --with-system-X-coinmp \
98 --with-system-X-liblangtag \
99 --with-system-icu-for-build=yes \
100 --with-system-X-libcmis \
101 --with-system-expat \
102 --with-system-xmlsec \
103 --with-system-X-libeot \
104 --with-system-X-librevenge \
105 --with-system-X-libodfgen \
106 --with-system-X-libepubgen \
107 --with-system-X-libwpd \
108 --with-system-X-libwpg \
109 --with-system-X-libwps \
110 --with-system-X-libvisio \
111 --with-system-X-libcdr \
112 --with-system-X-libmspub \
113 --with-system-X-libmwaw \
114 --with-system-X-libetonyek \
115 --with-system-X-libfreehand \
116 --with-system-X-libebook \
117 --with-system-X-libabw \
118 --with-system-X-libpagemaker \
119 --with-system-X-libqxp \
120 --with-system-X-libzmf \
121 --with-system-X-libstaroffice \
122 --with-system-lcms2 \
123 --with-system-cppunit \
124 --with-system-libatomic_ops \
125 --with-system-X-mdds \
127 --with-system-X-orcus \
128 --with-system-X-graphite \
129 --with-system-harfbuzz \
133 --with-system-openssl \
134 --with-system-X-redland \
135 --with-system-X-libexttextcat \
136 --with-system-X-libnumbertext \
137 --with-system-epoxy \
138 --with-system-libpng"
140 var_append confopt ' ' '--with-binsuffix=no' # just one OpenOffice for now
141 var_append confopt ' ' '--with-installed-ooo-dirname=openoffice.org'
142 var_append confopt ' ' "--with-docdir=$docdir"
144 var_append confopt ' ' '--disable-post-install-scripts'
145 var_append confopt ' ' '--disable-binfilter'
146 # requires some prebuilt .dll or mingw around - for windows registry mangling
147 var_append confopt ' ' '--disable-odk'
148 var_append confopt ' ' '--disable-gstreamer-1-0'
150 # instead of --with-internal-gcc
151 var_append confopt ' ' "--with-system-gcc"
154 var_append confopt ' ' "'--with-lang=\"\$ooo_lang\"'"
155 var_append confopt ' ' "'--with-dict=\"\$ooo_lang\"'"
162 if pkginstalled gtk+2; then
163 var_append confopt ' ' "--enable-gtk"
164 if pkginstalled libbonobo; then
165 var_append confopt ' ' "--with-bonobo"
167 [ "$SDECFG_PKG_OOO_ICONS_GNOME" = "1" ] &&
168 var_append ooo_iconset ',' "gnome"
170 var_append confopt ' ' "--disable-gtk"
173 var_append confopt ' ' "--disable-kde"
175 if ! pkginstalled gnome-vfs; then
176 var_append confopt ' ' '--disable-gnome-vfs'
179 if pkginstalled openldap; then
180 var_append GCC_WRAPPER_APPEND ' ' "-I`pkgprefix includedir openldap`"
181 var_append GCC_WRAPPER_APPEND ' ' "-L`pkgprefix libdir openldap`"
183 var_append confopt ' ' '--disable-ldap'
186 # disable cairo support, for now
187 var_append confopt ' ' "--enable-cairo=no"
188 # disable mdb/access support, for now
189 var_append confopt ' ' "--enable-access=no"
190 # disable mono support, for now
191 var_append confopt ' ' "--enable-mono=no"
193 #FIXME: download location [ "$SDECFG_PKG_OOO_ICONS_BLUECURVE" = "1" ] && var_append ooo_iconset ',' "Bluecurve"
194 [ -n "$ooo_iconset" ] && var_append confopt ' ' "--with-icons=$ooo_iconset"
197 cpu="`echo $arch | arch2uname`"
198 var_append confopt ' ' "--with-arch=$cpu"
200 var_append confopt ' ' "--without-gpc --enable-crashdump=no --disable-crashdump --disable-binfilter --disable-epm"
202 var_append confopt ' ' "--with-system-db --with-db-version=4.3"
204 var_append confopt ' ' "--enable-fontconfig --without-myspell-dicts --without-fonts"
205 var_append confopt ' ' "--disable-mozilla --without-gssapi"
207 # build fails otherwise
208 var_append confopt ' ' "--enable-vba --with-vba-package-format=builtin"
210 pkginstalled boost && var_append confopt ' ' "--with-system-boost"
211 pkginstalled heimdal || var_append confopt ' ' "--without-krb5"
213 pkginstalled startup-notification && var_append confopt ' ' "--enable-libsn"
215 pkginstalled libsndfile && var_append confopt ' ' "--with-system-sndfile"
217 if pkginstalled nas; then
218 var_append confopt ' ' "--with-system-nas"
219 export LDFLAGS=-L`pkgprefix libdir libx11`
220 export CFLAGS=-I/usr/X11/include
221 export CPPFLAGS=-I/usr/X11/include
223 var_append confopt ' ' "--without-nas"
226 if [[ $libdir == *lib64 ]]; then
227 var_append confopt ' ' "--enable-64bit-libs=yes"
231 var_append confopt ' ' "--without-java"
233 var_append GCC_WRAPPER_APPEND ' ' "`pkg-config --cflags --libs-only-L x11`"