| @@ -1,27 +1,26 @@ | | | @@ -1,27 +1,26 @@ |
1 | # $NetBSD: mozilla-common.mk,v 1.19 2013/11/02 22:57:55 ryoon Exp $ | | 1 | # $NetBSD: mozilla-common.mk,v 1.20 2013/11/14 14:03:01 ryoon Exp $ |
2 | # | | 2 | # |
3 | # common Makefile fragment for mozilla packages based on gecko 2.0. | | 3 | # common Makefile fragment for mozilla packages based on gecko 2.0. |
4 | # | | 4 | # |
5 | # used by mail/thunderbird/Makefile | | 5 | # used by mail/thunderbird/Makefile |
6 | # used by www/firefox/Makefile | | 6 | # used by www/firefox/Makefile |
7 | # used by www/seamonkey/Makefile | | 7 | # used by www/seamonkey/Makefile |
8 | | | 8 | |
9 | GNU_CONFIGURE= yes | | 9 | GNU_CONFIGURE= yes |
10 | USE_TOOLS+= pkg-config perl gmake autoconf213 unzip zip | | 10 | USE_TOOLS+= pkg-config perl gmake autoconf213 unzip zip |
11 | USE_LANGUAGES+= c99 c++ | | 11 | USE_LANGUAGES+= c99 c++ |
12 | UNLIMIT_RESOURCES+= datasize | | 12 | UNLIMIT_RESOURCES+= datasize |
13 | | | 13 | |
14 | .include "../../mk/compiler.mk" | | | |
15 | .include "../../mk/bsd.prefs.mk" | | 14 | .include "../../mk/bsd.prefs.mk" |
16 | # gcc45-4.5.3 of lang/gcc45 does not generate proper binary, | | 15 | # gcc45-4.5.3 of lang/gcc45 does not generate proper binary, |
17 | # but gcc 4.5.4 of NetBSD 7 generates working binary. | | 16 | # but gcc 4.5.4 of NetBSD 7 generates working binary. |
18 | .if !empty(MACHINE_PLATFORM:MNetBSD-5.*) | | 17 | .if !empty(MACHINE_PLATFORM:MNetBSD-5.*) |
19 | GCC_REQD+= 4.6 | | 18 | GCC_REQD+= 4.6 |
20 | . if ${MACHINE_ARCH} == "i386" | | 19 | . if ${MACHINE_ARCH} == "i386" |
21 | # Fix for PR pkg/48152. | | 20 | # Fix for PR pkg/48152. |
22 | CPPFLAGS+= -march=i486 | | 21 | CPPFLAGS+= -march=i486 |
23 | . endif | | 22 | . endif |
24 | .else | | 23 | .else |
25 | GCC_REQD+= 4.5 | | 24 | GCC_REQD+= 4.5 |
26 | .endif | | 25 | .endif |
27 | | | 26 | |