| @@ -1,36 +1,36 @@ | | | @@ -1,36 +1,36 @@ |
1 | # $NetBSD: mozilla-common.mk,v 1.14 2022/09/08 20:27:32 ryoon Exp $ | | 1 | # $NetBSD: mozilla-common.mk,v 1.15 2022/11/08 00:36:56 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/seamonkey/Makefile | | 5 | # used by www/seamonkey/Makefile |
6 | | | 6 | |
7 | HAS_CONFIGURE= yes | | 7 | HAS_CONFIGURE= yes |
8 | CONFIGURE_ARGS+= --prefix=${PREFIX} | | 8 | CONFIGURE_ARGS+= --prefix=${PREFIX} |
9 | USE_TOOLS+= pkg-config perl gmake autoconf213 unzip zip | | 9 | USE_TOOLS+= pkg-config perl gmake autoconf213 unzip zip |
10 | USE_LANGUAGES+= c99 c++ | | 10 | USE_LANGUAGES+= c99 c++ |
11 | UNLIMIT_RESOURCES+= datasize virtualsize | | 11 | UNLIMIT_RESOURCES+= datasize virtualsize |
12 | | | 12 | |
13 | GCC_REQD+= 4.9 | | 13 | GCC_REQD+= 4.9 |
14 | | | 14 | |
15 | .include "../../mk/bsd.prefs.mk" | | 15 | .include "../../mk/bsd.prefs.mk" |
16 | | | 16 | |
17 | # Python 2.7 and Python 3.6 or later are required simultaneously. | | 17 | # Python 2.7 and Python 3.8 or later are required simultaneously. |
18 | PYTHON_VERSIONS_ACCEPTED= 27 | | 18 | PYTHON_VERSIONS_ACCEPTED= 27 |
19 | PYTHON_FOR_BUILD_ONLY= tool | | 19 | PYTHON_FOR_BUILD_ONLY= tool |
20 | TOOL_DEPENDS+= ${PYPKGPREFIX}-expat-[0-9]*:../../textproc/py-expat | | 20 | TOOL_DEPENDS+= ${PYPKGPREFIX}-expat-[0-9]*:../../textproc/py-expat |
21 | # Include pyversion.mk after setting PYTHON_* but before testing the default. | | 21 | # Include pyversion.mk after setting PYTHON_* but before testing the default. |
22 | .include "../../lang/python/pyversion.mk" | | 22 | .include "../../lang/python/pyversion.mk" |
23 | .if !empty(PYTHON_VERSION_DEFAULT:M3[6789]) || !empty(PYTHON_VERSION_DEFAULT:M310) | | 23 | .if !empty(PYTHON_VERSION_DEFAULT:M3[89]) || !empty(PYTHON_VERSION_DEFAULT:M310) |
24 | TOOL_DEPENDS+= python${PYTHON_VERSION_DEFAULT}-[0-9]*:../../lang/python${PYTHON_VERSION_DEFAULT} | | 24 | TOOL_DEPENDS+= python${PYTHON_VERSION_DEFAULT}-[0-9]*:../../lang/python${PYTHON_VERSION_DEFAULT} |
25 | ALL_ENV+= PYTHON3=${PREFIX}/bin/python${PYTHON_VERSION_DEFAULT:S/3/3./} | | 25 | ALL_ENV+= PYTHON3=${PREFIX}/bin/python${PYTHON_VERSION_DEFAULT:S/3/3./} |
26 | .else | | 26 | .else |
27 | TOOL_DEPENDS+= python38-[0-9]*:../../lang/python38 | | 27 | TOOL_DEPENDS+= python38-[0-9]*:../../lang/python38 |
28 | ALL_ENV+= PYTHON3=${PREFIX}/bin/python3.8 | | 28 | ALL_ENV+= PYTHON3=${PREFIX}/bin/python3.8 |
29 | .endif | | 29 | .endif |
30 | | | 30 | |
31 | .if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64" | | 31 | .if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64" |
32 | BUILD_DEPENDS+= yasm>=1.1:../../devel/yasm | | 32 | BUILD_DEPENDS+= yasm>=1.1:../../devel/yasm |
33 | | | 33 | |
34 | # Enable Google widevine CDM. This requires external libwidevinecdm.so. | | 34 | # Enable Google widevine CDM. This requires external libwidevinecdm.so. |
35 | #CONFIGURE_ARGS+= --enable-eme=widevine | | 35 | #CONFIGURE_ARGS+= --enable-eme=widevine |
36 | .endif | | 36 | .endif |