| @@ -1,36 +1,37 @@ | | | @@ -1,36 +1,37 @@ |
1 | # $NetBSD: mozilla-common.mk,v 1.50 2015/03/05 13:29:41 ryoon Exp $ | | 1 | # $NetBSD: mozilla-common.mk,v 1.51 2015/03/17 03:19:08 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 www/firefox/Makefile | | 5 | # used by www/firefox/Makefile |
6 | # used by www/seamonkey/Makefile | | 6 | # used by www/seamonkey/Makefile |
7 | | | 7 | |
8 | GNU_CONFIGURE= yes | | 8 | GNU_CONFIGURE= yes |
9 | USE_TOOLS+= pkg-config perl gmake autoconf213 unzip zip | | 9 | USE_TOOLS+= pkg-config perl gmake autoconf213 unzip zip |
10 | USE_LANGUAGES+= c99 c++ | | 10 | USE_LANGUAGES+= c99 c++ |
11 | UNLIMIT_RESOURCES+= datasize | | 11 | UNLIMIT_RESOURCES+= datasize |
12 | | | 12 | |
13 | .include "../../mk/bsd.prefs.mk" | | 13 | .include "../../mk/bsd.prefs.mk" |
14 | # tar(1) of OpenBSD 5.5 has no --exclude command line option. | | 14 | # tar(1) of OpenBSD 5.5 has no --exclude command line option. |
15 | .if ${OPSYS} == "OpenBSD" | | 15 | .if ${OPSYS} == "OpenBSD" |
16 | TOOLS_PLATFORM.tar= ${TOOLS_PREFIX.bsdtar}/bin/bsdtar | | 16 | TOOLS_PLATFORM.tar= ${TOOLS_PREFIX.bsdtar}/bin/bsdtar |
17 | USE_TOOLS+= bsdtar | | 17 | USE_TOOLS+= bsdtar |
18 | .endif | | 18 | .endif |
19 | # GCC 4.6 is required to support nullptr. | | 19 | # GCC 4.6 is required to support nullptr. |
20 | GCC_REQD+= 4.6 | | 20 | GCC_REQD+= 4.6 |
21 | .if ${MACHINE_ARCH} == "i386" | | 21 | .if ${MACHINE_ARCH} == "i386" |
22 | # Fix for PR pkg/48152. | | 22 | # Fix for PR pkg/48152. |
23 | CPPFLAGS+= -march=i486 | | 23 | CPPFLAGS+= -march=i486 |
| | | 24 | # This is required for SSE2 code under i386. |
24 | CPPFLAGS+= -mstackrealign | | 25 | CPPFLAGS+= -mstackrealign |
25 | .endif | | 26 | .endif |
26 | | | 27 | |
27 | CHECK_PORTABILITY_SKIP+=${MOZILLA_DIR}security/nss/tests/libpkix/libpkix.sh | | 28 | CHECK_PORTABILITY_SKIP+=${MOZILLA_DIR}security/nss/tests/libpkix/libpkix.sh |
28 | CHECK_PORTABILITY_SKIP+=${MOZILLA_DIR}security/nss/tests/multinit/multinit.sh | | 29 | CHECK_PORTABILITY_SKIP+=${MOZILLA_DIR}security/nss/tests/multinit/multinit.sh |
29 | CHECK_PORTABILITY_SKIP+=${MOZILLA_DIR}js/src/tests/update-test262.sh | | 30 | CHECK_PORTABILITY_SKIP+=${MOZILLA_DIR}js/src/tests/update-test262.sh |
30 | CHECK_PORTABILITY_SKIP+=${MOZILLA_DIR}intl/icu/source/configure | | 31 | CHECK_PORTABILITY_SKIP+=${MOZILLA_DIR}intl/icu/source/configure |
31 | | | 32 | |
32 | CONFIGURE_ARGS+= --disable-tests | | 33 | CONFIGURE_ARGS+= --disable-tests |
33 | CONFIGURE_ARGS+= --disable-pedantic | | 34 | CONFIGURE_ARGS+= --disable-pedantic |
34 | CONFIGURE_ARGS+= --enable-crypto | | 35 | CONFIGURE_ARGS+= --enable-crypto |
35 | CONFIGURE_ARGS+= --with-pthreads | | 36 | CONFIGURE_ARGS+= --with-pthreads |
36 | CONFIGURE_ARGS+= --disable-javaxpcom | | 37 | CONFIGURE_ARGS+= --disable-javaxpcom |