# This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # seamonkey # seamonkey/CVS # seamonkey/CVS/Root # seamonkey/CVS/Repository # seamonkey/CVS/Entries # seamonkey/files # seamonkey/files/CVS # seamonkey/files/CVS/Root # seamonkey/files/CVS/Repository # seamonkey/files/CVS/Entries # seamonkey/files/CVS/patch-config_mkdepend_Makefile.in,t # seamonkey/files/CVS/patch-configure,t # seamonkey/files/CVS/patch-nsprpub_pr_include_md__freebsd.cfg,t # seamonkey/files/CVS/patch-security_coreconf_FreeBSD.mk,t # seamonkey/files/CVS/patch-xpcom_reflect_xptcall_public_xptcstubsdecl.inc,t # seamonkey/files/CVS/patch-xpcom_reflect_xptcall_src_md_unix_Makefile.in,t # seamonkey/files/moz_pis_S50cleanhome # seamonkey/files/seamonkey.sh # seamonkey/files/patch-configure # seamonkey/files/seamonkey.desktop.in # seamonkey/files/patch-gfx_src_gtk_nsFontMetricsXft.cpp # seamonkey/files/patch-build_unix_run-mozilla.sh # seamonkey/files/patch-config-mkdepend-imakemdep.h # seamonkey/files/patch-config_rules.mk # seamonkey/files/patch-security_coreconf_FreeBSD.mk # seamonkey/files/patch-config_autoconf.mk.in # seamonkey/files/patch-extensions_negotiateauth_Makefile.in # seamonkey/files/patch-config_mkdepend_Makefile.in # seamonkey/files/patch-nsprpub_pr_include_md__freebsd.cfg # seamonkey/files/patch-xpcom_reflect_xptcall_src_md_unix_Makefile.in # seamonkey/files/patch-xpcom_reflect_xptcall_public_xptcstubsdecl.inc # seamonkey/files/patch-uriloader_exthandler_unix_nsGNOMERegistry.cpp # seamonkey/files/patch-xptcall-alpha # seamonkey/files/patch-xpfe_bootstrap_mozilla.in # seamonkey/files/patch-xptcall-amd64 # seamonkey/files/patch-xptcall-ia64 # seamonkey/files/patch-xptcall-sparc64 # seamonkey/Makefile # seamonkey/distinfo # seamonkey/pkg-descr # seamonkey/scripts # seamonkey/scripts/CVS # seamonkey/scripts/CVS/Root # seamonkey/scripts/CVS/Repository # seamonkey/scripts/CVS/Entries # seamonkey/pkg-deinstall.in # echo c - seamonkey mkdir -p seamonkey > /dev/null 2>&1 echo c - seamonkey/CVS mkdir -p seamonkey/CVS > /dev/null 2>&1 echo x - seamonkey/CVS/Root sed 's/^X//' >seamonkey/CVS/Root << 'END-of-seamonkey/CVS/Root' X/home/ncvs END-of-seamonkey/CVS/Root echo x - seamonkey/CVS/Repository sed 's/^X//' >seamonkey/CVS/Repository << 'END-of-seamonkey/CVS/Repository' Xports/www/mozilla-devel END-of-seamonkey/CVS/Repository echo x - seamonkey/CVS/Entries sed 's/^X//' >seamonkey/CVS/Entries << 'END-of-seamonkey/CVS/Entries' XD/files//// X/Makefile/1.230/Fri Sep 16 06:03:13 2005// X/distinfo/1.80/Fri Sep 16 06:03:13 2005// X/pkg-descr/1.26/Fri Sep 16 06:03:13 2005// XD/scripts//// END-of-seamonkey/CVS/Entries echo c - seamonkey/files mkdir -p seamonkey/files > /dev/null 2>&1 echo c - seamonkey/files/CVS mkdir -p seamonkey/files/CVS > /dev/null 2>&1 echo x - seamonkey/files/CVS/Root sed 's/^X//' >seamonkey/files/CVS/Root << 'END-of-seamonkey/files/CVS/Root' X/home/ncvs END-of-seamonkey/files/CVS/Root echo x - seamonkey/files/CVS/Repository sed 's/^X//' >seamonkey/files/CVS/Repository << 'END-of-seamonkey/files/CVS/Repository' Xports/www/mozilla-devel/files END-of-seamonkey/files/CVS/Repository echo x - seamonkey/files/CVS/Entries sed 's/^X//' >seamonkey/files/CVS/Entries << 'END-of-seamonkey/files/CVS/Entries' X/moz_pis_S50cleanhome/1.1/Fri Sep 16 06:03:13 2005// X/patch-build_unix_run-mozilla.sh/1.3/Fri Sep 16 06:03:13 2005// X/patch-config-mkdepend-imakemdep.h/1.1/Fri Sep 16 06:03:13 2005// X/patch-config_autoconf.mk.in/1.3/Fri Sep 16 06:03:13 2005// X/patch-extensions_negotiateauth_Makefile.in/1.2/Fri Sep 16 06:03:13 2005// X/patch-uriloader_exthandler_unix_nsGNOMERegistry.cpp/1.1/Fri Sep 16 06:03:13 2005// X/patch-xpfe_bootstrap_mozilla.in/1.2/Fri Sep 16 06:03:13 2005// X/patch-xptcall-alpha/1.1/Fri Sep 16 06:03:13 2005// X/patch-xptcall-amd64/1.1/Fri Sep 16 06:03:13 2005// X/patch-xptcall-ia64/1.1/Fri Sep 16 06:03:13 2005// X/patch-xptcall-sparc64/1.2/Fri Sep 16 06:03:13 2005// X/patch-gfx_src_gtk_nsFontMetricsXft.cpp/1.6/Fri Sep 16 06:34:32 2005// X/mozilla-devel.desktop.in/-1.3/Fri Sep 16 06:03:13 2005// X/mozilla.sh/-1.9/Fri Sep 16 06:03:13 2005// X/patch-CAN-2005-2871/-1.1/Fri Sep 16 06:03:13 2005// X/patch-Double.cpp/-1.3/Fri Sep 16 06:03:13 2005// X/patch-Makefile.in/-1.5/Fri Sep 16 06:03:13 2005// X/patch-config::mkdepend::Makefile.in/-1.1/Fri Sep 16 06:03:13 2005// X/patch-config::rules.mk/-1.3/Fri Sep 16 06:03:13 2005// X/patch-modules::plugin::base::public::nptypes.h/-1.2/Fri Sep 16 06:03:13 2005// X/patch-mozilla_widget_src_gtk2_mozdrawingarea.c/-1.1/Fri Sep 16 06:03:13 2005// X/patch-nsprpub-pr-include-md-_pth.h/-1.2/Fri Sep 16 06:03:13 2005// X/patch-nsprpub::pr::include::md::_freebsd.cfg/-1.6/Fri Sep 16 06:03:13 2005// X/patch-qt/-1.30/Fri Sep 16 06:03:13 2005// X/patch-security::coreconf::FreeBSD.mk/-1.7/Fri Sep 16 06:03:13 2005// X/patch-xpcom::reflect::xptcall::public::xptcstubsdecl.inc/-1.2/Fri Sep 16 06:03:13 2005// X/patch-xpcom::reflect::xptcall::src::md::unix::Makefile.in/-1.3/Fri Sep 16 06:03:13 2005// X/patch-config_mkdepend_Makefile.in/0/*pend_Makefile.in// X/patch-config_rules.mk/0/Fri Sep 16 19:29:01 2005// X/patch-configure/0/Initial patch-configure// X/patch-nsprpub_pr_include_md__freebsd.cfg/0/*include_md__freebsd.cfg// X/patch-security_coreconf_FreeBSD.mk/0/*reconf_FreeBSD.mk// X/patch-xpcom_reflect_xptcall_public_xptcstubsdecl.inc/0/*ct_xptcall_public_xptcstubsdecl.inc// X/patch-xpcom_reflect_xptcall_src_md_unix_Makefile.in/0/Initial patch-xpcom_reflect_xptcall_src_md_unix_Makefile.in// XD END-of-seamonkey/files/CVS/Entries echo x - seamonkey/files/CVS/patch-config_mkdepend_Makefile.in,t sed 's/^X//' >seamonkey/files/CVS/patch-config_mkdepend_Makefile.in,t << 'END-of-seamonkey/files/CVS/patch-config_mkdepend_Makefile.in,t' END-of-seamonkey/files/CVS/patch-config_mkdepend_Makefile.in,t echo x - seamonkey/files/CVS/patch-configure,t sed 's/^X//' >seamonkey/files/CVS/patch-configure,t << 'END-of-seamonkey/files/CVS/patch-configure,t' END-of-seamonkey/files/CVS/patch-configure,t echo x - seamonkey/files/CVS/patch-nsprpub_pr_include_md__freebsd.cfg,t sed 's/^X//' >seamonkey/files/CVS/patch-nsprpub_pr_include_md__freebsd.cfg,t << 'END-of-seamonkey/files/CVS/patch-nsprpub_pr_include_md__freebsd.cfg,t' END-of-seamonkey/files/CVS/patch-nsprpub_pr_include_md__freebsd.cfg,t echo x - seamonkey/files/CVS/patch-security_coreconf_FreeBSD.mk,t sed 's/^X//' >seamonkey/files/CVS/patch-security_coreconf_FreeBSD.mk,t << 'END-of-seamonkey/files/CVS/patch-security_coreconf_FreeBSD.mk,t' END-of-seamonkey/files/CVS/patch-security_coreconf_FreeBSD.mk,t echo x - seamonkey/files/CVS/patch-xpcom_reflect_xptcall_public_xptcstubsdecl.inc,t sed 's/^X//' >seamonkey/files/CVS/patch-xpcom_reflect_xptcall_public_xptcstubsdecl.inc,t << 'END-of-seamonkey/files/CVS/patch-xpcom_reflect_xptcall_public_xptcstubsdecl.inc,t' END-of-seamonkey/files/CVS/patch-xpcom_reflect_xptcall_public_xptcstubsdecl.inc,t echo x - seamonkey/files/CVS/patch-xpcom_reflect_xptcall_src_md_unix_Makefile.in,t sed 's/^X//' >seamonkey/files/CVS/patch-xpcom_reflect_xptcall_src_md_unix_Makefile.in,t << 'END-of-seamonkey/files/CVS/patch-xpcom_reflect_xptcall_src_md_unix_Makefile.in,t' END-of-seamonkey/files/CVS/patch-xpcom_reflect_xptcall_src_md_unix_Makefile.in,t echo x - seamonkey/files/moz_pis_S50cleanhome sed 's/^X//' >seamonkey/files/moz_pis_S50cleanhome << 'END-of-seamonkey/files/moz_pis_S50cleanhome' X#!/bin/sh X# X X# S50cleanhome X# a script to clean up users' Mozilla home directories to make upgrading X# less painful. X X# We run in our own subshell X X# First, verify protocol X[ "$1" != "start" ] && exit 1 X[ -z "${MOZ_PIS_API}" -o ${MOZ_PIS_API} -ne 2 ] && exit 1 X[ -z "${MOZ_PIS_MOZBINDIR}" -o ! -d "${MOZ_PIS_MOZBINDIR}" ] && exit 1 X[ -z "${HOME}" -o ! -d "${HOME}" ] && exit 1 X[ -z "${MOZ_PIS_USER_DIR}" -o ! -d "${HOME}/${MOZ_PIS_USER_DIR}" ] && exit 1 X X# Try to cleanup ${HOME}/${MOZ_PIS_USER_DIR} X Xif [ -f "${HOME}/${MOZ_PIS_USER_DIR}/profiles.ini" ]; then X sed -e '/Path=/! d' -e "s,Path=,${HOME}/${MOZ_PIS_USER_DIR}/," \ X "${HOME}/${MOZ_PIS_USER_DIR}/profiles.ini" \ X | while read dir X do X [ ! -d "${dir}" ] && continue X # Debian does this for new builds X # rm -f "${dir}/XUL.mfasl" X # force a rebuild of compreg.dat and xpti.dat for new installations X [ "${dir}/compreg.dat" -ot "${MOZ_PIS_MOZBINDIR}/components.ini" ] && X rm -f "${dir}/compatibility.ini" "${dir}/XUL.mfasl" X done Xfi END-of-seamonkey/files/moz_pis_S50cleanhome echo x - seamonkey/files/seamonkey.sh sed 's/^X//' >seamonkey/files/seamonkey.sh << 'END-of-seamonkey/files/seamonkey.sh' X#!/bin/sh X XMOZILLA_DIR="%%PREFIX%%/lib/%%MOZILLA%%" XMOZILLA_EXEC="./seamonkey" XMOZILLA_REMOTE_EXEC="${MOZILLA_EXEC} -remote" XAPPLICATION_ID="mozilla" X XLOCATION='new-tab' X#MOZILLA_UILOCALE="en-US" X#MOZILLA_UIREGION="US" X#MOZILLA_DSP="auto" X Xcd $MOZILLA_DIR || exit 1 X X# LANG, MOZILLA_UILOCALE, MOZILLA_UIREGION Xif [ -n "$LANG" -a ! -n "${MOZILLA_UILOCALE}" ]; then X _locale="${LANG%%.*}" X if [ "${_locale}" != "en_US" -a "${_locale}" != "C" ]; then X _region="${_locale##*_}" X _locale="${_locale%_*}" X [ -r chrome/${_locale}-${_region}.jar ] && \ X MOZILLA_EXEC="${MOZILLA_EXEC} -UILocale ${_locale}-${_region}" X fi Xelif [ -n "${MOZILLA_UILOCALE}" ]; then X MOZILLA_EXEC="${MOZILLA_EXEC} -UILocale ${MOZILLA_UILOCALE}" X if [ -n "${MOZILLA_UIREGION}" ]; then X MOZILLA_EXEC="${MOZILLA_EXEC} -UIRegion ${MOZILLA_UIREGION}" X fi Xfi X X# find a /dev/dsp handler Xcase "${MOZILLA_DSP}" in X# [Ee][Ss][Dd]|esddsp) # Use the esd dsp wrapper X# MOZILLA_DSP="esddsp" X# ;; X [Aa][Rr][Tt][Ss]|artsdsp) # Use the arts dsp wrapper X MOZILLA_DSP="artsdsp" X ;; X [Nn][Oo][Nn][Ee]) # Direct dsp output X MOZILLA_DSP="" X ;; X *) # Guest one (auto) X if [ -n "${KDE_FULL_SESSION}" ]; then X MOZILLA_DSP="artsdsp" X# elif [ -r ${HOME}/.esd_auth ]; then X# MOZILLA_DSP="esddsp" X else X MOZILLA_DSP="" X fi X ;; Xesac X Xif [ -n "${MOZILLA_DSP}" ] && type "${MOZILLA_DSP}" > /dev/null 2>&1; then X MOZILLA_EXEC="${MOZILLA_DSP} ${MOZILLA_EXEC}" Xfi X Xcase $1 in X -browser) X REMOTE_COMMAND="xfeDoCommand (openBrowser)" X ;; X -mail) X REMOTE_COMMAND="xfeDoCommand (openInbox)" X ;; X -compose) X REMOTE_COMMAND="xfeDoCommand (composeMessage)" X ;; X -*) X exec ${MOZILLA_EXEC} "$@" X ;; X *) X if [ -n "${LOCATION}" ]; then X REMOTE_COMMAND="openURL($@,$LOCATION)" X else X REMOTE_COMMAND="openURL($@)" X fi X ;; Xesac X X# process found X${MOZILLA_REMOTE_EXEC} "ping()" >/dev/null 2>&1 && X${MOZILLA_REMOTE_EXEC} "${REMOTE_COMMAND}" && exit 0 X X# no existing process Xexec ${MOZILLA_EXEC} "$@" X END-of-seamonkey/files/seamonkey.sh echo x - seamonkey/files/patch-configure sed 's/^X//' >seamonkey/files/patch-configure << 'END-of-seamonkey/files/patch-configure' X--- configure.orig Tue Sep 6 23:13:49 2005 X+++ configure Fri Sep 16 15:34:37 2005 X@@ -10016,7 +10016,7 @@ X echo $ac_n "(cached) $ac_c" 1>&6 X else X ac_save_LIBS="$LIBS" X-LIBS="-liconv $LIBS" X+LIBS="-L$LOCALBASE/lib -liconv $LIBS" X cat > conftest.$ac_ext <&6 X- _ICONV_LIBS="$_ICONV_LIBS -liconv" X+ _ICONV_LIBS="$_ICONV_LIBS -L$LOCALBASE/lib -liconv" X else X echo "$ac_t""no" 1>&6 X echo $ac_n "checking for libiconv in -liconv""... $ac_c" 1>&6 X@@ -10057,7 +10057,7 @@ X echo $ac_n "(cached) $ac_c" 1>&6 X else X ac_save_LIBS="$LIBS" X-LIBS="-liconv $LIBS" X+LIBS="-L$LOCALBASE/lib -liconv $LIBS" X cat > conftest.$ac_ext <&6 X- _ICONV_LIBS="$_ICONV_LIBS -liconv" X+ _ICONV_LIBS="$_ICONV_LIBS -L$LOCALBASE/lib -liconv" X else X echo "$ac_t""no" 1>&6 X fi X@@ -12509,7 +12509,7 @@ X MOZ_SUITE=1 X MOZ_PROFILESHARING= X MOZ_APP_VERSION=$SEAMONKEY_VERSION X- MOZ_EXTENSIONS_DEFAULT=" cookie wallet content-packs xml-rpc xmlextras help p3p pref transformiix venkman inspector irc universalchardet typeaheadfind webservices spellcheck gnomevfs auth sroaming permissions reporter" X+ MOZ_EXTENSIONS_DEFAULT=" cookie wallet content-packs xml-rpc xmlextras help p3p pref transformiix venkman inspector universalchardet typeaheadfind webservices spellcheck gnomevfs auth sroaming permissions reporter" X cat >> confdefs.h <<\EOF X #define MOZ_SUITE 1 X EOF END-of-seamonkey/files/patch-configure echo x - seamonkey/files/seamonkey.desktop.in sed 's/^X//' >seamonkey/files/seamonkey.desktop.in << 'END-of-seamonkey/files/seamonkey.desktop.in' X[Desktop Entry] XEncoding=UTF-8 XName=Seamonkey Web Browser XName[az]=Seamonkey Veb Səyyahı XName[bg]=Интернет браузър (Seamonkey) XName[bs]=Seamonkey web preglednik XName[ca]=Navegador web Seamonkey XName[cs]=Prohlížeč WWW Seamonkey XName[cy]=Y Porwr Gwe Seamonkey XName[da]=Seamonkey - internetbrowser XName[de]=Seamonkey Webbrowser XName[el]=Περιηγητής Διαδικτύου Seamonkey XName[en_CA]=Seamonkey Web Browser XName[en_GB]=Seamonkey Web Browser XName[es]=Navegador Web Seamonkey XName[et]=Seamonkey veebibrauser XName[eu]=Seamonkey web arakatzailea XName[fa]=مرورگر وب Seamonkey XName[fi]=Seamonkey, WWW-selain XName[fr]=Navigateur Web Seamonkey XName[ga]=Brabhsálaí Lín Seamonkey XName[he]=דפדפן Seamonkey XName[hr]=Seamonkey Web preglednik XName[hu]=Seamonkey webböngésző XName[id]=Web Browser Seamonkey XName[it]=Browser web Seamonkey XName[ja]=Seamonkey ウェブ・ブラウザ XName[ko]=Seamonkey 웹 브라우저 XName[li]=Seamonkey Web Browser XName[lt]=Seamonkey web naršyklė XName[mk]=Seamonkey Веб Прелистувач XName[mn]=Seamonkey веб хөтөч XName[ms]=Pelungsur Web Seamonkey XName[nb]=Seamonkey nettleser XName[nl]=Seamonkey webbrowser XName[nn]=Seamonkey nettlesar XName[no]=Seamonkey nettleser XName[pl]=Przeglądarka WWW Seamonkey XName[pt]=Navegador Web Seamonkey XName[pt_BR]=Navegador Web Seamonkey XName[ro]=Navigatorul Seamonkey XName[sl]=Spletni brskalnik Seamonkey XName[sq]=Seamonkey - Shfletuesi Web XName[sv]=Webbläsaren Seamonkey XName[tk]=Seamonkey Web Ahtarçisi XName[tr]=Seamonkey Web Tarayıcı XName[uk]=Переглядач web Seamonkey XName[vi]=Trình Duyệt Web Seamonkey XName[wa]=Betchteu waibe Seamonkey XName[zh_CN]=Seamonkey Web 浏览器 XName[zh_TW]=Seamonkey 網頁瀏覽器 XGenericName=Seamonkey Web Browser XGenericName[az]=Seamonkey Veb Səyyahı XGenericName[bg]=Интернет браузър (Seamonkey) XGenericName[bs]=Seamonkey web preglednik XGenericName[ca]=Navegador web Seamonkey XGenericName[cs]=Prohlížeč WWW Seamonkey XGenericName[cy]=Y Porwr Gwe Seamonkey XGenericName[da]=Seamonkey - internetbrowser XGenericName[de]=Seamonkey Webbrowser XGenericName[el]=Περιηγητής Διαδικτύου Seamonkey XGenericName[en_CA]=Seamonkey Web Browser XGenericName[en_GB]=Seamonkey Web Browser XGenericName[es]=Navegador Web Seamonkey XGenericName[et]=Seamonkey veebibrauser XGenericName[eu]=Seamonkey web arakatzailea XGenericName[fa]=مرورگر وب Seamonkey XGenericName[fi]=Seamonkey, WWW-selain XGenericName[fr]=Navigateur Web Seamonkey XGenericName[ga]=Brabhsálaí Lín Seamonkey XGenericName[he]=דפדפן Seamonkey XGenericName[hr]=Seamonkey Web preglednik XGenericName[hu]=Seamonkey webböngésző XGenericName[id]=Web Browser Seamonkey XGenericName[it]=Browser web Seamonkey XGenericName[ja]=Seamonkey ウェブ・ブラウザ XGenericName[ko]=Seamonkey 웹 브라우저 XGenericName[li]=Seamonkey Web Browser XGenericName[lt]=Seamonkey web naršyklė XGenericName[mk]=Seamonkey Веб Прелистувач XGenericName[mn]=Seamonkey веб хөтөч XGenericName[ms]=Pelungsur Web Seamonkey XGenericName[nb]=Seamonkey nettleser XGenericName[nl]=Seamonkey webbrowser XGenericName[nn]=Seamonkey nettlesar XGenericName[no]=Seamonkey nettleser XGenericName[pl]=Przeglądarka WWW Seamonkey XGenericName[pt]=Navegador Web Seamonkey XGenericName[pt_BR]=Navegador Web Seamonkey XGenericName[ro]=Navigatorul Seamonkey XGenericName[sl]=Spletni brskalnik Seamonkey XGenericName[sq]=Seamonkey - Shfletuesi Web XGenericName[sv]=Webbläsaren Seamonkey XGenericName[tk]=Seamonkey Web Ahtarçisi XGenericName[tr]=Seamonkey Web Tarayıcı XGenericName[uk]=Переглядач web Seamonkey XGenericName[vi]=Trình Duyệt Web Seamonkey XGenericName[wa]=Betchteu waibe Seamonkey XGenericName[zh_CN]=Seamonkey Web 浏览器 XGenericName[zh_TW]=Seamonkey 網頁瀏覽器 XComment=Browse the web XComment[ar]=تصفح الانترنت XComment[az]=Vebi gəzin XComment[be]=Вандраваць па павуціньню XComment[bg]=Сърфиране в интернет XComment[bn]=ওয়েব ব্রাউজ করুন XComment[bs]=Pregledaj na internetu XComment[ca]=Navegueu per la web XComment[cs]=Prohlížet WWW XComment[cy]=Pori'r we XComment[da]=Benyt internettet XComment[de]=Im Web surfen XComment[el]=Περιήγηση στον παγκόσμιο ιστό XComment[en_CA]=Browse the web XComment[en_GB]=Browse the web XComment[es]=Navegar por la web XComment[et]=Sirvi veebi XComment[eu]=Arakatu web-a XComment[fa]=مرور وب XComment[fi]=Selaa WWW:tä XComment[fr]=Naviguer sur Internet XComment[ga]=Brabhsáil an Líon XComment[gu]=વેબમાં શોધો XComment[he]=גלוש ברשת XComment[hi]=वेब ब्राउज़ करें XComment[hr]=Pregledaj Web XComment[hu]=A világháló böngészése XComment[id]=Jelajah web XComment[it]=Esplora il web XComment[ja]=ウェブを閲覧します XComment[ko]=웹을 돌아 다닙니다 XComment[li]=Blajere op internet XComment[lt]=Naršyti internete XComment[mk]=Прелистувајте го вебот XComment[ml]=വലക്കെട്ട് തിരയുക XComment[mn]=Веб броузе хийх XComment[ms]=Layari web XComment[nb]=Surf på nettet XComment[nl]=Websurfen XComment[nn]=Surf på nettet XComment[no]=Surf på nettet XComment[pa]=ਵੈਬ ਬਰਾਊਜ਼ XComment[pl]=Przeglądanie stron WWW XComment[pt]=Navegar na web XComment[pt_BR]=Navegar na web XComment[ro]=Navigare Internet XComment[ru]=Программа для просмотра веб-страниц XComment[sk]=Prehliadať internet XComment[sl]=Brskaj po spletu XComment[sq]=Eksploro web-in XComment[sr]=Прегледај веб XComment[sr@Latn]=Pregledaj veb XComment[sv]=Surfa på nätet XComment[ta]=வலையில் உலாவு XComment[th]=ใช้งานเว็บบราวเซอร์ Seamonkey XComment[tk]=Webi Ahtar XComment[tr]=Web'e Gözat XComment[uk]=Програма перегляду web-сторінок XComment[vi]=Duyệt web XComment[wa]=Naivyî avå les waibes XComment[zh_CN]=浏览 Web XComment[zh_TW]=瀏覽網頁 XExec=seamonkey %U XStartupNotify=true XTerminal=false XType=Application XIcon=%%PREFIX%%/lib/seamonkey/chrome/icons/default/default.xpm XCategories=Application;Network; XMimeType=text/html;text/xml;application/xhtml+xml; END-of-seamonkey/files/seamonkey.desktop.in echo x - seamonkey/files/patch-gfx_src_gtk_nsFontMetricsXft.cpp sed 's/^X//' >seamonkey/files/patch-gfx_src_gtk_nsFontMetricsXft.cpp << 'END-of-seamonkey/files/patch-gfx_src_gtk_nsFontMetricsXft.cpp' X--- gfx/src/gtk/nsFontMetricsXft.cpp.orig Wed Mar 17 02:08:01 2004 X+++ gfx/src/gtk/nsFontMetricsXft.cpp Wed Mar 17 02:08:15 2004 X@@ -65,7 +65,8 @@ X X #include X #include X-#include X+#include X+#include FT_FREETYPE_H X X #define FORCE_PR_LOG X #include "prlog.h" END-of-seamonkey/files/patch-gfx_src_gtk_nsFontMetricsXft.cpp echo x - seamonkey/files/patch-build_unix_run-mozilla.sh sed 's/^X//' >seamonkey/files/patch-build_unix_run-mozilla.sh << 'END-of-seamonkey/files/patch-build_unix_run-mozilla.sh' X$FreeBSD: ports/www/mozilla-devel/files/patch-build_unix_run-mozilla.sh,v 1.3 2005/04/02 16:54:46 ahze Exp $ X X--- build/unix/run-mozilla.sh.orig Mon Dec 15 12:27:28 2003 X+++ build/unix/run-mozilla.sh Wed Feb 11 14:24:17 2004 X@@ -355,7 +355,7 @@ X fi X ## X ## Set LD_LIBRARY_PATH X-LD_LIBRARY_PATH=${MOZ_DIST_BIN}:${MOZ_DIST_BIN}/plugins:${MRE_HOME}${LD_LIBRARY_PATH+":$LD_LIBRARY_PATH"} X+LD_LIBRARY_PATH=${MOZ_DIST_BIN}:${MOZ_DIST_BIN}/plugins:%%PREFIX%%/lib/browser_plugins:${MRE_HOME}${LD_LIBRARY_PATH+":$LD_LIBRARY_PATH"} X if [ -n "$LD_LIBRARYN32_PATH" ] X then X LD_LIBRARYN32_PATH=${MOZ_DIST_BIN}:${MOZ_DIST_BIN}/plugins:${MRE_HOME}${LD_LIBRARYN32_PATH+":$LD_LIBRARYN32_PATH"} X@@ -442,6 +442,9 @@ X # X export MOZILLA_FIVE_HOME LD_LIBRARY_PATH X export SHLIB_PATH LIBPATH LIBRARY_PATH ADDON_PATH DYLD_LIBRARY_PATH X+ X+MOZ_PLUGIN_PATH=%%PREFIX%%/lib/browser_plugins X+export MOZ_PLUGIN_PATH X X if [ $moz_debug -eq 1 ] X then END-of-seamonkey/files/patch-build_unix_run-mozilla.sh echo x - seamonkey/files/patch-config-mkdepend-imakemdep.h sed 's/^X//' >seamonkey/files/patch-config-mkdepend-imakemdep.h << 'END-of-seamonkey/files/patch-config-mkdepend-imakemdep.h' X--- config/mkdepend/imakemdep.h Fri Sep 4 21:22:25 1998 X+++ config/mkdepend/imakemdep.h Thu Oct 16 22:43:25 2003 X@@ -278,4 +278,7 @@ X "-D__i386__", X # endif X+# if defined(__amd64__) || defined(__x86_64__) X+ "-D__amd64__ -D__x86_64__", X+# endif X # ifdef __GNUC__ X "-traditional", END-of-seamonkey/files/patch-config-mkdepend-imakemdep.h echo x - seamonkey/files/patch-config_rules.mk sed 's/^X//' >seamonkey/files/patch-config_rules.mk << 'END-of-seamonkey/files/patch-config_rules.mk' X--- config/rules.mk.orig Sun May 18 16:10:18 2003 X+++ config/rules.mk Sun Jul 20 18:07:26 2003 X@@ -448,7 +448,11 @@ X X ifeq ($(OS_ARCH),FreeBSD) X ifdef IS_COMPONENT X+ifneq (,$(filter alpha ia64,$(OS_TEST))) X+EXTRA_DSO_LDOPTS += -Wl,-Bsymbolic -lc X+else X EXTRA_DSO_LDOPTS += -Wl,-Bsymbolic X+endif X endif X endif X END-of-seamonkey/files/patch-config_rules.mk echo x - seamonkey/files/patch-security_coreconf_FreeBSD.mk sed 's/^X//' >seamonkey/files/patch-security_coreconf_FreeBSD.mk << 'END-of-seamonkey/files/patch-security_coreconf_FreeBSD.mk' X--- security/coreconf/FreeBSD.mk.orig Wed Mar 26 20:17:25 2003 X+++ security/coreconf/FreeBSD.mk Thu Jul 8 12:56:24 2004 X@@ -35,16 +35,18 @@ X X include $(CORE_DEPTH)/coreconf/UNIX.mk X X-DEFAULT_COMPILER = gcc X-CC = gcc X-CCC = g++ X+CCC = ${CXX} X RANLIB = ranlib X X ifeq ($(OS_TEST),alpha) X CPU_ARCH = alpha X else X+ifeq ($(OS_TEST),amd64) X+CPU_ARCH = amd64 X+else X CPU_ARCH = x86 X endif X+endif X X OS_CFLAGS = $(DSO_CFLAGS) -ansi -Wall -DFREEBSD -DHAVE_STRERROR -DHAVE_BSD_FLOCK X X@@ -71,7 +73,11 @@ X DLL_SUFFIX = so.1.0 X endif X X-MKSHLIB = $(CC) $(DSO_LDOPTS) X+ifneq (,$(filter alpha ia64,$(OS_TEST))) X+MKSHLIB = $(CC) -Wl,-Bsymbolic -lc $(DSO_LDOPTS) -o $@ X+else X+MKSHLIB = $(CC) -Wl,-Bsymbolic $(DSO_LDOPTS) -o $@ X+endif X ifdef MAPFILE X # Add LD options to restrict exported symbols to those in the map file X endif END-of-seamonkey/files/patch-security_coreconf_FreeBSD.mk echo x - seamonkey/files/patch-config_autoconf.mk.in sed 's/^X//' >seamonkey/files/patch-config_autoconf.mk.in << 'END-of-seamonkey/files/patch-config_autoconf.mk.in' X--- config/autoconf.mk.in.orig Mon Mar 15 22:56:25 2004 X+++ config/autoconf.mk.in Fri Mar 19 15:17:50 2004 X@@ -31,13 +31,13 @@ X prefix = @prefix@ X exec_prefix = @exec_prefix@ X bindir = @bindir@ X-includedir = @includedir@/$(MOZ_APP_NAME)-$(MOZ_APP_VERSION) X+includedir = @includedir@/seamonkey%%HEADERS_SUFX%% X libdir = @libdir@ X datadir = @datadir@ X mandir = @mandir@ X idldir = @datadir@/idl/$(MOZ_APP_NAME)-$(MOZ_APP_VERSION) X X-mozappdir = $(libdir)/$(MOZ_APP_NAME)-$(MOZ_APP_VERSION) X+mozappdir = $(libdir)/%%MOZILLA%% X mredir = $(libdir)/mre/mre-$(MOZ_APP_VERSION) X mrelibdir = $(mredir)/lib X END-of-seamonkey/files/patch-config_autoconf.mk.in echo x - seamonkey/files/patch-extensions_negotiateauth_Makefile.in sed 's/^X//' >seamonkey/files/patch-extensions_negotiateauth_Makefile.in << 'END-of-seamonkey/files/patch-extensions_negotiateauth_Makefile.in' X--- extensions/negotiateauth/Makefile.in.orig Wed Apr 28 03:26:19 2004 X+++ extensions/negotiateauth/Makefile.in Tue Jul 6 16:27:07 2004 X@@ -66,7 +66,6 @@ X $(NULL) X X EXTRA_DSO_LDOPTS = \ X- $(MOZ_COMPONENT_LIBS) \ X $(NULL) X X ifneq (,$(GSSAPI_LIBS)) X@@ -74,6 +73,8 @@ X EXTRA_DSO_LDOPTS += $(GSSAPI_LIBS) X CPPSRCS += nsNegotiateAuthGSSAPI.cpp X endif X+ X+EXTRA_DSO_LDOPTS += $(MOZ_COMPONENT_LIBS) X X # make sure this component is never statically linked into the main X # application. this is necessary since we don't want to force users END-of-seamonkey/files/patch-extensions_negotiateauth_Makefile.in echo x - seamonkey/files/patch-config_mkdepend_Makefile.in sed 's/^X//' >seamonkey/files/patch-config_mkdepend_Makefile.in << 'END-of-seamonkey/files/patch-config_mkdepend_Makefile.in' X--- config/mkdepend/Makefile.in.orig Sun Apr 18 14:17:26 2004 X+++ config/mkdepend/Makefile.in Sun Dec 12 09:42:11 2004 X@@ -73,6 +73,7 @@ X include $(topsrcdir)/config/rules.mk X X HOST_CFLAGS += -DINCLUDEDIR=\"/usr/include\" -DOBJSUFFIX=\".$(OBJ_SUFFIX)\" X+HOST_CFLAGS += $(XCFLAGS) X X ifdef GNU_CC X _GCCDIR = $(shell $(CC) -print-file-name=include) END-of-seamonkey/files/patch-config_mkdepend_Makefile.in echo x - seamonkey/files/patch-nsprpub_pr_include_md__freebsd.cfg sed 's/^X//' >seamonkey/files/patch-nsprpub_pr_include_md__freebsd.cfg << 'END-of-seamonkey/files/patch-nsprpub_pr_include_md__freebsd.cfg' X--- nsprpub/pr/include/md/_freebsd.cfg.orig Sun Jan 16 16:13:08 2005 X+++ nsprpub/pr/include/md/_freebsd.cfg Sun Jan 16 16:16:34 2005 X@@ -141,7 +141,7 @@ X #define PR_ALIGN_OF_DOUBLE 8 X #define PR_ALIGN_OF_POINTER 8 X X-#elif defined(__sparc__) X+#elif defined(__sparc64__) X X #undef IS_LITTLE_ENDIAN X #define IS_BIG_ENDIAN 1 END-of-seamonkey/files/patch-nsprpub_pr_include_md__freebsd.cfg echo x - seamonkey/files/patch-xpcom_reflect_xptcall_src_md_unix_Makefile.in sed 's/^X//' >seamonkey/files/patch-xpcom_reflect_xptcall_src_md_unix_Makefile.in << 'END-of-seamonkey/files/patch-xpcom_reflect_xptcall_src_md_unix_Makefile.in' X--- xpcom/reflect/xptcall/src/md/unix/Makefile.in.orig Thu Aug 14 21:00:23 2003 X+++ xpcom/reflect/xptcall/src/md/unix/Makefile.in Sun Feb 1 14:31:25 2004 X@@ -49,6 +49,9 @@ X ifeq (86,$(findstring 86,$(OS_TEST))) X CPPSRCS := xptcinvoke_unixish_x86.cpp xptcstubs_unixish_x86.cpp X endif X+ifeq (amd64,$(OS_TEST)) X+CPPSRCS := xptcinvoke_amd64_freebsd.cpp xptcstubs_amd64_freebsd.cpp X+endif X endif X # X # New code for Linux, et. al., with gcc X@@ -59,8 +62,8 @@ X CPPSRCS := xptcinvoke_gcc_x86_unix.cpp xptcstubs_gcc_x86_unix.cpp X endif X endif X-# IA64 Linux X-ifneq (,$(filter Linux,$(OS_ARCH))) X+# IA64 Linux & FreeBSD X+ifneq (,$(filter Linux FreeBSD,$(OS_ARCH))) X ifneq (,$(findstring ia64,$(OS_TEST))) X CPPSRCS := xptcinvoke_ipf64.cpp xptcstubs_ipf64.cpp X ASFILES := xptcstubs_asm_ipf64.s xptcinvoke_asm_ipf64.s X@@ -106,9 +109,15 @@ X ASFILES := xptcinvoke_asm_osf1_alpha.s xptcstubs_asm_osf1_alpha.s X endif X # X+# FreeBSD/Alpha X+# X+ifeq ($(OS_ARCH)$(OS_TEST),FreeBSDalpha) X+CPPSRCS := xptcinvoke_freebsd_alpha.cpp xptcstubs_freebsd_alpha.cpp X+endif X+# X # Linux/Alpha X # X-ifneq (,$(filter Linuxalpha FreeBSDalpha NetBSDalpha,$(OS_ARCH)$(OS_TEST))) X+ifneq (,$(filter Linuxalpha NetBSDalpha,$(OS_ARCH)$(OS_TEST))) X CPPSRCS := xptcinvoke_linux_alpha.cpp xptcstubs_linux_alpha.cpp X endif X # X@@ -294,6 +303,15 @@ X ifeq ($(OS_ARCH)$(OS_TEST),NetBSDsparc) X CPPSRCS := xptcinvoke_sparc_netbsd.cpp xptcstubs_sparc_netbsd.cpp X ASFILES := xptcinvoke_asm_sparc_netbsd.s xptcstubs_asm_sparc_netbsd.s X+endif X+# X+# FreeBSD/SPARC64 X+# X+ifeq ($(OS_ARCH),FreeBSD) X+ifneq (,$(findstring sparc,$(OS_TEST))) X+CPPSRCS := xptcinvoke_sparc64_freebsd.cpp xptcstubs_sparc64_freebsd.cpp X+ASFILES := xptcinvoke_asm_sparc64_freebsd.s xptcstubs_asm_sparcv9_solaris.s X+endif X endif X # X # Solaris/SPARC END-of-seamonkey/files/patch-xpcom_reflect_xptcall_src_md_unix_Makefile.in echo x - seamonkey/files/patch-xpcom_reflect_xptcall_public_xptcstubsdecl.inc sed 's/^X//' >seamonkey/files/patch-xpcom_reflect_xptcall_public_xptcstubsdecl.inc << 'END-of-seamonkey/files/patch-xpcom_reflect_xptcall_public_xptcstubsdecl.inc' X--- xpcom/reflect/xptcall/public/xptcstubsdecl.inc.orig Tue Mar 16 03:07:25 2004 X+++ xpcom/reflect/xptcall/public/xptcstubsdecl.inc Fri Mar 19 15:58:14 2004 X@@ -8,7 +8,7 @@ X * 1 is AddRef X * 2 is Release X */ X-#if !defined(__ia64) || (!defined(__hpux) && !defined(__linux__)) X+#if !defined(__ia64) X NS_IMETHOD Stub3(); X NS_IMETHOD Stub4(); X NS_IMETHOD Stub5(); END-of-seamonkey/files/patch-xpcom_reflect_xptcall_public_xptcstubsdecl.inc echo x - seamonkey/files/patch-uriloader_exthandler_unix_nsGNOMERegistry.cpp sed 's/^X//' >seamonkey/files/patch-uriloader_exthandler_unix_nsGNOMERegistry.cpp << 'END-of-seamonkey/files/patch-uriloader_exthandler_unix_nsGNOMERegistry.cpp' X--- uriloader/exthandler/unix/nsGNOMERegistry.cpp.orig Fri Dec 24 04:30:00 2004 X+++ uriloader/exthandler/unix/nsGNOMERegistry.cpp Fri Dec 24 04:34:05 2004 X@@ -143,7 +143,7 @@ X PR_END_MACRO X X // Attempt to open libgconf X- gconfLib = LoadVersionedLibrary("gconf-2", ".4"); X+ gconfLib = PR_LoadLibrary("libgconf-2.so"); X ENSURE_LIB(gconfLib); X X GET_LIB_FUNCTION(gconf, gconf_client_get_default); X@@ -151,7 +151,7 @@ X GET_LIB_FUNCTION(gconf, gconf_client_get_bool); X X // Attempt to open libgnome X- gnomeLib = LoadVersionedLibrary("gnome-2", ".0"); X+ gnomeLib = PR_LoadLibrary("libgnome-2.so"); X ENSURE_LIB(gnomeLib); X X GET_LIB_FUNCTION(gnome, gnome_url_show); X@@ -160,7 +160,7 @@ X GET_LIB_FUNCTION(gnome, gnome_program_get); X X // Attempt to open libgnomevfs X- vfsLib = LoadVersionedLibrary("gnomevfs-2", ".0"); X+ vfsLib = PR_LoadLibrary("libgnomevfs-2.so"); X ENSURE_LIB(vfsLib); X X GET_LIB_FUNCTION(vfs, gnome_vfs_mime_type_from_name); END-of-seamonkey/files/patch-uriloader_exthandler_unix_nsGNOMERegistry.cpp echo x - seamonkey/files/patch-xptcall-alpha sed 's/^X//' >seamonkey/files/patch-xptcall-alpha << 'END-of-seamonkey/files/patch-xptcall-alpha' X--- xpcom/reflect/xptcall/src/md/unix/xptcinvoke_freebsd_alpha.cpp.orig Tue May 27 01:37:25 2003 X+++ xpcom/reflect/xptcall/src/md/unix/xptcinvoke_freebsd_alpha.cpp Tue May 27 01:37:00 2003 X@@ -0,0 +1,184 @@ X+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ X+/* ***** BEGIN LICENSE BLOCK ***** X+ * Version: NPL 1.1/GPL 2.0/LGPL 2.1 X+ * X+ * The contents of this file are subject to the Netscape Public License X+ * Version 1.1 (the "License"); you may not use this file except in X+ * compliance with the License. You may obtain a copy of the License at X+ * http://www.mozilla.org/NPL/ X+ * X+ * Software distributed under the License is distributed on an "AS IS" basis, X+ * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License X+ * for the specific language governing rights and limitations under the X+ * License. X+ * X+ * The Original Code is mozilla.org code. X+ * X+ * The Initial Developer of the Original Code is X+ * Netscape Communications Corporation. X+ * Portions created by the Initial Developer are Copyright (C) 1998 X+ * the Initial Developer. All Rights Reserved. X+ * X+ * Contributor(s): X+ * X+ * Alternatively, the contents of this file may be used under the terms of X+ * either the GNU General Public License Version 2 or later (the "GPL"), or X+ * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), X+ * in which case the provisions of the GPL or the LGPL are applicable instead X+ * of those above. If you wish to allow use of your version of this file only X+ * under the terms of either the GPL or the LGPL, and not to allow others to X+ * use your version of this file under the terms of the NPL, indicate your X+ * decision by deleting the provisions above and replace them with the notice X+ * and other provisions required by the GPL or the LGPL. If you do not delete X+ * the provisions above, a recipient may use your version of this file under X+ * the terms of any one of the NPL, the GPL or the LGPL. X+ * X+ * ***** END LICENSE BLOCK ***** */ X+ X+/* Platform specific code to invoke XPCOM methods on native objects */ X+ X+/* contributed by Glen Nakamura */ X+ X+#include "xptcprivate.h" X+ X+/* Prototype specifies unmangled function name and disables unused warning */ X+static void X+invoke_copy_to_stack(PRUint64* d, PRUint32 paramCount, nsXPTCVariant* s) X+__asm__("invoke_copy_to_stack") __attribute__((unused)); X+ X+static void X+invoke_copy_to_stack(PRUint64* d, PRUint32 paramCount, nsXPTCVariant* s) X+{ X+ const PRUint8 NUM_ARG_REGS = 6-1; // -1 for "this" pointer X+ X+ for(PRUint32 i = 0; i < paramCount; i++, d++, s++) X+ { X+ if(s->IsPtrData()) X+ { X+ *d = (PRUint64)s->ptr; X+ continue; X+ } X+ switch(s->type) X+ { X+ case nsXPTType::T_I8 : *d = (PRUint64)s->val.i8; break; X+ case nsXPTType::T_I16 : *d = (PRUint64)s->val.i16; break; X+ case nsXPTType::T_I32 : *d = (PRUint64)s->val.i32; break; X+ case nsXPTType::T_I64 : *d = (PRUint64)s->val.i64; break; X+ case nsXPTType::T_U8 : *d = (PRUint64)s->val.u8; break; X+ case nsXPTType::T_U16 : *d = (PRUint64)s->val.u16; break; X+ case nsXPTType::T_U32 : *d = (PRUint64)s->val.u32; break; X+ case nsXPTType::T_U64 : *d = (PRUint64)s->val.u64; break; X+ case nsXPTType::T_FLOAT : X+ if(i < NUM_ARG_REGS) X+ { X+ // convert floats to doubles if they are to be passed X+ // via registers so we can just deal with doubles later X+ union { PRUint64 u64; double d; } t; X+ t.d = (double)s->val.f; X+ *d = t.u64; X+ } X+ else X+ // otherwise copy to stack normally X+ *d = (PRUint64)s->val.u32; X+ break; X+ case nsXPTType::T_DOUBLE : *d = (PRUint64)s->val.u64; break; X+ case nsXPTType::T_BOOL : *d = (PRUint64)s->val.b; break; X+ case nsXPTType::T_CHAR : *d = (PRUint64)s->val.c; break; X+ case nsXPTType::T_WCHAR : *d = (PRUint64)s->val.wc; break; X+ default: X+ // all the others are plain pointer types X+ *d = (PRUint64)s->val.p; X+ break; X+ } X+ } X+} X+ X+/* X+ * XPTC_PUBLIC_API(nsresult) X+ * XPTC_InvokeByIndex(nsISupports* that, PRUint32 methodIndex, X+ * PRUint32 paramCount, nsXPTCVariant* params, void* vt) X+ */ X+__asm__( X+ "#### XPTC_InvokeByIndex ####\n" X+".text\n\t" X+ ".align 5\n\t" X+ ".globl XPTC_InvokeByIndex\n\t" X+ ".ent XPTC_InvokeByIndex\n" X+"XPTC_InvokeByIndex:\n\t" X+ ".frame $15,32,$26,0\n\t" X+ ".mask 0x4008000,-32\n\t" X+ "ldgp $29,0($27)\n" X+"$XPTC_InvokeByIndex..ng:\n\t" X+ "subq $30,32,$30\n\t" X+ "stq $26,0($30)\n\t" X+ "stq $15,8($30)\n\t" X+ "bis $30,$30,$15\n\t" X+ ".prologue 1\n\t" X+ X+ /* X+ * Allocate enough stack space to hold the greater of 6 or "paramCount"+1 X+ * parameters. (+1 for "this" pointer) Room for at least 6 parameters X+ * is required for storage of those passed via registers. X+ */ X+ X+ "bis $31,5,$2\n\t" /* count = MAX(5, "paramCount") */ X+ "cmplt $2,$18,$1\n\t" X+ "cmovne $1,$18,$2\n\t" X+ "s8addq $2,16,$1\n\t" /* room for count+1 params (8 bytes each) */ X+ "bic $1,15,$1\n\t" /* stack space is rounded up to 0 % 16 */ X+ "subq $30,$1,$30\n\t" X+ X+ "stq $16,0($30)\n\t" /* save "that" (as "this" pointer) */ X+ "stq $17,16($15)\n\t" /* save "methodIndex" */ X+ X+ "addq $30,8,$16\n\t" /* pass stack pointer */ X+ "bis $18,$18,$17\n\t" /* pass "paramCount" */ X+ "bis $19,$19,$18\n\t" /* pass "params" */ X+ "bsr $26,$invoke_copy_to_stack..ng\n\t" /* call invoke_copy_to_stack */ X+ X+ /* X+ * Copy the first 6 parameters to registers and remove from stack frame. X+ * Both the integer and floating point registers are set for each parameter X+ * except the first which is the "this" pointer. (integer only) X+ * The floating point registers are all set as doubles since the X+ * invoke_copy_to_stack function should have converted the floats. X+ */ X+ "ldq $16,0($30)\n\t" /* integer registers */ X+ "ldq $17,8($30)\n\t" X+ "ldq $18,16($30)\n\t" X+ "ldq $19,24($30)\n\t" X+ "ldq $20,32($30)\n\t" X+ "ldq $21,40($30)\n\t" X+ "ldt $f17,8($30)\n\t" /* floating point registers */ X+ "ldt $f18,16($30)\n\t" X+ "ldt $f19,24($30)\n\t" X+ "ldt $f20,32($30)\n\t" X+ "ldt $f21,40($30)\n\t" X+ X+ "addq $30,48,$30\n\t" /* remove params from stack */ X+ X+ /* X+ * Call the virtual function with the constructed stack frame. X+ */ X+ "bis $16,$16,$1\n\t" /* load "this" */ X+ "ldq $2,16($15)\n\t" /* load "methodIndex" */ X+ "ldq $1,0($1)\n\t" /* load vtable */ X+#if 0 X+ "s8addq $2,16,$2\n\t" /* vtable index = "methodIndex" * 8 + 16 */ X+#else X+ "mulq $2, 8, $2\n\t" X+ "addq $2, 0, $2\n\t" /* vtable index = "methodIndex" * 16 + 24 */ X+#endif X+ "addq $1,$2,$1\n\t" X+ "ldq $27,0($1)\n\t" /* load address of function */ X+ "jsr $26,($27),0\n\t" /* call virtual function */ X+ "ldgp $29,0($26)\n\t" X+ X+ "bis $15,$15,$30\n\t" X+ "ldq $26,0($30)\n\t" X+ "ldq $15,8($30)\n\t" X+ "addq $30,32,$30\n\t" X+ "ret $31,($26),1\n\t" X+ ".end XPTC_InvokeByIndex" X+ ); X+ X--- xpcom/reflect/xptcall/src/md/unix/xptcstubs_freebsd_alpha.cpp.orig Tue May 27 01:37:30 2003 X+++ xpcom/reflect/xptcall/src/md/unix/xptcstubs_freebsd_alpha.cpp Tue May 27 01:37:04 2003 X@@ -0,0 +1,269 @@ X+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ X+/* ***** BEGIN LICENSE BLOCK ***** X+ * Version: NPL 1.1/GPL 2.0/LGPL 2.1 X+ * X+ * The contents of this file are subject to the Netscape Public License X+ * Version 1.1 (the "License"); you may not use this file except in X+ * compliance with the License. You may obtain a copy of the License at X+ * http://www.mozilla.org/NPL/ X+ * X+ * Software distributed under the License is distributed on an "AS IS" basis, X+ * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License X+ * for the specific language governing rights and limitations under the X+ * License. X+ * X+ * The Original Code is mozilla.org code. X+ * X+ * The Initial Developer of the Original Code is X+ * Netscape Communications Corporation. X+ * Portions created by the Initial Developer are Copyright (C) 1999 X+ * the Initial Developer. All Rights Reserved. X+ * X+ * Contributor(s): X+ * X+ * Alternatively, the contents of this file may be used under the terms of X+ * either the GNU General Public License Version 2 or later (the "GPL"), or X+ * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), X+ * in which case the provisions of the GPL or the LGPL are applicable instead X+ * of those above. If you wish to allow use of your version of this file only X+ * under the terms of either the GPL or the LGPL, and not to allow others to X+ * use your version of this file under the terms of the NPL, indicate your X+ * decision by deleting the provisions above and replace them with the notice X+ * and other provisions required by the GPL or the LGPL. If you do not delete X+ * the provisions above, a recipient may use your version of this file under X+ * the terms of any one of the NPL, the GPL or the LGPL. X+ * X+ * ***** END LICENSE BLOCK ***** */ X+ X+/* Implement shared vtbl methods. */ X+ X+/* contributed by Glen Nakamura */ X+ X+#include X+#include X+#include "xptcprivate.h" X+ X+/* Prototype specifies unmangled function name and disables unused warning */ X+static nsresult X+PrepareAndDispatch(nsXPTCStubBase* self, uint32 methodIndex, PRUint64* args) X+__asm__("PrepareAndDispatch") __attribute__((unused)); X+ X+static nsresult X+PrepareAndDispatch(nsXPTCStubBase* self, uint32 methodIndex, PRUint64* args) X+{ X+ const PRUint8 PARAM_BUFFER_COUNT = 16; X+ const PRUint8 NUM_ARG_REGS = 6-1; // -1 for "this" pointer X+ X+ nsXPTCMiniVariant paramBuffer[PARAM_BUFFER_COUNT]; X+ nsXPTCMiniVariant* dispatchParams = NULL; X+ nsIInterfaceInfo* iface_info = NULL; X+ const nsXPTMethodInfo* info; X+ PRUint8 paramCount; X+ PRUint8 i; X+ nsresult result = NS_ERROR_FAILURE; X+ X+ NS_ASSERTION(self,"no self"); X+ X+ self->GetInterfaceInfo(&iface_info); X+ NS_ASSERTION(iface_info,"no interface info"); X+ X+ iface_info->GetMethodInfo(PRUint16(methodIndex), &info); X+ NS_ASSERTION(info,"no interface info"); X+ X+ paramCount = info->GetParamCount(); X+ X+ // setup variant array pointer X+ if(paramCount > PARAM_BUFFER_COUNT) X+ dispatchParams = new nsXPTCMiniVariant[paramCount]; X+ else X+ dispatchParams = paramBuffer; X+ NS_ASSERTION(dispatchParams,"no place for params"); X+ X+ // args[0] to args[NUM_ARG_REGS] hold floating point register values X+ PRUint64* ap = args + NUM_ARG_REGS; X+ for(i = 0; i < paramCount; i++, ap++) X+ { X+ const nsXPTParamInfo& param = info->GetParam(i); X+ const nsXPTType& type = param.GetType(); X+ nsXPTCMiniVariant* dp = &dispatchParams[i]; X+ X+ if(param.IsOut() || !type.IsArithmetic()) X+ { X+ dp->val.p = (void*) *ap; X+ continue; X+ } X+ // else X+ switch(type) X+ { X+ case nsXPTType::T_I8 : dp->val.i8 = (PRInt8) *ap; break; X+ case nsXPTType::T_I16 : dp->val.i16 = (PRInt16) *ap; break; X+ case nsXPTType::T_I32 : dp->val.i32 = (PRInt32) *ap; break; X+ case nsXPTType::T_I64 : dp->val.i64 = (PRInt64) *ap; break; X+ case nsXPTType::T_U8 : dp->val.u8 = (PRUint8) *ap; break; X+ case nsXPTType::T_U16 : dp->val.u16 = (PRUint16) *ap; break; X+ case nsXPTType::T_U32 : dp->val.u32 = (PRUint32) *ap; break; X+ case nsXPTType::T_U64 : dp->val.u64 = (PRUint64) *ap; break; X+ case nsXPTType::T_FLOAT : X+ if(i < NUM_ARG_REGS) X+ { X+ // floats passed via registers are stored as doubles X+ // in the first NUM_ARG_REGS entries in args X+ dp->val.u64 = (PRUint64) args[i]; X+ dp->val.f = (float) dp->val.d; // convert double to float X+ } X+ else X+ dp->val.u32 = (PRUint32) *ap; X+ break; X+ case nsXPTType::T_DOUBLE : X+ // doubles passed via registers are also stored X+ // in the first NUM_ARG_REGS entries in args X+ dp->val.u64 = (i < NUM_ARG_REGS) ? args[i] : *ap; X+ break; X+ case nsXPTType::T_BOOL : dp->val.b = (PRBool) *ap; break; X+ case nsXPTType::T_CHAR : dp->val.c = (char) *ap; break; X+ case nsXPTType::T_WCHAR : dp->val.wc = (PRUnichar) *ap; break; X+ default: X+ NS_ASSERTION(0, "bad type"); X+ break; X+ } X+ } X+ X+ result = self->CallMethod((PRUint16)methodIndex, info, dispatchParams); X+ X+ NS_RELEASE(iface_info); X+ X+ if(dispatchParams != paramBuffer) X+ delete [] dispatchParams; X+ X+ return result; X+} X+ X+/* X+ * SharedStub() X+ * Collects arguments and calls PrepareAndDispatch. The "methodIndex" is X+ * passed to this function via $1 to preserve the argument registers. X+ */ X+__asm__( X+ "#### SharedStub ####\n" X+".text\n\t" X+ ".align 5\n\t" X+ ".ent SharedStub\n" X+"SharedStub:\n\t" X+ ".frame $30,96,$26,0\n\t" X+ ".mask 0x4000000,-96\n\t" X+ "ldgp $29,0($27)\n" X+"$SharedStub..ng:\n\t" X+ "subq $30,96,$30\n\t" X+ "stq $26,0($30)\n\t" X+ ".prologue 1\n\t" X+ X+ /* X+ * Store arguments passed via registers to the stack. X+ * Floating point registers are stored as doubles and converted X+ * to floats in PrepareAndDispatch if necessary. X+ */ X+ "stt $f17,16($30)\n\t" /* floating point registers */ X+ "stt $f18,24($30)\n\t" X+ "stt $f19,32($30)\n\t" X+ "stt $f20,40($30)\n\t" X+ "stt $f21,48($30)\n\t" X+ "stq $17,56($30)\n\t" /* integer registers */ X+ "stq $18,64($30)\n\t" X+ "stq $19,72($30)\n\t" X+ "stq $20,80($30)\n\t" X+ "stq $21,88($30)\n\t" X+ X+ /* X+ * Call PrepareAndDispatch function. X+ */ X+ "bis $1,$1,$17\n\t" /* pass "methodIndex" */ X+ "addq $30,16,$18\n\t" /* pass "args" */ X+ "bsr $26,$PrepareAndDispatch..ng\n\t" X+ X+ "ldq $26,0($30)\n\t" X+ "addq $30,96,$30\n\t" X+ "ret $31,($26),1\n\t" X+ ".end SharedStub" X+ ); X+ X+#if defined(__GXX_ABI_VERSION) && __GXX_ABI_VERSION >= 100 /* G++ V3 ABI */ X+/* X+ * nsresult nsXPTCStubBase::Stub##n() X+ * Sets register $1 to "methodIndex" and jumps to SharedStub. X+ */ X+#define STUB_ENTRY(n) \ X+__asm__( \ X+ "#### Stub"#n" ####\n" \ X+".text\n\t" \ X+ ".align 5\n\t" \ X+ ".globl _ZN14nsXPTCStubBase5Stub"#n"Ev\n\t" \ X+ ".ent _ZN14nsXPTCStubBase5Stub"#n"Ev\n" \ X+"_ZN14nsXPTCStubBase5Stub"#n"Ev:\n\t" \ X+ ".frame $30,0,$26,0\n\t" \ X+ "ldgp $29,0($27)\n" \ X+"$_ZN14nsXPTCStubBase5Stub"#n"Ev..ng:\n\t" \ X+ ".prologue 1\n\t" \ X+ "lda $1,"#n"\n\t" \ X+ "br $31,$SharedStub..ng\n\t" \ X+ ".end _ZN14nsXPTCStubBase5Stub"#n"Ev" \ X+ ); \ X+__asm__( \ X+ "#### Stub"#n" ####\n" \ X+".text\n\t" \ X+ ".align 5\n\t" \ X+ ".globl _ZN14nsXPTCStubBase6Stub"#n"Ev\n\t" \ X+ ".ent _ZN14nsXPTCStubBase6Stub"#n"Ev\n" \ X+"_ZN14nsXPTCStubBase6Stub"#n"Ev:\n\t" \ X+ ".frame $30,0,$26,0\n\t" \ X+ "ldgp $29,0($27)\n" \ X+"$_ZN14nsXPTCStubBase6Stub"#n"Ev..ng:\n\t" \ X+ ".prologue 1\n\t" \ X+ "lda $1,"#n"\n\t" \ X+ "br $31,$SharedStub..ng\n\t" \ X+ ".end _ZN14nsXPTCStubBase6Stub"#n"Ev" \ X+ ); \ X+__asm__( \ X+ "#### Stub"#n" ####\n" \ X+".text\n\t" \ X+ ".align 5\n\t" \ X+ ".globl _ZN14nsXPTCStubBase7Stub"#n"Ev\n\t" \ X+ ".ent _ZN14nsXPTCStubBase7Stub"#n"Ev\n" \ X+"_ZN14nsXPTCStubBase7Stub"#n"Ev:\n\t" \ X+ ".frame $30,0,$26,0\n\t" \ X+ "ldgp $29,0($27)\n" \ X+"$_ZN14nsXPTCStubBase7Stub"#n"Ev..ng:\n\t" \ X+ ".prologue 1\n\t" \ X+ "lda $1,"#n"\n\t" \ X+ "br $31,$SharedStub..ng\n\t" \ X+ ".end _ZN14nsXPTCStubBase7Stub"#n"Ev" \ X+ ); X+#else X+/* X+ * nsresult nsXPTCStubBase::Stub##n() X+ * Sets register $1 to "methodIndex" and jumps to SharedStub. X+ */ X+#define STUB_ENTRY(n) \ X+nsresult nsXPTCStubBase::Stub##n() \ X+{ \ X+ nsresult result; \ X+__asm__ __volatile__( \ X+ "ldah $29,0($27)\n\t" \ X+ "lda $29,0($29)\n\t" \ X+ "lda $1, "#n"\n\t" \ X+ "br $31, $SharedStub..ng\n\t" \ X+ "mov $0, %0\n\t" \ X+ : "=r" (result) \ X+ ); \ X+ return result; \ X+} X+#endif X+ X+#define SENTINEL_ENTRY(n) \ X+nsresult nsXPTCStubBase::Sentinel##n() \ X+{ \ X+ NS_ASSERTION(0,"nsXPTCStubBase::Sentinel called"); \ X+ return NS_ERROR_NOT_IMPLEMENTED; \ X+} X+ X+#include "xptcstubsdef.inc" X+ END-of-seamonkey/files/patch-xptcall-alpha echo x - seamonkey/files/patch-xpfe_bootstrap_mozilla.in sed 's/^X//' >seamonkey/files/patch-xpfe_bootstrap_mozilla.in << 'END-of-seamonkey/files/patch-xpfe_bootstrap_mozilla.in' X--- xpfe/bootstrap/mozilla.in.orig Sat Sep 17 14:07:22 2005 X+++ xpfe/bootstrap/mozilla.in Sat Sep 17 14:07:38 2005 X@@ -49,139 +49,297 @@ X ## the application binary to work. X ## X X+# X+# MOZ_PIS, "Mozilla Plugable Init Scripts" X+# MOZ_PIS_ is the name space used X+# These variables and there meaning are specified in X+# mozilla/xpfe/bootstrap/init.d/README X moz_pis_startstop_scripts() X { X- MOZ_USER_DIR="%MOZ_USER_DIR%" X- # MOZ_PIS_ is the name space for "Mozilla Plugable Init Scripts" X- # These variables and there meaning are specified in X- # mozilla/xpfe/bootstrap/init.d/README X- MOZ_PIS_API=2 X- MOZ_PIS_MOZBINDIR="${dist_bin}" X- MOZ_PIS_SESSION_PID="$$" X- MOZ_PIS_USER_DIR="${MOZ_USER_DIR}" X- export MOZ_PIS_API MOZ_PIS_MOZBINDIR MOZ_PIS_SESSION_PID MOZ_PIS_USER_DIR X- X- case "${1}" in X- "start") X- for curr_pis in "${dist_bin}/init.d"/S* "${HOME}/${MOZ_USER_DIR}/init.d"/S* ; do X- if [ -x "${curr_pis}" ] ; then X- case "${curr_pis}" in X- *.sh) . "${curr_pis}" ;; X- *) "${curr_pis}" "start" ;; X- esac X- fi X- done X- ;; X- "stop") X- for curr_pis in "${HOME}/${MOZ_USER_DIR}/init.d"/K* "${dist_bin}/init.d"/K* ; do X- if [ -x "${curr_pis}" ] ; then X- case "${curr_pis}" in X- *.sh) . "${curr_pis}" ;; X- *) "${curr_pis}" "stop" ;; X- esac X- fi X- done X- ;; X- *) X- echo 1>&2 "$0: Internal error in moz_pis_startstop_scripts." X- exit 1 X- ;; X- esac X+ MOZ_PIS_API=2 X+ MOZ_PIS_MOZBINDIR="${dist_bin}" X+ MOZ_PIS_SESSION_PID="$$" X+ MOZ_PIS_USER_DIR="${MOZ_USER_DIR}" X+ export MOZ_PIS_API MOZ_PIS_MOZBINDIR MOZ_PIS_SESSION_PID MOZ_PIS_USER_DIR X+ case "${1}" in X+ "start") X+ for curr_pis in "${MOZ_PIS_MOZBINDIR}/init.d"/S* \ X+ "${HOME}/${MOZ_PIS_USER_DIR}/init.d"/S*; do X+ if [ -x "${curr_pis}" ]; then X+ case "${curr_pis}" in X+ *.sh) X+ . "${curr_pis}" X+ ;; X+ *) X+ ${curr_pis} "start" X+ ;; X+ esac X+ fi X+ done X+ ;; X+ "stop") X+ for curr_pis in "${MOZ_PIS_MOZBINDIR}/init.d"/K* \ X+ "${HOME}/${MOZ_PIS_USER_DIR}/init.d"/K*; do X+ if [ -x "${curr_pis}" ]; then X+ case "${curr_pis}" in X+ *.sh) X+ . "${curr_pis}" X+ ;; X+ *) X+ ${curr_pis} "stop" X+ ;; X+ esac X+ fi X+ done X+ ;; X+ *) X+ echo "$0: Internal error in moz_pis_startstop_scripts." 1>&2 X+ exit 1 X+ ;; X+ esac X } X X #uncomment for debugging X #set -x X X-moz_libdir=%MOZAPPDIR% X-MRE_HOME=%MREDIR% X+# X+# variables X+# X+location="new-tab" X+#MOZILLA_UILOCALE="en-US" X+#MOZILLA_UIREGION="US" X X-# honor MOZILLA_FIVE_HOME if it's there X-if [ -n "$MOZILLA_FIVE_HOME" ] ; then X- dist_bin="$MOZILLA_FIVE_HOME" X-else X- # Use run-mozilla.sh in the current dir if it exists X- # If not, then start resolving symlinks until we find run-mozilla.sh X- found=0 X- progname=$0 X- curdir=`dirname "$progname"` X- run_moz="$curdir/run-mozilla.sh" X- if test -x "$run_moz"; then X- dist_bin=$curdir X+# X+# working definitions X+# X+MOZ_USER_DIR="%MOZ_USER_DIR%" X+moz_libdir="%MOZAPPDIR%" X+MRE_HOME="%MREDIR%" X+debugging= # set the debugging level X+use_openFile="yes" # use openFile() for file/dir X+here=`pwd` X+ X+if [ ! -d "${MRE_HOME}" ]; then X+ # use moz_libdir as MRE_HOME X+ MRE_HOME="${moz_libdir}" X+fi X+export MRE_HOME X+ X+# Use run-mozilla.sh in the current dir if it exists X+# If not, then start resolving symlinks until we find run-mozilla.sh X+found=0 X+progname="$0" X+curdir=`dirname "$progname"` X+progbase=`basename "$progname"` X+run_moz="$curdir/run-mozilla.sh" X+# mozilla must obey MOZILLA_FIVE_HOME X+if [ -n "$MOZILLA_FIVE_HOME" -a -d "$MOZILLA_FIVE_HOME" -a \ X+ -x "$MOZILLA_FIVE_HOME/run-mozilla.sh" ]; then X+ curdir="$MOZILLA_FIVE_HOME" X+ run_moz="$curdir/run-mozilla.sh" X+ dist_bin="$curdir" X+ found=1 X+elif [ -x "$run_moz" ]; then X+ dist_bin="$curdir" X found=1 X- else X- here=`/bin/pwd` X- while [ -h "$progname" ]; do X- bn=`basename "$progname"` X- cd `dirname "$progname"` X- progname=`/bin/ls -l "$bn" |sed -e 's/^.* -> //' ` X- if [ ! -x "$progname" ]; then X- break X- fi X- curdir=`dirname "$progname"` X- run_moz="$curdir/run-mozilla.sh" X- if [ -x "$run_moz" ]; then X- cd "$curdir" X- dist_bin=`pwd` X- found=1 X- break X- fi X+else X+ while [ -h "${progname}" ]; do X+ bn=`basename "${progname}"` X+ cd `dirname "${progname}"` X+ progname=`ls -l "${bn}" | sed -e 's/^.* -> //'` X+ if [ ! -x "$progname" ]; then X+ break X+ fi X+ curdir=`dirname "${progname}"` X+ run_moz="${curdir}/run-mozilla.sh" X+ if [ -x "${run_moz}" ]; then X+ cd "$curdir" X+ dist_bin=`pwd` X+ run_moz="${dist_bin}/run-mozilla.sh" X+ found=1 X+ break X+ fi X done X- cd "$here" X- fi X- if [ $found = 0 ]; then X+ cd "${here}" X+fi X+if [ $found = 0 ]; then X # Check default compile-time libdir X- if [ -x "$moz_libdir/run-mozilla.sh" ]; then X- dist_bin=$moz_libdir X- else X- echo "Cannot find %MOZ_APP_DISPLAYNAME% runtime directory. Exiting." X- exit 1 X- fi X- fi X+ if [ -x "${moz_libdir}/run-mozilla.sh" ]; then X+ dist_bin="$moz_libdir" X+ run_moz="${dist_bin}/run-mozilla.sh" X+ else X+ echo "$0: Cannot find mozilla runtime directory. Exiting." 1>&2 X+ exit 1 X+ fi X fi X X-script_args="" X-moreargs="" X-debugging=0 X-MOZILLA_BIN="%MOZILLA-BIN%" X X+MOZILLA_BIN="${progbase}-bin" X if [ "$OSTYPE" = "beos" ]; then X mimeset -F $MOZILLA_BIN X fi X X+# test for binary apps in ${dist_bin} X+if [ -x "${dist_bin}/${MOZILLA_BIN}" ]; then X+ MOZILLA_BIN="${dist_bin}/${progbase}-bin" X+else X+ echo "$0: Cannot find mozilla binary executable. Exiting." 1>&2 X+ exit 1 X+fi X+if [ -x "${dist_bin}/mozilla-xremote-client" ]; then X+ MOZ_CLIENT_PROGRAM="${dist_bin}/mozilla-xremote-client -a ${progbase}" X+else X+ MOZ_CLIENT_PROGRAM="${MOZILLA_BIN} -remote -a ${progbase}" X+fi X+ X+# guest a default remote command X+_remote_cmd="xfeDoCommand(openBrowser)" X+ X+# parse options X+script_args= # null X+moreargs= # null X+target= # null X+ALREADY_RUNNING="test" X while [ $# -gt 0 ] X do X- case "$1" in X- -p | -pure) X- MOZILLA_BIN="%MOZILLA-BIN%.pure" X- shift X- ;; X- -g | --debug) X- script_args="$script_args -g" X- debugging=1 X- shift X- ;; X- -d | --debugger) X- script_args="$script_args -d $2" X- shift 2 X- ;; X- *) X- moreargs="$moreargs \"$1\"" X- shift 1 X- ;; X- esac X+ if [ -n "${target}" ]; then X+ # well, this can't be the target if not last X+ moreargs="${moreargs} \"${target}\"" X+ target= # null X+ fi X+ case "$1" in X+ # preserve [pP] for profile X+ --pure | -pure) X+ MOZILLA_BIN="${MOZILLA_BIN}.pure" X+ shift X+ ;; X+ -g | --debug) X+ script_args="${script_args} -g" X+ debugging=1 X+ shift X+ ;; X+ -d | --debugger) X+ if [ -n "$2" ]; then X+ script_args="${script_args} -d $2" X+ shift 2 X+ else X+ "$0: ERROR, $1 needs an argument. Exiting" 1>&2 X+ exit 1 X+ fi X+ ;; X+ -[Uu][Ii][Ll]ocale) X+ if [ -n "$2" ]; then X+ uilocale="$2" X+ shift 2 X+ else X+ echo "$0: ERROR, $1 needs an argument. Exiting" 1>&2 X+ exit 1 X+ fi X+ ;; X+ -[Uu][Ii][Rr]egion) X+ if [ -n "$2" ]; then X+ uiregion="$2" X+ shift 2 X+ else X+ echo "$0: ERROR, $1 needs an argument. Exiting" 1>&2 X+ exit 1 X+ fi X+ ;; X+ -browser) X+ # browser is default for mozilla X+ shift X+ ;; X+ -mail) X+ _remote_cmd="xfeDoCommand(openInbox)" X+ moreargs="${moreargs} $1" X+ shift X+ ;; X+ -compose) X+ _remote_cmd="xfeDoCommand(composeMessage)" X+ moreargs="${moreargs} $1" X+ shift X+ ;; X+ -turbo | -nosplash | -quiet) X+ # use remote even with this X+ moreargs="${moreargs} $1" X+ shift X+ ;; X+ -*) X+ # don't use remote with options X+ ALREADY_RUNNING= # null X+ moreargs="${moreargs} $1" X+ shift X+ ;; X+ esac X done X X-export MRE_HOME X-eval "set -- $moreargs" X+# process target X+if [ -n "${target}" ]; then X+ moreargs="${moreargs} \"${target}\"" X+ if [ -n "${ALREADY_RUNNING}" ]; then X+ if [ `expr "${target}" : '.*:.*'` -eq 0 ]; then X+ if [ `expr "${target}" : '/.*'` -eq 0 ]; then X+ target="${here}/${target}" X+ fi X+ if [ -r "${target}" -o -d "${target}" ]; then X+ [ -n "${use_openFile}" ] || target="file://${target}" X+ else X+ echo "$0: WARN, target: ${target} not an URI/file/dir" 1>&2 X+ ALREADY_RUNNING= # null X+ fi X+ else X+ # an former URI, don't use openFile X+ use_openFile= # null X+ fi X+ fi X+fi X+# try remote protocol if running X+if [ -n "${ALREADY_RUNNING}" ]; then X+ if [ -n "${target}" ]; then X+ if [ -n "${use_openFile}" ]; then X+ _remote_cmd="openFile(${target})" X+ elif [ -n "${location}" ]; then X+ _remote_cmd="openURL(${target},${location})" X+ else X+ _remote_cmd="openURL(${target})" X+ fi X+ fi X+ # FIXME problems with freedesktop StartupNotify X+ if [ -n "${debugging}" ]; then X+ echo "${run_moz} ${script_args} ${MOZ_CLIENT_PROGRAM} ${_remote_cmd}" X+ fi X+ ${run_moz} ${script_args} ${MOZ_CLIENT_PROGRAM} ${_remote_cmd} && exit 0 X+fi X+ X+# fallback to direct invocation X+ X+# UILocale, UIRegion X+if [ -z "${uilocale}" -a -n "${MOZILLA_UILOCALE}" ]; then X+ uilocale="${MOZILLA_UILOCALE}" X+fi X+if [ -z "${uiregion}" -a -n "${MOZILLA_UIREGION}" ]; then X+ uiregion="${MOZILLA_UIREGION}" X+fi X+if [ -n "${uiregion}" -a -z "${uilocale}" ]; then X+ uilocale="en-US" X+fi X+if [ -n "${uilocale}" ]; then X+ if [ -n "${uiregion}" ]; then X+ moreargs="-UIRegion ${uiregion} ${moreargs}" X+ fi X+ moreargs="-UILocale ${uilocale} ${moreargs}" X+fi X+ X+# real invocation X+eval "set -- ${moreargs}" X X ## Start addon scripts X moz_pis_startstop_scripts "start" X X-if [ $debugging = 1 ] X-then X- echo $dist_bin/run-mozilla.sh $script_args $dist_bin/$MOZILLA_BIN "$@" X+if [ -n "${debugging}" ]; then X+ echo "${run_moz} ${script_args} ${MOZILLA_BIN} $@" X fi X-"$dist_bin/run-mozilla.sh" $script_args "$dist_bin/$MOZILLA_BIN" "$@" X+${run_moz} ${script_args} ${MOZILLA_BIN} "$@" X exitcode=$? X X ## Stop addon scripts END-of-seamonkey/files/patch-xpfe_bootstrap_mozilla.in echo x - seamonkey/files/patch-xptcall-amd64 sed 's/^X//' >seamonkey/files/patch-xptcall-amd64 << 'END-of-seamonkey/files/patch-xptcall-amd64' X--- /dev/null Wed Dec 31 16:00:00 1969 X+++ xpcom/reflect/xptcall/src/md/unix/xptcinvoke_amd64_freebsd.cpp Thu Oct 16 22:59:43 2003 X@@ -0,0 +1,174 @@ X+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ X+// Platform specific code to invoke XPCOM methods on native objects X+ X+#include "xptcprivate.h" X+ X+// 6 integral parameters are passed in registers X+const PRUint32 GPR_COUNT = 6; X+ X+// 8 floating point parameters are passed in SSE registers X+const PRUint32 FPR_COUNT = 8; X+ X+// Remember that these 'words' are 64-bit long X+static inline void X+invoke_count_words(PRUint32 paramCount, nsXPTCVariant * s, X+ PRUint32 & nr_gpr, PRUint32 & nr_fpr, PRUint32 & nr_stack) X+{ X+ nr_gpr = 1; // skip one GP register for 'that' X+ nr_fpr = 0; X+ nr_stack = 0; X+ X+ /* Compute number of eightbytes of class MEMORY. */ X+ for (uint32 i = 0; i < paramCount; i++, s++) { X+ if (!s->IsPtrData() X+ && (s->type == nsXPTType::T_FLOAT || s->type == nsXPTType::T_DOUBLE)) { X+ if (nr_fpr < FPR_COUNT) X+ nr_fpr++; X+ else X+ nr_stack++; X+ } X+ else { X+ if (nr_gpr < GPR_COUNT) X+ nr_gpr++; X+ else X+ nr_stack++; X+ } X+ } X+} X+ X+static void X+invoke_copy_to_stack(PRUint64 * d, PRUint32 paramCount, nsXPTCVariant * s, X+ PRUint64 * gpregs, double * fpregs) X+{ X+ PRUint32 nr_gpr = 1; // skip one GP register for 'that' X+ PRUint32 nr_fpr = 0; X+ PRUint64 value; X+ X+ for (uint32 i = 0; i < paramCount; i++, s++) { X+ if (s->IsPtrData()) X+ value = (PRUint64) s->ptr; X+ else { X+ switch (s->type) { X+ case nsXPTType::T_FLOAT: break; X+ case nsXPTType::T_DOUBLE: break; X+ case nsXPTType::T_I8: value = s->val.i8; break; X+ case nsXPTType::T_I16: value = s->val.i16; break; X+ case nsXPTType::T_I32: value = s->val.i32; break; X+ case nsXPTType::T_I64: value = s->val.i64; break; X+ case nsXPTType::T_U8: value = s->val.u8; break; X+ case nsXPTType::T_U16: value = s->val.u16; break; X+ case nsXPTType::T_U32: value = s->val.u32; break; X+ case nsXPTType::T_U64: value = s->val.u64; break; X+ case nsXPTType::T_BOOL: value = s->val.b; break; X+ case nsXPTType::T_CHAR: value = s->val.c; break; X+ case nsXPTType::T_WCHAR: value = s->val.wc; break; X+ default: value = (PRUint64) s->val.p; break; X+ } X+ } X+ X+ if (!s->IsPtrData() && s->type == nsXPTType::T_DOUBLE) { X+ if (nr_fpr < FPR_COUNT) X+ fpregs[nr_fpr++] = s->val.d; X+ else { X+ *((double *)d) = s->val.d; X+ d++; X+ } X+ } X+ else if (!s->IsPtrData() && s->type == nsXPTType::T_FLOAT) { X+ if (nr_fpr < FPR_COUNT) X+ // The value in %xmm register is already prepared to X+ // be retrieved as a float. Therefore, we pass the X+ // value verbatim, as a double without conversion. X+ fpregs[nr_fpr++] = s->val.d; X+ else { X+ *((float *)d) = s->val.f; X+ d++; X+ } X+ } X+ else { X+ if (nr_gpr < GPR_COUNT) X+ gpregs[nr_gpr++] = value; X+ else X+ *d++ = value; X+ } X+ } X+} X+ X+extern "C" X+XPTC_PUBLIC_API(nsresult) X+XPTC_InvokeByIndex(nsISupports * that, PRUint32 methodIndex, X+ PRUint32 paramCount, nsXPTCVariant * params) X+{ X+ PRUint32 nr_gpr, nr_fpr, nr_stack; X+ invoke_count_words(paramCount, params, nr_gpr, nr_fpr, nr_stack); X+ X+ // Stack, if used, must be 16-bytes aligned X+ if (nr_stack) X+ nr_stack = (nr_stack + 1) & ~1; X+ X+ // Load parameters to stack, if necessary X+ PRUint64 *stack = (PRUint64 *) __builtin_alloca(nr_stack * 8); X+ PRUint64 gpregs[GPR_COUNT]; X+ double fpregs[FPR_COUNT]; X+ invoke_copy_to_stack(stack, paramCount, params, gpregs, fpregs); X+ X+ // Load FPR registers from fpregs[] X+ register double d0 asm("xmm0"); X+ register double d1 asm("xmm1"); X+ register double d2 asm("xmm2"); X+ register double d3 asm("xmm3"); X+ register double d4 asm("xmm4"); X+ register double d5 asm("xmm5"); X+ register double d6 asm("xmm6"); X+ register double d7 asm("xmm7"); X+ X+ switch (nr_fpr) { X+#define ARG_FPR(N) \ X+ case N+1: d##N = fpregs[N]; X+ ARG_FPR(7); X+ ARG_FPR(6); X+ ARG_FPR(5); X+ ARG_FPR(4); X+ ARG_FPR(3); X+ ARG_FPR(2); X+ ARG_FPR(1); X+ ARG_FPR(0); X+ case 0:; X+#undef ARG_FPR X+ } X+ X+ // Load GPR registers from gpregs[] X+ register PRUint64 a0 asm("rdi"); X+ register PRUint64 a1 asm("rsi"); X+ register PRUint64 a2 asm("rdx"); X+ register PRUint64 a3 asm("rcx"); X+ register PRUint64 a4 asm("r8"); X+ register PRUint64 a5 asm("r9"); X+ X+ switch (nr_gpr) { X+#define ARG_GPR(N) \ X+ case N+1: a##N = gpregs[N]; X+ ARG_GPR(5); X+ ARG_GPR(4); X+ ARG_GPR(3); X+ ARG_GPR(2); X+ ARG_GPR(1); X+ case 1: a0 = (PRUint64) that; X+ case 0:; X+#undef ARG_GPR X+ } X+ X+ // Ensure that assignments to SSE registers won't be optimized away X+ asm("" :: X+ "x" (d0), "x" (d1), "x" (d2), "x" (d3), X+ "x" (d4), "x" (d5), "x" (d6), "x" (d7)); X+ X+ // Get pointer to method X+ PRUint64 methodAddress = *((PRUint64 *)that); X+ methodAddress += 8 * methodIndex; X+ methodAddress = *((PRUint64 *)methodAddress); X+ X+ typedef PRUint32 (*Method)(PRUint64, PRUint64, PRUint64, PRUint64, PRUint64, PRUint64); X+ PRUint32 result = ((Method)methodAddress)(a0, a1, a2, a3, a4, a5); X+ return result; X+} X--- /dev/null Wed Dec 31 16:00:00 1969 X+++ xpcom/reflect/xptcall/src/md/unix/xptcstubs_amd64_freebsd.cpp Thu Oct 16 23:01:08 2003 X@@ -0,0 +1,206 @@ X+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ X+ X+// Implement shared vtbl methods. X+ X+#include "xptcprivate.h" X+ X+// The Linux/x86-64 ABI passes the first 6 integral parameters and the X+// first 8 floating point parameters in registers (rdi, rsi, rdx, rcx, X+// r8, r9 and xmm0-xmm7), no stack space is allocated for these by the X+// caller. The rest of the parameters are passed in the callers stack X+// area. X+ X+const PRUint32 PARAM_BUFFER_COUNT = 16; X+const PRUint32 GPR_COUNT = 6; X+const PRUint32 FPR_COUNT = 8; X+ X+// PrepareAndDispatch() is called by SharedStub() and calls the actual method. X+// X+// - 'args[]' contains the arguments passed on stack X+// - 'gpregs[]' contains the arguments passed in integer registers X+// - 'fpregs[]' contains the arguments passed in floating point registers X+// X+// The parameters are mapped into an array of type 'nsXPTCMiniVariant' X+// and then the method gets called. X+ X+extern "C" nsresult X+PrepareAndDispatch(nsXPTCStubBase * self, PRUint32 methodIndex, X+ PRUint64 * args, PRUint64 * gpregs, double *fpregs) X+{ X+ nsXPTCMiniVariant paramBuffer[PARAM_BUFFER_COUNT]; X+ nsXPTCMiniVariant* dispatchParams = NULL; X+ nsIInterfaceInfo* iface_info = NULL; X+ const nsXPTMethodInfo* info; X+ PRUint32 paramCount; X+ PRUint32 i; X+ nsresult result = NS_ERROR_FAILURE; X+ X+ NS_ASSERTION(self,"no self"); X+ X+ self->GetInterfaceInfo(&iface_info); X+ NS_ASSERTION(iface_info,"no interface info"); X+ if (! iface_info) X+ return NS_ERROR_UNEXPECTED; X+ X+ iface_info->GetMethodInfo(PRUint16(methodIndex), &info); X+ NS_ASSERTION(info,"no method info"); X+ if (! info) X+ return NS_ERROR_UNEXPECTED; X+ X+ paramCount = info->GetParamCount(); X+ X+ // setup variant array pointer X+ if(paramCount > PARAM_BUFFER_COUNT) X+ dispatchParams = new nsXPTCMiniVariant[paramCount]; X+ else X+ dispatchParams = paramBuffer; X+ X+ NS_ASSERTION(dispatchParams,"no place for params"); X+ if (! dispatchParams) X+ return NS_ERROR_OUT_OF_MEMORY; X+ X+ PRUint64* ap = args; X+ PRUint32 nr_gpr = 1; // skip one GPR register for 'that' X+ PRUint32 nr_fpr = 0; X+ PRUint64 value; X+ X+ for(i = 0; i < paramCount; i++) { X+ const nsXPTParamInfo& param = info->GetParam(i); X+ const nsXPTType& type = param.GetType(); X+ nsXPTCMiniVariant* dp = &dispatchParams[i]; X+ X+ if (!param.IsOut() && type == nsXPTType::T_DOUBLE) { X+ if (nr_fpr < FPR_COUNT) X+ dp->val.d = fpregs[nr_fpr++]; X+ else X+ dp->val.d = *(double*) ap++; X+ continue; X+ } X+ else if (!param.IsOut() && type == nsXPTType::T_FLOAT) { X+ if (nr_fpr < FPR_COUNT) X+ // The value in %xmm register is already prepared to X+ // be retrieved as a float. Therefore, we pass the X+ // value verbatim, as a double without conversion. X+ dp->val.d = *(double*) ap++; X+ else X+ dp->val.f = *(float*) ap++; X+ continue; X+ } X+ else { X+ if (nr_gpr < GPR_COUNT) X+ value = gpregs[nr_gpr++]; X+ else X+ value = *ap++; X+ } X+ X+ if (param.IsOut() || !type.IsArithmetic()) { X+ dp->val.p = (void*) value; X+ continue; X+ } X+ X+ switch (type) { X+ case nsXPTType::T_I8: dp->val.i8 = (PRInt8) value; break; X+ case nsXPTType::T_I16: dp->val.i16 = (PRInt16) value; break; X+ case nsXPTType::T_I32: dp->val.i32 = (PRInt32) value; break; X+ case nsXPTType::T_I64: dp->val.i64 = (PRInt64) value; break; X+ case nsXPTType::T_U8: dp->val.u8 = (PRUint8) value; break; X+ case nsXPTType::T_U16: dp->val.u16 = (PRUint16) value; break; X+ case nsXPTType::T_U32: dp->val.u32 = (PRUint32) value; break; X+ case nsXPTType::T_U64: dp->val.u64 = (PRUint64) value; break; X+ case nsXPTType::T_BOOL: dp->val.b = (PRBool) value; break; X+ case nsXPTType::T_CHAR: dp->val.c = (char) value; break; X+ case nsXPTType::T_WCHAR: dp->val.wc = (wchar_t) value; break; X+ X+ default: X+ NS_ASSERTION(0, "bad type"); X+ break; X+ } X+ } X+ X+ result = self->CallMethod((PRUint16) methodIndex, info, dispatchParams); X+ X+ NS_RELEASE(iface_info); X+ X+ if (dispatchParams != paramBuffer) X+ delete [] dispatchParams; X+ X+ return result; X+} X+ X+#if defined(__GXX_ABI_VERSION) && __GXX_ABI_VERSION >= 100 /* G++ V3 ABI */ X+// Linux/x86-64 uses gcc >= 3.1 X+#define STUB_ENTRY(n) \ X+asm(".section \".text\"\n\t" \ X+ ".align 2\n\t" \ X+ ".if " #n " < 10\n\t" \ X+ ".globl _ZN14nsXPTCStubBase5Stub" #n "Ev\n\t" \ X+ ".type _ZN14nsXPTCStubBase5Stub" #n "Ev,@function\n" \ X+ "_ZN14nsXPTCStubBase5Stub" #n "Ev:\n\t" \ X+ ".elseif " #n " < 100\n\t" \ X+ ".globl _ZN14nsXPTCStubBase6Stub" #n "Ev\n\t" \ X+ ".type _ZN14nsXPTCStubBase6Stub" #n "Ev,@function\n" \ X+ "_ZN14nsXPTCStubBase6Stub" #n "Ev:\n\t" \ X+ ".elseif " #n " < 1000\n\t" \ X+ ".globl _ZN14nsXPTCStubBase7Stub" #n "Ev\n\t" \ X+ ".type _ZN14nsXPTCStubBase7Stub" #n "Ev,@function\n" \ X+ "_ZN14nsXPTCStubBase7Stub" #n "Ev:\n\t" \ X+ ".else\n\t" \ X+ ".err \"stub number " #n " >= 1000 not yet supported\"\n\t" \ X+ ".endif\n\t" \ X+ "movl $" #n ", %eax\n\t" \ X+ "jmp SharedStub\n\t" \ X+ ".if " #n " < 10\n\t" \ X+ ".size _ZN14nsXPTCStubBase5Stub" #n "Ev,.-_ZN14nsXPTCStubBase5Stub" #n "Ev\n\t" \ X+ ".elseif " #n " < 100\n\t" \ X+ ".size _ZN14nsXPTCStubBase6Stub" #n "Ev,.-_ZN14nsXPTCStubBase6Stub" #n "Ev\n\t" \ X+ ".else\n\t" \ X+ ".size _ZN14nsXPTCStubBase7Stub" #n "Ev,.-_ZN14nsXPTCStubBase7Stub" #n "Ev\n\t" \ X+ ".endif"); X+ X+// static nsresult SharedStub(PRUint32 methodIndex) X+asm(".section \".text\"\n\t" X+ ".align 2\n\t" X+ ".type SharedStub,@function\n\t" X+ "SharedStub:\n\t" X+ // make room for gpregs (48), fpregs (64) X+ "pushq %rbp\n\t" X+ "movq %rsp,%rbp\n\t" X+ "subq $112,%rsp\n\t" X+ // save GP registers X+ "movq %rdi,-112(%rbp)\n\t" X+ "movq %rsi,-104(%rbp)\n\t" X+ "movq %rdx, -96(%rbp)\n\t" X+ "movq %rcx, -88(%rbp)\n\t" X+ "movq %r8 , -80(%rbp)\n\t" X+ "movq %r9 , -72(%rbp)\n\t" X+ "leaq -112(%rbp),%rcx\n\t" X+ // save FP registers X+ "movsd %xmm0,-64(%rbp)\n\t" X+ "movsd %xmm1,-56(%rbp)\n\t" X+ "movsd %xmm2,-48(%rbp)\n\t" X+ "movsd %xmm3,-40(%rbp)\n\t" X+ "movsd %xmm4,-32(%rbp)\n\t" X+ "movsd %xmm5,-24(%rbp)\n\t" X+ "movsd %xmm6,-16(%rbp)\n\t" X+ "movsd %xmm7, -8(%rbp)\n\t" X+ "leaq -64(%rbp),%r8\n\t" X+ // rdi has the 'self' pointer already X+ "movl %eax,%esi\n\t" X+ "leaq 16(%rbp),%rdx\n\t" X+ "call PrepareAndDispatch\n\t" X+ "leave\n\t" X+ "ret\n\t" X+ ".size SharedStub,.-SharedStub"); X+ X+#define SENTINEL_ENTRY(n) \ X+nsresult nsXPTCStubBase::Sentinel##n() \ X+{ \ X+ NS_ASSERTION(0,"nsXPTCStubBase::Sentinel called"); \ X+ return NS_ERROR_NOT_IMPLEMENTED; \ X+} X+ X+#include "xptcstubsdef.inc" X+ X+#else X+#error "can't find a compiler to use" X+#endif /* __GNUC__ */ END-of-seamonkey/files/patch-xptcall-amd64 echo x - seamonkey/files/patch-xptcall-ia64 sed 's/^X//' >seamonkey/files/patch-xptcall-ia64 << 'END-of-seamonkey/files/patch-xptcall-ia64' X--- xpcom/reflect/xptcall/src/md/unix/xptcinvoke_asm_ipf64.s.orig Sun Jul 20 00:05:32 2003 X+++ xpcom/reflect/xptcall/src/md/unix/xptcinvoke_asm_ipf64.s Sun Jul 20 00:06:37 2003 X@@ -8,6 +8,7 @@ X // Section has executable code X .section .text, "ax","progbits" X // procedure named 'XPTC_InvokeByIndex' X+ .global XPTC_InvokeByIndex X .proc XPTC_InvokeByIndex X // manual bundling X .explicit X@@ -24,7 +25,7 @@ X X // XPTC_InvokeByIndex(nsISupports* that, PRUint32 methodIndex, X // PRUint32 paramCount, nsXPTCVariant* params); X-XPTC_InvokeByIndex:: X+XPTC_InvokeByIndex: X .prologue X .save ar.pfs, r37 X // allocate 4 input args, 6 local args, and 8 output args X--- xpcom/reflect/xptcall/src/md/unix/xptcstubs_asm_ipf64.s.orig Tue May 24 11:30:54 2005 X+++ xpcom/reflect/xptcall/src/md/unix/xptcstubs_asm_ipf64.s Fri Sep 16 15:50:20 2005 X@@ -6,6 +6,7 @@ X // Section has executable code X .section .text, "ax","progbits" X // procedure named 'SharedStub' X+ .global SharedStub X .proc SharedStub X // manual bundling X .explicit X@@ -14,7 +15,7 @@ X // .exclass PrepareAndDispatch, @fullyvisible X .type PrepareAndDispatch,@function X X-SharedStub:: X+SharedStub: X // 10 arguments, first 8 are the input arguments of previous X // function call. The 9th one is methodIndex and the 10th is the X // pointer to the remaining input arguments. The last two arguments END-of-seamonkey/files/patch-xptcall-ia64 echo x - seamonkey/files/patch-xptcall-sparc64 sed 's/^X//' >seamonkey/files/patch-xptcall-sparc64 << 'END-of-seamonkey/files/patch-xptcall-sparc64' X--- /dev/null Mon May 26 13:22:00 2003 X+++ xpcom/reflect/xptcall/src/md/unix/xptcstubs_sparc64_freebsd.cpp Mon May 26 04:12:55 2003 X@@ -0,0 +1,123 @@ X+/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- X+ * X+ * The contents of this file are subject to the Mozilla Public X+ * License Version 1.1 (the "License"); you may not use this file X+ * except in compliance with the License. You may obtain a copy of X+ * the License at http://www.mozilla.org/MPL/ X+ * X+ * Software distributed under the License is distributed on an "AS X+ * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or X+ * implied. See the License for the specific language governing X+ * rights and limitations under the License. X+ * X+ * The Original Code is mozilla.org code. X+ * X+ * The Initial Developer of the Original Code is Netscape X+ * Communications Corporation. Portions created by Netscape are X+ * Copyright (C) 2001 Netscape Communications Corporation. All X+ * Rights Reserved. X+ * X+ * Contributor(s): X+ * Stuart Parmenter X+ */ X+ X+/* Implement shared vtbl methods. */ X+ X+#include "xptcprivate.h" X+ X+#if defined(sparc) || defined(__sparc__) X+ X+extern "C" nsresult X+PrepareAndDispatch(nsXPTCStubBase* self, PRUint64 methodIndex, PRUint64* args) X+{ X+ X+#define PARAM_BUFFER_COUNT 16 X+ X+ nsXPTCMiniVariant paramBuffer[PARAM_BUFFER_COUNT]; X+ nsXPTCMiniVariant* dispatchParams = NULL; X+ nsIInterfaceInfo* iface_info = NULL; X+ const nsXPTMethodInfo* info; X+ PRUint8 paramCount; X+ PRUint8 i; X+ nsresult result = NS_ERROR_FAILURE; X+ X+ NS_ASSERTION(self,"no self"); X+ X+ self->GetInterfaceInfo(&iface_info); X+ NS_ASSERTION(iface_info,"no interface info"); X+ X+ iface_info->GetMethodInfo(PRUint16(methodIndex), &info); X+ NS_ASSERTION(info,"no interface info"); X+ X+ paramCount = info->GetParamCount(); X+ X+ // setup variant array pointer X+ if(paramCount > PARAM_BUFFER_COUNT) X+ dispatchParams = new nsXPTCMiniVariant[paramCount]; X+ else X+ dispatchParams = paramBuffer; X+ NS_ASSERTION(dispatchParams,"no place for params"); X+ X+ PRUint64* ap = args; X+ for(i = 0; i < paramCount; i++, ap++) X+ { X+ const nsXPTParamInfo& param = info->GetParam(i); X+ const nsXPTType& type = param.GetType(); X+ nsXPTCMiniVariant* dp = &dispatchParams[i]; X+ X+ if(param.IsOut() || !type.IsArithmetic()) X+ { X+ dp->val.p = (void*) *ap; X+ continue; X+ } X+ // else X+ switch(type) X+ { X+ case nsXPTType::T_I8 : dp->val.i8 = *((PRInt64*) ap); break; X+ case nsXPTType::T_I16 : dp->val.i16 = *((PRInt64*) ap); break; X+ case nsXPTType::T_I32 : dp->val.i32 = *((PRInt64*) ap); break; X+ case nsXPTType::T_DOUBLE : dp->val.d = *((double*) ap); break; X+ case nsXPTType::T_U64 : dp->val.u64 = *((PRUint64*) ap); break; X+ case nsXPTType::T_I64 : dp->val.i64 = *((PRInt64*) ap); break; X+ case nsXPTType::T_U8 : dp->val.u8 = *((PRUint64*) ap); break; X+ case nsXPTType::T_U16 : dp->val.u16 = *((PRUint64*)ap); break; X+ case nsXPTType::T_U32 : dp->val.u32 = *((PRUint64*)ap); break; X+ case nsXPTType::T_FLOAT : dp->val.f = ((float*) ap)[1]; break; X+ case nsXPTType::T_BOOL : dp->val.b = *((PRInt64*) ap); break; X+ case nsXPTType::T_CHAR : dp->val.c = *((PRUint64*) ap); break; X+ case nsXPTType::T_WCHAR : dp->val.wc = *((PRInt64*) ap); break; X+ default: X+ NS_ASSERTION(0, "bad type"); X+ break; X+ } X+ } X+ X+ result = self->CallMethod((PRUint16)methodIndex, info, dispatchParams); X+ X+ NS_RELEASE(iface_info); X+ X+ if(dispatchParams != paramBuffer) X+ delete [] dispatchParams; X+ X+ return result; X+} X+ X+extern "C" int SharedStub(int, int*); X+ X+#define STUB_ENTRY(n) \ X+nsresult nsXPTCStubBase::Stub##n() \ X+{ \ X+ int dummy; /* defeat tail-call optimization */ \ X+ return SharedStub(n, &dummy); \ X+} X+ X+#define SENTINEL_ENTRY(n) \ X+nsresult nsXPTCStubBase::Sentinel##n() \ X+{ \ X+ NS_ASSERTION(0,"nsXPTCStubBase::Sentinel called"); \ X+ return NS_ERROR_NOT_IMPLEMENTED; \ X+} X+ X+#include "xptcstubsdef.inc" X+ X+#endif /* sparc || __sparc__ */ X--- /dev/null Mon May 26 13:22:00 2003 X+++ xpcom/reflect/xptcall/src/md/unix/xptcinvoke_asm_sparc64_freebsd.s Mon May 26 04:06:09 2003 X@@ -0,0 +1,104 @@ X+/* -*- Mode: asm; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- X+ * X+ * The contents of this file are subject to the Mozilla Public X+ * License Version 1.1 (the "License"); you may not use this file X+ * except in compliance with the License. You may obtain a copy of X+ * the License at http://www.mozilla.org/MPL/ X+ * X+ * Software distributed under the License is distributed on an "AS X+ * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or X+ * implied. See the License for the specific language governing X+ * rights and limitations under the License. X+ * X+ * The Original Code is mozilla.org code. X+ * X+ * The Initial Developer of the Original Code is Netscape X+ * Communications Corporation. Portions created by Netscape are X+ * Copyright (C) 2001 Netscape Communications Corporation. All X+ * Rights Reserved. X+ * X+ * Contributor(s): X+ * Stuart Parmenter X+ * Chris Seawood X+ */ X+ X+/* X+ Platform specific code to invoke XPCOM methods on native objects X+ for sparcv9 Solaris. X+ X+ See the SPARC Compliance Definition (SCD) Chapter 3 X+ for more information about what is going on here, including X+ the use of BIAS (0x7ff). X+ The SCD is available from http://www.sparc.com/. X+*/ X+ X+ .global XPTC_InvokeByIndex X+ .type XPTC_InvokeByIndex, #function X+ X+/* X+ XPTC_InvokeByIndex(nsISupports* that, PRUint32 methodIndex, X+ PRUint32 paramCount, nsXPTCVariant* params); X+ X+*/ X+XPTC_InvokeByIndex: X+ save %sp,-(128 + 64),%sp ! room for the register window and X+ ! struct pointer, rounded up to 0 % 64 X+ sll %i2,4,%l0 ! assume the worst case X+ ! paramCount * 2 * 8 bytes X+ cmp %l0, 0 ! are there any args? If not, X+ be .invoke ! no need to copy args to stack X+ nop X+ X+ sub %sp,%l0,%sp ! create the additional stack space X+ add %sp,0x7ff+136,%o0 ! step past the register window, the X+ ! struct result pointer and the 'this' slot X+ mov %i2,%o1 ! paramCount X+ call invoke_copy_to_stack X+ mov %i3,%o2 ! params X+ X+! X+! load arguments from stack into the outgoing registers X+! BIAS is 0x7ff (2047) X+! X+ X+! load the %o1..5 64bit (extended word) output registers registers X+ ldx [%sp + 0x7ff + 136],%o1 ! %i1 X+ ldx [%sp + 0x7ff + 144],%o2 ! %i2 X+ ldx [%sp + 0x7ff + 152],%o3 ! %i3 X+ ldx [%sp + 0x7ff + 160],%o4 ! %i4 X+ ldx [%sp + 0x7ff + 168],%o5 ! %i5 X+ X+! load the even number double registers starting with %d2 X+ ldd [%sp + 0x7ff + 136],%f2 X+ ldd [%sp + 0x7ff + 144],%f4 X+ ldd [%sp + 0x7ff + 152],%f6 X+ ldd [%sp + 0x7ff + 160],%f8 X+ ldd [%sp + 0x7ff + 168],%f10 X+ ldd [%sp + 0x7ff + 176],%f12 X+ ldd [%sp + 0x7ff + 184],%f14 X+ ldd [%sp + 0x7ff + 192],%f16 X+ ldd [%sp + 0x7ff + 200],%f18 X+ ldd [%sp + 0x7ff + 208],%f20 X+ ldd [%sp + 0x7ff + 216],%f22 X+ ldd [%sp + 0x7ff + 224],%f24 X+ ldd [%sp + 0x7ff + 232],%f26 X+ ldd [%sp + 0x7ff + 240],%f28 X+ ldd [%sp + 0x7ff + 248],%f30 X+ X+! X+! calculate the target address from the vtable X+! X+.invoke: X+ sll %i1,3,%l0 ! index *= 8 X+! add %l0,16,%l0 ! there are 2 extra entries in the vTable (16bytes) X+ ldx [%i0],%l1 ! *that --> address of vtable X+ ldx [%l0 + %l1],%l0 ! that->vtable[index * 8 + 16] --> address X+ X+ jmpl %l0,%o7 ! call the routine X+ mov %i0,%o0 ! move 'this' pointer to out register X+ X+ mov %o0,%i0 ! propagate return value X+ ret X+ restore X+ X+ .size XPTC_InvokeByIndex, .-XPTC_InvokeByIndex X--- /dev/null Mon May 26 14:00:00 2003 X+++ xpcom/reflect/xptcall/src/md/unix/xptcinvoke_sparc64_freebsd.cpp Mon May 26 14:00:49 2003 X@@ -0,0 +1,91 @@ X+/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- X+ * X+ * The contents of this file are subject to the Mozilla Public X+ * License Version 1.1 (the "License"); you may not use this file X+ * except in compliance with the License. You may obtain a copy of X+ * the License at http://www.mozilla.org/MPL/ X+ * X+ * Software distributed under the License is distributed on an "AS X+ * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or X+ * implied. See the License for the specific language governing X+ * rights and limitations under the License. X+ * X+ * The Original Code is mozilla.org code. X+ * X+ * The Initial Developer of the Original Code is Netscape X+ * Communications Corporation. Portions created by Netscape are X+ * Copyright (C) 2001 Netscape Communications Corporation. All X+ * Rights Reserved. X+ * X+ * Contributor(s): X+ * Stuart Parmenter X+ * Chris Seawood X+ */ X+ X+ X+/* Platform specific code to invoke XPCOM methods on native objects */ X+ X+#include "xptcprivate.h" X+ X+#if !defined(__sparc) && !defined(__sparc__) X+#error "This code is for Sparc only" X+#endif X+ X+/* Prototype specifies unmangled function name */ X+extern "C" PRUint64 X+invoke_copy_to_stack(PRUint64* d, PRUint32 paramCount, nsXPTCVariant* s); X+ X+extern "C" PRUint64 X+invoke_copy_to_stack(PRUint64* d, PRUint32 paramCount, nsXPTCVariant* s) X+{ X+ /* X+ We need to copy the parameters for this function to locals and use them X+ from there since the parameters occupy the same stack space as the stack X+ we're trying to populate. X+ */ X+ PRUint64 *l_d = d; X+ nsXPTCVariant *l_s = s; X+ PRUint64 l_paramCount = paramCount; X+ PRUint64 regCount = 0; // return the number of registers to load from the stack X+ X+ for(PRUint64 i = 0; i < l_paramCount; i++, l_d++, l_s++) X+ { X+ if (regCount < 5) regCount++; X+ X+ if (l_s->IsPtrData()) X+ { X+ *l_d = (PRUint64)l_s->ptr; X+ continue; X+ } X+ switch (l_s->type) X+ { X+ case nsXPTType::T_I8 : *((PRInt64*)l_d) = l_s->val.i8; break; X+ case nsXPTType::T_I16 : *((PRInt64*)l_d) = l_s->val.i16; break; X+ case nsXPTType::T_I32 : *((PRInt64*)l_d) = l_s->val.i32; break; X+ case nsXPTType::T_I64 : *((PRInt64*)l_d) = l_s->val.i64; break; X+ X+ case nsXPTType::T_U8 : *((PRUint64*)l_d) = l_s->val.u8; break; X+ case nsXPTType::T_U16 : *((PRUint64*)l_d) = l_s->val.u16; break; X+ case nsXPTType::T_U32 : *((PRUint64*)l_d) = l_s->val.u32; break; X+ case nsXPTType::T_U64 : *((PRUint64*)l_d) = l_s->val.u64; break; X+ X+ /* in the case of floats, we want to put the bits in to the X+ 64bit space right justified... floats in the paramter array on X+ sparcv9 use odd numbered registers.. %f1, %f3, so we have to skip X+ the space that would be occupied by %f0, %f2, etc. X+ */ X+ case nsXPTType::T_FLOAT : *(((float*)l_d) + 1) = l_s->val.f; break; X+ case nsXPTType::T_DOUBLE: *((double*)l_d) = l_s->val.d; break; X+ case nsXPTType::T_BOOL : *((PRInt64*)l_d) = l_s->val.b; break; X+ case nsXPTType::T_CHAR : *((PRUint64*)l_d) = l_s->val.c; break; X+ case nsXPTType::T_WCHAR : *((PRInt64*)l_d) = l_s->val.wc; break; X+ X+ default: X+ // all the others are plain pointer types X+ *((void**)l_d) = l_s->val.p; X+ break; X+ } X+ } X+ X+ return regCount; X+} END-of-seamonkey/files/patch-xptcall-sparc64 echo x - seamonkey/Makefile sed 's/^X//' >seamonkey/Makefile << 'END-of-seamonkey/Makefile' X# New ports collection makefile for: mozilla X# Date created: 31 Mar 1998 X# Whom: eivind/dima/jseger X# X# $FreeBSD: ports/www/mozilla-devel/Makefile,v 1.230 2005/09/10 17:24:31 pav Exp $ X# $MCom$ X# X XPORTNAME?= seamonkey XDISTVERSION= 1.0a XCATEGORIES?= www XMASTER_SITES= ${MASTER_SITE_LOCAL} XMASTER_SITE_SUBDIR= ahze X#MASTER_SITES= ${MASTER_SITE_MOZILLA} X#MASTER_SITE_SUBDIR= seamonkey/releases/${DISTVERSION} XDISTNAME= ${PORTNAME}-${DISTVERSION}.source X XMAINTAINER= gnome@FreeBSD.org XCOMMENT= The open source, standards compliant web browser X XBUILD_DEPENDS= zip:${PORTSDIR}/archivers/zip XLIB_DEPENDS= jpeg.9:${PORTSDIR}/graphics/jpeg \ X png.5:${PORTSDIR}/graphics/png \ X Xft.2:${PORTSDIR}/x11-fonts/libXft \ X svg-cairo.1:${PORTSDIR}/graphics/libsvg-cairo X XWRKSRC= ${WRKDIR}/mozilla XMOZILLA?= seamonkey XMOZ_SUFX?= # empty (for now) XMOZ_VER?= ${DISTVERSION} XLATEST_LINK= ${MOZILLA} XEXTRACT_AFTER_ARGS= | ${TAR} -xf - --exclude */CVS/* \ X --exclude */macbuild/*\ X --exclude */package/* \ X --exclude .cvsignore \ X --exclude makefile.win \ X --exclude MANIFEST XUSE_GNOME= gtk20 libidl desktopfileutils XUSE_BZIP2= yes XUSE_X_PREFIX= yes XUSE_PERL5= yes XUSE_ICONV= yes XUSE_GMAKE= yes XWANT_GNOME= yes XUSE_REINPLACE= yes XHAS_CONFIGURE= yes XALL_TARGET= default XFAKEDIR= ${WRKDIR}/fake XSCRIPTS_DIR= ${FAKEDIR}/lib/${MOZILLA} XMOZ_PIS_DIR= ${SCRIPTS_DIR}/init.d XMOZ_PIS_SCRIPTS= S50cleanhome XMAKE_ENV= LD_LIBRARY_PATH=${WRKSRC}/dist/bin XCONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include/cairo" XCONFIGURE_ARGS= \ X --disable-auto-deps \ X --enable-chrome-format=jar \ X --disable-cpp-exceptions \ X --disable-cpp-rtti \ X --enable-crypto \ X --disable-gtktest \ X --disable-freetypetest \ X --disable-installer \ X --disable-glibtest \ X --enable-double-buffer \ X --enable-mathml \ X --disable-md \ X --disable-pedantic \ X --disable-bidi \ X --disable-plaintext-editor-only \ X --enable-svg \ X --disable-tests \ X --disable-xterm-updates \ X --enable-xinerama \ X --with-system-zlib \ X --with-system-jpeg=${LOCALBASE} \ X --with-system-png=${LOCALBASE} \ X --with-gssapi=/usr \ X --prefix=${FAKEDIR} \ X --with-pthreads \ X --enable-application=suite \ X --enable-xft \ X --disable-freetype2 \ X --enable-default-toolkit=gtk2 \ X --enable-svg-renderer-cairo \ X --enable-system-cairo \ X --enable-cairo X XPLIST= ${WRKDIR}/pkg-plist XMOZ_EXTENSIONS= default XCONFIGURE_ENV= LOCALBASE=${LOCALBASE} X XESD_LIB= libesd.so.2 XFREETYPE_LIB= libfreetype.so.9 XPKGCONFIG_FILES=seamonkey-gtkmozembed seamonkey-js seamonkey-xpcom \ X seamonkey-nspr seamonkey-nss seamonkey-plugin X X# JPI stuff. List paths to Java Plug-ins here in the order to try. XJPI_LIST?=\ X ${LOCALBASE}/jdk1.4.2/jre/plugin/${ARCH}/ns610/libjavaplugin_oji.so \ X ${LOCALBASE}/jdk1.4.1/jre/plugin/${ARCH}/ns610/libjavaplugin_oji.so \ X ${LOCALBASE}/diablo-jdk1.3.1/jre/plugin/${ARCH}/ns600/libjavaplugin_oji.so \ X ${LOCALBASE}/jdk1.3.1/jre/plugin/${ARCH}/ns600/libjavaplugin_oji.so X XOPTIONS=MAILNEWS "Enable Mail and News modules" on \ X COMPOSER "Enable the HTML Composer module" on \ X DEBUG "Enable debugging (i.e. gdb) support" off \ X LDAP "Enable LDAP support for Mailnews" on \ X CHATZILLA "Enable the Chatzilla IRC module" on \ X JAVASCRIPT_DEBUGGER "Enable DTD and JavaScript debuggers" off \ X OPTIMIZED_CFLAGS "Enable -O2 optimizations" off \ X SMB "Enable smb:// URI support via gnomevfs" off X X.include X X.if ${ARCH} == "ia64" || ${ARCH} == "alpha" XBROKEN= Does not compile on ${ARCH} X.endif X X.if ${ARCH} == "alpha" && ${OSVERSION} < 500035 XIGNORE= core dumps on ${ARCH} during post-build X.endif X X.if exists(${X11BASE}/lib/X11/fonts/mozilla/fonts.dir) XBROKEN= Mozilla${MOZ_SUFX} and Xft2 render the mozilla-fonts \ X illegibly. Please remove the mozilla-fonts package X.endif X X#.if defined(WITH_CALENDAR) && (defined(WITHOUT_MAILNEWS) || \ X# defined(WITHOUT_COMPOSER)) X#BROKEN= Calendar requires Composer and Mailnews support. X#.endif X X.if ${OSVERSION} < 500000 XUSE_GCC= 3.4 X.endif X X.if defined(WITH_DEBUG) XCONFIGURE_ARGS+= --enable-debug \ X --disable-strip X.else XCONFIGURE_ARGS+= --disable-debug \ X --enable-strip X.endif X X# LDAP is only used by mail and news so disable both together X.if defined(WITHOUT_MAILNEWS) XCONFIGURE_ARGS+= --disable-ldap --disable-mailnews X.else X# mail and news desired, but not LDAP X.if defined(WITHOUT_LDAP) XCONFIGURE_ARGS+= --disable-ldap --enable-mailnews X.else XCONFIGURE_ARGS+= --enable-ldap --enable-mailnews X.endif X.endif X.if !defined(WITHOUT_CHATZILLA) XMOZ_EXTENSIONS:= ${MOZ_EXTENSIONS},irc X.endif XCONFIGURE_ARGS+= --enable-extensions=${MOZ_EXTENSIONS} X X.if defined(WITH_JAVASCRIPT_DEBUGGER) XCONFIGURE_ARGS+= --enable-jsd \ X --enable-dtd-debug X.else XCONFIGURE_ARGS+= --disable-jsd \ X --disable-dtd-debug X.endif X X#.if defined(WITH_CALENDAR) X#CONFIGURE_ARGS+= --enable-calendar X#.endif X X.if defined(WITHOUT_COMPOSER) XCONFIGURE_ARGS+= --disable-composer X.endif X X.if ${ARCH} == "i386" XCONFIGURE_ARGS+= --enable-reorder X.endif X X.if defined(WITH_SMB) XUSE_GNOME+= gnomevfs2 X.else XCONFIGURE_ARGS+=--disable-gnomevfs X.endif X X.if defined(WITH_OPTIMIZED_CFLAGS) XCFLAGS:= -O2 -fno-strict-aliasing ${CFLAGS:N-O*} X.else XCFLAGS:= -O ${CFLAGS:N-O*:N-m*} XCONFIGURE_ENV+= WITH_OPTIMIZE=-O X.endif X X.if !defined(WITHOUT_MENU_ENTRY) XUSE_GNOME+= gnomehier X.endif X Xpost-patch: X @${REINPLACE_CMD} -e 's/%{idldir}/%idldir%/g' \ X ${WRKSRC}/build/unix/mozilla-config.in X @${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' \ X ${WRKSRC}/build/unix/run-mozilla.sh X @${REINPLACE_CMD} -e 's|%%MOZILLA%%|${MOZILLA}|g' \ X -e 's|%%HEADERS_SUFX%%|${MOZ_SUFX}|g' \ X ${WRKSRC}/config/autoconf.mk.in X @${REINPLACE_CMD} -e 's|-lc_r|${PTHREAD_LIBS}|g ; \ X s|-lpthread|${PTHREAD_LIBS}|g' \ X ${WRKSRC}/configure \ X ${WRKSRC}/nsprpub/configure X @${REINPLACE_CMD} -e 's|-pthread|${PTHREAD_LIBS}|g' \ X ${WRKSRC}/nsprpub/configure \ X ${WRKSRC}/security/coreconf/FreeBSD.mk \ X ${WRKSRC}/directory/c-sdk/config/FreeBSD.mk \ X ${WRKSRC}/js/src/Makefile.in X @${REINPLACE_CMD} -e 's|libesd\.so\.0|${ESD_LIB}|g' \ X ${WRKSRC}/widget/src/gtk2/nsSound.cpp X @${REINPLACE_CMD} -e '/accessibility.typeaheadfind.enablesound/s/true/false/' \ X ${WRKSRC}/modules/libpref/src/init/all.js X @${REINPLACE_CMD} -e 's||\"${LOCALBASE}/include/iconv.h\"|g' \ X ${WRKSRC}/configure \ X ${WRKSRC}/intl/uconv/native/nsNativeUConvService.cpp \ X ${WRKSRC}/xpcom/io/nsNativeCharsetUtils.cpp X @${REINPLACE_CMD} -e 's|libfreetype.so.6|${FREETYPE_LIB}|g' \ X ${WRKSRC}/modules/libpref/src/init/all.js X# @for pcfile in ${PKGCONFIG_FILES}; do \ X# ${REINPLACE_CMD} -e 's|mozilla-xpcom|mozilla-xpcom${MOZ_SUFX}|g ; \ X# s|mozilla-nspr|mozilla-nspr${MOZ_SUFX}|g' \ X# ${WRKSRC}/build/unix/$${pcfile}.pc.in; \ X# done X @${SED} -e 's|%%PREFIX%%|${PREFIX}|g' \ X < ${FILESDIR}/seamonkey.desktop.in > \ X ${WRKDIR}/seamonkey.desktop X Xpre-configure: X @if [ -n "`${PKG_INFO} -xI '^bind[0-9]*-base-[0-9]'`" ]; then \ X ${ECHO_CMD} "${PKGNAME}: bind installed with PORT_REPLACES_BASE_BIND causes build problems."; \ X ${FALSE}; \ X fi X Xpost-build: X ${SED} -e "s|%%PREFIX%%|${PREFIX}|g" -e "s|%%MOZILLA%%|${MOZILLA}|g" \ X ${FILESDIR}/seamonkey.sh >${WRKSRC}/${MOZILLA} X Xpre-install: X ${RM} -rf ${PLIST} ${FAKEDIR} X ${TOUCH} -f ${PLIST} X cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} \ X Makefile ${MAKE_ARGS} install X ${MKDIR} ${SCRIPTS_DIR} ${MOZ_PIS_DIR} X ${REINPLACE_CMD} -e 's|${FAKEDIR}|${PREFIX}|g' \ X ${FAKEDIR}/bin/seamonkey \ X ${FAKEDIR}/bin/seamonkey-config X ${ECHO_CMD} bin/mozilla >> ${PLIST} ; \ X ${ECHO_CMD} bin/${MOZILLA} >> ${PLIST} X if [ ! -L ${PREFIX}/lib/browser_plugins/libjavaplugin_oji.so ]; then \ X for jpi in ${JPI_LIST}; do \ X if [ -f $${jpi} ]; then \ X ${ECHO_CMD} lib/browser_plugins/libjavaplugin_oji.so >> ${PLIST} ; \ X break; \ X fi; \ X done; \ X fi X ${ECHO_CMD} lib/browser_plugins/.${PORTNAME}.keep >> ${PLIST} X ${ECHO_CMD} "@unexec ${RMDIR} %D/lib/browser_plugins 2>/dev/null || ${TRUE}" >> ${PLIST} X ${ECHO_CMD} lib/${MOZILLA}/seamonkey >> ${PLIST} X ${ECHO_CMD} lib/${MOZILLA}/seamonkey-config >> ${PLIST} X.for ii in ${MOZ_PIS_SCRIPTS} X ${INSTALL_SCRIPT} ${FILESDIR}/moz_pis_${ii} ${MOZ_PIS_DIR}/${ii} X.endfor X.if !defined(WITHOUT_MAILNEWS) X @${CP} -RL ${WRKSRC}/dist/bin/defaults/isp ${FAKEDIR}/lib/${MOZILLA}/defaults X.endif X ${ECHO_CMD} share/applications/seamonkey.desktop >> ${PLIST} X ${ECHO_CMD} "@unexec ${RMDIR} %D/share/applications 2>/dev/null || ${TRUE}" >> ${PLIST} X cd ${FAKEDIR}/lib/${MOZILLA} && ${FIND} -s * -type f -o -type l | \ X ${SED} -e 's:^:lib/${MOZILLA}/:' >> ${PLIST} \ X && ${FIND} -d * -type d | \ X ${SED} -e 's:^:@dirrm lib/${MOZILLA}/:' >> ${PLIST} X ${ECHO_CMD} @dirrm lib/${MOZILLA} >> ${PLIST} X for pcfile in ${PKGCONFIG_FILES}; do \ X ${ECHO_CMD} libdata/pkgconfig/$${pcfile}${MOZ_SUFX}.pc >> ${PLIST} ; \ X done X cd ${FAKEDIR}/include/${MOZILLA} && ${FIND} -s * -type f -o -type l | \ X ${SED} -e 's:^:include/${MOZILLA}/:' >> ${PLIST} \ X && ${FIND} -d * -type d | \ X ${SED} -e 's:^:@dirrm include/${MOZILLA}/:' >> ${PLIST} X ${ECHO_CMD} @dirrm include/${MOZILLA} >> ${PLIST} X ${ECHO_CMD} "@exec ${LOCALBASE}/bin/update-desktop-database > /dev/null || ${TRUE}" >> ${PLIST} X ${ECHO_CMD} "@unexec ${LOCALBASE}/bin/update-desktop-database > /dev/null || ${TRUE}" >> ${PLIST} X cd ${FAKEDIR}/share/idl/${MOZILLA:S/-devel//}-${MOZ_VER} \ X && ${FIND} -s * -type f -o -type l | \ X ${SED} -e 's:^:share/idl/${MOZILLA}/:' >> ${PLIST} \ X && ${FIND} -d * -type d | \ X ${SED} -e 's:^:@dirrm share/idl/${MOZILLA}/:' >> ${PLIST} X ${ECHO_CMD} "@dirrm share/idl/${MOZILLA}" >> ${PLIST} X ${ECHO_CMD} "@unexec rmdir %D/share/idl 2>/dev/null || true" >> ${PLIST} X Xdo-install: X ${MKDIR} ${PREFIX}/lib/${MOZILLA} X ${CHMOD} 755 ${PREFIX}/lib/${MOZILLA} X ${INSTALL_SCRIPT} ${FAKEDIR}/bin/seamonkey ${PREFIX}/lib/${MOZILLA} X ${INSTALL_SCRIPT} ${FAKEDIR}/bin/seamonkey-config ${PREFIX}/lib/${MOZILLA} X cd ${FAKEDIR}/lib/${MOZILLA} && ${FIND} . | \ X ${CPIO} -pdm -L -R ${LIBOWN}:${LIBGRP} ${PREFIX}/lib/${MOZILLA} X for pcfile in ${PKGCONFIG_FILES}; do \ X ${REINPLACE_CMD} -e 's|${FAKEDIR}|${PREFIX}|g' \ X ${WRKSRC}/build/unix/$${pcfile}.pc; \ X ${INSTALL_DATA} ${WRKSRC}/build/unix/$${pcfile}.pc \ X ${PREFIX}/libdata/pkgconfig/$${pcfile}${MOZ_SUFX}.pc ; \ X done X ${INSTALL_SCRIPT} ${WRKSRC}/${MOZILLA} ${PREFIX}/bin X if [ ! -x ${PREFIX}/bin/mozilla -a ! -L ${PREFIX}/bin/mozilla ]; then \ X ${LN} -sf ${PREFIX}/bin/${MOZILLA} ${PREFIX}/bin/mozilla ; \ X fi X if [ ! -d ${PREFIX}/lib/browser_plugins ]; then \ X ${MKDIR} ${PREFIX}/lib/browser_plugins ; \ X fi X ${TOUCH} -f ${PREFIX}/lib/browser_plugins/.${PORTNAME}.keep X if [ ! -L ${PREFIX}/lib/browser_plugins/libjavaplugin_oji.so ]; then \ X for jpi in ${JPI_LIST}; do \ X if [ -f $${jpi} ]; then \ X ${LN} -sf $${jpi} \ X ${PREFIX}/lib/browser_plugins/libjavaplugin_oji.so ; \ X break; \ X fi; \ X done; \ X fi X -${RM} -fr ${PREFIX}/include/${MOZILLA} X ${MKDIR} ${PREFIX}/include/${MOZILLA} X ${CHMOD} 755 ${PREFIX}/include/${MOZILLA} X cd ${FAKEDIR}/include/${MOZILLA} && ${FIND} . | \ X ${CPIO} -pdm -L -R ${LIBOWN}:${LIBGRP} ${PREFIX}/include/${MOZILLA} X ${MKDIR} ${PREFIX}/share/applications X ${INSTALL_DATA} ${WRKDIR}/seamonkey.desktop ${PREFIX}/share/applications X ${MKDIR} ${PREFIX}/share/idl/${MOZILLA} X cd ${FAKEDIR}/share/idl/${MOZILLA:S/-devel//}-${MOZ_VER} && ${FIND} . | \ X ${CPIO} -pdm -L -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}/share/idl/${MOZILLA} X Xpost-install: X @-update-desktop-database X X.include END-of-seamonkey/Makefile echo x - seamonkey/distinfo sed 's/^X//' >seamonkey/distinfo << 'END-of-seamonkey/distinfo' XMD5 (seamonkey-1.0a.source.tar.bz2) = cd0ae1ce5ea6f072fb64160d17ae96da XSIZE (seamonkey-1.0a.source.tar.bz2) = 32541565 END-of-seamonkey/distinfo echo x - seamonkey/pkg-descr sed 's/^X//' >seamonkey/pkg-descr << 'END-of-seamonkey/pkg-descr' XThis is the current release of the Seamonkey open source web browser. It should Xbe fully compliant with all W3C standards, including HTML, CSS, XML, XSL, XJavaScript, MathML, SSL encryption, SVG and RDF. Also supports Java with Xthe use of the FreeBSD native Java plug-in. X XThis is the latest bleeding edge release. Beware that you'll probably find Xbugs here, so if you value stability, try www/mozilla. X XWWW: http://www.mozilla.org/projects/seamonkey/ END-of-seamonkey/pkg-descr echo c - seamonkey/scripts mkdir -p seamonkey/scripts > /dev/null 2>&1 echo c - seamonkey/scripts/CVS mkdir -p seamonkey/scripts/CVS > /dev/null 2>&1 echo x - seamonkey/scripts/CVS/Root sed 's/^X//' >seamonkey/scripts/CVS/Root << 'END-of-seamonkey/scripts/CVS/Root' X/home/ncvs END-of-seamonkey/scripts/CVS/Root echo x - seamonkey/scripts/CVS/Repository sed 's/^X//' >seamonkey/scripts/CVS/Repository << 'END-of-seamonkey/scripts/CVS/Repository' Xports/www/mozilla-devel/scripts END-of-seamonkey/scripts/CVS/Repository echo x - seamonkey/scripts/CVS/Entries sed 's/^X//' >seamonkey/scripts/CVS/Entries << 'END-of-seamonkey/scripts/CVS/Entries' XD END-of-seamonkey/scripts/CVS/Entries echo x - seamonkey/pkg-deinstall.in sed 's/^X//' >seamonkey/pkg-deinstall.in << 'END-of-seamonkey/pkg-deinstall.in' X#!/bin/sh X# X# $FreeBSD$ X# $MCom: ports/www/mozilla/pkg-deinstall.in,v 1.7 2005/07/13 08:45:47 ahze Exp $ X# X# Date created: Mon Nov 29, 2003 X# Whom: Thierry Thomas () X# Fix the chrome registry. X Xumask 022 XPATH=/bin:/usr/bin X X[ "x$1" = "x" ] && exit 1 X[ "x$2" != "xDEINSTALL" ] && exit 0 X XMOZDIR=%%MOZDIR%% X Xrm -rf ${MOZDIR}/chrome/overlayinfo Xrm -f ${MOZDIR}/chrome/*.rdf Xrm -f ${MOZDIR}/component.reg Xrm -f ${MOZDIR}/components/*.dat X Xexit 0 END-of-seamonkey/pkg-deinstall.in exit