| @@ -1,36 +1,36 @@ | | | @@ -1,36 +1,36 @@ |
1 | # $NetBSD: mozilla-common.mk,v 1.1 2022/08/04 15:07:14 nia Exp $ | | 1 | # $NetBSD: mozilla-common.mk,v 1.2 2022/11/02 20:43:46 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 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_ACCEPTED+= 39 38 37 | | 9 | PYTHON_VERSIONS_ACCEPTED+= 39 38 37 |
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} |
15 | USE_TOOLS+= pkg-config perl gmake autoconf213 unzip zip | | 15 | USE_TOOLS+= pkg-config perl gmake autoconf213 unzip zip |
16 | UNLIMIT_RESOURCES+= datasize virtualsize | | 16 | UNLIMIT_RESOURCES+= datasize virtualsize |
17 | | | 17 | |
18 | USE_LANGUAGES+= c c++ | | 18 | USE_LANGUAGES+= c c++ |
19 | | | 19 | |
20 | # ERROR: Only GCC 7.1 or newer is supported (found version 5.5.0). | | 20 | # ERROR: Only GCC 7.1 or newer is supported (found version 5.5.0). |
21 | GCC_REQD+= 7 | | 21 | GCC_REQD+= 7 |
22 | | | 22 | |
23 | TOOL_DEPENDS+= cbindgen>=0.14.2:../../devel/cbindgen | | 23 | TOOL_DEPENDS+= cbindgen>=0.24.0:../../devel/cbindgen |
24 | .if ${MACHINE_ARCH} == "sparc64" | | 24 | .if ${MACHINE_ARCH} == "sparc64" |
25 | CONFIGURE_ARGS+= --disable-nodejs | | 25 | CONFIGURE_ARGS+= --disable-nodejs |
26 | .else | | 26 | .else |
27 | TOOL_DEPENDS+= nodejs-[0-9]*:../../lang/nodejs | | 27 | TOOL_DEPENDS+= nodejs-[0-9]*:../../lang/nodejs |
28 | .endif | | 28 | .endif |
29 | | | 29 | |
30 | TOOL_DEPENDS+= ${PYPKGPREFIX}-sqlite3-[0-9]*:../../databases/py-sqlite3 | | 30 | TOOL_DEPENDS+= ${PYPKGPREFIX}-sqlite3-[0-9]*:../../databases/py-sqlite3 |
31 | TOOL_DEPENDS+= ${PYPKGPREFIX}-expat-[0-9]*:../../textproc/py-expat | | 31 | TOOL_DEPENDS+= ${PYPKGPREFIX}-expat-[0-9]*:../../textproc/py-expat |
32 | | | 32 | |
33 | .if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64" | | 33 | .if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64" |
34 | TOOL_DEPENDS+= nasm>=2.14:../../devel/nasm | | 34 | TOOL_DEPENDS+= nasm>=2.14:../../devel/nasm |
35 | TOOL_DEPENDS+= yasm>=1.1:../../devel/yasm | | 35 | TOOL_DEPENDS+= yasm>=1.1:../../devel/yasm |
36 | .endif | | 36 | .endif |