1 # --- SDE-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
4 # Filename: package/.../seamonkey/mozilla-conf.in
5 # Copyright (C) 2006 - 2007 The OpenSDE Project
6 # Copyright (C) 2004 - 2006 The T2 SDE Project
7 # Copyright (C) 1998 - 2004 Clifford Wolf
9 # More information can be found in the files COPYING and README.
11 # This program is free software; you can redistribute it and/or modify
12 # it under the terms of the GNU General Public License as published by
13 # the Free Software Foundation; version 2 of the License. A copy of the
14 # GNU General Public License can be found in the file COPYING.
15 # --- SDE-COPYRIGHT-NOTE-END ---
17 # default prefix for mozilla derivatives
18 mozilla_prefix=opt/mozilla.org
19 [ -n "$mozver" ] || mozver="$ver"
21 # set default homepage and distribution
23 local distro="OpenSDE $sdever"
24 local startpage=http://www.opensde.org/
27 if [ -f xpfe/global/build.dtd.in ]; then
28 sed -i "s,0000000000,$distro," xpfe/global/build.dtd.in
32 find -name region.properties | while read f; do
34 -e "s,startup.homepage_override_url=.*,startup.homepage_override_url=$startpage," \
35 -e "s,homePageDefault=.*,homePageDefault=$startpage," \
36 -e "s,browser.startup.homepage=.*,browser.startup.homepage=$startpage," \
41 hook_add preconf 2 "mozilla_branding"
44 # default configuration for mozilla's derivatives
46 cat > .mozconfig <<-EOF
48 # Build configuration script
49 # Options for client.mk.
50 # mk_add_options MOZ_MAKE_FLAGS=-j4
52 # Options for 'configure' (same as command-line options).
53 ac_add_options --prefix=$root/$prefix
54 ac_add_options --libdir=$root$libdir
55 ac_add_options --sysconfdir=$root/etc/$pkg
56 ac_add_options --localstatedir=$root/var
57 ac_add_options --enable-default-mozilla-five-home
58 ac_add_options --with-default-mozilla-five-home=$root$libdir/$pkg-$mozver
59 ac_add_options --host=$arch_target
60 ac_add_options --disable-debug
61 ac_add_options --enable-optimize
62 ac_add_options --disable-dtd-debug
63 ac_add_options --disable-tests
64 ac_add_options --disable-logging
65 ac_add_options --disable-pedantic
66 ac_add_options --enable-xft
67 ac_add_options --enable-default-toolkit=gtk2
68 ac_add_options --with-system-zlib
69 ac_add_options --with-system-jpeg
70 ac_add_options --with-system-png
71 ac_add_options --with-system-mng
72 ac_add_options --enable-system-cairo
73 ac_add_options --enable-crypto
75 export BUILD_OFFICIAL=1
76 export MOZILLA_OFFICIAL=1
77 mk_add_options BUILD_OFFICIAL=1
78 mk_add_options MOZILLA_OFFICIAL=1
81 # this is needed due to a bug gcc 4.x
82 # (see http://benjamin.smedbergs.us/blog/2005-10-27/gcc-40-workaround/)
84 x86-64|powerpc|powerpc64) # maybe more
85 echo ac_cv_visibility_pragma=no >> .mozconfig
88 [ $arch = powerpc64 ] && var_append GCC_WRAPPER_APPEND ' ' -mminimal-toc
91 export MOZILLA_FIVE_HOME=$libdir/$pkg-$mozver
92 export MOZILLA_OFFICIAL=1 BUILD_OFFICIAL=1
96 echo "Run the component registration ..."
97 pushd $MOZILLA_FIVE_HOME
98 LD_LIBRARY_PATH=. ./regxpcom
99 [ -e ./regchrome ] && LD_LIBRARY_PATH=. ./regchrome
103 makeopt="-f client.mk build"
104 makeinstopt="install"
106 # generic configuration
107 hook_add preconf 1 'mozilla_configure'
109 # register components
110 hook_add postmake 5 'mozilla_register'
112 # cleanups in this fat directory are a bit expensive
116 # distribute this file only with seamonkey
117 if [ "$pkg" != "seamonkey" ]; then
118 var_append flist''del '|' ".*/aclocal/nspr\.m4"