Mercurial > hgrepos > FreeBSD > ports > PyPy
comparison lang/pypy2/bsd.pypy.mk @ 65:9e9df3f25e7d
Move the old imported pypy repo into the lang/pypy2 folder
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Fri, 12 Jan 2024 09:18:14 +0100 |
| parents | bsd.pypy.mk@3ff956f569d6 |
| children | b907e948fed9 |
comparison
equal
deleted
inserted
replaced
| 64:4f846c664620 | 65:9e9df3f25e7d |
|---|---|
| 1 # Common include for lang/pypy and lang/pypy3 | |
| 2 # Also includes bsd.port.pre.mk | |
| 3 | |
| 4 .if !defined(LICENSE) | |
| 5 LICENSE= MIT PSFL | |
| 6 LICENSE_COMB= multi | |
| 7 .endif | |
| 8 | |
| 9 USES+= compiler:c11 | |
| 10 | |
| 11 PYTHON_IMPL?= ${PORTNAME} | |
| 12 PYPY_DIR= ${PYTHON_IMPL}-${DISTVERSION:C|([0-9])\.([0-9]+).*|\1.\2|} | |
| 13 PLIST_SUB+= PYPY_DIR=${PYPY_DIR} \ | |
| 14 PYPY_CFFI_VER=${PYPY_CFFI_VER} \ | |
| 15 PYPY_LDLIBRARY=${PYPY_LDLIBRARY} | |
| 16 | |
| 17 .if ${PYTHON_IMPL} == pypy | |
| 18 | |
| 19 DISTVERSION= 7.3.14 | |
| 20 PY_VERSION_SHORT= 2.7 | |
| 21 PYPY_CFFI_VER= ${PYTHON_IMPL}-73 | |
| 22 PYPY_LDLIBRARY= libpypy-c.so | |
| 23 PYPY_EXECUTABLE= pypy-c | |
| 24 | |
| 25 .else # ${PYTHON_IMPL} == pypy3 | |
| 26 | |
| 27 DISTVERSION= 7.3.14 | |
| 28 PYPY_CFFI_VER= ${PYTHON_IMPL_NODOT}-pp${DISTVERSION:S|.||:C|\..*||}-${OPSYS:tl}${OSREL:C|\..*||} | |
| 29 PLIST_SUB+= PYTHON_IMPL_MINOR=${PYTHON_IMPL_MINOR} \ | |
| 30 PY_VERSION_SHORT=${PY_VERSION_SHORT} \ | |
| 31 PYPY_BCTAG=${PYPY_BCTAG} | |
| 32 | |
| 33 OPTIONS_DEFINE= BYTECOMPILE | |
| 34 OPTIONS_DEFAULT= BYTECOMPILE | |
| 35 | |
| 36 BYTECOMPILE_DESC= Enable to build byte-compiled Python files | |
| 37 | |
| 38 OPTIONS_SINGLE+= FORPYIMPL BCSTYLE | |
| 39 | |
| 40 OPTIONS_SINGLE_FORPYIMPL= FORPYIMPL37 FORPYIMPL38 FORPYIMPL39 FORPYIMPL310 | |
| 41 | |
| 42 FORPYIMPL_DESC= Required Python compatibility | |
| 43 FORPYIMPL37_DESC= Build for compat to Python 3.7 | |
| 44 FORPYIMPL38_DESC= Build for compat to Python 3.8 | |
| 45 FORPYIMPL39_DESC= Build for compat to Python 3.9 | |
| 46 FORPYIMPL310_DESC= Build for compat to Python 3.10 | |
| 47 | |
| 48 OPTIONS_SINGLE_BCSTYLE= BCTIMESTAMP BCCHECKEDHASH BCUNCHECKEDHASH | |
| 49 | |
| 50 BCSTYLE_DESC= PEP-552 .pyc-File Invalidation Modes | |
| 51 BCTIMESTAMP_DESC= Traditional timestamp based .pyc file invalidataion | |
| 52 BCCHECKEDHASH_DESC= Use checked hash based .pyc file invalidataion | |
| 53 BCUNCHECKEDHASH_DESC= Use unchecked hash based .pyc file invalidataion | |
| 54 | |
| 55 OPTIONS_SUB= yes | |
| 56 OPTIONS_DEFAULT+= FORPYIMPL39 BCUNCHECKEDHASH | |
| 57 | |
| 58 BCTIMESTAMP_VARS= COMPILEALL_INVALIDATIONMODE=timestamp | |
| 59 BCCHECKEDHASH_VARS= COMPILEALL_INVALIDATIONMODE=checked-hash | |
| 60 BCUNCHECKEDHASH_VARS= COMPILEALL_INVALIDATIONMODE=unchecked-hash | |
| 61 | |
| 62 .endif | |
| 63 | |
| 64 PY_VERSION_NODOT= ${PY_VERSION_SHORT:S/.//} | |
| 65 PYTHON_IMPL_MINOR= pypy${PY_VERSION_SHORT} | |
| 66 PYTHON_IMPL_NODOT= pypy${PY_VERSION_NODOT} | |
| 67 | |
| 68 DISTINFO_FILE= ${.CURDIR}/distinfo.py${PY_VERSION_NODOT} | |
| 69 | |
| 70 .include <bsd.port.options.mk> | |
| 71 | |
| 72 .if ${PORT_OPTIONS:MFORPYIMPL37} | |
| 73 PY_VERSION_SHORT= 3.7 | |
| 74 PYPY_LDLIBRARY= libpypy3-c.so | |
| 75 PYPY_EXECUTABLE= pypy3-c | |
| 76 .endif | |
| 77 .if ${PORT_OPTIONS:MFORPYIMPL38} | |
| 78 PY_VERSION_SHORT= 3.8 | |
| 79 PYPY_LDLIBRARY= libpypy3-c.so | |
| 80 PYPY_EXECUTABLE= pypy3-c | |
| 81 .endif | |
| 82 .if ${PORT_OPTIONS:MFORPYIMPL39} | |
| 83 PY_VERSION_SHORT= 3.9 | |
| 84 PYPY_LDLIBRARY= libpypy3.9-c.so | |
| 85 PYPY_EXECUTABLE= pypy3.9-c | |
| 86 PYPY_BCTAG= .pypy39 | |
| 87 .endif | |
| 88 .if ${PORT_OPTIONS:MFORPYIMPL310} | |
| 89 PY_VERSION_SHORT= 3.10 | |
| 90 PYPY_LDLIBRARY= libpypy3.10-c.so | |
| 91 PYPY_EXECUTABLE= pypy3.10-c | |
| 92 PYPY_BCTAG= .pypy310 | |
| 93 .endif | |
| 94 | |
| 95 .include <bsd.port.pre.mk> |
