* updated maddy (0.7.1 -> 0.8.1), untested
[t2sde.git] / package / develop / xulrunner / xulrunner.conf
blobe2deb61c7464bacc996cb18eb0c9a5bbdfb3828c
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/xulrunner/xulrunner.conf
3 # Copyright (C) 2008 - 2022 The T2 SDE Project
4
5 # This Copyright note is generated by scripts/Create-CopyPatch,
6 # more information can be found in the files COPYING and README.
7
8 # This program is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License version 2.
10 # --- T2-COPYRIGHT-NOTE-END ---
12 if [ $prefix_auto = 1 ]; then
13         prefix=$mozilla_prefix
14         set_confopt
17 xul_conf() {
18         sed -e /with-system-png/d -e /enable-application/d \
19             -e /default-toolkit/d -e /javaxpcom/d -i .mozconfig
21         cat >> .mozconfig <<-EOT
22 ac_add_options --enable-application=xulrunner
23 ac_add_options --enable-default-toolkit=cairo-gtk2
24 EOT
26         [ "$JAVA_HOME" ] || cat >> .mozconfig <<-EOT
27 ac_add_options --disable-javaxpcom
28 EOT
30         export MOZ_CO_PROJECT=xulrunner
32 hook_add preconf 1 xul_conf
34 # openoffice-org 3.0.0 requires libxul-nss to be present
35 hook_add postmake 5 "ln -sfv mozilla-nss.pc $root$libdir/pkgconfig/libxul-nss.pc"
37 pkginstalled nss && var_append confopt ' ' '--with-system-nss'
38 pkginstalled sqlite && var_append confopt ' ' '--enable-system-sqlite'
39 pkginstalled openldap && var_append confopt ' ' '--enable-ldap'
41 # configure: error: --with-system-png won't work because the system's libpng doesn't have APNG support
42 var_append confopt ' ' '--without-system-png'