Mercurial > hgrepos > FreeBSD > ports > PyPy
annotate bsd.pypy.mk @ 25:ee6885d5bdcb
Allow to build CFFI extensions for PyPy3.7 also.
PyPy3.7 has the same directory layout as PyPy2.7.
PyPy3.8 has a new layout which is more similar to CPython.
NOTE: PyPy3.9 will also name its shared library implementation with a version information
in it. This will allow side-by-side installations.
| author | Franz Glasner <f.glasner@feldmann-mg.com> |
|---|---|
| date | Wed, 05 Oct 2022 17:22:18 +0200 |
| parents | d2d396c79e9f |
| children | bb33295dc62d |
| rev | line source |
|---|---|
| 22 | 1 # Common include for lang/pypy and lang/pypy3 |
|
20
246c2f328231
Now include bsd.port.pre.mk automitically from within bsd.pypy.mk
Franz Glasner <fzglas.hg@dom66.de>
parents:
15
diff
changeset
|
2 # Also includes bsd.port.pre.mk |
|
246c2f328231
Now include bsd.port.pre.mk automitically from within bsd.pypy.mk
Franz Glasner <fzglas.hg@dom66.de>
parents:
15
diff
changeset
|
3 |
|
2
5797a1bc38cb
ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
4 .if !defined(LICENSE) |
|
5797a1bc38cb
ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
5 LICENSE= MIT PSFL |
|
5797a1bc38cb
ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
6 LICENSE_COMB= multi |
|
5797a1bc38cb
ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
7 .endif |
|
5797a1bc38cb
ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
8 |
|
5797a1bc38cb
ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
9 USES+= compiler:c11 |
|
5797a1bc38cb
ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
10 |
|
5797a1bc38cb
ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
11 PYTHON_IMPL?= ${PORTNAME} |
|
5797a1bc38cb
ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
12 PYPY_DIR= ${PYTHON_IMPL}-${DISTVERSION:C|([0-9])\.([0-9]+).*|\1.\2|} |
|
5797a1bc38cb
ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
13 PLIST_SUB+= PYPY_DIR=${PYPY_DIR} PYPY_CFFI_VER=${PYPY_CFFI_VER} |
|
5797a1bc38cb
ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
14 |
|
5797a1bc38cb
ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
15 .if ${PYTHON_IMPL} == pypy |
|
23
d16a4f379bbc
Employ makefile options to determine the Python version to build for (3.7, 3.8, 3.9) on PyPy3
Franz Glasner <fzglas.hg@dom66.de>
parents:
22
diff
changeset
|
16 |
|
10
c269f1e91387
Update to build PyPy on FreeBSD 13.1 with dist versilon 7.3.9
Franz Glasner <fzglas.hg@dom66.de>
parents:
2
diff
changeset
|
17 DISTVERSION= 7.3.9 |
|
21
27f6cd24b808
More centralized Python version management
Franz Glasner <f.glasner@feldmann-mg.com>
parents:
20
diff
changeset
|
18 PY_VERSION_SHORT= 2.7 |
|
2
5797a1bc38cb
ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
19 PYPY_CFFI_VER= ${PYTHON_IMPL}-73 |
|
23
d16a4f379bbc
Employ makefile options to determine the Python version to build for (3.7, 3.8, 3.9) on PyPy3
Franz Glasner <fzglas.hg@dom66.de>
parents:
22
diff
changeset
|
20 |
|
2
5797a1bc38cb
ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
21 .else # ${PYTHON_IMPL} == pypy3 |
|
23
d16a4f379bbc
Employ makefile options to determine the Python version to build for (3.7, 3.8, 3.9) on PyPy3
Franz Glasner <fzglas.hg@dom66.de>
parents:
22
diff
changeset
|
22 |
|
10
c269f1e91387
Update to build PyPy on FreeBSD 13.1 with dist versilon 7.3.9
Franz Glasner <fzglas.hg@dom66.de>
parents:
2
diff
changeset
|
23 DISTVERSION= 7.3.9 |
|
21
27f6cd24b808
More centralized Python version management
Franz Glasner <f.glasner@feldmann-mg.com>
parents:
20
diff
changeset
|
24 PYPY_CFFI_VER= ${PYTHON_IMPL_NODOT}-pp${DISTVERSION:S|.||:C|\..*||}-${OPSYS:tl}${OSREL:C|\..*||} |
|
23
d16a4f379bbc
Employ makefile options to determine the Python version to build for (3.7, 3.8, 3.9) on PyPy3
Franz Glasner <fzglas.hg@dom66.de>
parents:
22
diff
changeset
|
25 PLIST_SUB+= PYTHON_IMPL_MINOR=${PYTHON_IMPL_MINOR} PY_VERSION_SHORT=${PY_VERSION_SHORT} |
|
d16a4f379bbc
Employ makefile options to determine the Python version to build for (3.7, 3.8, 3.9) on PyPy3
Franz Glasner <fzglas.hg@dom66.de>
parents:
22
diff
changeset
|
26 |
|
d16a4f379bbc
Employ makefile options to determine the Python version to build for (3.7, 3.8, 3.9) on PyPy3
Franz Glasner <fzglas.hg@dom66.de>
parents:
22
diff
changeset
|
27 OPTIONS_SINGLE+= FORPYIMPL |
|
d16a4f379bbc
Employ makefile options to determine the Python version to build for (3.7, 3.8, 3.9) on PyPy3
Franz Glasner <fzglas.hg@dom66.de>
parents:
22
diff
changeset
|
28 |
|
d16a4f379bbc
Employ makefile options to determine the Python version to build for (3.7, 3.8, 3.9) on PyPy3
Franz Glasner <fzglas.hg@dom66.de>
parents:
22
diff
changeset
|
29 OPTIONS_SINGLE_FORPYIMPL = FORPYIMPL37 FORPYIMPL38 FORPYIMPL39 |
|
d16a4f379bbc
Employ makefile options to determine the Python version to build for (3.7, 3.8, 3.9) on PyPy3
Franz Glasner <fzglas.hg@dom66.de>
parents:
22
diff
changeset
|
30 |
|
d16a4f379bbc
Employ makefile options to determine the Python version to build for (3.7, 3.8, 3.9) on PyPy3
Franz Glasner <fzglas.hg@dom66.de>
parents:
22
diff
changeset
|
31 FORPYIMPL_DESC= Required Python compatibility |
|
d16a4f379bbc
Employ makefile options to determine the Python version to build for (3.7, 3.8, 3.9) on PyPy3
Franz Glasner <fzglas.hg@dom66.de>
parents:
22
diff
changeset
|
32 FORPYIMPL37_DESC= Build for compat to Python 3.7 |
|
d16a4f379bbc
Employ makefile options to determine the Python version to build for (3.7, 3.8, 3.9) on PyPy3
Franz Glasner <fzglas.hg@dom66.de>
parents:
22
diff
changeset
|
33 FORPYIMPL38_DESC= Build for compat to Python 3.8 |
|
d16a4f379bbc
Employ makefile options to determine the Python version to build for (3.7, 3.8, 3.9) on PyPy3
Franz Glasner <fzglas.hg@dom66.de>
parents:
22
diff
changeset
|
34 FORPYIMPL39_DESC= Build for compat to Python 3.9 |
|
d16a4f379bbc
Employ makefile options to determine the Python version to build for (3.7, 3.8, 3.9) on PyPy3
Franz Glasner <fzglas.hg@dom66.de>
parents:
22
diff
changeset
|
35 |
|
d16a4f379bbc
Employ makefile options to determine the Python version to build for (3.7, 3.8, 3.9) on PyPy3
Franz Glasner <fzglas.hg@dom66.de>
parents:
22
diff
changeset
|
36 OPTIONS_SUB= yes |
|
d16a4f379bbc
Employ makefile options to determine the Python version to build for (3.7, 3.8, 3.9) on PyPy3
Franz Glasner <fzglas.hg@dom66.de>
parents:
22
diff
changeset
|
37 OPTIONS_DEFAULT+= FORPYIMPL38 |
|
d16a4f379bbc
Employ makefile options to determine the Python version to build for (3.7, 3.8, 3.9) on PyPy3
Franz Glasner <fzglas.hg@dom66.de>
parents:
22
diff
changeset
|
38 |
|
2
5797a1bc38cb
ADD: the latest easily available port of lang/pypy
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
39 .endif |
|
20
246c2f328231
Now include bsd.port.pre.mk automitically from within bsd.pypy.mk
Franz Glasner <fzglas.hg@dom66.de>
parents:
15
diff
changeset
|
40 |
|
21
27f6cd24b808
More centralized Python version management
Franz Glasner <f.glasner@feldmann-mg.com>
parents:
20
diff
changeset
|
41 PY_VERSION_NODOT= ${PY_VERSION_SHORT:S/.//} |
|
27f6cd24b808
More centralized Python version management
Franz Glasner <f.glasner@feldmann-mg.com>
parents:
20
diff
changeset
|
42 PYTHON_IMPL_MINOR= pypy${PY_VERSION_SHORT} |
|
27f6cd24b808
More centralized Python version management
Franz Glasner <f.glasner@feldmann-mg.com>
parents:
20
diff
changeset
|
43 PYTHON_IMPL_NODOT= pypy${PY_VERSION_NODOT} |
|
27f6cd24b808
More centralized Python version management
Franz Glasner <f.glasner@feldmann-mg.com>
parents:
20
diff
changeset
|
44 |
|
24
d2d396c79e9f
Allow to overwrite DISTINFO_FILE and PLIST from slave ports.
Franz Glasner <f.glasner@feldmann-mg.com>
parents:
23
diff
changeset
|
45 DISTINFO_FILE= ${.CURDIR}/distinfo.py${PY_VERSION_NODOT} |
|
d2d396c79e9f
Allow to overwrite DISTINFO_FILE and PLIST from slave ports.
Franz Glasner <f.glasner@feldmann-mg.com>
parents:
23
diff
changeset
|
46 |
|
20
246c2f328231
Now include bsd.port.pre.mk automitically from within bsd.pypy.mk
Franz Glasner <fzglas.hg@dom66.de>
parents:
15
diff
changeset
|
47 .include <bsd.port.pre.mk> |
|
23
d16a4f379bbc
Employ makefile options to determine the Python version to build for (3.7, 3.8, 3.9) on PyPy3
Franz Glasner <fzglas.hg@dom66.de>
parents:
22
diff
changeset
|
48 |
|
d16a4f379bbc
Employ makefile options to determine the Python version to build for (3.7, 3.8, 3.9) on PyPy3
Franz Glasner <fzglas.hg@dom66.de>
parents:
22
diff
changeset
|
49 .if ${PORT_OPTIONS:MFORPYIMPL37} |
|
d16a4f379bbc
Employ makefile options to determine the Python version to build for (3.7, 3.8, 3.9) on PyPy3
Franz Glasner <fzglas.hg@dom66.de>
parents:
22
diff
changeset
|
50 PY_VERSION_SHORT= 3.7 |
|
d16a4f379bbc
Employ makefile options to determine the Python version to build for (3.7, 3.8, 3.9) on PyPy3
Franz Glasner <fzglas.hg@dom66.de>
parents:
22
diff
changeset
|
51 .endif |
|
d16a4f379bbc
Employ makefile options to determine the Python version to build for (3.7, 3.8, 3.9) on PyPy3
Franz Glasner <fzglas.hg@dom66.de>
parents:
22
diff
changeset
|
52 .if ${PORT_OPTIONS:MFORPYIMPL38}# |
|
d16a4f379bbc
Employ makefile options to determine the Python version to build for (3.7, 3.8, 3.9) on PyPy3
Franz Glasner <fzglas.hg@dom66.de>
parents:
22
diff
changeset
|
53 PY_VERSION_SHORT= 3.8 |
|
d16a4f379bbc
Employ makefile options to determine the Python version to build for (3.7, 3.8, 3.9) on PyPy3
Franz Glasner <fzglas.hg@dom66.de>
parents:
22
diff
changeset
|
54 .endif |
|
d16a4f379bbc
Employ makefile options to determine the Python version to build for (3.7, 3.8, 3.9) on PyPy3
Franz Glasner <fzglas.hg@dom66.de>
parents:
22
diff
changeset
|
55 .if ${PORT_OPTIONS:MFORPYIMPL39} |
|
d16a4f379bbc
Employ makefile options to determine the Python version to build for (3.7, 3.8, 3.9) on PyPy3
Franz Glasner <fzglas.hg@dom66.de>
parents:
22
diff
changeset
|
56 PY_VERSION_SHORT= 3.9 |
|
d16a4f379bbc
Employ makefile options to determine the Python version to build for (3.7, 3.8, 3.9) on PyPy3
Franz Glasner <fzglas.hg@dom66.de>
parents:
22
diff
changeset
|
57 .endif |
