# --- T2-COPYRIGHT-NOTE-BEGIN --- # T2 SDE: package/*/xulrunner/xulrunner.conf # Copyright (C) 2008 - 2022 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=$mozilla_prefix set_confopt fi xul_conf() { sed -e /with-system-png/d -e /enable-application/d \ -e /default-toolkit/d -e /javaxpcom/d -i .mozconfig cat >> .mozconfig <<-EOT ac_add_options --enable-application=xulrunner ac_add_options --enable-default-toolkit=cairo-gtk2 EOT [ "$JAVA_HOME" ] || cat >> .mozconfig <<-EOT ac_add_options --disable-javaxpcom EOT export MOZ_CO_PROJECT=xulrunner } hook_add preconf 1 xul_conf # openoffice-org 3.0.0 requires libxul-nss to be present hook_add postmake 5 "ln -sfv mozilla-nss.pc $root$libdir/pkgconfig/libxul-nss.pc" pkginstalled nss && var_append confopt ' ' '--with-system-nss' pkginstalled sqlite && var_append confopt ' ' '--enable-system-sqlite' pkginstalled openldap && var_append confopt ' ' '--enable-ldap' # configure: error: --with-system-png won't work because the system's libpng doesn't have APNG support var_append confopt ' ' '--without-system-png'