Merge from vendor branch TNF:
[pkgsrcv2.git] / www / seamonkey / patches / patch-mb
1 $NetBSD: patch-mb,v 1.3 2012/03/10 03:26:05 ryoon Exp $
2
3 --- mozilla/xpcom/reflect/xptcall/src/md/unix/Makefile.in.orig  2012-03-13 05:33:19.000000000 +0000
4 +++ mozilla/xpcom/reflect/xptcall/src/md/unix/Makefile.in
5 @@ -82,7 +82,7 @@ endif
6  endif
7  endif
8  
9 -ifneq (,$(filter NetBSD OpenBSD BSD_OS GNU,$(OS_ARCH)))
10 +ifneq (,$(filter BSD_OS GNU,$(OS_ARCH)))
11  ifeq (86,$(findstring 86,$(OS_TEST)))
12  CPPSRCS                := xptcinvoke_gcc_x86_unix.cpp xptcstubs_gcc_x86_unix.cpp
13  endif
14 @@ -91,7 +91,7 @@ endif
15  # New code for Linux, et. al., with gcc
16  # Migrate other platforms here after testing
17  #
18 -ifneq (,$(filter Linux FreeBSD GNU_%,$(OS_ARCH)))
19 +ifneq (,$(filter Linux FreeBSD DragonFly NetBSD OpenBSD GNU_%,$(OS_ARCH)))
20  # Linux/x86-64
21  ifeq (x86_64,$(OS_TEST))
22  CPPSRCS                := xptcinvoke_x86_64_unix.cpp xptcstubs_x86_64_linux.cpp
23 @@ -109,12 +109,6 @@ ASFILES            := xptcstubs_asm_ipf64.s xptcin
24  endif
25  endif
26  #
27 -# OpenBSD/amd64
28 -#
29 -ifeq ($(OS_ARCH)$(OS_TEST),OpenBSDx86_64)
30 -CPPSRCS                := xptcinvoke_amd64_openbsd.cpp xptcstubs_amd64_openbsd.cpp
31 -endif
32 -#
33  # Neutrino/Intel (uses the same unixish_x86 code)
34  #
35  ifeq ($(OS_TARGET),NTO)
36 @@ -190,7 +184,7 @@ endif
37  # NetBSD/ARM
38  #
39  ifeq ($(OS_ARCH),NetBSD)
40 -ifneq (,$(filter arm% sa110,$(OS_TEST)))
41 +ifneq (,$(filter arm%,$(TARGET_CPU)))
42  CPPSRCS                := xptcinvoke_arm_netbsd.cpp xptcstubs_arm_netbsd.cpp
43  endif
44  endif
45 @@ -247,7 +241,7 @@ endif
46  # NetBSD/m68k
47  #
48  ifeq ($(OS_ARCH),NetBSD)
49 -ifneq (,$(filter amiga atari hp300 mac68k mvme68k next68k sun3 sun3x x68k,$(OS_TEST)))
50 +ifneq (,$(filter m68k,$(TARGET_CPU)))
51  CPPSRCS                := xptcinvoke_netbsd_m68k.cpp xptcstubs_netbsd_m68k.cpp
52  endif
53  endif
54 @@ -319,9 +313,10 @@ endif
55  #
56  # NetBSD/PPC
57  #
58 -ifneq (,$(filter NetBSDmacppc NetBSDbebox NetBSDofppc NetBSDprep NetBSDamigappc,$(OS_ARCH)$(OS_TEST)))                           
59 +ifeq ($(OS_ARCH)$(OS_TEST),NetBSDpowerpc)
60  CPPSRCS                := xptcinvoke_ppc_netbsd.cpp xptcstubs_ppc_netbsd.cpp
61  ASFILES                := xptcinvoke_asm_ppc_netbsd.s xptcstubs_asm_ppc_netbsd.s
62 +AS             := $(CC) -c -x assembler-with-cpp
63  endif
64  
65  #
66 @@ -387,6 +382,13 @@ CPPSRCS            := xptcinvoke_sparc64_openbsd.c
67  ASFILES                := xptcinvoke_asm_sparc64_openbsd.s xptcstubs_asm_sparc64_openbsd.s
68  endif
69  #
70 +# NetBSD/SPARC64
71 +#
72 +ifeq ($(OS_ARCH)$(OS_TEST),NetBSDsparc64)
73 +CPPSRCS                := xptcinvoke_sparc64_netbsd.cpp xptcstubs_sparc64_netbsd.cpp
74 +ASFILES                := xptcinvoke_asm_sparc64_netbsd.s xptcstubs_asm_sparc64_netbsd.s
75 +endif
76 +#
77  # Solaris/SPARC
78  #
79  ifeq ($(OS_ARCH),SunOS)