View | Details | Raw Unified | Return to bug 241463 | Differences between
and this patch

Collapse All | Expand All

(-)Mk/Uses/scons.mk (-2 / +17 lines)
Lines 10-22 Link Here
10
.if !defined(_INCLUDE_USES_SCONS_MK)
10
.if !defined(_INCLUDE_USES_SCONS_MK)
11
_INCLUDE_USES_SCONS_MK=	yes
11
_INCLUDE_USES_SCONS_MK=	yes
12
12
13
.if !empty(scons_ARGS)
13
# Make sure that no dependency or some other environment variable
14
IGNORE=	Incorrect 'USES+= scons:${scons_ARGS}' scons takes no arguments
14
# pollutes the build/run dependency detection
15
.undef _SCONS_PYTHON3_DEP
16
_SCONS_ARGS=           ${scons_ARGS:S/,/ /g}
17
.if ${_SCONS_ARGS:Mpy3}
18
_SCONS_PYTHON3_DEP=      yes
19
_SCONS_ARGS:=          ${_SCONS_ARGS:Npy3}
15
.endif
20
.endif
16
21
22
_SCONS_PYTHON3_DEP=no
23
24
.if !empty(_SCONS_ARGS)
25
IGNORE=	Incorrect 'USES+= scons:${_SCONS_ARGS}' unknown argument
26
.endif
27
17
SCONS=		${LOCALBASE}/bin/scons
28
SCONS=		${LOCALBASE}/bin/scons
18
29
30
.if ${_SCONS_PYTHON3_DEP} == "yes"
31
BUILD_DEPENDS+=	${SCONS}:devel/scons-py3
32
.else
19
BUILD_DEPENDS+=	${SCONS}:devel/scons
33
BUILD_DEPENDS+=	${SCONS}:devel/scons
34
.endif
20
35
21
ALL_TARGET=	#
36
ALL_TARGET=	#
22
CCFLAGS?=	${CFLAGS}
37
CCFLAGS?=	${CFLAGS}

Return to bug 241463