Wed Mar 21 16:06:29 2018 UTC ()
www/firefox: set some macro before including <bsd.prefs.mk>

Set some make macro before including <bsd.prefs.mk> in order to allow
to set additional values in mk.conf.


(taca)
diff -r1.107 -r1.108 pkgsrc/www/firefox/mozilla-common.mk

cvs diff -r1.107 -r1.108 pkgsrc/www/firefox/mozilla-common.mk (expand / switch to unified diff)

--- pkgsrc/www/firefox/mozilla-common.mk 2018/03/17 17:55:13 1.107
+++ pkgsrc/www/firefox/mozilla-common.mk 2018/03/21 16:06:29 1.108
@@ -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
 8HAS_CONFIGURE= yes
 9CONFIGURE_ARGS+= --prefix=${PREFIX}
 10USE_TOOLS+= pkg-config perl gmake autoconf213 unzip zip
 11USE_LANGUAGES+= c99 c++
 12UNLIMIT_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"
11BUILD_DEPENDS+= yasm>=1.1:../../devel/yasm 17BUILD_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
17HAS_CONFIGURE= yes 
18CONFIGURE_ARGS+= --prefix=${PREFIX} 
19# For rustc/cargo detection 23# For rustc/cargo detection
20CONFIGURE_ARGS+= --target=${MACHINE_GNU_PLATFORM:Q} 24CONFIGURE_ARGS+= --target=${MACHINE_GNU_PLATFORM:Q}
21CONFIGURE_ARGS+= --host=${MACHINE_GNU_PLATFORM:Q} 25CONFIGURE_ARGS+= --host=${MACHINE_GNU_PLATFORM:Q}
22USE_TOOLS+= pkg-config perl gmake autoconf213 unzip zip 
23USE_LANGUAGES+= c99 c++ 
24UNLIMIT_RESOURCES+= datasize 
25 26
26CONFIGURE_ENV+= BINDGEN_CFLAGS="-isystem${PREFIX}/include/nspr \ 27CONFIGURE_ENV+= BINDGEN_CFLAGS="-isystem${PREFIX}/include/nspr \
27 -isystem${X11BASE}/include/pixman-1" 28 -isystem${X11BASE}/include/pixman-1"
28 29
29test: 30test:
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"
35TOOLS_PLATFORM.tar= ${TOOLS_PATH.bsdtar} 36TOOLS_PLATFORM.tar= ${TOOLS_PATH.bsdtar}
36USE_TOOLS+= bsdtar 37USE_TOOLS+= bsdtar
37.endif 38.endif