the Fink project is an effort to port
popular Unix programs to Mac OS X
Info2: <<
Package: seamonkey
# For alpha or beta versions :
# Version according to mozilla/config/milestone.txt ("mozilla-version"),
# rather than suite/config/version.txt ("seamonkey-version", =%type_raw[ver]), to leave room for growth till 2.0
# For releases: ver=%v = 'release version' ; i.e. from suite/config/version-*.txt
Version: 2.0.5
Revision: 1
Architecture: powerpc, i386
## parameters needed at several places :
Type: sys_nspr (no), ver (%v)
Depends: %N2-shlibs (= %v-%r), bzip2-shlibs
BuildDepends: <<
atk1 (>= 1.28.0-2),
bzip2-dev,
cairo (>= 1.8.8-4),
cyrus-sasl2-dev (>= 2.1.23-2),
dbus1.3-dev (>= 1.2.16-101),
dbus-glib1.2-dev (>= 0.84-1),
findutils,
fink (>= 0.27.2-1),
fink-package-precedence,
fontconfig2-dev (>= 2.8.0-3),
freetype219 (>= 2.3.12-1),
gconf2-dev (>= 2.28.0-3),
glib2-dev (>= 2.22.4-2),
glitz,
gnome-vfs2-unified-dev (>= 1:2.24.2-1),
gtk+2-dev (>= 2.18.9-3),
libart2 (>= 2.3.20-1),
libbonobo2-dev (>= 2.24.2-2),
libbonoboui2-dev (>= 2.24.2-2),
libgettext8-dev,
libgnome2-dev (>= 2.28.0-1),
libgnomecanvas2-dev (>= 2.26.0-3),
libgnomeui2-dev (>= 2.24.2-2),
libhunspell (>= 1.2.8-1005),
libidl2 (>= 0.8.13-2),
libjpeg8,
(%type_raw[sys_nspr] = .) nspr.0d (>= 4.8.4-4),
openssl098-dev (>= 0.9.8l-1),
orbit2-dev (>= 2.14.17-2),
pango1-xft2-ft219-dev (>= 1.24.5-6),
pixman,
pkgconfig (>= 0.23-2),
popt (>= 1.14-1),
sed,
sqlite3 (>= 3.6.21-1),
sqlite3-dev (>= 3.6.21-1),
startup-notification-dev (>= 0.9-2),
x11-dev
<<
## esound and libcanberra0 : probably not needed in the build...
# sed : used in info file; findutils : 'find -xtype" used in mozilla/toolkit/mozapps/installer/packager.mk, l. 464
##
# Tentatively deleting expat1, libiconv-dev, pixman, pth2-dev, xft2-dev : leftovers from previous versions,
# no evidence of need from otool, nor by analyzing headers used
# [ uncommment last line of PatchScript, then :
## egrep '^\.+ /' /sw/var/logs/seamonkey.log|sed -r -e 's,^\.+ ,,'|sort -u|egrep -v -e '^/usr/' -e '^/System/' -e '/bld/seamonkey'|xargs dpkg -S|cut -f1 -d:|sort -u|xargs
# atk1 bzip2-dev cairo dbus-glib1.2-dev dbus1.3-dev fontconfig2-dev freetype219 gconf2-dev glib2-dev gnome-vfs2-unified-dev
# gtk+2-dev libbonobo2-dev libgettext8-dev libgnome2-dev libgnomeui2-dev libidl2 libjpeg8 pango1-xft2-ft219-dev popt
# sqlite3-dev startup-notification-dev
# ]
##
# Also still left to run it once with DYLD_BIND_AT_LAUNCH, DYLD_PRINT_LIBRARIES and DYLD_PRINT_LIBRARIES_POST_LAUNCH
# to check no runtime-deps are omitted.. DONE
# build uses yacc; mine is from fink's bison ..; hope system's is OK. Similarly for python, perl, most of coreutils, etc
GCC: 4.0
Source-MD5: 9da657e86397bc1d4069d05beb6a98c6
Source: mirror:custom:mozilla.org/%N/releases/%type_raw[ver]/source/%N-%type_raw[ver].source.tar.bz2
SourceDirectory: comm-1.9.1
CustomMirror: <<
Primary: http://ftp.mozilla.org/pub/
# nam-US: ftp://ftp.tux.org/pub/net/mozilla/
# asi-JP: http://www.t.ring.gr.jp/pub/net/www/mozilla/
<<
#SourceDirectory: mozilla
#### PATCHING
## The patchfile just imports a "fink" subdir.
PatchFile: %n.patch
PatchFile-MD5: 97204f5c47a32433cd0dd7e4e00ba4c9
PatchScript: <<
#!/bin/sh -ev
### Make list of files patched (too difficult to track otherwise which ones have already been patched,
### hence where a .bak is needed and where not..)
find . -name CVS -o -name .cvsignore -o -name '*.bak' | xargs rm -fR
# Try to keep next list +/- in order of the sed commands here, to make it easier to keep it up to date..
patchlst=`echo \
mozilla/modules/libpref/src/nsPrefService.cpp \
mozilla/gfx/thebes/public/gfxQuartzSurface.h \
mozilla/gfx/thebes/src/gfxQuartzFontCache.mm \
mozilla/gfx/thebes/src/gfxASurface.cpp \
mailnews/addrbook/build/Makefile.in \
mozilla/toolkit/library/Makefile.in \
mozilla/toolkit/mozapps/installer/packager.mk \
{,mozilla/{,js/src/}}configure{.in,} \
{,mozilla/{,js/src/}}config/{config,rules}.mk {directory/c-sdk,mozilla/nsprpub}/configure{.in,} \
mozilla/security/{coreconf/Darwin,nss/lib/freebl/config}.mk \
mozilla/modules/plugin/sdk/samples/unixprinting/Makefile.in \
{,mozilla/}configure{.in,} \
mozilla/nsprpub/configure{.in,} \
mozilla/config/add-chrome.pl \
directory/c-sdk/config/config.mk \
mozilla/nsprpub/pr/src/Makefile.in \
mozilla/nsprpub/pr/include/md/_darwin.h \
mozilla/nsprpub/configure{,.in} \
mozilla/modules/libpr0n/decoders/icon/Makefile.in\
mozilla/toolkit/crashreporter/nsExceptionHandler.cpp \
mozilla/xpcom/base/nsStackWalk.cpp mailnews/addrbook/public/nsAbBaseCID.h \
mozilla/{configure.in,security/coreconf/Darwin.mk} \
mozilla/build/unix/mozilla-config.in \
directory/c-sdk/ldap/libraries/liblber/lber-int.h \
mozilla/nsprpub/lib/libc/src/strlen.c \
mozilla/media/libsydneyaudio/src/sydney_audio_mac.c \
mozilla/netwerk/build/Makefile.in \
mozilla/extensions/auth/Makefile.in \
mozilla/gfx/thebes/src/Makefile.in \
mozilla/Makefile.in \
{,mozilla/}configure{.in,} \
mozilla/js/src/xpconnect/shell/Makefile.in \
mozilla/xpcom/typelib/xpidl/Makefile.in \
mozilla/nsprpub/pr/src/Makefile.in \
mozilla/gfx/src/psshared/nsCUPSShim.cpp \
mozilla/{toolkit/xre/nsNativeAppSupportUnix,modules/libpr0n/decoders/icon/gtk/nsIconChannel}.cpp \
mozilla/widget/src/gtk2/nsBidiKeyboard.cpp \
mozilla/widget/src/{gtk2/nsIdleServiceGTK,qt/nsIdleServiceQt}.cpp \
mozilla/widget/src/gtk2/nsScreenManagerGtk.cpp \
mozilla/widget/src/gtk2/nsSound.cpp \
|tr ' ' '\n'|sort -u|xargs`
for f in $patchlst; do cp -p $f $f.bak; done
if [ -e /usr/X11/include/X11/X.h ]; then
Xdir="/usr/X11"
elif [ -e /usr/X11R6/include/X11/X.h ]; then
Xdir="/usr/X11R6"
else
echo "Could not determine X11 prefix"
exit 1
fi
### import "fink" directory :
patch -p1 < %{PatchFile}
sed -i'' -e 's,Pr,%p,g' -e "s,Xd,$Xdir," `find fink -type f`
sed -ri'' -e '/XP_BEOS/,+3s;endif;&\t, "fink.js";' mozilla/modules/libpref/src/nsPrefService.cpp
#### Next is for alpha or beta versions :
# for documentation; prefer to see explicitly everything in %c
# mv .mozconfig .mozconfig.bak
### CAIRO and gfx
# Including Carbon.h brings in so many headers that there are several name clashes with the X11 headers also brought in.
# And CGContext.h suffices
sed -i'' -e \
's,Carbon/Carbon.h,/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreGraphics.framework/Headers/CGContext.h,' \
mozilla/gfx/thebes/public/gfxQuartzSurface.h
sed -i'' -e 's,Carbon\.h,Carbon/&,' mozilla/gfx/thebes/src/gfxQuartzFontCache.mm
## Either of the 2 following attempts should be viable.
#### FIRST ATTEMPT FOR CAIRO_QUARTZ (ends up with needing to add --enable-quartz-image to cairo.info)
## we have to delete a number of targets because fink's cairo has --disable-quartz-image
## better to disable any quartz support altogether? What could be its use?
#### we need this time the quartz cpp srcs _ but don't include twice nsUnicodeRange.cpp
#sed -i.bak -e '/cocoa/,/endif/{
# /cocoa/d
# /nsUnicodeRange.cpp/d
# /endif/d }' \
# mozilla/gfx/thebes/src/Makefile.in
# fink's cairo-features.h gets included in gfx/thebes/src, and defines CAIRO_HAS_QUARTZ_FONT and CAIRO_HAS_QUARTZ_SURFACE
# w/o next, we get missing headers for gfxQuartzSurface.h and gfxQuartzImageSurface.h (to begin with ?)
# sed -ri.bak -e 's,mac cocoa,& gtk2,' mozilla/gfx/thebes/public/Makefile.in
# Use a non-existing macro to exclude the CAIRO_SURFACE_TYPE_QUARTZ_IMAGE case (still --disable-quartz-image ...)
# sed -i.bak -e '/ gfxQuartzSurface/,/else if/s,[}],&\n#endif\n#ifdef CAIRO_HAS_QUARTZ_IMAGE_SURFACE,' \
# mozilla/gfx/thebes/src/gfxASurface.cpp
#### OTHER ATTEMPT FOR CAIRO_QUARTZ : disable any quartz support altogether...
sed -i'' -e 's,CAIRO_HAS_QUARTZ_SURFACE,&NO,' -e 's,XP_MACOSX,&NO,' mozilla/gfx/thebes/src/gfxASurface.cpp
sed -i'' -e 's,Cocoa,AddressBook,' mailnews/addrbook/build/Makefile.in
####
# the need for -lcrypto comes from the symbols MD5_Init and MD5_Final, used in
# toolkit/crashreporter/google-breakpad/src/common/mac/{file,macho}_id.cc, and defined nowhere in the builddir...
# --> since it is only for that, SWITCH to system-openssl ! (next not needed as long as crashreporter has to be disabled)
sed -i'' -e 's,EXTRA_DSO_LIBS),& -lcrypto,' mozilla/toolkit/library/Makefile.in
# allow to do a "make install" even on Darwin !
sed -i'' -e 's, Darwin,,' mozilla/toolkit/mozapps/installer/packager.mk
####
### Getting "reasonable" install_names (libs are not versioned! and their "install_name" would else just be
### "@executable_path/libname" ...) . To be able to get minimal "shlibs-policy" compliance,
### we'll replace all '@executable_path's in install_names by a 'real path' that includes a symlink containing "%N-%V"
V=`cut -f1 -d. <<<"%type_raw[ver]"`
# for consistency, remove the : "-Wl,-executable_path,$(LIBXUL_DIST)/bin" from the link commands
sed -ri'' -e "s,.*executable_path.*, MOZ_FIX_LINK_PATHS=''," {,mozilla/{,js/src/}}configure{.in,}
sed -ri'' -e "s,(install_name|dylib_file) +@executable_path,\1 %p/lib/%N-$V,g" \
{,mozilla/{,js/src/}}config/{config,rules}.mk {directory/c-sdk,mozilla/nsprpub}/configure{.in,} \
mozilla/security/{coreconf/Darwin,nss/lib/freebl/config}.mk
sed -ri'' -e \
"s;rules.mk;&\nEXTRA_DSO_LDOPTS := \$\(subst install_name \$\(mozappdir\)/,install_name %p/lib/%N-$V/plugins/,\$\(EXTRA_DSO_LDOPTS\)\);" \
mozilla/modules/plugin/sdk/samples/unixprinting/Makefile.in
#### we want a gtk2 build:
sed -i'' -e 's, -DXP_MACOSX -DNO_X11, -DX11,' {,mozilla/}configure{.in,}
sed -i'' -e '/XP_MACOSX/d' mozilla/nsprpub/configure{.in,}
sed -i'' -e 's,\(my \$macos = \).*,\1= 0;,' mozilla/config/add-chrome.pl
sed -ri'' -e '/^C(|CC)FLAGS/s, \$\(OS_CFLAGS\),,' -e '/^C(|CC)FLAGS/,+1s,XCFLAGS\),& $(OS_CFLAGS),' \
directory/c-sdk/config/config.mk
sed -ri'' -e '/OS_TARGET\),MacOSX/,/endif/d' mozilla/nsprpub/pr/src/Makefile.in
sed -ri'' 's,USE_MACH_DYLD,USE_DLFCN,' mozilla/nsprpub/pr/include/md/_darwin.h
sed -ri'' -e '/CFBundle/,+5{ /EOF/,/EOF/d }' -e '/\*-darwin\*\|\*-beos/,/;;/d' mozilla/nsprpub/configure{,.in}
### The bulk of gnome deps (save for gnome-vfs and gtk2) would disappear w/o the following 8 lines; they appear just in libimgicon
### get around specific setting for darwin _ and, in same Makefile, get flag-ordering right, to avoid linking with nspr-shlibs.
sed -i'' -e 's,PLATFORM = mac,ifndef PLATFORM\n&\nendif,' \
-e '/MOZ_GNOMEUI_LIBS/d' -e 's,EXTRA_DSO_LDOPTS [+]=,EXTRA_DSO_LDOPTS =,' \
-e '/rules.mk/,$s;OS_ARCH),Darwin;PLATFORM),mac;' -e '/LOCAL_INCLUDES/i\
ifdef MOZ_ENABLE_GNOMEUI\
EXTRA_DSO_LDOPTS += $(MOZ_GNOMEUI_LIBS) $(NULL)\
endif\
' mozilla/modules/libpr0n/decoders/icon/Makefile.in
### since upstream subverted at many places XP_MACOSX to mean a toolkit to be used ("cocoa" rather than eg gtk or qt),
### (instead of an OS), we zapped it, and so even in places where it is used properly we have to replace it ..
sed -i'' -e 's,XP_MACOSX,__APPLE__,' mozilla/toolkit/crashreporter/nsExceptionHandler.cpp \
mozilla/xpcom/base/nsStackWalk.cpp mailnews/addrbook/public/nsAbBaseCID.h
### remove obsolete flags:
sed -i'' -e 's, -fpascal-strings,,' -e 's, -no-cpp-precomp,,' mozilla/{configure.in,security/coreconf/Darwin.mk}
### The next appears (-ed??) needed eg when building yelp...
### maybe also in mozilla/xulrunner/installer/libxul{-unstable,}.pc.in ?
sed -i'' -e 's,lxpcom,& -lxpcom_core,' mozilla/build/unix/mozilla-config.in
### The following is "for safety", to avoid "implicit declaration" warnings :
sed -ri'' -e 's,\(XP_OS2\) \&\& \!defined\(DARWIN\)$,\(XP_OS2\),' directory/c-sdk/ldap/libraries/liblber/lber-int.h
## else implicit declaration of PR_Assert in strlen.c
sed -ri'' -e '/prlog\.h/i\
#define FORCE_PR_ASSERT 1' mozilla/nsprpub/lib/libc/src/strlen.c
#### MISC
### patch for 10.6 from https://bugzilla.mozilla.org/show_bug.cgi?id=492072 (thanks Diego Caravana)
sed -ri'' -e '/AudioUnit.h/i\
#include
### libresolv
# configure fails to detect libresolv (hence the 'env' before ./configure),
# and even if it would detect it, it forgets to add -lresolv to LIBS
# We put it as far as possible in the link line _ and just for the link that needs it, in order not to get
# libresolv in the LOAD_COMMANDS everywhere :
sed -ri'' -e 's,^MODULE[[:space:]],OS_LIBS += -lresolv\n&,' mozilla/netwerk/build/Makefile.in
sed -ri'' -e '/MOZ_COMPONENT_LIBS/a \\t\t-lresolv \\' mozilla/extensions/auth/Makefile.in
### lXrender
sed -ri'' -e '$a EXTRA_DSO_LDOPTS += -lXrender' mozilla/gfx/thebes/src/Makefile.in
### allow enable-xul :
sed -ri'' -e '/alldep all::/a \\tmkdir -p dist/bin/XUL' mozilla/Makefile.in
sed -ri'' -e 's, [^ ]*/bin/XUL,,' {,mozilla/}configure{.in,}
# for XRE_GetFileFromPath and XRE_GetBinaryFromPath in xpcshell.cpp (why is libxul not in LIBXUL_LIBS ??) :
sed -ri'' -e '/NSPR_LIBS/a \\t\t-lxul \\' mozilla/js/src/xpconnect/shell/Makefile.in
### Non-portable use of sed (not even usable with GNU sed)
sed -i'' -e 's,sed -E,sed -r,' mozilla/xpcom/typelib/xpidl/Makefile.in
### link nspr with g++ when using --enable-cplus
sed -ri'' -e 's,cplus$,&\n\tMKSHLIB = \$(CCC) \$(DSO_LDOPTS) -o \$@,' mozilla/nsprpub/pr/src/Makefile.in
### Fixing SOME calls to PR_LoadLibrary ... (using proper install_names..) _ just looked at those with a hard-coded string.
### Possibly this would make the use of -dead_strip_dylibs safe ? (cf CompileScript)
### Would need to check all binaries where PR_LoadLibrary appears..
### Use of otool -D below is legal, since names of deps must change if install_names do. And this avoids hard-coding things here.
sed -ri'' -e 's,libcups\.so\.2,/usr/lib/libcups.dylib,' mozilla/gfx/src/psshared/nsCUPSShim.cpp
sed -ri'' -e 's,libgnomeui-2\.so\.0,%p/lib/libgnomeui-2.0.dylib,' -e 's,libgnome-2.so.0,%p/lib/libgnome-2.0.dylib,' \
-e "s,libgnomevfs-2\.so\.0,`otool -D %p/lib/libgnomevfs-2.dylib|fgrep -v :`," \
mozilla/{toolkit/xre/nsNativeAppSupportUnix,modules/libpr0n/decoders/icon/gtk/nsIconChannel}.cpp
sed -ri'' -e "s,libgtk-x11-2\.0\.so\.0,`otool -D %p/lib/libgtk-x11-2.0.dylib|fgrep -v :`," \
mozilla/widget/src/gtk2/nsBidiKeyboard.cpp
sed -ri'' -e "s,libXss\.so\.1,`otool -D $Xdir/lib/libXss.1.dylib|fgrep -v :`," \
mozilla/widget/src/{gtk2/nsIdleServiceGTK,qt/nsIdleServiceQt}.cpp
sed -ri'' -e "s,libXinerama\.so\.1,`otool -D $Xdir/lib/libXinerama.1.dylib|fgrep -v :`," \
mozilla/widget/src/gtk2/nsScreenManagerGtk.cpp
sed -ri'' -e 's,libesd\.so\.0,%p/lib/libesd.0.dylib,' -e 's,libcanberra\.so\.0,%p/lib/libcanberra.0.dylib,' \
mozilla/widget/src/gtk2/nsSound.cpp
### For alpha or beta versions : need to create configure scripts
### autoconf2.13 (!) needed, and fink has no corresponding automake, so autoreconf can't be used..
# for f in `find . -name configure.in`; do cd `sed -e 's,/[^/]*$,,'<<<"$f$"`; autoconf; cd -; done
### Uncomment to check builddeps :
# sed -ri'' -e 's,CPPFLAGS%%,CPPFLAGS -H%%,' `find . -name configure`
## Finally, for who prefers to see a unfied patch _ this creates "patch" in the build-dir :
for g in $patchlst; do \
if test ! -f $g ; then echo "ERROR: file $g does not exist" >&2
else f="$g.bak"
if test ! -f $f ; then echo "ERROR: file $f does not exist" >&2
elif cmp -s $g $f; then echo "WARNING: patching $g yielded nothing" >&2
else diff -au $f $g || :
fi
fi
done > patch
<<
#### CONFIGURE
## can't enable static : "configure: error: Only one of --enable-shared or --enable-static must be specified."
## (and reluctant to impose 2 full builds on the user...)
# Also "--enable-boehm" leads to trouble...; probably not important (for a 'production' pkg): according to
# http://www.hpl.hp.com/personal/Hans_Boehm/gc/ , it is only used as a leak detector.
# --enable-libxul leads to "/bld/seamonkey-1.9.1b3pre-1/mozilla/dist/bin/XUL: No such file or directory" in linking
# mozilla/xpfe/components/autocomplete/src/nsAutoComplete.o
ConfigureParams: <<
--enable-macos-target=${MACOSX_DEPLOYMENT_TARGET} --enable-optimize=-Os --disable-debug --enable-strip --enable-tests --with-pthreads \
--with-default-mozilla-five-home=%p/lib/%N-2 --mandir=%p/share/man --with-qtdir=%p --x-includes='' --x-libraries='' \
--enable-application=suite --enable-calendar --enable-default-toolkit=cairo-gtk2 --enable-xul --enable-places \
--enable-image-decoders=all --enable-image-encoders=all --enable-necko-protocols=all \
--enable-ctl --enable-canvas --enable-update-packaging --enable-storage --enable-profilesharing --enable-startup-notification \
--enable-xpctools --enable-url-classifier --enable-ipv6 --enable-ldap-experimental --with-sasl \
--with-x --enable-xinerama --enable-xprint --enable-pango --enable-xft --enable-postscript \
--enable-svg --enable-svg-renderer=cairo --enable-system-cairo --enable-system-lcms --enable-glitz --enable-system-sqlite \
--with-system-mng --with-system-jpeg --with-system-zlib --with-system-bz2 (%type_raw[sys_nspr] = .) --with-system-nspr \
--enable-auto-deps --enable-md --disable-necko-wifi --disable-crashreporter --enable-safe-browsing --enable-system-hunspell \
--enable-help-viewer --enable-ipcd --enable-oji --enable-javaxpcom --enable-single-profile --disable-static-mail \
--build=%m-apple-darwin`uname -r|cut -f1 -d.` --host=%m-apple-darwin`uname -r|cut -f1 -d.` \
--enable-update-packaging --enable-update-channel=beta
<<
###### Last line is for private use !
## disable-necko-wifi : mozilla/configure has 'elif test "$OS_ARCH" = "Darwin"; then NECKO_WIFI=1'
## but mozilla/netwerk/wifi/src/nsWifiScannerUnix.cpp fails to find iwlib.h (new in 2.03)
#
# "--with-system-png" : "configure: error: --with-system-png won't work because the system's libpng doesn't have APNG support"
# no -fstrict-aliasing in '--enable-optimize', else "dereferencing type-punned pointer will break strict-aliasing rules" warnings
##
# --with-system-nss ?
##
# Remove the --enable-tests when putting in unstable ?
#### BUILD
# Possibly remove next 2 settings for a release _ one role is to test how this might fare under 10.6 ..
SetCC: gcc-4.2
SetCXX: c++-4.2
NoSetLDFLAGS: true
SetLDFLAGS: -L%b/mozilla/dist/lib -L%b/mozilla/dist/bin -L%p/lib/fontconfig2/lib
NoSetCPPFLAGS: true
SetCPPFLAGS: -I%p/include/pango-1.0 -I%p/include/freetype2 -I%p/lib/fontconfig2/include
CompileScript: <<
#!/bin/sh -ev
if [ -e /usr/X11/include/X11/X.h ]; then
Xdir="/usr/X11"
elif [ -e /usr/X11R6/include/X11/X.h ]; then
Xdir="/usr/X11R6"
else
echo "Could not determine X11 prefix"
exit 1
fi
export PATH="%p/lib/fontconfig2/bin:$PATH"
export PKG_CONFIG_PATH="%p/lib/fontconfig2/lib/pkgconfig:$PKG_CONFIG_PATH"
export CPATH="%p/include/pango-1.0/pango:%p/include/pango-1.0:%p/include/freetype2:%p/lib/fontconfig2/include:%p/include:$Xdir/include"
export LIBRARY_PATH="%b/mozilla/dist/lib:%b/mozilla/dist/bin:%p/lib/fontconfig2/lib:%p/lib:$Xdir/lib"
# next can't be used, though all undefined symbols have a ' (from ...)'; apparently dynamic linking is hidden via use of PRLibrary
# v=`uname -r|cut -f1 -d.`; if [ $v -ge 9 ]; then export LDFLAGS="$LDFLAGS -Wl,-dead_strip_dylibs" ; fi
### possibly some redundancy in the next _ but most of it seems needed :
if grep -q 64 %p/var/lib/fink/path-prefix-10.6/compiler_wrapper
then export USE_64=1; enable64="--enable-64bit"
else enable64="--disable-64bit"
fi
# next is for trouble with rcthrread.h:190 with c++ >= 4.2 (better to fix the problem!)
# [ Trying to get this +/- right, independently of the presence or no of "SetCC" or "SetCXX" and of sw_vers .. ]
ctst=$CXX; if test -z $ctst; then ctst=$CC; if test -z $ctst; then ctst="/usr/bin/c++"; fi; fi
cxvers=`$ctst --dumpversion 2>&1|cut -f1 -d:|sed -e 's,.*-,,' -e 's,\.,,' -e 's,\..*,,'`
if [ $cxvers -le 41 ]; then cplus="--enable-cplus"; else cplus=''; fi
env ac_cv_func_res_ninit=yes ./configure %c $enable64 $cplus
make -w
fink-package-precedence --depfile-ext='\.pp,\.Plo,\.Po' --prohibit-bdep=%N,%N-dev,%N-shlibs,%N2-dev,%N2-shlibs . || :
<<
#### INSTALL
InstallScript: <<
#!/bin/sh -ev
make -j1 install DESTDIR=%d INSTALL_SDK=1
# rm or link duplicate files
pushd %i > /dev/null
rm -fR lib/%N-%type_raw[ver]/extensions/inspector@mozilla.org/platform/{OS2,WINNT}
cd share/idl/%N-%type_raw[ver]/stable; for f in *; do ln -fs ../unstable/$f; done; cd -
pushd include/%N-%type_raw[ver]/stable > /dev/null; for f in *.{h,api}; do ln -fs ../unstable/$f; done
for d in obsolete private; do cd $d; for f in *.h; do ln -fs ../../unstable/$f; done; cd -; done
cd md; for f in *.cfg; do ln -fs ../../unstable/$f; done; cd -
popd > /dev/null
ln -fs ../../include/%N-%type_raw[ver]/unstable/xpcom-config.h lib/%N-devel-%type_raw[ver]
# to be uncommented again when re-enabling crashreporter (in principle next time)
#ln -fs ../MainMenu.nib/classes.nib lib/%N-%type_raw[ver]/crashreporter.app/Contents/Resources/English.lproj/MainMenuRTL.nib
popd > /dev/null
## Fix install_names of plugins (were completely baroque, all in different ways)
V=`cut -f1 -d. <<<"%type_raw[ver]"`
cd %i/lib/%N-%type_raw[ver]/plugins
for f in *.dylib; do
install_name_tool -id %p/lib/%N-$V/plugins/$f $f
done
cd -
## Make unversioned symlinks (more in dev splitoff):
ln -fs %N-%type_raw[ver] %i/lib/%N-$V
# Fix symlink in bin to main excutable (target was %N instead of %N-bin)
ln -fs ../lib/%N-$V/%N-bin %i/bin/%N
### FIXME : .pc files don't get built anymore! (.pc.in are in mozilla/xulrunner/installer, + directory/c-sdk/mozldap.pc.in)
# Link .pc file (the other .pc files Require the name 'nspr',
# when using --with-system-nspr _ and nspr itself installs no .pc file
#if test "%type_raw[sys_nspr]" == "."
# then ln -s %N-nspr.pc %i/lib/pkgconfig/nspr.pc
#fi
# (=/- only) config-file, put there to avoid 'update-alternatives' with nspr; pkgs wanting this must prepend to their PATH..
#cp -p mozilla/nsprpub/config/nspr-config %i/lib/%N-%type_raw[ver]
## commented out too ! _ mozilla/nsprpub/config/nspr-config.in would need patching
# Multi user setting ; needed ???
touch %i/lib/%N-%type_raw[ver]/chrome/user-skins.rdf
touch %i/lib/%N-%type_raw[ver]/chrome/user-locales.rdf
## Install fink specific files.
# keep for the moment the file (is still functional!), as documentation,
# to compare with the original %i/bin/%N (and with run-mozilla.sh ?)
install -c -m 755 fink/mozilla %i/bin
# Move config file into %p/etc. (any use ?? or harm ?)
install -d -m 755 %i/etc/%N
install -c -m 644 fink/prefs.js %i/etc/%N
ln -sf %p/etc/%N/prefs.js %i/lib/%N-%type_raw[ver]/defaults/pref/fink.js
# Install gnome .desktop files.
install -d -m 755 %i/share/applications
install -c -m 644 fink/applications/* %i/share/applications/
# Install desktop pixmaps (rather link now... others to be linked?)
install -d -m 755 %i/share/pixmaps
ln -fs %p/lib/%N-%type_raw[ver]/chrome/icons/default/%N.png %i/share/pixmaps/%N.png
ln -fs %p/lib/%N-%type_raw[ver]/chrome/icons/default/main-window.png %i/share/pixmaps/%N_main-window.png
ln -fs %p/lib/%N-%type_raw[ver]/chrome/icons/default/addressbookWindow.png %i/share/pixmaps/%N_addressbookWindow.png
#ln -fs %p/lib/%N-%type_raw[ver]/chrome/icons/default/chatzilla this disappeared...
ln -fs %p/lib/%N-%type_raw[ver]/chrome/icons/default/editorWindow.png %i/share/pixmaps/%N_editorWindow.png
ln -fs %p/lib/%N-%type_raw[ver]/chrome/icons/default/msgcomposeWindow.png %i/share/pixmaps/%N_msgcomposeWindow.png
ln -fs %p/lib/%N-%type_raw[ver]/chrome/icons/default/messengerWindow.png %i/share/pixmaps/%N_mailnews.png
# find something ad-hoc for the rest ...
cp -p calendar/base/themes/pinstripe/cal-icon32.png %i/share/pixmaps/%N_calendar.png
cp -p suite/branding/icons/gtk/chatzilla-window.xpm %i/share/pixmaps/%N_chatzilla.xpm
cp -p mail/themes/qute/mail/newsblog/rss-feed.png %i/share/pixmaps/%N_news.png
### And all others remain in ???
# ls -l %p/bld/mozilla-1.7.11-5/mozilla/dist/bin/chrome/icons/default
# total 140
# for compatiblity with firefox etc (if "--system-nspr" is enabled, file doesn't exist,
# and it is ugly to program by "cases"...) _ anyway is no longer istalled in 2.0alpha : FIX... (some other too ?)
if test -f %i/share/aclocal/nspr.m4
then mv %i/share/aclocal/nspr.m4 %i/share/aclocal/nspr-%N.m4
fi
# Install a symlink to the docfiles
mkdir -p %i/share/doc/%N2-shlibs
ln -s %N2-shlibs %i/share/doc/%n
mv %i/lib/%N-%type_raw[ver]/README %i/share/doc/%N2-shlibs
ln -fs %p/share/doc/%N2-shlibs/README %i/lib/%N-%type_raw[ver]
<<
ConfFiles: %p/etc/%N/prefs.js
SplitOff: <<
Package: %N2-shlibs
# in deps, all 'otool_deps' are listed, and those that are not recursive deps of some other are versioned
# With dead_strip_dylibs, atk1-shlibs, libart2-shlibs, libbonobo2-shlibs, libbonoboui2-shlibs, libgettext8-shlibs,
# libgnomecanvas2-shlibs, libgnomeui2-shlibs, openssl098-shlibs, orbit2-shlibs, popt-shlibs disappear from otool_deps
Depends: <<
atk1-shlibs, cairo-shlibs, cyrus-sasl2-shlibs, dbus-glib1.2-shlibs, dbus1.3-shlibs, esound-shlibs,
fontconfig2-shlibs, freetype219-shlibs, gconf2-shlibs, glib2-shlibs, gnome-vfs2-unified-shlibs,
gtk+2-shlibs, libart2-shlibs, libbonobo2-shlibs, libbonoboui2-shlibs, libcanberra0-shlibs (>= 0.23-202),
libgettext8-shlibs, libgnome2-shlibs, libgnomecanvas2-shlibs, libgnomeui2-shlibs (>= 2.24.2-2),
libhunspell-shlibs (>= 1.2.8-1005), libjpeg8-shlibs, (%type_raw[sys_nspr] = .) nspr.0d-shlibs (>= 4.8.4-4),
openssl098-shlibs (>= 0.9.8l-1), orbit2-shlibs, pango1-xft2-ft219-shlibs, popt-shlibs,
sqlite3-shlibs(>= 3.6.16.1), startup-notification-shlibs (>= 0.9-2), x11-shlibs
<<
DocFiles: mozilla/LEGAL mozilla/LICENSE
Description: Seamonkey - shared libraries
## I see currently no reasonable way to list the bundles that can be linked from shlibs _ and those
## should probably for sanity be added here. Have some evidence that many of them in fact can...
## So, for the moment, put all of them here too...
## And let us add, for files, the subdirs lib/%N/chrome, lib/%N/greprefs and lib/%N/res _ trusting Hanspeter ...
Files: <<
lib/%N-%type_raw[ver]/lib*.dylib
lib/%N-%type_raw[ver]/chrome
lib/%N-%type_raw[ver]/components
lib/%N-%type_raw[ver]/greprefs
lib/%N-%type_raw[ver]/plugins
lib/%N-%type_raw[ver]/res
lib/%N-?
share/doc/%N2-shlibs
<<
# The following depends strongly on %c. Adjust at the last minute.
# Here all shared libs are listed. One could probably consider those in plugins as meant to be internal
# (or even all those not in %p/lib/%N-2/sdk/lib ?), and omit them.
Shlibs: <<
%p/lib/%N-2/libfreebl3.dylib 1.0.0 %n (>= 1.0-1)
%p/lib/%N-2/libgfxpsshar.dylib 1.0.0 %n (>= 1.0-1)
%p/lib/%N-2/libgkgfx.dylib 1.0.0 %n (>= 1.0-1)
%p/lib/%N-2/libgtkxtbin.dylib 1.0.0 %n (>= 1.0-1)
%p/lib/%N-2/libjsj.dylib 1.0.0 %n (>= 1.0-1)
%p/lib/%N-2/libldap60.dylib 1.0.0 %n (>= 1.0-1)
%p/lib/%N-2/libldif60.dylib 1.0.0 %n (>= 1.0-1)
%p/lib/%N-2/libmozjs.dylib 1.0.0 %n (>= 1.0-1)
%p/lib/%N-2/libmsgbaseutil.dylib 1.0.0 %n (>= 2.0.3-1)
(%type_raw[sys_nspr] = no) %p/lib/%N-2/libnspr4.dylib 1.0.0 %n (>= 1.0-1)
%p/lib/%N-2/libnss3.dylib 1.0.0 %n (>= 1.0-1)
%p/lib/%N-2/libnssdbm3.dylib 1.0.0 %n (>= 1.0-1)
%p/lib/seamonkey-2/libnssutil3.dylib 1.0.0 %n (>= 1.0-1)
(%type_raw[sys_nspr] = no) %p/lib/%N-2/libplc4.dylib 1.0.0 %n (>= 1.0-1)
(%type_raw[sys_nspr] = no) %p/lib/%N-2/libplds4.dylib 1.0.0 %n (>= 1.0-1)
%p/lib/%N-2/libprldap60.dylib 1.0.0 %n (>= 1.0-1)
%p/lib/%N-2/libsmime3.dylib 1.0.0 %n (>= 1.0-1)
%p/lib/%N-2/libsoftokn3.dylib 1.0.0 %n (>= 1.0-1)
%p/lib/%N-2/libssl3.dylib 1.0.0 %n (>= 1.0-1)
%p/lib/%N-2/libthebes.dylib 1.0.0 %n (>= 1.0-1)
%p/lib/%N-2/libxpcom.dylib 1.0.0 %n (>= 1.0-1)
%p/lib/%N-2/libxpcom_core.dylib 1.0.0 %n (>= 1.0-1)
%p/lib/%N-2/libxul.dylib 1.0.0 %n (>= 1.0-1)
%p/lib/%N-2/plugins/libnptest.dylib 1.0.0 %n (>= 1.0-1)
%p/lib/%N-2/plugins/libnullplugin.dylib 1.0.0 %n (>= 1.0-1)
%p/lib/%N-2/plugins/libunixprintplugin.dylib 1.0.0 %n (>= 1.0-1)
<<
<<
SplitOff2: <<
Package: %N2-dev
## Currently the symlink %p/lib/%N in this pkg would cause conflict with existing seamonkey.
## Intend as an upgrade strategy to first put this out w/o this symlink,
## and then, as soon as dependent pkgs have switched their deps, introduce the symlink
## at the next new version.
# Conflicts: %N-dev, %N-shlibs, librsvg2-%N, librsvg2-%N-dev, %N (<< 1.9.0-1)
Conflicts: %N-dev
Replaces: %N-dev
Depends: %N2-shlibs (= %v-%r), pkgconfig (>= 0.23-2)
BuildDependsOnly: true
Description: Seamonkey - development headers and libraries
InstallScript: <<
#!/bin/sh -ev
mkdir -p %i/lib %i/share/doc ; ln -s %N2-shlibs %i/share/doc/%n
if test -d %I/share/aclocal
then mv %I/share/aclocal %i/share
fi
V=`cut -f1 -d. <<<"%type_raw[ver]"`
# bring the whole %N-devel dir here, folding it into the main on _ and keep its name as a symlink
mv %I/lib/%N-devel-%type_raw[ver] %i/lib/%N-%type_raw[ver]
ln -fs %N-%type_raw[ver] %i/lib/%N-devel-%type_raw[ver]
mv %I/include %i
mv %I/share/idl %i/share
# fold the contents of the sdk subdir back into the main one
cd %i/lib/%N-%type_raw[ver]/sdk/lib
for f in *.dylib; do ln -fs ../../$f; done
for f in *.a; do mv $f ../..; ln -fs ../../$f; done
# make non-versioned symlinks
# ln -fs %N-$V %i/lib/%N # This one only later, when current seamonkey is phased out; next as substitute
ln -fs %N-$V %i/lib/mozilla
ln -fs %N-%type_raw[ver]/unstable %i/share/idl/%N-$V
ln -fs %N-$V %i/share/idl/%N
ln -fs %N-%type_raw[ver]/unstable %i/include/%N-$V
ln -fs %N-$V %i/include/%N
# the following symlinks correspond to ones in the %N-devel dir, which got folded in the main one
cd %i/lib/%N-%type_raw[ver]
rm -fR bin idl include lib
ln -fs . bin
ln -fs %p/share/idl/%N idl
ln -fs %p/include/%N include
ln -fs sdk/lib lib
cd -
<<
# no -config and no .pc files
<<
Description: WWW, chat, mail, news, calendar, a-book, etc
DescDetail: <<
%N is an open-source web browser, designed for standards
compliance, performance and portability.
<<
DescUsage: <<
Dependent pkgs are probably assured of more stability w.r.t.
versions of %N if using only the subset in %p/lib/%N/sdk .
No man or info pages; just launch seamonkey (or any component
_ the other components can be opened through its menus),
and use the help menus in its different windows.
Components be launched via their icons in KDE or GNOME,
or via the command "seamonkey [ -option ]" in any terminal window.
Use "seamonkey --help" to see the list of options.
The calendar must be opened via "Events and Tasks" in Mail;
"seamonkey -calendar" doesn't work at the moment.
<<
DescPort: <<
GTK+2 build of the SeaMonkey browser for Mac OS X/X11. Compiled
with built-in support for GNOME VFS2, including app launcher buttons.
The pkg is intentionally built "as enabled as possible" _ not only
because this was part of fink's original motto, but also because users
wanting a "skinny" version have other alternatives like firefox...
The whole shlibs stuff is gratuitous: anyway the src doesn't version shared libs for darwin...
Have no time now to patch that (it is not a single place to fix...)
Adding (in patchfile) %p/lib/%N/components to DYLD_LIBRARY_PATH _ else links with qt3's libeditor...
(then added also plugins and ipc/modules, by analogy).
Use same path in update-%N-chrome.
The maneuvering with flags is required by the update of cairo to 1.2.6,
which requires ft219 (and hence possibly the corresponding pango for consistency).
A bunch of warnings still to look at:
warning: invalid access to non-static data member '...' of NULL object
A couple of details:
--enable-macos-target=10.4 (or: whatever tree it is put in) is needed because else
it set to 10.4 on intel and to some old value on powerpc.
--enable-freetype2 became with the transition to seamonkey incompatible with --enable-xft;
the latter seems more appropriate for a pure gnome build.
Some configureparams have no effect, and are still there for various reasons
_ chiefly, "orthogonality" ; eg :
- "--with-qtdir=" would would presumably be useful only with qt as toolkit;
but this preserves orthogonality between specifications of locations and choices of toolkits
- "--with-system-mng" is no longer useful since long _ but there was an intention at the
start of the seamonkey project to bring back the use of mng _ so let's leave it, till it is
clear this is abandoned.
- a few configureparams may be introduced only in later snapshots or beta versions,
and be set here to the same values I use in (my private copy of) those
- note finally that some configureparams (eg, --enable-cplus) appear and are documented
only in the configure scripts of subdirs.
2010-08-26: AKH added patch from the patch tracker, courtesy of Diego Caravana, to allow the
package actually to build on 10.6 (still works on 10.5):
https://sourceforge.net/tracker/?func=detail&aid=3053270&group_id=17203&atid=317203
<<
DescPackaging: <<
After original packaging and porting of mozilla by msek
Simpler _ even for user _ to have just %N, %N-dev and %N-shlibs
<<
License: OSI-Approved
Maintainer: The Gnome Core Team
Homepage: http://www.mozilla.org/projects/seamonkey/
<<
diff -Nurd -x'*~' comm-1.9.1.orig/fink/applications/Seamonkey-address.desktop comm-1.9.1/fink/applications/Seamonkey-address.desktop
--- comm-1.9.1.orig/fink/applications/Seamonkey-address.desktop 1969-12-31 19:00:00.000000000 -0500
+++ comm-1.9.1/fink/applications/Seamonkey-address.desktop 2010-04-15 12:41:34.000000000 -0400
@@ -0,0 +1,11 @@
+[Desktop Entry]
+Encoding=UTF-8
+Name=Seamonkey Addressbook
+Comment=Addressbook from Seamonkey Mailnews
+Exec=seamonkey -addressbook
+Icon=seamonkey_addressbookWindow.png
+Terminal=false
+MultipleArgs=false
+Type=Application
+Categories=Application;Network;
+StartupNotify=true
diff -Nurd -x'*~' comm-1.9.1.orig/fink/applications/Seamonkey-calendar.desktop comm-1.9.1/fink/applications/Seamonkey-calendar.desktop
--- comm-1.9.1.orig/fink/applications/Seamonkey-calendar.desktop 1969-12-31 19:00:00.000000000 -0500
+++ comm-1.9.1/fink/applications/Seamonkey-calendar.desktop 2010-04-15 12:41:34.000000000 -0400
@@ -0,0 +1,11 @@
+[Desktop Entry]
+Encoding=UTF-8
+Name=Seamonkey Calendar
+Comment=Seamonkey Calendar
+Exec=seamonkey -mail
+Icon=seamonkey_calendar.png
+Terminal=false
+MultipleArgs=false
+Type=Application
+Categories=Application;Network;
+StartupNotify=true
diff -Nurd -x'*~' comm-1.9.1.orig/fink/applications/Seamonkey-chatzilla.desktop comm-1.9.1/fink/applications/Seamonkey-chatzilla.desktop
--- comm-1.9.1.orig/fink/applications/Seamonkey-chatzilla.desktop 1969-12-31 19:00:00.000000000 -0500
+++ comm-1.9.1/fink/applications/Seamonkey-chatzilla.desktop 2010-04-15 12:41:34.000000000 -0400
@@ -0,0 +1,11 @@
+[Desktop Entry]
+Encoding=UTF-8
+Name=Chatzilla
+Comment=Seamonkey Chatzilla IRC client
+Exec=seamonkey -chat
+Icon=seamonkey_chatzilla.xpm
+Terminal=false
+MultipleArgs=false
+Type=Application
+Categories=Application;Network;
+StartupNotify=true
diff -Nurd -x'*~' comm-1.9.1.orig/fink/applications/Seamonkey-editor.desktop comm-1.9.1/fink/applications/Seamonkey-editor.desktop
--- comm-1.9.1.orig/fink/applications/Seamonkey-editor.desktop 1969-12-31 19:00:00.000000000 -0500
+++ comm-1.9.1/fink/applications/Seamonkey-editor.desktop 2010-04-15 12:41:34.000000000 -0400
@@ -0,0 +1,10 @@
+[Desktop Entry]
+Encoding=UTF-8
+Name=Seamonkey Composer
+Comment=HTML editor from Seamonkey project
+Exec=seamonkey -edit
+Icon=seamonkey_editorWindow.png
+Terminal=false
+Type=Application
+Categories=Application;Network;
+StartupNotify=true
diff -Nurd -x'*~' comm-1.9.1.orig/fink/applications/Seamonkey-mail-composer.desktop comm-1.9.1/fink/applications/Seamonkey-mail-composer.desktop
--- comm-1.9.1.orig/fink/applications/Seamonkey-mail-composer.desktop 1969-12-31 19:00:00.000000000 -0500
+++ comm-1.9.1/fink/applications/Seamonkey-mail-composer.desktop 2010-04-15 12:41:34.000000000 -0400
@@ -0,0 +1,11 @@
+[Desktop Entry]
+Encoding=UTF-8
+Name=Seamonkey Mail Composer
+Comment=Seamonkey Mail Composer
+Exec=seamonkey -compose
+Icon=seamonkey_msgcomposeWindow.png
+Terminal=false
+MultipleArgs=false
+Type=Application
+Categories=Application;Network;
+StartupNotify=true
diff -Nurd -x'*~' comm-1.9.1.orig/fink/applications/Seamonkey-mail.desktop comm-1.9.1/fink/applications/Seamonkey-mail.desktop
--- comm-1.9.1.orig/fink/applications/Seamonkey-mail.desktop 1969-12-31 19:00:00.000000000 -0500
+++ comm-1.9.1/fink/applications/Seamonkey-mail.desktop 2010-04-15 12:41:34.000000000 -0400
@@ -0,0 +1,11 @@
+[Desktop Entry]
+Encoding=UTF-8
+Name=Seamonkey Mail
+Comment=Seamonkey Mail
+Exec=seamonkey -mail
+Icon=seamonkey_mailnews.png
+Terminal=false
+MultipleArgs=false
+Type=Application
+Categories=Application;Network;
+StartupNotify=true
diff -Nurd -x'*~' comm-1.9.1.orig/fink/applications/Seamonkey-news.desktop comm-1.9.1/fink/applications/Seamonkey-news.desktop
--- comm-1.9.1.orig/fink/applications/Seamonkey-news.desktop 1969-12-31 19:00:00.000000000 -0500
+++ comm-1.9.1/fink/applications/Seamonkey-news.desktop 2010-04-15 12:41:34.000000000 -0400
@@ -0,0 +1,11 @@
+[Desktop Entry]
+Encoding=UTF-8
+Name=Seamonkey News
+Comment=Seamonkey News
+Exec=seamonkey -news
+Icon=seamonkey_news.png
+Terminal=false
+MultipleArgs=false
+Type=Application
+Categories=Application;Network;
+StartupNotify=true
diff -Nurd -x'*~' comm-1.9.1.orig/fink/applications/Seamonkey.desktop comm-1.9.1/fink/applications/Seamonkey.desktop
--- comm-1.9.1.orig/fink/applications/Seamonkey.desktop 1969-12-31 19:00:00.000000000 -0500
+++ comm-1.9.1/fink/applications/Seamonkey.desktop 2010-04-15 12:41:34.000000000 -0400
@@ -0,0 +1,10 @@
+[Desktop Entry]
+Encoding=UTF-8
+Name=Seamonkey Web Browser
+Comment=Browse the World Wide Web
+Exec=seamonkey
+Icon=seamonkey.png
+Terminal=false
+Type=Application
+Categories=Application;Network;
+StartupNotify=true
diff -Nurd -x'*~' comm-1.9.1.orig/fink/mozilla comm-1.9.1/fink/mozilla
--- comm-1.9.1.orig/fink/mozilla 1969-12-31 19:00:00.000000000 -0500
+++ comm-1.9.1/fink/mozilla 2010-04-15 12:41:34.000000000 -0400
@@ -0,0 +1,98 @@
+#!/bin/sh
+#
+# The contents of this file are subject to the Netscape Public
+# License Version 1.1 (the "License"); you may not use this file
+# except in compliance with the License. You may obtain a copy of
+# the License at http://www.mozilla.org/NPL/
+#
+# Software distributed under the License is distributed on an "AS
+# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
+# implied. See the License for the specific language governing
+# rights and limitations under the License.
+#
+# The Original Code is mozilla.org code.
+#
+# The Initial Developer of the Original Code is Netscape
+# Communications Corporation. Portions created by Netscape are
+# Copyright (C) 1998 Netscape Communications Corporation. All
+# Rights Reserved.
+#
+# Contributor(s):
+#
+
+##
+## Usage:
+##
+## $ mozilla
+##
+## This script is meant to run a mozilla program from the mozilla
+## rpm installation.
+##
+## The script will setup all the environment voodoo needed to make
+## mozilla work.
+
+##
+## Variables
+##
+## Set MOZILLA_FIVE_HOME
+##
+MOZILLA_FIVE_HOME="Pr/lib/seamonkey-2"
+export MOZILLA_FIVE_HOME
+
+MOZ_PROGRAM="${MOZILLA_FIVE_HOME}/seamonkey-bin"
+
+##
+## Set DYLD_LIBRARY_PATH
+##
+DYLD_LIBRARY_PATH=${MOZILLA_FIVE_HOME}:${MOZILLA_FIVE_HOME}/components:${MOZILLA_FIVE_HOME}/plugins:${MOZILLA_FIVE_HOME}/ipc/modules:$DYLD_LIBRARY_PATH
+export DYLD_LIBRARY_PATH
+
+# If there is no command line argument at all then try to open a new
+# window in an already running instance.
+
+if [ -z "$1" ]; then
+ $MOZ_PROGRAM -remote "openurl(about:blank,new-window)" >/dev/null
+ RETURN_VAL=$?
+ if [ "$RETURN_VAL" -eq "2" ]; then
+ $MOZ_PROGRAM ${1+"$@"}
+ RETURN_VAL=$?
+ fi
+ exit $RETURN_VAL
+fi
+
+# If there's a command line argument but it doesn't begin with a -
+# it's probably a url. Try to send it to a running instance.
+
+USE_EXIST=0
+opt="$1"
+case "$opt" in
+ -*) ;;
+ *) USE_EXIST=1 ;;
+esac
+
+if [ "${USE_EXIST}" -eq "1" ]; then
+ # check to make sure that the command contains at least a :/ in it.
+ echo $opt | grep -e ':/' 2>/dev/null >/dev/null
+ RETURN_VAL=$?
+ if [ "$RETURN_VAL" -eq "1" ]; then
+ # does it begin with a / ?
+ echo $opt | grep -e '^/' >/dev/null
+ RETURN_VAL=$?
+ if [ "$RETURN_VAL" -eq "0" ]; then
+ opt="file:$opt"
+ elif [ -e `pwd`/$opt ]; then
+ opt="`pwd`/$opt"
+ else
+ opt="http://$opt"
+ fi
+ fi
+ $MOZ_PROGRAM -remote "openurl($opt,new-window)" >/dev/null
+ RETURN_VAL=$?
+ if [ "$RETURN_VAL" -eq "2" ]; then
+ $MOZ_PROGRAM ${1+"$@"}
+ RETURN_VAL=$?
+ fi
+ exit $RETURN_VAL
+fi
+
+$MOZ_PROGRAM ${1+"$@"}
diff -Nurd -x'*~' comm-1.9.1.orig/fink/prefs.js comm-1.9.1/fink/prefs.js
--- comm-1.9.1.orig/fink/prefs.js 1969-12-31 19:00:00.000000000 -0500
+++ comm-1.9.1/fink/prefs.js 2010-04-15 12:41:34.000000000 -0400
@@ -0,0 +1,32 @@
+// XIM style
+pref("xim.input_style", "over-the-spot");
+
+// TrueType
+pref("font.FreeType2.enable", true);
+pref("font.freetype2.shared-library", "Xd/lib/libfreetype.6.dylib");
+pref("font.FreeType2.autohinted", true);
+pref("font.FreeType2.unhinted", true);
+pref("font.antialias.min", 10);
+pref("font.embedded_bitmaps.max", 1000000);
+pref("font.scale.tt_bitmap.dark_text.min", 64);
+pref("font.scale.tt_bitmap.dark_text.gain", "0.0");
+pref("font.directory.truetype.1", "/Library/Fonts");
+pref("font.directory.truetype.2", "/Network/Library/Fonts");
+pref("font.directory.truetype.3", "/System/Library/Fonts");
+pref("font.directory.truetype.4", "Xd/lib/X11/fonts/TTF");
+// Doesn't even seem to exist anymore ..
+pref("font.directory.truetype.5", "Pr/share/fonts/truetype");
+// Instead, all the following _ no way to have just 1 "Pr/lib/X11/fonts/*" ?
+pref("font.directory.truetype.6", "Pr/lib/X11/fonts/applettf");
+pref("font.directory.truetype.7", "Pr/lib/X11/fonts/intl");
+pref("font.directory.truetype.8", "Pr/lib/X11/fonts/kochi-subst");
+pref("font.directory.truetype.9", "Pr/lib/X11/fonts/latex-xft-fonts");
+pref("font.directory.truetype.10", "Pr/lib/X11/fonts/mona");
+pref("font.directory.truetype.11", "Pr/lib/X11/fonts/msttf");
+
+
+// AA with Bitmap scaling.
+pref("font.scale.aa_bitmap.enable", true);
+pref("font.scale.aa_bitmap.always", false);
+pref("font.scale.aa_bitmap.min", 6);
+