# --- 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 ooo_lang='en-US' # de es fr it' #ALL 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 prepatch 5 "lo_tarballs" var_append confopt ' ' "--with-system-gcc --disable-ccache" [ "$SDECFG_LTO" = 1 ] && var_append confopt ' ' --enable-lto #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 \ --with-system-jpeg" pkginstalled apr && var_append confopt ' ' --with-system-apr pkginstalled boost && var_append confopt ' ' "--with-system-boost --with-boost-libdir=$root$(pkgprefix libdir boost)" pkginstalled bzip2 && var_append confopt ' ' --with-system-bzip2 pkginstalled cairo && var_append confopt ' ' --with-system-cairo pkginstalled clucene && var_append confopt ' ' --with-system-clucene pkginstalled curl && var_append confopt ' ' --with-system-curl pkginstalled epoxy && var_append confopt ' ' --with-system-epoxy pkginstalled harfbuzz && pkginstalled graphite2 && var_append confopt ' ' '--with-system-harfbuzz --with-system-graphite' pkginstalled expat && var_append confopt ' ' --with-system-expat pkginstalled heimdal || var_append confopt ' ' --without-krb5 pkginstalled icu4c && var_append confopt ' ' --with-system-icu pkginstalled lcms2 && var_append confopt ' ' --with-system-lcms2 pkginstalled libatomic_ops && var_append confopt ' ' --with-system-libatomic_ops pkginstalled libcdr && var_append confopt ' ' --with-system-libcdr pkginstalled libfreehand && var_append confopt ' ' --with-system-libfreehand pkginstalled libmspub && var_append confopt ' ' --with-system-libmspub pkginstalled libtiff && var_append confopt ' ' --with-system-libtiff pkginstalled libsndfile && var_append confopt ' ' --with-system-sndfile pkginstalled libpng && var_append confopt ' ' --with-system-libpng pkginstalled librevenge && var_append confopt ' ' --with-system-librevenge pkginstalled libwpd && var_append confopt ' ' --with-system-libwpd pkginstalled libxml && var_append confopt ' ' --with-system-libxml pkginstalled libzmf && var_append confopt ' ' --with-system-libzmf pkginstalled neon && var_append confopt ' ' --with-system-neon pkginstalled nss && var_append confopt ' ' --with-system-nss pkginstalled openssl && var_append confopt ' ' --with-system-openssl pkginstalled sane-backends && var_append confopt ' ' --with-system-sane pkginstalled serf && var_append confopt ' ' --with-system-serf pkginstalled startup-notification && var_append confopt ' ' --enable-libsn pkginstalled xmlsec && var_append confopt ' ' --with-system-xmlsec pkginstalled zlib && var_append confopt ' ' --with-system-zlib pkginstalled zxing-cpp && var_append confopt ' ' --with-system-zxing 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 [[ $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 confopt ' ' "--x-includes=$root$(pkgprefix includedir libx11)" var_append confopt ' ' "--x-libraries=$root$(pkgprefix libdir libx11)" var_append GCC_WRAPPER_APPEND ' ' "-I$root$(pkgprefix includedir libx11)" var_append GCC_WRAPPER_APPEND ' ' "-c?:-L$root$(pkgprefix libdir libx11)" var_append makeopt ' ' build makeinstopt="${makeinstopt/install/distro-pack-install}"