| @@ -1,37 +1,38 @@ | | | @@ -1,37 +1,38 @@ |
1 | # $NetBSD: mozilla-common.mk,v 1.107 2018/03/17 17:55:13 maya Exp $ | | 1 | # $NetBSD: mozilla-common.mk,v 1.108 2018/03/21 16:06:29 taca 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 | # used by www/seamonkey/Makefile | | 6 | # used by www/seamonkey/Makefile |
7 | | | 7 | |
| | | 8 | HAS_CONFIGURE= yes |
| | | 9 | CONFIGURE_ARGS+= --prefix=${PREFIX} |
| | | 10 | USE_TOOLS+= pkg-config perl gmake autoconf213 unzip zip |
| | | 11 | USE_LANGUAGES+= c99 c++ |
| | | 12 | UNLIMIT_RESOURCES+= datasize |
| | | 13 | |
8 | .include "../../mk/bsd.prefs.mk" | | 14 | .include "../../mk/bsd.prefs.mk" |
9 | | | 15 | |
10 | .if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64" | | 16 | .if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64" |
11 | BUILD_DEPENDS+= yasm>=1.1:../../devel/yasm | | 17 | BUILD_DEPENDS+= yasm>=1.1:../../devel/yasm |
12 | | | 18 | |
13 | # Enable Google widevine CDM. This requires external libwidevinecdm.so. | | 19 | # Enable Google widevine CDM. This requires external libwidevinecdm.so. |
14 | #CONFIGURE_ARGS+= --enable-eme=widevine | | 20 | #CONFIGURE_ARGS+= --enable-eme=widevine |
15 | .endif | | 21 | .endif |
16 | | | 22 | |
17 | HAS_CONFIGURE= yes | | | |
18 | CONFIGURE_ARGS+= --prefix=${PREFIX} | | | |
19 | # For rustc/cargo detection | | 23 | # For rustc/cargo detection |
20 | CONFIGURE_ARGS+= --target=${MACHINE_GNU_PLATFORM:Q} | | 24 | CONFIGURE_ARGS+= --target=${MACHINE_GNU_PLATFORM:Q} |
21 | CONFIGURE_ARGS+= --host=${MACHINE_GNU_PLATFORM:Q} | | 25 | CONFIGURE_ARGS+= --host=${MACHINE_GNU_PLATFORM:Q} |
22 | USE_TOOLS+= pkg-config perl gmake autoconf213 unzip zip | | | |
23 | USE_LANGUAGES+= c99 c++ | | | |
24 | UNLIMIT_RESOURCES+= datasize | | | |
25 | | | 26 | |
26 | CONFIGURE_ENV+= BINDGEN_CFLAGS="-isystem${PREFIX}/include/nspr \ | | 27 | CONFIGURE_ENV+= BINDGEN_CFLAGS="-isystem${PREFIX}/include/nspr \ |
27 | -isystem${X11BASE}/include/pixman-1" | | 28 | -isystem${X11BASE}/include/pixman-1" |
28 | | | 29 | |
29 | test: | | 30 | test: |
30 | cd ${WRKSRC}/${OBJDIR}/dist/bin && \ | | 31 | cd ${WRKSRC}/${OBJDIR}/dist/bin && \ |
31 | ./run-mozilla.sh ${WRKSRC}/mach check-spidermonkey | | 32 | ./run-mozilla.sh ${WRKSRC}/mach check-spidermonkey |
32 | | | 33 | |
33 | # tar(1) of OpenBSD 5.5 has no --exclude command line option. | | 34 | # tar(1) of OpenBSD 5.5 has no --exclude command line option. |
34 | .if ${OPSYS} == "OpenBSD" | | 35 | .if ${OPSYS} == "OpenBSD" |
35 | TOOLS_PLATFORM.tar= ${TOOLS_PATH.bsdtar} | | 36 | TOOLS_PLATFORM.tar= ${TOOLS_PATH.bsdtar} |
36 | USE_TOOLS+= bsdtar | | 37 | USE_TOOLS+= bsdtar |
37 | .endif | | 38 | .endif |