# --- T2-COPYRIGHT-NOTE-BEGIN --- # T2 SDE: package/*/libreoffice/libreoffice.conf # Copyright (C) 2004 - 2024 The T2 SDE Project # # This Copyright note is generated by scripts/Create-CopyPatch, # more information can be found in the files COPYING and README. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License version 2. # --- T2-COPYRIGHT-NOTE-END --- if [ $prefix_auto = 1 ]; then prefix=opt/libreoffice set_confopt fi lo_tarballs() { mkdir -p external/tarballs/ for f in `match_source_file -p . | grep -v libreoffice`; do local dl="$f" f=${f##*/} ln -svf $dl external/tarballs/$f done } hook_add premake 5 "lo_tarballs" ooo_lang='en-US' # de es fr it' #ALL var_append confopt ' ' "--with-system-gcc --disable-ccache" #var_append confopt ' ' '--disable-fetch-external' var_append confopt ' ' "--with-parallelism=$SDECFG_PARALLEL_MAX \ --disable-sdremote \ --disable-sdremote-bluetooth \ --disable-gstreamer-1-0 \ --disable-mariadb-sdbc \ --disable-postgresql-sdbc \ --disable-firebird-sdbc \ --disable-ldap \ --disable-cmis \ --disable-gpgmepp \ --disable-scripting-beanshell \ --disable-zxing \ --with-system-jpeg" pkginstalled sane-backends && var_append confopt ' ' --with-system-sane pkginstalled lcms2 && var_append confopt ' ' --with-system-lcms2 pkginstalled libtiff && var_append confopt ' ' --with-system-libtiff pkginstalled xmlsec && var_append confopt ' ' --with-system-xmlsec pkginstalled boost && var_append confopt ' ' --with-system-boost pkginstalled nss && var_append confopt ' ' --with-system-nss pkginstalled harfbuzz && pkginstalled graphite2 && var_append confopt ' ' '--with-system-harfbuzz --with-system-graphite' pkginstalled libpng && var_append confopt ' ' --with-system-libpng pkginstalled openssl && var_append confopt ' ' --with-system-openssl pkginstalled serf && var_append confopt ' ' --with-system-serf pkginstalled neon && var_append confopt ' ' --with-system-neon pkginstalled apr && var_append confopt ' ' --with-system-apr pkginstalled curl && var_append confopt ' ' --with-system-curl pkginstalled libxml && var_append confopt ' ' --with-system-libxml pkginstalled cairo && var_append confopt ' ' --with-system-cairo pkginstalled expat && var_append confopt ' ' --with-system-expat pkginstalled heimdal || var_append confopt ' ' --without-krb5 pkginstalled startup-notification && var_append confopt ' ' --enable-libsn pkginstalled libsndfile && var_append confopt ' ' --with-system-sndfile pkginstalled bzip2 && var_append confopt ' ' --with-system-bzip2 pkginstalled zlib && var_append confopt ' ' --with-system-zlib pkginstalled epoxy && var_append confopt ' ' --with-system-epoxy pkginstalled libatomic_ops && var_append confopt ' ' --with-system-libatomic_ops var_append confopt ' ' '--with-binsuffix=no' # just one OpenOffice for now #var_append confopt ' ' '--with-installed-ooo-dirname=openoffice.org' var_append confopt ' ' "--with-docdir=$docdir" # requires some prebuilt .dll or mingw around - for windows registry mangling var_append confopt ' ' '--disable-odk' var_append confopt ' ' '--disable-gstreamer-1-0' var_append confopt ' ' "--without-java" # UI language var_append confopt ' ' "'--with-lang=\"\$ooo_lang\"'" var_append confopt ' ' "'--with-dict=\"\$ooo_lang\"'" # Widgets and Icons ooo_iconset= if pkginstalled openldap; then var_append GCC_WRAPPER_APPEND ' ' "-I`pkgprefix includedir openldap`" var_append GCC_WRAPPER_APPEND ' ' "-L`pkgprefix libdir openldap`" else var_append confopt ' ' '--disable-ldap' fi var_append confopt ' ' "--enable-access=no" var_append confopt ' ' "--enable-mono=no" #FIXME: download location [ "$SDECFG_PKG_OOO_ICONS_BLUECURVE" = "1" ] && var_append ooo_iconset ',' "Bluecurve" [ -n "$ooo_iconset" ] && var_append confopt ' ' "--with-icons=$ooo_iconset" cpu="`echo $arch | arch2uname`" var_append confopt ' ' "--with-arch=$cpu" var_append confopt ' ' "--without-gpc --enable-crashdump=no --disable-crashdump --disable-binfilter --disable-epm" var_append confopt ' ' "--with-system-db --with-db-version=4.3" var_append confopt ' ' "--enable-fontconfig --without-myspell-dicts --without-fonts" var_append confopt ' ' "--disable-mozilla --without-gssapi" if pkginstalled nas; then var_append confopt ' ' "--with-system-nas" export LDFLAGS=-L`pkgprefix libdir libx11` export CFLAGS=-I/usr/X11/include export CPPFLAGS=-I/usr/X11/include else var_append confopt ' ' "--without-nas" fi if [[ $libdir == *lib64 ]]; then var_append confopt ' ' "--enable-64bit-libs=yes" fi if atstage cross; then export PKG_CONFIG_FOR_BUILD=/usr/bin/pkg-config # for dconf build artifacts export HOME=$builddir/home mkdir -p $HOME # why don't have cross compiling python, and skia needs clang :-/ var_append confopt ' ' '--enable-python=no --disable-skia' # TODO: better, for arm64 crypto: var_remove_regex GCC_WRAPPER_INSERT ' ' '-march=.*' var_remove GCC_WRAPPER_REMOVE ' ' '-march*' # don't overwrite it's internal CC vs. HOSTCC defines var_remove_regex makeopt ' ' '[A-Z].*=.*' fi var_append GCC_WRAPPER_APPEND ' ' "`pkg-config --cflags --libs-only-L x11`"