|
|
|
# --- SDE-COPYRIGHT-NOTE-BEGIN ---
|
|
|
|
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
|
|
|
|
#
|
|
|
|
# Filename: package/.../seamonkey/seamonkey.conf
|
|
|
|
# Copyright (C) 2007 The OpenSDE Project
|
|
|
|
# Copyright (C) 2004 - 2006 The T2 SDE Project
|
|
|
|
# Copyright (C) 1998 - 2004 Clifford Wolf
|
|
|
|
#
|
|
|
|
# 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 as published by
|
|
|
|
# the Free Software Foundation; version 2 of the License. A copy of the
|
|
|
|
# GNU General Public License can be found in the file COPYING.
|
|
|
|
# --- SDE-COPYRIGHT-NOTE-END ---
|
|
|
|
|
|
|
|
if [ $prefix_auto = 1 ] ; then
|
|
|
|
prefix=$mozilla_prefix
|
|
|
|
set_confopt
|
|
|
|
fi
|
|
|
|
|
|
|
|
mozilla_config() {
|
|
|
|
cat >> .mozconfig <<-EOT
|
|
|
|
ac_add_options --enable-application=suite
|
|
|
|
ac_add_options --with-extensions
|
|
|
|
ac_add_options --enable-extensions=default,venkman,inspector
|
|
|
|
ac_add_options --enable-jsd
|
|
|
|
ac_add_options --enable-mathml
|
|
|
|
ac_add_options --enable-module=psm
|
|
|
|
EOT
|
|
|
|
}
|
|
|
|
|
|
|
|
mozilla_postinstall() {
|
|
|
|
echo "Copy all mozilla include files" \
|
|
|
|
"(required for building galeon, evolution, etc.) ..."
|
|
|
|
cp -v xpcom/base/nscore.h $includedir/$pkg-$ver/xpcom/
|
|
|
|
cp -v xpcom/glue/nsDebug.h $includedir/$pkg-$ver/xpcom/
|
|
|
|
cp -rL dist/include/* $includedir/$pkg-$ver/
|
|
|
|
cp -rL dist/public/* $includedir/$pkg-$ver/
|
|
|
|
|
|
|
|
echo "Creating /etc/profile.d/$pkg ..."
|
|
|
|
cat <<- EOT > $root/etc/profile.d/$pkg
|
|
|
|
export MOZILLA_FIVE_HOME=$MOZILLA_FIVE_HOME
|
|
|
|
EOT
|
|
|
|
|
|
|
|
echo "Creating library symlinks ..."
|
|
|
|
cd $libdir
|
|
|
|
for i in ldap50 nspr4 nss3 plc4 plds4 prldap50 smime3 softokn3 ssl3 ; do
|
|
|
|
ln -sf $libdir/$pkg-$ver/lib${i}.so $libdir/lib${i}.so
|
|
|
|
done
|
|
|
|
}
|
|
|
|
|
|
|
|
hook_add preconf 8 'mozilla_config'
|
|
|
|
hook_add postmake 8 'mozilla_postinstall'
|