/[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.5 - (hide annotations) (download)
Tue Apr 10 19:20:52 2007 UTC (17 years, 1 month ago) by nieder
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +74 -19 lines
new minor version and return to ./configure

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 nieder 1.5 @@ -0,0 +1,43 @@
5 nieder 1.1 +# 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 nieder 1.5 +#ac_add_options --enable-official-branding
20 nieder 1.1 +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 nieder 1.5 +#ac_add_options --disable-freetype2
25 nieder 1.1 +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 nieder 1.5 +ac_add_options --enable-optimize='-O2'
40 nieder 1.1 +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 nieder 1.5 +ac_add_options --with-freetype-prefix=@PREFIX@/lib/freetype219
45 nieder 1.1 +
46 nieder 1.5 +#ac_add_options --with-ft-prefix=@PREFIX@/lib/freetype219
47     +#ac_add_options --with-ft-exec-prefix=@PREFIX@/lib/freetype219/bin
48 nieder 1.1 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 nieder 1.5 diff -ruN mozilla-orig/browser/components/build/Makefile.in mozilla/browser/components/build/Makefile.in
139 nieder 1.4 --- mozilla-orig/browser/components/build/Makefile.in Tue Oct 31 10:55:32 2006
140     +++ mozilla/browser/components/buildMakefile.in Tue Oct 31 11:01:11 2006
141     @@ -113,6 +113,12 @@
142     EXTRA_DSO_LDOPTS += $(DIST)/lib/$(LIB_PREFIX)morkreader_s.$(LIB_SUFFIX)
143     endif
144    
145     +# fix for building on Mac/X11 (bug 257773)
146     +# dependencies for gkgfx
147     +ifeq ($(MOZ_WIDGET_TOOLKIT), gtk2)
148     +EXTRA_DSO_LDOPTS += $(MOZ_GTK2_LIBS)
149     +endif
150     +
151     # Mac: Need to link to CoreFoundation for Mac Migrators (PList reading code)
152     # GTK2: Need to link with glib for GNOME shell service
153     ifneq (,$(filter mac cocoa gtk2,$(MOZ_WIDGET_TOOLKIT)))
154 nieder 1.1 diff -ruN mozilla-orig/browser/locales/en-US/profile/bookmarks.html mozilla/browser/locales/en-US/profile/bookmarks.html
155     --- mozilla-orig/browser/locales/en-US/profile/bookmarks.html Tue May 16 15:44:44 2006
156     +++ mozilla/browser/locales/en-US/profile/bookmarks.html Tue Jun 20 11:43:33 2006
157 nieder 1.2 @@ -14,6 +14,7 @@
158 nieder 1.1 <DL><p>
159 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>
160     <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>
161 nieder 1.1 + <DT><A HREF="http://fink.sourceforge.net/">Fink - Home</A>
162     </DL><p>
163     <HR>
164 nieder 1.2 <DT><H3 ID="rdf:#$ZvPhC3">Mozilla Firefox</H3>
165 nieder 1.1 diff -ruN mozilla-orig/config/autoconf.mk.in mozilla/config/autoconf.mk.in
166     --- mozilla-orig/config/autoconf.mk.in Mon Jun 19 09:49:54 2006
167     +++ mozilla/config/autoconf.mk.in Tue Jun 20 11:43:33 2006
168     @@ -57,14 +57,14 @@
169     prefix = @prefix@
170     exec_prefix = @exec_prefix@
171     bindir = @bindir@
172     -includedir = @includedir@/$(MOZ_APP_NAME)-$(MOZ_APP_VERSION)
173     +includedir = @includedir@/$(MOZ_APP_NAME)2
174     libdir = @libdir@
175     datadir = @datadir@
176     mandir = @mandir@
177     -idldir = @datadir@/idl/$(MOZ_APP_NAME)-$(MOZ_APP_VERSION)
178     +idldir = @datadir@/idl/$(MOZ_APP_NAME)2
179    
180     -mozappdir = $(libdir)/$(MOZ_APP_NAME)-$(MOZ_APP_VERSION)
181     -mredir = $(libdir)/mre/mre-$(MOZ_APP_VERSION)
182     +mozappdir = $(libdir)/$(MOZ_APP_NAME)2
183     +mredir = $(libdir)/mre/mre2
184     mrelibdir = $(mredir)/lib
185    
186     DIST = $(DEPTH)/dist
187     diff -ruN mozilla-orig/config/config.mk mozilla/config/config.mk
188     --- mozilla-orig/config/config.mk Tue Apr 18 13:02:19 2006
189     +++ mozilla/config/config.mk Tue Jun 20 11:43:33 2006
190 nieder 1.3 @@ -665,7 +665,7 @@
191 nieder 1.1 ifeq ($(OS_ARCH),Darwin)
192     ifdef USE_PREBINDING
193     export LD_PREBIND=1
194     -export LD_SEG_ADDR_TABLE=$(shell cd $(topsrcdir); pwd)/config/prebind-address-table
195     +export LD_PREBIND_ALLOW_OVERLAP=1
196     endif # USE_PREBINDING
197     ifdef NEXT_ROOT
198     export NEXT_ROOT
199     diff -ruN mozilla-orig/configure mozilla/configure
200     --- mozilla-orig/configure Mon Jun 19 09:49:47 2006
201     +++ mozilla/configure Tue Jun 20 11:43:33 2006
202     @@ -5549,7 +5549,7 @@
203     ;;
204    
205     *-darwin*)
206     - HOST_CFLAGS="$HOST_CFLAGS -DXP_UNIX -DXP_MACOSX -DNO_X11"
207     + HOST_CFLAGS="$HOST_CFLAGS -DXP_UNIX"
208     HOST_NSPR_MDCPUCFG='\"md/_darwin.cfg\"'
209     HOST_OPTIMIZE_FLAGS="${HOST_OPTIMIZE_FLAGS=-O3}"
210     MOZ_FIX_LINK_PATHS='-Wl,-executable_path,$(DIST)/bin'
211     @@ -5839,10 +5839,10 @@
212     MKCSHLIB='$(CC) $(CFLAGS) $(DSO_PIC_CFLAGS) $(DSO_LDOPTS) -o $@'
213    
214     _PEDANTIC=
215     - CFLAGS="$CFLAGS -fpascal-strings -no-cpp-precomp -fno-common"
216     - CXXFLAGS="$CXXFLAGS -fpascal-strings -no-cpp-precomp -fno-common"
217     + CFLAGS="$CFLAGS -no-cpp-precomp -fno-common"
218     + CXXFLAGS="$CXXFLAGS -no-cpp-precomp -fno-common"
219     DLL_SUFFIX=".dylib"
220     - DSO_LDOPTS=''
221     + DSO_LDOPTS='-framework CoreFoundation'
222     STRIP="$STRIP -x -S"
223     _PLATFORM_DEFAULT_TOOLKIT='mac'
224     MOZ_ENABLE_POSTSCRIPT=
225     diff -ruN mozilla-orig/fink/applications/firefox.desktop mozilla/fink/applications/firefox.desktop
226     --- mozilla-orig/fink/applications/firefox.desktop Wed Dec 31 19:00:00 1969
227     +++ mozilla/fink/applications/firefox.desktop Tue Jun 20 11:43:33 2006
228     @@ -0,0 +1,10 @@
229     +[Desktop Entry]
230     +Encoding=UTF-8
231     +Name=Firefox Web Browser
232     +Comment=Browse the World Wide Web
233     +Exec=firefox
234     +Icon=firefox.xpm
235     +Terminal=false
236     +Type=Application
237     +Categories=Application;Network
238     +StartupNotify=true
239     diff -ruN mozilla-orig/fink/fink.js mozilla/fink/fink.js
240     --- mozilla-orig/fink/fink.js Wed Dec 31 19:00:00 1969
241     +++ mozilla/fink/fink.js Tue Jun 20 11:43:33 2006
242     @@ -0,0 +1,27 @@
243     +pref("general.useragent.extra.vendorComment", "Fink Community Edition");
244     +
245     +// Give a default font set that can do BOLD
246 nieder 1.5 +//pref("font.name.serif.x-western", "Bitstream Vera Serif");
247     +//pref("font.name.sans-serif.x-western", "Bitstream Vera Sans");
248     +//pref("font.size.variable.x-western", 15);
249 nieder 1.1 +
250     +// TrueType
251     +//pref("font.FreeType2.enable", true);
252 nieder 1.5 +//pref("font.freetype2.shared-library", "@PREFIX@/lib/freetype219/lib/libfreetype.6.dylib");
253 nieder 1.1 +//pref("font.freetype2.shared-library", "/usr/X11R6/lib/libfreetype.6.dylib");
254     +//pref("font.freetype2.autohinted", true);
255     +//pref("font.freetype2.unhinted", true);
256     +//pref("font.antialias.min", 10);
257     +//pref("font.embedded_bitmaps.max", 1000000);
258     +//pref("font.scale.tt_bitmap.dark_text.min", 64);
259     +//pref("font.scale.tt_bitmap.dark_text.gain", "0.0");
260     +//pref("font.directory.truetype.1", "/Library/Fonts");
261     +//pref("font.directory.truetype.2", "/Network/Library/Fonts");
262     +//pref("font.directory.truetype.3", "/System/Library/Fonts");
263     +//pref("font.directory.truetype.4", "/usr/X11R6/lib/X11/fonts/TTF");
264     +//pref("font.directory.truetype.5", "@PREFIX@/share/fonts/truetype");
265     +
266     +// AA with Bitmap scaling.
267     +//pref("font.scale.aa_bitmap.enable", true);
268     +//pref("font.scale.aa_bitmap.always", false);
269     +//pref("font.scale.aa_bitmap.min", 6);
270 nieder 1.5 diff -ruN mozilla-orig/nsprpub/configure mozilla/nsprpub/configure
271     --- mozilla-orig/nsprpub/configure Wed Feb 22 18:03:10 2006
272     +++ mozilla/nsprpub/configure Mon Jun 19 15:10:14 2006
273     @@ -3338,9 +3338,6 @@
274    
275     # Add Mac OS X support for loading CFM & CFBundle plugins
276     if test -f /System/Library/Frameworks/Carbon.framework/Carbon; then
277     - cat >> confdefs.h <<\EOF
278     -#define XP_MACOSX 1
279     -EOF
280    
281     OS_TARGET=MacOSX
282    
283     @@ -4960,8 +4958,6 @@
284    
285    
286     case $target in
287     -*-darwin*)
288     - ;;
289     *)
290     echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
291     echo "configure:4968: checking for dlopen in -ldl" >&5
292     diff -ruN mozilla-orig/nsprpub/pr/include/md/_darwin.h mozilla/nsprpub/pr/include/md/_darwin.h
293     --- mozilla-orig/nsprpub/pr/include/md/_darwin.h Tue Jan 10 18:16:38 2006
294     +++ mozilla/nsprpub/pr/include/md/_darwin.h Mon Jun 19 15:10:14 2006
295     @@ -62,7 +62,8 @@
296    
297     #undef HAVE_STACK_GROWING_UP
298     #define HAVE_DLL
299     -#define USE_MACH_DYLD
300     +/* #define USE_MACH_DYLD */
301     +#define USE_DLFCN
302     #define _PR_HAVE_SOCKADDR_LEN
303     #define _PR_STAT_HAS_ST_ATIMESPEC
304     #define _PR_NO_LARGE_FILES
305     diff -ruN mozilla-orig/nsprpub/pr/src/Makefile.in mozilla/nsprpub/pr/src/Makefile.in
306     --- mozilla-orig/nsprpub/pr/src/Makefile.in Mon Feb 13 13:48:14 2006
307     +++ mozilla/nsprpub/pr/src/Makefile.in Mon Jun 19 15:10:14 2006
308     @@ -204,9 +204,9 @@
309     endif
310     endif
311    
312     -ifeq ($(OS_TARGET),MacOSX)
313     -OS_LIBS = -framework CoreServices -framework CoreFoundation
314     -endif
315     +#ifeq ($(OS_TARGET),MacOSX)
316     +#OS_LIBS = -framework CoreServices -framework CoreFoundation
317     +#endif
318    
319     ifdef GC_LEAK_DETECTOR
320     EXTRA_LIBS = -L$(dist_libdir) -lboehm
321     diff -ruN mozilla-orig/nsprpub/pr/src/linking/prlink.c mozilla/nsprpub/pr/src/linking/prlink.c
322     --- mozilla-orig/nsprpub/pr/src/linking/prlink.c Thu Aug 18 13:24:29 2005
323     +++ mozilla/nsprpub/pr/src/linking/prlink.c Mon Jun 19 15:10:14 2006
324     @@ -158,7 +158,8 @@
325     #if defined(SUNOS4) || defined(DARWIN) || defined(NEXTSTEP) \
326     || defined(WIN16) || defined(XP_OS2) \
327     || ((defined(OPENBSD) || defined(NETBSD)) && !defined(__ELF__))
328     -#define NEED_LEADING_UNDERSCORE
329     +/* On MacOSX 10.3, dlsym does not accept symbols with '_'. */
330     +/* #define NEED_LEADING_UNDERSCORE */
331 nieder 1.1 #endif
332    
333 nieder 1.5 /************************************************************************/

  ViewVC Help
Powered by ViewVC 1.1.17