| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: mozilla-common.mk,v 1.8 2023/08/25 10:15:01 pho Exp $ | | 1 | # $NetBSD: mozilla-common.mk,v 1.9 2023/09/04 11:42:38 prlw1 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 | | | 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 | | | 10 | |
11 | PYTHON_FOR_BUILD_ONLY= tool | | 11 | PYTHON_FOR_BUILD_ONLY= tool |
12 | ALL_ENV+= PYTHON3=${PYTHONBIN} | | 12 | ALL_ENV+= PYTHON3=${PYTHONBIN} |
13 | | | 13 | |
14 | HAS_CONFIGURE= yes | | 14 | HAS_CONFIGURE= yes |
| @@ -19,26 +19,27 @@ UNLIMIT_RESOURCES+= datasize virtualsize | | | @@ -19,26 +19,27 @@ UNLIMIT_RESOURCES+= datasize virtualsize |
19 | USE_LANGUAGES+= c c++ | | 19 | USE_LANGUAGES+= c c++ |
20 | | | 20 | |
21 | # ERROR: Only GCC 8.1 or newer is supported (found version 7.5.0). | | 21 | # ERROR: Only GCC 8.1 or newer is supported (found version 7.5.0). |
22 | GCC_REQD+= 8 | | 22 | GCC_REQD+= 8 |
23 | | | 23 | |
24 | TOOL_DEPENDS+= cbindgen>=0.24.0:../../devel/cbindgen | | 24 | TOOL_DEPENDS+= cbindgen>=0.24.0:../../devel/cbindgen |
25 | .if ${MACHINE_ARCH} == "sparc64" | | 25 | .if ${MACHINE_ARCH} == "sparc64" |
26 | CONFIGURE_ARGS+= --disable-nodejs | | 26 | CONFIGURE_ARGS+= --disable-nodejs |
27 | .else | | 27 | .else |
28 | TOOL_DEPENDS+= nodejs-[0-9]*:../../lang/nodejs | | 28 | TOOL_DEPENDS+= nodejs-[0-9]*:../../lang/nodejs |
29 | .endif | | 29 | .endif |
30 | | | 30 | |
31 | TOOL_DEPENDS+= ${PYPKGPREFIX}-sqlite3-[0-9]*:../../databases/py-sqlite3 | | 31 | TOOL_DEPENDS+= ${PYPKGPREFIX}-sqlite3-[0-9]*:../../databases/py-sqlite3 |
| | | 32 | TOOL_DEPENDS+= ${PYPKGPREFIX}-curses-[0-9]*:../../devel/py-curses |
32 | TOOL_DEPENDS+= ${PYPKGPREFIX}-expat-[0-9]*:../../textproc/py-expat | | 33 | TOOL_DEPENDS+= ${PYPKGPREFIX}-expat-[0-9]*:../../textproc/py-expat |
33 | | | 34 | |
34 | # malloc_usable_size() | | 35 | # malloc_usable_size() |
35 | LDFLAGS.NetBSD+= -ljemalloc | | 36 | LDFLAGS.NetBSD+= -ljemalloc |
36 | | | 37 | |
37 | .if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64" | | 38 | .if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64" |
38 | TOOL_DEPENDS+= nasm>=2.14:../../devel/nasm | | 39 | TOOL_DEPENDS+= nasm>=2.14:../../devel/nasm |
39 | TOOL_DEPENDS+= yasm>=1.1:../../devel/yasm | | 40 | TOOL_DEPENDS+= yasm>=1.1:../../devel/yasm |
40 | .endif | | 41 | .endif |
41 | | | 42 | |
42 | # This is to work around build failures where an upstream configuration script | | 43 | # This is to work around build failures where an upstream configuration script |
43 | # is confused by having more than one approximate match to MACHINE_GNU_PLATFORM | | 44 | # is confused by having more than one approximate match to MACHINE_GNU_PLATFORM |
44 | # "i486" when attempting to select the Rust compiler target. | | 45 | # "i486" when attempting to select the Rust compiler target. |