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