| @@ -1,241 +1,241 @@ | | | @@ -1,241 +1,241 @@ |
1 | # $NetBSD: mozilla-common.mk,v 1.244 2022/12/11 19:35:15 tnn Exp $ | | 1 | # $NetBSD: mozilla-common.mk,v 1.245 2022/12/11 21:06:32 tsutsui 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 | # ERROR: .../firefox-105.0.3/xpcom/idl-parser/xpidl/xpidl.py:1620: Invalid regular expression for rule 't_multilinecomment'. global flags not at the start of the expression at position 26 | | 10 | # ERROR: .../firefox-105.0.3/xpcom/idl-parser/xpidl/xpidl.py:1620: Invalid regular expression for rule 't_multilinecomment'. global flags not at the start of the expression at position 26 |
11 | # ERROR: .../firefox/work/firefox-105.0.3/xpcom/idl-parser/xpidl/xpidl.py:1626: Invalid regular expression for rule 't_singlelinecomment'. global flags not at the start of the expression at position 24 | | 11 | # ERROR: .../firefox/work/firefox-105.0.3/xpcom/idl-parser/xpidl/xpidl.py:1626: Invalid regular expression for rule 't_singlelinecomment'. global flags not at the start of the expression at position 24 |
12 | # ERROR: .../firefox/work/firefox-105.0.3/xpcom/idl-parser/xpidl/xpidl.py:1639: Invalid regular expression for rule 't_LCDATA'. global flags not at the start of the expression at position 13 | | 12 | # ERROR: .../firefox/work/firefox-105.0.3/xpcom/idl-parser/xpidl/xpidl.py:1639: Invalid regular expression for rule 't_LCDATA'. global flags not at the start of the expression at position 13 |
13 | # leading to: | | 13 | # leading to: |
14 | # SyntaxError: Can't build lexer | | 14 | # SyntaxError: Can't build lexer |
15 | PYTHON_VERSIONS_INCOMPATIBLE+= 311 | | 15 | PYTHON_VERSIONS_INCOMPATIBLE+= 311 |
16 | PYTHON_FOR_BUILD_ONLY= tool | | 16 | PYTHON_FOR_BUILD_ONLY= tool |
17 | ALL_ENV+= PYTHON3=${PYTHONBIN} | | 17 | ALL_ENV+= PYTHON3=${PYTHONBIN} |
18 | | | 18 | |
19 | HAS_CONFIGURE= yes | | 19 | HAS_CONFIGURE= yes |
20 | CONFIGURE_ARGS+= --prefix=${PREFIX} | | 20 | CONFIGURE_ARGS+= --prefix=${PREFIX} |
21 | USE_TOOLS+= pkg-config perl gmake gm4 unzip zip # autoconf213 | | 21 | USE_TOOLS+= pkg-config perl gmake gm4 unzip zip # autoconf213 |
22 | UNLIMIT_RESOURCES+= datasize virtualsize | | 22 | UNLIMIT_RESOURCES+= datasize virtualsize |
23 | | | 23 | |
24 | USE_LANGUAGES+= c c++ | | 24 | USE_LANGUAGES+= c c++ |
25 | | | 25 | |
26 | # ERROR: Only GCC 7.1 or newer is supported (found version 5.5.0). | | 26 | # ERROR: Only GCC 7.1 or newer is supported (found version 5.5.0). |
27 | GCC_REQD+= 7 | | 27 | GCC_REQD+= 7 |
28 | | | 28 | |
29 | TOOL_DEPENDS+= cbindgen>=0.24.3:../../devel/cbindgen | | 29 | TOOL_DEPENDS+= cbindgen>=0.24.3:../../devel/cbindgen |
30 | | | 30 | |
31 | .if defined(FIREFOX_MAINTAINER) && !defined(MAINTAINER_INTERNAL) | | 31 | .if defined(FIREFOX_MAINTAINER) && !defined(MAINTAINER_INTERNAL) |
32 | TOOL_DEPENDS+= nodejs-[0-9]*:../../lang/nodejs | | 32 | TOOL_DEPENDS+= nodejs-[0-9]*:../../lang/nodejs |
33 | USE_TOOLS+= diff | | 33 | USE_TOOLS+= diff |
34 | .else | | 34 | .else |
35 | CONFIGURE_ENV+= NODEJS="${FILESDIR}/node-wrapper.sh" | | 35 | CONFIGURE_ENV+= NODEJS="${FILESDIR}/node-wrapper.sh" |
36 | .endif | | 36 | .endif |
37 | | | 37 | |
38 | TOOL_DEPENDS+= ${PYPKGPREFIX}-sqlite3-[0-9]*:../../databases/py-sqlite3 | | 38 | TOOL_DEPENDS+= ${PYPKGPREFIX}-sqlite3-[0-9]*:../../databases/py-sqlite3 |
39 | TOOL_DEPENDS+= ${PYPKGPREFIX}-expat-[0-9]*:../../textproc/py-expat | | 39 | TOOL_DEPENDS+= ${PYPKGPREFIX}-expat-[0-9]*:../../textproc/py-expat |
40 | | | 40 | |
41 | .if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64" | | 41 | .if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64" |
42 | TOOL_DEPENDS+= nasm>=2.14:../../devel/nasm | | 42 | TOOL_DEPENDS+= nasm>=2.14:../../devel/nasm |
43 | TOOL_DEPENDS+= yasm>=1.1:../../devel/yasm | | 43 | TOOL_DEPENDS+= yasm>=1.1:../../devel/yasm |
44 | CFLAGS+= -msse2 | | 44 | CFLAGS+= -msse2 |
45 | .endif | | 45 | .endif |
46 | | | 46 | |
47 | # This is to work around build failures where an upstream configuration script | | 47 | # This is to work around build failures where an upstream configuration script |
48 | # is confused by having more than one approximate match to MACHINE_GNU_PLATFORM | | 48 | # is confused by having more than one approximate match to MACHINE_GNU_PLATFORM |
49 | # "i486" when attempting to select the Rust compiler target. | | 49 | # "i486" when attempting to select the Rust compiler target. |
50 | .if !empty(MACHINE_PLATFORM:MNetBSD-*-i386) | | 50 | .if !empty(MACHINE_PLATFORM:MNetBSD-*-i386) |
51 | CONFIGURE_ARGS+= --target=i586-unknown-netbsd | | 51 | CONFIGURE_ARGS+= --target=i586-unknown-netbsd |
52 | CONFIGURE_ARGS+= --host=i586-unknown-netbsd | | 52 | CONFIGURE_ARGS+= --host=i586-unknown-netbsd |
53 | .else | | 53 | .else |
54 | CONFIGURE_ARGS+= --target=${MACHINE_GNU_PLATFORM} | | 54 | CONFIGURE_ARGS+= --target=${MACHINE_GNU_PLATFORM} |
55 | CONFIGURE_ARGS+= --host=${MACHINE_GNU_PLATFORM} | | 55 | CONFIGURE_ARGS+= --host=${MACHINE_GNU_PLATFORM} |
56 | .endif | | 56 | .endif |
57 | | | 57 | |
58 | CONFIGURE_ENV+= BINDGEN_CFLAGS="-isystem${PREFIX}/include/nspr \ | | 58 | CONFIGURE_ENV+= BINDGEN_CFLAGS="-isystem${PREFIX}/include/nspr \ |
59 | -isystem${X11BASE}/include/pixman-1" | | 59 | -isystem${X11BASE}/include/pixman-1" |
60 | | | 60 | |
61 | do-test: | | 61 | do-test: |
62 | cd ${WRKSRC}/${OBJDIR}/dist/bin && \ | | 62 | cd ${WRKSRC}/${OBJDIR}/dist/bin && \ |
63 | ./run-mozilla.sh ${WRKSRC}/mach check-spidermonkey | | 63 | ./run-mozilla.sh ${WRKSRC}/mach check-spidermonkey |
64 | | | 64 | |
65 | # tar(1) of OpenBSD 5.5 has no --exclude command line option. | | 65 | # tar(1) of OpenBSD 5.5 has no --exclude command line option. |
66 | .if ${OPSYS} == "OpenBSD" | | 66 | .if ${OPSYS} == "OpenBSD" |
67 | TOOLS_PLATFORM.tar= ${TOOLS_PATH.bsdtar} | | 67 | TOOLS_PLATFORM.tar= ${TOOLS_PATH.bsdtar} |
68 | USE_TOOLS+= bsdtar | | 68 | USE_TOOLS+= bsdtar |
69 | .else | | 69 | .else |
70 | USE_TOOLS+= tar | | 70 | USE_TOOLS+= tar |
71 | .endif | | 71 | .endif |
72 | | | 72 | |
73 | .if ${MACHINE_ARCH} == "i386" | | 73 | .if ${MACHINE_ARCH} == "i386" |
74 | # This is required for SSE2 code under i386. | | 74 | # This is required for SSE2 code under i386. |
75 | CXXFLAGS+= -mstackrealign | | 75 | CXXFLAGS+= -mstackrealign |
76 | .endif | | 76 | .endif |
77 | | | 77 | |
78 | CHECK_PORTABILITY_SKIP+= ${MOZILLA_DIR}security/nss/tests/*/*.sh | | 78 | CHECK_PORTABILITY_SKIP+= ${MOZILLA_DIR}security/nss/tests/*/*.sh |
79 | CHECK_PORTABILITY_SKIP+= ${MOZILLA_DIR}js/src/tests/update-test262.sh | | 79 | CHECK_PORTABILITY_SKIP+= ${MOZILLA_DIR}js/src/tests/update-test262.sh |
80 | CHECK_PORTABILITY_SKIP+= ${MOZILLA_DIR}intl/icu/source/configure | | 80 | CHECK_PORTABILITY_SKIP+= ${MOZILLA_DIR}intl/icu/source/configure |
81 | CHECK_PORTABILITY_SKIP+= ${MOZILLA_DIR}browser/components/loop/run-all-loop-tests.sh | | 81 | CHECK_PORTABILITY_SKIP+= ${MOZILLA_DIR}browser/components/loop/run-all-loop-tests.sh |
82 | CHECK_PORTABILITY_SKIP+= ${MOZILLA_DIR}browser/extensions/loop/run-all-loop-tests.sh | | 82 | CHECK_PORTABILITY_SKIP+= ${MOZILLA_DIR}browser/extensions/loop/run-all-loop-tests.sh |
83 | CHECK_PORTABILITY_SKIP+= ${MOZILLA_DIR}third_party/libwebrtc/tools_webrtc/iwyu/apply-iwyu | | 83 | CHECK_PORTABILITY_SKIP+= ${MOZILLA_DIR}third_party/libwebrtc/tools_webrtc/iwyu/apply-iwyu |
84 | | | 84 | |
85 | CONFIGURE_ARGS+= --enable-default-toolkit=cairo-gtk3 | | 85 | CONFIGURE_ARGS+= --enable-default-toolkit=cairo-gtk3 |
86 | CONFIGURE_ARGS+= --enable-release | | 86 | CONFIGURE_ARGS+= --enable-release |
87 | # Disable Rust SIMD option to fix build with lang/rust-1.33.0 | | 87 | # Disable Rust SIMD option to fix build with lang/rust-1.33.0 |
88 | # This should be enabled later again. | | 88 | # This should be enabled later again. |
89 | #CONFIGURE_ARGS+= --enable-rust-simd | | 89 | #CONFIGURE_ARGS+= --enable-rust-simd |
90 | CONFIGURE_ARGS+= --disable-tests | | 90 | CONFIGURE_ARGS+= --disable-tests |
91 | # Mozilla Bug 1432751 | | 91 | # Mozilla Bug 1432751 |
92 | #CONFIGURE_ARGS+= --enable-system-cairo | | 92 | #CONFIGURE_ARGS+= --enable-system-cairo |
93 | CONFIGURE_ARGS+= --enable-system-pixman | | 93 | CONFIGURE_ARGS+= --enable-system-pixman |
94 | # webrtc option requires internal libvpx | | 94 | # webrtc option requires internal libvpx |
95 | #CONFIGURE_ARGS+= --with-system-libvpx | | 95 | #CONFIGURE_ARGS+= --with-system-libvpx |
96 | CONFIGURE_ARGS+= --enable-system-ffi | | 96 | CONFIGURE_ARGS+= --enable-system-ffi |
97 | CONFIGURE_ARGS+= --with-system-icu | | 97 | CONFIGURE_ARGS+= --with-system-icu |
98 | CONFIGURE_ARGS+= --with-system-nss | | 98 | CONFIGURE_ARGS+= --with-system-nss |
99 | CONFIGURE_ARGS+= --with-system-nspr | | 99 | CONFIGURE_ARGS+= --with-system-nspr |
100 | #CONFIGURE_ARGS+= --with-system-jpeg | | 100 | #CONFIGURE_ARGS+= --with-system-jpeg |
101 | CONFIGURE_ARGS+= --with-system-zlib | | 101 | CONFIGURE_ARGS+= --with-system-zlib |
102 | CONFIGURE_ARGS+= --with-system-libevent | | 102 | CONFIGURE_ARGS+= --with-system-libevent |
103 | CONFIGURE_ARGS+= --disable-crashreporter | | 103 | CONFIGURE_ARGS+= --disable-crashreporter |
104 | CONFIGURE_ARGS+= --enable-chrome-format=omni | | 104 | CONFIGURE_ARGS+= --enable-chrome-format=omni |
105 | CONFIGURE_ARGS+= --with-system-webp | | 105 | CONFIGURE_ARGS+= --with-system-webp |
106 | | | 106 | |
107 | #CONFIGURE_ARGS+= --enable-readline | | 107 | #CONFIGURE_ARGS+= --enable-readline |
108 | CONFIGURE_ARGS+= --disable-icf | | 108 | CONFIGURE_ARGS+= --disable-icf |
109 | CONFIGURE_ARGS+= --disable-updater | | 109 | CONFIGURE_ARGS+= --disable-updater |
110 | | | 110 | |
111 | CONFIGURE_ARGS+= --enable-new-pass-manager | | 111 | CONFIGURE_ARGS+= --enable-new-pass-manager |
112 | | | 112 | |
113 | .include "../../mk/compiler.mk" | | 113 | .include "../../mk/compiler.mk" |
114 | | | 114 | |
115 | .if empty(PKGSRC_COMPILER:Mclang) | | 115 | .if empty(PKGSRC_COMPILER:Mclang) |
116 | # Set path to "clang for cbindgen" when target compiler is not clang. | | 116 | # Set path to "clang for cbindgen" when target compiler is not clang. |
117 | CONFIGURE_ARGS+= --with-clang-path=${PREFIX}/bin/clang | | 117 | CONFIGURE_ARGS+= --with-clang-path=${PREFIX}/bin/clang |
118 | .endif | | 118 | .endif |
119 | CONFIGURE_ARGS+= --with-libclang-path=${PREFIX}/lib | | 119 | CONFIGURE_ARGS+= --with-libclang-path=${PREFIX}/lib |
120 | | | 120 | |
121 | # RLBox WASM sandbox | | 121 | # RLBox WASM sandbox |
122 | .if ${MACHINE_ARCH} == "x86_64" || ${MACHINE_ARCH} == "i386" | | 122 | .if ${MACHINE_ARCH} == "x86_64" || ${MACHINE_ARCH} == "i386" |
123 | # For wasm-ld command | | 123 | # For wasm-ld command |
124 | BUILD_DEPENDS+= lld-[0-9]*:../../devel/lld | | 124 | BUILD_DEPENDS+= lld-[0-9]*:../../devel/lld |
125 | .include "../../lang/wasi-libc/buildlink3.mk" | | 125 | .include "../../lang/wasi-libc/buildlink3.mk" |
126 | .include "../../lang/wasi-libcxx/buildlink3.mk" | | 126 | .include "../../lang/wasi-libcxx/buildlink3.mk" |
127 | # NB the exact versions of the clang and wasi-compiler-rt dependencies must | | 127 | # NB the exact versions of the clang and wasi-compiler-rt dependencies must |
128 | # be kept in sync, or build failures will occur due to path mismatches. | | 128 | # be kept in sync, or build failures will occur due to path mismatches. |
129 | .include "../../lang/wasi-compiler-rt/buildlink3.mk" | | 129 | .include "../../lang/wasi-compiler-rt/buildlink3.mk" |
130 | CONFIGURE_ARGS+= --with-wasi-sysroot=${PREFIX}/wasi | | 130 | CONFIGURE_ARGS+= --with-wasi-sysroot=${PREFIX}/wasi |
131 | CONFIGURE_ENV+= WASM_CC=${PREFIX}/bin/clang | | 131 | CONFIGURE_ENV+= WASM_CC=${PREFIX}/bin/clang |
132 | CONFIGURE_ENV+= WASM_CXX=${PREFIX}/bin/clang++ | | 132 | CONFIGURE_ENV+= WASM_CXX=${PREFIX}/bin/clang++ |
133 | .else | | 133 | .else |
134 | CONFIGURE_ARGS+= --without-wasm-sandboxed-libraries | | 134 | CONFIGURE_ARGS+= --without-wasm-sandboxed-libraries |
135 | .endif | | 135 | .endif |
136 | | | 136 | |
137 | SUBST_CLASSES+= fix-paths | | 137 | SUBST_CLASSES+= fix-paths |
138 | SUBST_STAGE.fix-paths= pre-configure | | 138 | SUBST_STAGE.fix-paths= pre-configure |
139 | SUBST_MESSAGE.fix-paths= Fixing absolute paths. | | 139 | SUBST_MESSAGE.fix-paths= Fixing absolute paths. |
140 | SUBST_FILES.fix-paths+= ${MOZILLA_DIR}xpcom/io/nsAppFileLocationProvider.cpp | | 140 | SUBST_FILES.fix-paths+= ${MOZILLA_DIR}xpcom/io/nsAppFileLocationProvider.cpp |
141 | SUBST_SED.fix-paths+= -e 's,/usr/lib/mozilla/plugins,${PREFIX}/lib/netscape/plugins,g' | | 141 | SUBST_SED.fix-paths+= -e 's,/usr/lib/mozilla/plugins,${PREFIX}/lib/netscape/plugins,g' |
142 | | | 142 | |
143 | .include "../../sysutils/pciutils/libname.mk" | | 143 | .include "../../sysutils/pciutils/libname.mk" |
144 | SUBST_CLASSES+= fix-libpci-soname | | 144 | SUBST_CLASSES+= fix-libpci-soname |
145 | SUBST_STAGE.fix-libpci-soname= pre-configure | | 145 | SUBST_STAGE.fix-libpci-soname= pre-configure |
146 | SUBST_MESSAGE.fix-libpci-soname= Fixing libpci soname | | 146 | SUBST_MESSAGE.fix-libpci-soname= Fixing libpci soname |
147 | SUBST_FILES.fix-libpci-soname+= ${MOZILLA_DIR}toolkit/xre/glxtest.cpp | | 147 | SUBST_FILES.fix-libpci-soname+= ${MOZILLA_DIR}toolkit/xre/glxtest.cpp |
148 | SUBST_SED.fix-libpci-soname+= -e 's,"libpci.so, "lib${PCIUTILS_LIBNAME}.so,' | | 148 | SUBST_SED.fix-libpci-soname+= -e 's,"libpci.so, "lib${PCIUTILS_LIBNAME}.so,' |
149 | | | 149 | |
150 | # Workaround for link of libxul.so as of 96.0. | | 150 | # Workaround for link of libxul.so as of 96.0. |
151 | # There are too many -ldl under third_paty/libwebrtc. | | 151 | # There are too many -ldl under third_paty/libwebrtc. |
152 | .include "../../mk/dlopen.buildlink3.mk" | | 152 | .include "../../mk/dlopen.buildlink3.mk" |
153 | BUILDLINK_TRANSFORM+= opt:-ldl:${BUILDLINK_LDADD.dl:Q} | | 153 | BUILDLINK_TRANSFORM+= opt:-ldl:${BUILDLINK_LDADD.dl:Q} |
154 | | | 154 | |
155 | CONFIG_GUESS_OVERRIDE+= ${MOZILLA_DIR}build/autoconf/config.guess | | 155 | CONFIG_GUESS_OVERRIDE+= ${MOZILLA_DIR}build/autoconf/config.guess |
156 | CONFIG_GUESS_OVERRIDE+= ${MOZILLA_DIR}js/src/build/autoconf/config.guess | | 156 | CONFIG_GUESS_OVERRIDE+= ${MOZILLA_DIR}js/src/build/autoconf/config.guess |
157 | CONFIG_GUESS_OVERRIDE+= ${MOZILLA_DIR}nsprpub/build/autoconf/config.guess | | 157 | CONFIG_GUESS_OVERRIDE+= ${MOZILLA_DIR}nsprpub/build/autoconf/config.guess |
158 | CONFIG_GUESS_OVERRIDE+= ${MOZILLA_DIR}/js/ctypes/libffi/config.guess | | 158 | CONFIG_GUESS_OVERRIDE+= ${MOZILLA_DIR}/js/ctypes/libffi/config.guess |
159 | CONFIG_SUB_OVERRIDE+= ${MOZILLA_DIR}build/autoconf/config.sub | | 159 | CONFIG_SUB_OVERRIDE+= ${MOZILLA_DIR}build/autoconf/config.sub |
160 | CONFIG_SUB_OVERRIDE+= ${MOZILLA_DIR}js/src/build/autoconf/config.sub | | 160 | CONFIG_SUB_OVERRIDE+= ${MOZILLA_DIR}js/src/build/autoconf/config.sub |
161 | CONFIG_SUB_OVERRIDE+= ${MOZILLA_DIR}nsprpub/build/autoconf/config.sub | | 161 | CONFIG_SUB_OVERRIDE+= ${MOZILLA_DIR}nsprpub/build/autoconf/config.sub |
162 | CONFIG_SUB_OVERRIDE+= ${MOZILLA_DIR}/js/ctypes/libffi/config.sub | | 162 | CONFIG_SUB_OVERRIDE+= ${MOZILLA_DIR}/js/ctypes/libffi/config.sub |
163 | | | 163 | |
164 | CONFIGURE_ENV+= CPP=${CPP:Q} | | 164 | CONFIGURE_ENV+= CPP=${CPP:Q} |
165 | ALL_ENV+= SHELL=${CONFIG_SHELL:Q} | | 165 | ALL_ENV+= SHELL=${CONFIG_SHELL:Q} |
166 | | | 166 | |
167 | # Build outside ${WRKSRC} | | 167 | # Build outside ${WRKSRC} |
168 | # Try to avoid conflict with config/makefiles/xpidl/Makefile.in | | 168 | # Try to avoid conflict with config/makefiles/xpidl/Makefile.in |
169 | .if ${MAINTAINER_INTERNAL:Uno} == "yes" | | 169 | .if ${MAINTAINER_INTERNAL:Uno} == "yes" |
170 | OBJDIR= ../no-node-build | | 170 | OBJDIR= ../no-node-build |
171 | .else | | 171 | .else |
172 | OBJDIR= ../build | | 172 | OBJDIR= ../build |
173 | .endif | | 173 | .endif |
174 | CONFIGURE_DIRS= ${OBJDIR} | | 174 | CONFIGURE_DIRS= ${OBJDIR} |
175 | CONFIGURE_SCRIPT= ${WRKSRC}/configure | | 175 | CONFIGURE_SCRIPT= ${WRKSRC}/configure |
176 | | | 176 | |
177 | PLIST_VARS+= ffvpx | | 177 | PLIST_VARS+= ffvpx |
178 | | | 178 | |
179 | .if ${MACHINE_ARCH} == "aarch64" || \ | | 179 | .if ${MACHINE_ARCH} == "aarch64" || \ |
180 | ${MACHINE_ARCH:M*arm*} || \ | | 180 | ${MACHINE_ARCH:M*arm*} || \ |
181 | ${MACHINE_ARCH} == "i386" || \ | | 181 | ${MACHINE_ARCH} == "i386" || \ |
182 | ${MACHINE_ARCH} == "x86_64" | | 182 | ${MACHINE_ARCH} == "x86_64" |
183 | PLIST.ffvpx= yes # see media/ffvpx/ffvpxcommon.mozbuild | | 183 | PLIST.ffvpx= yes # see media/ffvpx/ffvpxcommon.mozbuild |
184 | .endif | | 184 | .endif |
185 | | | 185 | |
186 | # See ${WRKSRC}/security/sandbox/mac/Sandbox.mm: On Darwin, sandboxing | | 186 | # See ${WRKSRC}/security/sandbox/mac/Sandbox.mm: On Darwin, sandboxing |
187 | # support is only available when the toolkit is cairo-cocoa. | | 187 | # support is only available when the toolkit is cairo-cocoa. |
188 | CONFIGURE_ARGS.Darwin+= --disable-sandbox | | 188 | CONFIGURE_ARGS.Darwin+= --disable-sandbox |
189 | | | 189 | |
190 | # Makefiles sometimes call "rm -f" without more arguments. Kludge around ... | | 190 | # Makefiles sometimes call "rm -f" without more arguments. Kludge around ... |
191 | .PHONY: create-rm-wrapper | | 191 | .PHONY: create-rm-wrapper |
192 | pre-configure: create-rm-wrapper | | 192 | pre-configure: create-rm-wrapper |
193 | create-rm-wrapper: | | 193 | create-rm-wrapper: |
194 | printf '#!/bin/sh\n[ "$$*" = "-f" ] && exit 0\nexec /bin/rm $$@\n' > \ | | 194 | printf '#!/bin/sh\n[ "$$*" = "-f" ] && exit 0\nexec /bin/rm $$@\n' > \ |
195 | ${WRAPPER_DIR}/bin/rm | | 195 | ${WRAPPER_DIR}/bin/rm |
196 | chmod +x ${WRAPPER_DIR}/bin/rm | | 196 | chmod +x ${WRAPPER_DIR}/bin/rm |
197 | | | 197 | |
198 | # The configure test for __thread succeeds, but later we end up with: | | 198 | # The configure test for __thread succeeds, but later we end up with: |
199 | # dist/bin/libxul.so: undefined reference to `__tls_get_addr' | | 199 | # dist/bin/libxul.so: undefined reference to `__tls_get_addr' |
200 | CONFIGURE_ENV.NetBSD+= ac_cv_thread_keyword=no | | 200 | CONFIGURE_ENV.NetBSD+= ac_cv_thread_keyword=no |
201 | # In unspecified case, clock_gettime(CLOCK_MONOTONIC, ...) fails. | | 201 | # In unspecified case, clock_gettime(CLOCK_MONOTONIC, ...) fails. |
202 | CONFIGURE_ENV.NetBSD+= ac_cv_clock_monotonic= | | 202 | CONFIGURE_ENV.NetBSD+= ac_cv_clock_monotonic= |
203 | | | 203 | |
204 | .include "../../sysutils/pciutils/buildlink3.mk" | | 204 | .include "../../sysutils/pciutils/buildlink3.mk" |
205 | .include "../../mk/atomic64.mk" | | 205 | .include "../../mk/atomic64.mk" |
206 | BUILDLINK_API_DEPENDS.libevent+= libevent>=1.1 | | 206 | BUILDLINK_API_DEPENDS.libevent+= libevent>=1.1 |
207 | .include "../../devel/libevent/buildlink3.mk" | | 207 | .include "../../devel/libevent/buildlink3.mk" |
208 | .include "../../devel/libffi/buildlink3.mk" | | 208 | .include "../../devel/libffi/buildlink3.mk" |
209 | BUILDLINK_API_DEPENDS.nspr+= nspr>=4.34 | | 209 | BUILDLINK_API_DEPENDS.nspr+= nspr>=4.34 |
210 | .include "../../devel/nspr/buildlink3.mk" | | 210 | .include "../../devel/nspr/buildlink3.mk" |
211 | .include "../../textproc/icu/buildlink3.mk" | | 211 | .include "../../textproc/icu/buildlink3.mk" |
212 | BUILDLINK_API_DEPENDS.nss+= nss>=3.82 | | 212 | BUILDLINK_API_DEPENDS.nss+= nss>=3.84 |
213 | .include "../../devel/nss/buildlink3.mk" | | 213 | .include "../../devel/nss/buildlink3.mk" |
214 | .include "../../devel/zlib/buildlink3.mk" | | 214 | .include "../../devel/zlib/buildlink3.mk" |
215 | #.include "../../mk/jpeg.buildlink3.mk" | | 215 | #.include "../../mk/jpeg.buildlink3.mk" |
216 | .include "../../graphics/MesaLib/buildlink3.mk" | | 216 | .include "../../graphics/MesaLib/buildlink3.mk" |
217 | #BUILDLINK_API_DEPENDS.cairo+= cairo>=1.10.2nb4 | | 217 | #BUILDLINK_API_DEPENDS.cairo+= cairo>=1.10.2nb4 |
218 | #.include "../../graphics/cairo/buildlink3.mk" | | 218 | #.include "../../graphics/cairo/buildlink3.mk" |
219 | BUILDLINK_API_DEPENDS.libwebp+= libwebp>=1.0.2 | | 219 | BUILDLINK_API_DEPENDS.libwebp+= libwebp>=1.0.2 |
220 | .include "../../graphics/libwebp/buildlink3.mk" | | 220 | .include "../../graphics/libwebp/buildlink3.mk" |
221 | BUILDLINK_DEPMETHOD.clang= build | | 221 | BUILDLINK_DEPMETHOD.clang= build |
222 | .include "../../lang/clang/buildlink3.mk" | | 222 | .include "../../lang/clang/buildlink3.mk" |
223 | RUST_REQ= 1.61.0 | | 223 | RUST_REQ= 1.61.0 |
224 | .include "../../lang/rust/rust.mk" | | 224 | .include "../../lang/rust/rust.mk" |
225 | # webrtc option requires internal libvpx | | 225 | # webrtc option requires internal libvpx |
226 | #BUILDLINK_API_DEPENDS.libvpx+= libvpx>=1.3.0 | | 226 | #BUILDLINK_API_DEPENDS.libvpx+= libvpx>=1.3.0 |
227 | #.include "../../multimedia/libvpx/buildlink3.mk" | | 227 | #.include "../../multimedia/libvpx/buildlink3.mk" |
228 | .include "../../net/libIDL/buildlink3.mk" | | 228 | .include "../../net/libIDL/buildlink3.mk" |
229 | # textproc/hunspell 1.3 is too old | | 229 | # textproc/hunspell 1.3 is too old |
230 | #.include "../../textproc/hunspell/buildlink3.mk" | | 230 | #.include "../../textproc/hunspell/buildlink3.mk" |
231 | .include "../../multimedia/ffmpeg5/buildlink3.mk" | | 231 | .include "../../multimedia/ffmpeg5/buildlink3.mk" |
232 | .include "../../x11/libXt/buildlink3.mk" | | 232 | .include "../../x11/libXt/buildlink3.mk" |
233 | .include "../../x11/libXtst/buildlink3.mk" | | 233 | .include "../../x11/libXtst/buildlink3.mk" |
234 | BUILDLINK_API_DEPENDS.pixman+= pixman>=0.25.2 | | 234 | BUILDLINK_API_DEPENDS.pixman+= pixman>=0.25.2 |
235 | .include "../../x11/pixman/buildlink3.mk" | | 235 | .include "../../x11/pixman/buildlink3.mk" |
236 | .include "../../x11/gtk3/buildlink3.mk" | | 236 | .include "../../x11/gtk3/buildlink3.mk" |
237 | PLIST_VARS+= wayland | | 237 | PLIST_VARS+= wayland |
238 | .if ${PKG_BUILD_OPTIONS.gtk3:Mwayland} | | 238 | .if ${PKG_BUILD_OPTIONS.gtk3:Mwayland} |
239 | PLIST.wayland= yes | | 239 | PLIST.wayland= yes |
240 | .endif | | 240 | .endif |
241 | .include "../../lang/python/pyversion.mk" | | 241 | .include "../../lang/python/pyversion.mk" |