Lines 1-30
Link Here
|
1 |
# Provide support to use the scons |
1 |
# Provide support to use the scons |
2 |
# |
2 |
# |
3 |
# Feature: scons |
3 |
# Feature: scons |
4 |
# Usage: USES=scons[:ARGS] |
4 |
# Usage: USES=scons |
5 |
# Valid ARGS: python2 python3 |
5 |
# Valid ARGS: none |
6 |
# |
|
|
7 |
# python2: Use default python 2.x to run scons |
8 |
# python3: Use default python 3.x to run scons (default) |
9 |
# |
6 |
# |
10 |
# MAINTAINER: python@FreeBSD.org |
7 |
# MAINTAINER: python@FreeBSD.org |
11 |
|
8 |
|
12 |
.if !defined(_INCLUDE_USES_SCONS_MK) |
9 |
.if !defined(_INCLUDE_USES_SCONS_MK) |
13 |
_INCLUDE_USES_SCONS_MK= yes |
10 |
_INCLUDE_USES_SCONS_MK= yes |
14 |
|
11 |
|
15 |
.if empty(scons_ARGS) |
12 |
. if !empty(scons_ARGS) |
16 |
scons_ARGS= python3 |
13 |
IGNORE+= USES=scons takes no arguments |
17 |
.endif |
14 |
. endif |
18 |
|
15 |
|
19 |
.if ${scons_ARGS} == python3 |
|
|
20 |
_SCONS_PYTHON_VER= ${PYTHON3_DEFAULT} |
16 |
_SCONS_PYTHON_VER= ${PYTHON3_DEFAULT} |
21 |
.elif ${scons_ARGS} == python2 |
|
|
22 |
_SCONS_PYTHON_VER= ${PYTHON2_DEFAULT} |
23 |
DEPRECATED?= Uses Python 2.7 version of scons, and Python 2.7 which is EOLed upstream |
24 |
EXPIRATION_DATE?= 2020-12-31 |
25 |
.else |
26 |
IGNORE= Incorrect 'USES+= scons:${scons_ARGS}' usage |
27 |
.endif |
28 |
|
17 |
|
29 |
_SCONS_PYTHON_FLAVOR= py${_SCONS_PYTHON_VER:S|.||} |
18 |
_SCONS_PYTHON_FLAVOR= py${_SCONS_PYTHON_VER:S|.||} |
30 |
|
19 |
|