2019-11-03 20:03:56 +01:00
|
|
|
# $NetBSD: Makefile,v 1.7 2019/11/03 19:04:03 rillig Exp $
|
Add micropython-1.5.2, a python 3.4 implementation, to the Packages Collection.
This is the MicroPython project, which aims to put an implementation
of Python 3.x on microcontrollers and small embedded systems.
WARNING: this project is in beta stage and is subject to changes of
the code-base, including project-wide name changes and API changes.
MicroPython implements the entire Python 3.4 syntax (including
exceptions, "with", "yield from", etc.). The following core datatypes
are provided: str (including basic Unicode support), bytes,
bytearray, tuple, list, dict, set, frozenset, array.array,
collections.namedtuple, classes and instances. Builtin modules
include sys, time, and struct. Note that only subset of Python 3.4
functionality is implemented for the data types and modules.
2016-01-18 08:54:50 +01:00
|
|
|
|
2017-11-29 16:13:31 +01:00
|
|
|
DISTNAME= micropython-1.9.2
|
2019-04-25 09:32:34 +02:00
|
|
|
PKGREVISION= 3
|
Add micropython-1.5.2, a python 3.4 implementation, to the Packages Collection.
This is the MicroPython project, which aims to put an implementation
of Python 3.x on microcontrollers and small embedded systems.
WARNING: this project is in beta stage and is subject to changes of
the code-base, including project-wide name changes and API changes.
MicroPython implements the entire Python 3.4 syntax (including
exceptions, "with", "yield from", etc.). The following core datatypes
are provided: str (including basic Unicode support), bytes,
bytearray, tuple, list, dict, set, frozenset, array.array,
collections.namedtuple, classes and instances. Builtin modules
include sys, time, and struct. Note that only subset of Python 3.4
functionality is implemented for the data types and modules.
2016-01-18 08:54:50 +01:00
|
|
|
CATEGORIES= lang
|
2017-11-29 16:13:31 +01:00
|
|
|
MASTER_SITES= http://micropython.org/resources/source/
|
|
|
|
EXTRACT_SUFX= .tar.xz
|
Add micropython-1.5.2, a python 3.4 implementation, to the Packages Collection.
This is the MicroPython project, which aims to put an implementation
of Python 3.x on microcontrollers and small embedded systems.
WARNING: this project is in beta stage and is subject to changes of
the code-base, including project-wide name changes and API changes.
MicroPython implements the entire Python 3.4 syntax (including
exceptions, "with", "yield from", etc.). The following core datatypes
are provided: str (including basic Unicode support), bytes,
bytearray, tuple, list, dict, set, frozenset, array.array,
collections.namedtuple, classes and instances. Builtin modules
include sys, time, and struct. Note that only subset of Python 3.4
functionality is implemented for the data types and modules.
2016-01-18 08:54:50 +01:00
|
|
|
|
|
|
|
MAINTAINER= agc@NetBSD.org
|
|
|
|
HOMEPAGE= https://micropython.org/
|
2017-11-29 16:13:31 +01:00
|
|
|
COMMENT= Embedded version of python 3
|
Add micropython-1.5.2, a python 3.4 implementation, to the Packages Collection.
This is the MicroPython project, which aims to put an implementation
of Python 3.x on microcontrollers and small embedded systems.
WARNING: this project is in beta stage and is subject to changes of
the code-base, including project-wide name changes and API changes.
MicroPython implements the entire Python 3.4 syntax (including
exceptions, "with", "yield from", etc.). The following core datatypes
are provided: str (including basic Unicode support), bytes,
bytearray, tuple, list, dict, set, frozenset, array.array,
collections.namedtuple, classes and instances. Builtin modules
include sys, time, and struct. Note that only subset of Python 3.4
functionality is implemented for the data types and modules.
2016-01-18 08:54:50 +01:00
|
|
|
LICENSE= mit
|
|
|
|
|
|
|
|
DIST_SUBDIR= ${PKGNAME_NOREV}
|
2016-03-22 20:01:17 +01:00
|
|
|
BUILD_DIRS= unix
|
Add micropython-1.5.2, a python 3.4 implementation, to the Packages Collection.
This is the MicroPython project, which aims to put an implementation
of Python 3.x on microcontrollers and small embedded systems.
WARNING: this project is in beta stage and is subject to changes of
the code-base, including project-wide name changes and API changes.
MicroPython implements the entire Python 3.4 syntax (including
exceptions, "with", "yield from", etc.). The following core datatypes
are provided: str (including basic Unicode support), bytes,
bytearray, tuple, list, dict, set, frozenset, array.array,
collections.namedtuple, classes and instances. Builtin modules
include sys, time, and struct. Note that only subset of Python 3.4
functionality is implemented for the data types and modules.
2016-01-18 08:54:50 +01:00
|
|
|
|
2017-11-29 16:13:31 +01:00
|
|
|
USE_TOOLS+= pax gmake pkg-config
|
Add micropython-1.5.2, a python 3.4 implementation, to the Packages Collection.
This is the MicroPython project, which aims to put an implementation
of Python 3.x on microcontrollers and small embedded systems.
WARNING: this project is in beta stage and is subject to changes of
the code-base, including project-wide name changes and API changes.
MicroPython implements the entire Python 3.4 syntax (including
exceptions, "with", "yield from", etc.). The following core datatypes
are provided: str (including basic Unicode support), bytes,
bytearray, tuple, list, dict, set, frozenset, array.array,
collections.namedtuple, classes and instances. Builtin modules
include sys, time, and struct. Note that only subset of Python 3.4
functionality is implemented for the data types and modules.
2016-01-18 08:54:50 +01:00
|
|
|
|
|
|
|
AUTO_MKDIRS= yes
|
|
|
|
|
2017-11-29 16:13:31 +01:00
|
|
|
PYTHON_VERSIONS_INCOMPATIBLE= 27
|
2019-11-03 20:03:56 +01:00
|
|
|
PYTHON_FOR_BUILD_ONLY= yes
|
2017-11-29 16:13:31 +01:00
|
|
|
|
|
|
|
MAKE_ENV+= PYTHON=${PYTHONBIN:Q}
|
|
|
|
MAKE_ENV+= MICROPY_CPYTHON3=${PYTHONBIN:Q}
|
2016-03-22 20:01:17 +01:00
|
|
|
|
|
|
|
REPLACE_PYTHON+= tools/make-frozen.py
|
2017-11-29 16:13:31 +01:00
|
|
|
REPLACE_PYTHON+= tests/run-tests
|
Add micropython-1.5.2, a python 3.4 implementation, to the Packages Collection.
This is the MicroPython project, which aims to put an implementation
of Python 3.x on microcontrollers and small embedded systems.
WARNING: this project is in beta stage and is subject to changes of
the code-base, including project-wide name changes and API changes.
MicroPython implements the entire Python 3.4 syntax (including
exceptions, "with", "yield from", etc.). The following core datatypes
are provided: str (including basic Unicode support), bytes,
bytearray, tuple, list, dict, set, frozenset, array.array,
collections.namedtuple, classes and instances. Builtin modules
include sys, time, and struct. Note that only subset of Python 3.4
functionality is implemented for the data types and modules.
2016-01-18 08:54:50 +01:00
|
|
|
|
2019-11-03 20:03:56 +01:00
|
|
|
SUBST_CLASSES+= fix-paths
|
|
|
|
SUBST_STAGE.fix-paths= pre-configure
|
|
|
|
SUBST_MESSAGE.fix-paths= Fixing absolute paths.
|
|
|
|
SUBST_FILES.fix-paths= unix/main.c
|
|
|
|
SUBST_SED.fix-paths= -e 's,%PREFIX%,${PREFIX},g'
|
2017-11-30 15:41:30 +01:00
|
|
|
|
2017-11-29 16:13:31 +01:00
|
|
|
pre-configure:
|
|
|
|
cd ${WRKSRC}/lib/axtls && ${GMAKE} clean
|
|
|
|
|
|
|
|
pre-build:
|
|
|
|
cd ${WRKSRC}/unix && ${GMAKE} axtls
|
|
|
|
|
|
|
|
do-test:
|
|
|
|
cd ${WRKSRC}/unix && env ${MAKE_ENV} ${GMAKE} test
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/unix/micropython ${DESTDIR}${PREFIX}/bin
|
2016-03-22 20:01:17 +01:00
|
|
|
|
|
|
|
.include "../../devel/libffi/buildlink3.mk"
|
|
|
|
.include "../../lang/python/application.mk"
|
Add micropython-1.5.2, a python 3.4 implementation, to the Packages Collection.
This is the MicroPython project, which aims to put an implementation
of Python 3.x on microcontrollers and small embedded systems.
WARNING: this project is in beta stage and is subject to changes of
the code-base, including project-wide name changes and API changes.
MicroPython implements the entire Python 3.4 syntax (including
exceptions, "with", "yield from", etc.). The following core datatypes
are provided: str (including basic Unicode support), bytes,
bytearray, tuple, list, dict, set, frozenset, array.array,
collections.namedtuple, classes and instances. Builtin modules
include sys, time, and struct. Note that only subset of Python 3.4
functionality is implemented for the data types and modules.
2016-01-18 08:54:50 +01:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|