/[fink]/10.3/main/finkinfo/net/firefox2.patch
ViewVC logotype

Annotation of /10.3/main/finkinfo/net/firefox2.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (hide annotations) (download)
Fri Sep 1 15:04:01 2006 UTC (17 years, 8 months ago) by nieder
Branch: MAIN
Changes since 1.1: +4 -4 lines
updating bookmarks.html chunk to 2.0b2 release

1 nieder 1.1 diff -ruN mozilla-orig/.mozconfig mozilla/.mozconfig
2     --- mozilla-orig/.mozconfig Wed Dec 31 19:00:00 1969
3     +++ mozilla/.mozconfig Tue Jun 20 11:43:33 2006
4     @@ -0,0 +1,43 @@
5     +# sh
6     +# Build configuration script
7     +#
8     +# See http://www.mozilla.org/build/unix.html for build instructions.
9     +#
10     +
11     +. $topsrcdir/browser/config/mozconfig
12     +
13     +# Options for client.mk.
14     +# environment variables to set
15     +mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/obj-@CONFIG_GUESS@
16     +
17     +# Options for 'configure' (same as command-line options).
18     +ac_add_options --prefix=@PREFIX@
19     +ac_add_options --enable-official-branding
20     +ac_add_options --enable-default-toolkit=gtk2
21     +ac_add_options --enable-xft
22     +#ac_add_options --disable-xft
23     +#ac_add_options --enable-freetype2
24     +ac_add_options --disable-freetype2
25     +ac_add_options --enable-postscript
26     +ac_add_options --enable-xinerama
27     +ac_add_options --with-pthreads
28     +ac_add_options --disable-gnomevfs
29     +ac_add_options --disable-gnomeui
30     +ac_add_options --enable-extensions=default,-gnomevfs,xforms,schema-validation
31     +ac_add_options --enable-canvas
32     +ac_add_options --enable-svg
33     +
34     +# prebinding disabled or otherwise don't get binary
35     +ac_add_options --disable-prebinding
36     +ac_add_options --disable-debug
37     +ac_add_options --disable-tests
38     +ac_add_options --enable-strip
39     +ac_add_options --enable-optimize='-Os'
40     +ac_add_options --enable-macos-target=10.3
41     +ac_add_options --with-default-mozilla-five-home=@PREFIX@/lib/firefox2
42     +ac_add_options --with-system-jpeg=@PREFIX@
43     +ac_add_options --with-system-png=@PREFIX@
44     +ac_add_options --with-system-zlib=/usr
45     +
46     +#ac_add_options --with-ft-prefix=@PREFIX@/lib/freetype2
47     +#ac_add_options --with-ft-exec-prefix=@PREFIX@/lib/freetype2/bin
48     diff -ruN mozilla-orig/browser/app/mozilla.in mozilla/browser/app/mozilla.in
49     --- mozilla-orig/browser/app/mozilla.in Wed May 10 12:23:59 2006
50     +++ mozilla/browser/app/mozilla.in Tue Jun 20 11:43:33 2006
51     @@ -99,7 +99,9 @@
52     # If not, then start resolving symlinks until we find run-mozilla.sh
53     found=0
54     progname="$0"
55     -curdir=`dirname "$progname"`
56     +#curdir=`dirname "$progname"`
57     +# looking in %p/bin, not %p/lib/firefox, so fixing to $moz_libdir
58     +curdir="$moz_libdir"
59     progbase=`basename "$progname"`
60     run_moz="$curdir/run-mozilla.sh"
61     if test -x "$run_moz"; then
62     @@ -140,9 +142,75 @@
63     debugging=0
64     MOZILLA_BIN="${progbase}-bin"
65    
66     +# The following is to check for a currently running instance.
67     +# This is taken almost verbatim from the Mozilla RPM package's launch script.
68     +MOZ_CLIENT_PROGRAM="$dist_bin/mozilla-xremote-client"
69     +check_running() {
70     + "${run_moz}" "$MOZ_CLIENT_PROGRAM" -a "${progbase}" 'ping()' 2>/dev/null >/dev/null
71     + RETURN_VAL=$?
72     + if [ $RETURN_VAL -eq 0 ]; then
73     + echo 1
74     + return 1
75     + else
76     + echo 0
77     + return 0
78     + fi
79     +}
80     +
81     if [ "$OSTYPE" = "beos" ]; then
82     mimeset -F "$MOZILLA_BIN"
83     fi
84     +
85     +ALREADY_RUNNING=`check_running`
86     +
87     +################################################################ Parse Arguments
88     +# If there's a command line argument but it doesn't begin with a -
89     +# it's probably a url. Try to send it to a running instance.
90     +_USE_EXIST=0
91     +_optOne="$1"
92     +case "${_optOne}" in
93     + -*)
94     + ;;
95     + *)
96     + _USE_EXIST=1
97     + ;;
98     +esac
99     +
100     +_optLast=
101     +for i in "$@"; do
102     + _optLast="${i}"
103     +done #last arg
104     +
105     +if [ `expr "${_optLast}" : '.*:/.*'` -eq 0 -a \( -f "${_optLast}" -o -d "${_optLast}" \) ]; then
106     + # Last argument seems to be a local file/directory
107     + # Check, if it is absolutely specified (ie. /home/foo/file vs. ./file)
108     + # If it is just "relatively" (./file) specified, make it absolutely
109     + [ `expr "${_optLast}" : '/.*'` -eq 0 ] && _optLast="file://`pwd`/${_optLast}"
110     +fi
111     +################################################################ Parse Arguments
112     +
113     +########################################################################### Main
114     +if [ $ALREADY_RUNNING -eq 1 ]; then
115     + # There's an instance already running. Use it.
116     + # Any command line args passed in?
117     + if [ $# -gt 0 ]; then
118     + # There were "some" command line args.
119     + if [ ${_USE_EXIST} -eq 1 ]; then
120     + # We should use an existing instance, as _USE_EXIST=$_USE_EXIST=-1
121     + _remote_cmd="openURL(${_optLast})"
122     + "${run_moz}" "$MOZ_CLIENT_PROGRAM" -a "${progbase}" "${_remote_cmd}"
123     + unset _remote_cmd
124     + exit $?
125     + fi
126     + else
127     + # No command line args. Open new window/tab
128     + #exec "${run_moz}" "$MOZ_CLIENT_PROGRAM" -a "${progbase}" "xfeDoCommand(openBrowser)"
129     + "${run_moz}" "$MOZ_CLIENT_PROGRAM" -a "${progbase}" "xfeDoCommand(openBrowser)"
130     + exit $?
131     + fi
132     +fi
133     +# Default action - no running instance or _USE_EXIST (${_USE_EXIST}) ! -eq 1
134     +########################################################################### Main
135    
136     pass_arg_count=0
137     while [ $# -gt $pass_arg_count ]
138     diff -ruN mozilla-orig/browser/locales/en-US/profile/bookmarks.html mozilla/browser/locales/en-US/profile/bookmarks.html
139     --- mozilla-orig/browser/locales/en-US/profile/bookmarks.html Tue May 16 15:44:44 2006
140     +++ mozilla/browser/locales/en-US/profile/bookmarks.html Tue Jun 20 11:43:33 2006
141 nieder 1.2 @@ -14,6 +14,7 @@
142 nieder 1.1 <DL><p>
143 nieder 1.2 <DT><A HREF="http://en-US.www.mozilla.com/en-US/firefox/central/" ICON="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAHWSURBVHjaYvz//z8DJQAggJiQOe/fv2fv7Oz8rays/N+VkfG/iYnJfyD/1+rVq7ffu3dPFpsBAAHEAHIBCJ85c8bN2Nj4vwsDw/8zQLwKiO8CcRoQu0DxqlWrdsHUwzBAAIGJmTNnPgYa9j8UqhFElwPxf2MIDeIrKSn9FwSJoRkAEEAM0DD4DzMAyPi/G+QKY4hh5WAXGf8PDQ0FGwJ22d27CjADAAIIrLmjo+MXA9R2kAHvGBA2wwx6B8W7od6CeQcggKCmCEL8bgwxYCbUIGTDVkHDBia+CuotgACCueD3TDQN75D4xmAvCoK9ARMHBzAw0AECiBHkAlC0Mdy7x9ABNA3obAZXIAa6iKEcGlMVQHwWyjYuL2d4v2cPg8vZswx7gHyAAAK7AOif7SAbOqCmn4Ha3AHFsIDtgPq/vLz8P4MSkJ2W9h8ggBjevXvHDo4FQUQg/kdypqCg4H8lUIACnQ/SOBMYI8bAsAJFPcj1AAEEjwVQqLpAbXmH5BJjqI0gi9DTAAgDBBCcAVLkgmQ7yKCZxpCQxqUZhAECCJ4XgMl493ug21ZD+aDAXH0WLM4A9MZPXJkJIIAwTAR5pQMalaCABQUULttBGCCAGCnNzgABBgAMJ5THwGvJLAAAAABJRU5ErkJggg==" ID="rdf:#$GvPhC3">Getting Started</A>
144     <DT><A HREF="http://en-US.fxfeeds.mozilla.com/en-US/firefox/livebookmarks/" FEEDURL="http://en-US.fxfeeds.mozilla.com/en-US/firefox/headlines.xml" ID="rdf:#$HvPhC3">Latest Headlines</A>
145 nieder 1.1 + <DT><A HREF="http://fink.sourceforge.net/">Fink - Home</A>
146     </DL><p>
147     <HR>
148 nieder 1.2 <DT><H3 ID="rdf:#$ZvPhC3">Mozilla Firefox</H3>
149 nieder 1.1 diff -ruN mozilla-orig/config/autoconf.mk.in mozilla/config/autoconf.mk.in
150     --- mozilla-orig/config/autoconf.mk.in Mon Jun 19 09:49:54 2006
151     +++ mozilla/config/autoconf.mk.in Tue Jun 20 11:43:33 2006
152     @@ -57,14 +57,14 @@
153     prefix = @prefix@
154     exec_prefix = @exec_prefix@
155     bindir = @bindir@
156     -includedir = @includedir@/$(MOZ_APP_NAME)-$(MOZ_APP_VERSION)
157     +includedir = @includedir@/$(MOZ_APP_NAME)2
158     libdir = @libdir@
159     datadir = @datadir@
160     mandir = @mandir@
161     -idldir = @datadir@/idl/$(MOZ_APP_NAME)-$(MOZ_APP_VERSION)
162     +idldir = @datadir@/idl/$(MOZ_APP_NAME)2
163    
164     -mozappdir = $(libdir)/$(MOZ_APP_NAME)-$(MOZ_APP_VERSION)
165     -mredir = $(libdir)/mre/mre-$(MOZ_APP_VERSION)
166     +mozappdir = $(libdir)/$(MOZ_APP_NAME)2
167     +mredir = $(libdir)/mre/mre2
168     mrelibdir = $(mredir)/lib
169    
170     DIST = $(DEPTH)/dist
171     diff -ruN mozilla-orig/config/config.mk mozilla/config/config.mk
172     --- mozilla-orig/config/config.mk Tue Apr 18 13:02:19 2006
173     +++ mozilla/config/config.mk Tue Jun 20 11:43:33 2006
174     @@ -660,7 +660,7 @@
175     ifeq ($(OS_ARCH),Darwin)
176     ifdef USE_PREBINDING
177     export LD_PREBIND=1
178     -export LD_SEG_ADDR_TABLE=$(shell cd $(topsrcdir); pwd)/config/prebind-address-table
179     +export LD_PREBIND_ALLOW_OVERLAP=1
180     endif # USE_PREBINDING
181     ifdef NEXT_ROOT
182     export NEXT_ROOT
183     diff -ruN mozilla-orig/configure mozilla/configure
184     --- mozilla-orig/configure Mon Jun 19 09:49:47 2006
185     +++ mozilla/configure Tue Jun 20 11:43:33 2006
186     @@ -5549,7 +5549,7 @@
187     ;;
188    
189     *-darwin*)
190     - HOST_CFLAGS="$HOST_CFLAGS -DXP_UNIX -DXP_MACOSX -DNO_X11"
191     + HOST_CFLAGS="$HOST_CFLAGS -DXP_UNIX"
192     HOST_NSPR_MDCPUCFG='\"md/_darwin.cfg\"'
193     HOST_OPTIMIZE_FLAGS="${HOST_OPTIMIZE_FLAGS=-O3}"
194     MOZ_FIX_LINK_PATHS='-Wl,-executable_path,$(DIST)/bin'
195     @@ -5839,10 +5839,10 @@
196     MKCSHLIB='$(CC) $(CFLAGS) $(DSO_PIC_CFLAGS) $(DSO_LDOPTS) -o $@'
197    
198     _PEDANTIC=
199     - CFLAGS="$CFLAGS -fpascal-strings -no-cpp-precomp -fno-common"
200     - CXXFLAGS="$CXXFLAGS -fpascal-strings -no-cpp-precomp -fno-common"
201     + CFLAGS="$CFLAGS -no-cpp-precomp -fno-common"
202     + CXXFLAGS="$CXXFLAGS -no-cpp-precomp -fno-common"
203     DLL_SUFFIX=".dylib"
204     - DSO_LDOPTS=''
205     + DSO_LDOPTS='-framework CoreFoundation'
206     STRIP="$STRIP -x -S"
207     _PLATFORM_DEFAULT_TOOLKIT='mac'
208     MOZ_ENABLE_POSTSCRIPT=
209     diff -ruN mozilla-orig/fink/applications/firefox.desktop mozilla/fink/applications/firefox.desktop
210     --- mozilla-orig/fink/applications/firefox.desktop Wed Dec 31 19:00:00 1969
211     +++ mozilla/fink/applications/firefox.desktop Tue Jun 20 11:43:33 2006
212     @@ -0,0 +1,10 @@
213     +[Desktop Entry]
214     +Encoding=UTF-8
215     +Name=Firefox Web Browser
216     +Comment=Browse the World Wide Web
217     +Exec=firefox
218     +Icon=firefox.xpm
219     +Terminal=false
220     +Type=Application
221     +Categories=Application;Network
222     +StartupNotify=true
223     diff -ruN mozilla-orig/fink/fink.js mozilla/fink/fink.js
224     --- mozilla-orig/fink/fink.js Wed Dec 31 19:00:00 1969
225     +++ mozilla/fink/fink.js Tue Jun 20 11:43:33 2006
226     @@ -0,0 +1,27 @@
227     +pref("general.useragent.extra.vendorComment", "Fink Community Edition");
228     +
229     +// Give a default font set that can do BOLD
230     +pref("font.name.serif.x-western", "Bitstream Vera Serif");
231     +pref("font.name.sans-serif.x-western", "Bitstream Vera Sans");
232     +pref("font.size.variable.x-western", 15);
233     +
234     +// TrueType
235     +//pref("font.FreeType2.enable", true);
236     +//pref("font.freetype2.shared-library", "@PREFIX@/lib/freetype2/lib/libfreetype.6.dylib");
237     +//pref("font.freetype2.shared-library", "/usr/X11R6/lib/libfreetype.6.dylib");
238     +//pref("font.freetype2.autohinted", true);
239     +//pref("font.freetype2.unhinted", true);
240     +//pref("font.antialias.min", 10);
241     +//pref("font.embedded_bitmaps.max", 1000000);
242     +//pref("font.scale.tt_bitmap.dark_text.min", 64);
243     +//pref("font.scale.tt_bitmap.dark_text.gain", "0.0");
244     +//pref("font.directory.truetype.1", "/Library/Fonts");
245     +//pref("font.directory.truetype.2", "/Network/Library/Fonts");
246     +//pref("font.directory.truetype.3", "/System/Library/Fonts");
247     +//pref("font.directory.truetype.4", "/usr/X11R6/lib/X11/fonts/TTF");
248     +//pref("font.directory.truetype.5", "@PREFIX@/share/fonts/truetype");
249     +
250     +// AA with Bitmap scaling.
251     +//pref("font.scale.aa_bitmap.enable", true);
252     +//pref("font.scale.aa_bitmap.always", false);
253     +//pref("font.scale.aa_bitmap.min", 6);
254     diff -ruN mozilla-orig/modules/libpref/src/nsPrefService.cpp mozilla/modules/libpref/src/nsPrefService.cpp
255     --- mozilla-orig/modules/libpref/src/nsPrefService.cpp Wed May 10 12:23:59 2006
256     +++ mozilla/modules/libpref/src/nsPrefService.cpp Tue Jun 20 11:43:33 2006
257     @@ -748,6 +748,7 @@
258     #elif defined(XP_BEOS)
259     "beos.js"
260     #endif
261     + , "fink.js"
262     };
263    
264     rv = pref_LoadPrefsInDir(defaultPrefDir, specialFiles, NS_ARRAY_LENGTH(specialFiles));

  ViewVC Help
Powered by ViewVC 1.1.17