| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: mozilla-common.mk,v 1.219 2022/01/08 15:42:14 tnn Exp $ | | 1 | # $NetBSD: mozilla-common.mk,v 1.220 2022/01/13 01:20:39 gutteridge 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 | | | 6 | |
7 | .include "../../mk/bsd.prefs.mk" | | 7 | .include "../../mk/bsd.prefs.mk" |
8 | | | 8 | |
9 | PYTHON_VERSIONS_INCOMPATIBLE= 27 | | 9 | PYTHON_VERSIONS_INCOMPATIBLE= 27 |
10 | PYTHON_FOR_BUILD_ONLY= tool | | 10 | PYTHON_FOR_BUILD_ONLY= tool |
11 | ALL_ENV+= PYTHON3=${PYTHONBIN} | | 11 | ALL_ENV+= PYTHON3=${PYTHONBIN} |
12 | | | 12 | |
13 | HAS_CONFIGURE= yes | | 13 | HAS_CONFIGURE= yes |
14 | CONFIGURE_ARGS+= --prefix=${PREFIX} | | 14 | CONFIGURE_ARGS+= --prefix=${PREFIX} |
| @@ -49,33 +49,33 @@ CONFIGURE_ARGS+= --host=${MACHINE_GNU_PL | | | @@ -49,33 +49,33 @@ CONFIGURE_ARGS+= --host=${MACHINE_GNU_PL |
49 | .endif | | 49 | .endif |
50 | | | 50 | |
51 | CONFIGURE_ENV+= BINDGEN_CFLAGS="-isystem${PREFIX}/include/nspr \ | | 51 | CONFIGURE_ENV+= BINDGEN_CFLAGS="-isystem${PREFIX}/include/nspr \ |
52 | -isystem${X11BASE}/include/pixman-1" | | 52 | -isystem${X11BASE}/include/pixman-1" |
53 | | | 53 | |
54 | test: | | 54 | test: |
55 | cd ${WRKSRC}/${OBJDIR}/dist/bin && \ | | 55 | cd ${WRKSRC}/${OBJDIR}/dist/bin && \ |
56 | ./run-mozilla.sh ${WRKSRC}/mach check-spidermonkey | | 56 | ./run-mozilla.sh ${WRKSRC}/mach check-spidermonkey |
57 | | | 57 | |
58 | # tar(1) of OpenBSD 5.5 has no --exclude command line option. | | 58 | # tar(1) of OpenBSD 5.5 has no --exclude command line option. |
59 | .if ${OPSYS} == "OpenBSD" | | 59 | .if ${OPSYS} == "OpenBSD" |
60 | TOOLS_PLATFORM.tar= ${TOOLS_PATH.bsdtar} | | 60 | TOOLS_PLATFORM.tar= ${TOOLS_PATH.bsdtar} |
61 | USE_TOOLS+= bsdtar | | 61 | USE_TOOLS+= bsdtar |
| | | 62 | .else |
| | | 63 | USE_TOOLS+= tar |
62 | .endif | | 64 | .endif |
63 | | | 65 | |
64 | PLIST_VARS+= i386 | | | |
65 | .if ${MACHINE_ARCH} == "i386" | | 66 | .if ${MACHINE_ARCH} == "i386" |
66 | # This is required for SSE2 code under i386. | | 67 | # This is required for SSE2 code under i386. |
67 | CXXFLAGS+= -mstackrealign | | 68 | CXXFLAGS+= -mstackrealign |
68 | PLIST.i386= yes | | | |
69 | .endif | | 69 | .endif |
70 | | | 70 | |
71 | CHECK_PORTABILITY_SKIP+= ${MOZILLA_DIR}security/nss/tests/*/*.sh | | 71 | CHECK_PORTABILITY_SKIP+= ${MOZILLA_DIR}security/nss/tests/*/*.sh |
72 | CHECK_PORTABILITY_SKIP+= ${MOZILLA_DIR}js/src/tests/update-test262.sh | | 72 | CHECK_PORTABILITY_SKIP+= ${MOZILLA_DIR}js/src/tests/update-test262.sh |
73 | CHECK_PORTABILITY_SKIP+= ${MOZILLA_DIR}intl/icu/source/configure | | 73 | CHECK_PORTABILITY_SKIP+= ${MOZILLA_DIR}intl/icu/source/configure |
74 | CHECK_PORTABILITY_SKIP+= ${MOZILLA_DIR}browser/components/loop/run-all-loop-tests.sh | | 74 | CHECK_PORTABILITY_SKIP+= ${MOZILLA_DIR}browser/components/loop/run-all-loop-tests.sh |
75 | CHECK_PORTABILITY_SKIP+= ${MOZILLA_DIR}browser/extensions/loop/run-all-loop-tests.sh | | 75 | CHECK_PORTABILITY_SKIP+= ${MOZILLA_DIR}browser/extensions/loop/run-all-loop-tests.sh |
76 | #CHECK_PORTABILITY_SKIP+= ${MOZILLA_DIR}modules/pdfium/update.sh | | 76 | #CHECK_PORTABILITY_SKIP+= ${MOZILLA_DIR}modules/pdfium/update.sh |
77 | | | 77 | |
78 | CONFIGURE_ARGS+= --enable-default-toolkit=cairo-gtk3 | | 78 | CONFIGURE_ARGS+= --enable-default-toolkit=cairo-gtk3 |
79 | CONFIGURE_ARGS+= --enable-release | | 79 | CONFIGURE_ARGS+= --enable-release |
80 | # Disable Rust SIMD option to fix build with lang/rust-1.33.0 | | 80 | # Disable Rust SIMD option to fix build with lang/rust-1.33.0 |
81 | # This should be enabled later again. | | 81 | # This should be enabled later again. |
| @@ -141,27 +141,27 @@ CONFIG_GUESS_OVERRIDE+= ${MOZILLA_DIR}b | | | @@ -141,27 +141,27 @@ CONFIG_GUESS_OVERRIDE+= ${MOZILLA_DIR}b |
141 | CONFIG_GUESS_OVERRIDE+= ${MOZILLA_DIR}js/src/build/autoconf/config.guess | | 141 | CONFIG_GUESS_OVERRIDE+= ${MOZILLA_DIR}js/src/build/autoconf/config.guess |
142 | CONFIG_GUESS_OVERRIDE+= ${MOZILLA_DIR}nsprpub/build/autoconf/config.guess | | 142 | CONFIG_GUESS_OVERRIDE+= ${MOZILLA_DIR}nsprpub/build/autoconf/config.guess |
143 | CONFIG_GUESS_OVERRIDE+= ${MOZILLA_DIR}/js/ctypes/libffi/config.guess | | 143 | CONFIG_GUESS_OVERRIDE+= ${MOZILLA_DIR}/js/ctypes/libffi/config.guess |
144 | CONFIG_SUB_OVERRIDE+= ${MOZILLA_DIR}build/autoconf/config.sub | | 144 | CONFIG_SUB_OVERRIDE+= ${MOZILLA_DIR}build/autoconf/config.sub |
145 | CONFIG_SUB_OVERRIDE+= ${MOZILLA_DIR}js/src/build/autoconf/config.sub | | 145 | CONFIG_SUB_OVERRIDE+= ${MOZILLA_DIR}js/src/build/autoconf/config.sub |
146 | CONFIG_SUB_OVERRIDE+= ${MOZILLA_DIR}nsprpub/build/autoconf/config.sub | | 146 | CONFIG_SUB_OVERRIDE+= ${MOZILLA_DIR}nsprpub/build/autoconf/config.sub |
147 | CONFIG_SUB_OVERRIDE+= ${MOZILLA_DIR}/js/ctypes/libffi/config.sub | | 147 | CONFIG_SUB_OVERRIDE+= ${MOZILLA_DIR}/js/ctypes/libffi/config.sub |
148 | | | 148 | |
149 | CONFIGURE_ENV+= CPP=${CPP:Q} | | 149 | CONFIGURE_ENV+= CPP=${CPP:Q} |
150 | ALL_ENV+= SHELL=${CONFIG_SHELL:Q} | | 150 | ALL_ENV+= SHELL=${CONFIG_SHELL:Q} |
151 | | | 151 | |
152 | # Build outside ${WRKSRC} | | 152 | # Build outside ${WRKSRC} |
153 | # Try to avoid conflict with config/makefiles/xpidl/Makefile.in | | 153 | # Try to avoid conflict with config/makefiles/xpidl/Makefile.in |
154 | .if ${MAINTAINER_INTERNAL:Uno} == "yes | | 154 | .if ${MAINTAINER_INTERNAL:Uno} == "yes" |
155 | OBJDIR= ../no-node-build | | 155 | OBJDIR= ../no-node-build |
156 | .else | | 156 | .else |
157 | OBJDIR= ../build | | 157 | OBJDIR= ../build |
158 | .endif | | 158 | .endif |
159 | CONFIGURE_DIRS= ${OBJDIR} | | 159 | CONFIGURE_DIRS= ${OBJDIR} |
160 | CONFIGURE_SCRIPT= ${WRKSRC}/configure | | 160 | CONFIGURE_SCRIPT= ${WRKSRC}/configure |
161 | | | 161 | |
162 | PLIST_VARS+= ffvpx | | 162 | PLIST_VARS+= ffvpx |
163 | | | 163 | |
164 | .if ${MACHINE_ARCH} == "aarch64" || \ | | 164 | .if ${MACHINE_ARCH} == "aarch64" || \ |
165 | !empty(MACHINE_ARCH:M*arm*) || \ | | 165 | !empty(MACHINE_ARCH:M*arm*) || \ |
166 | ${MACHINE_ARCH} == "i386" || \ | | 166 | ${MACHINE_ARCH} == "i386" || \ |
167 | ${MACHINE_ARCH} == "x86_64" | | 167 | ${MACHINE_ARCH} == "x86_64" |