File:  [cvs.NetBSD.org] / pkgsrc / lang / micropython / Makefile
Revision 1.7: download - view: text, annotated - select for diffs
Sun Nov 3 19:04:03 2019 UTC (5 years ago) by rillig
Branches: MAIN
CVS tags: pkgsrc-2019Q4-base, pkgsrc-2019Q4, HEAD
lang: align variable assignments

pkglint -Wall -F --only aligned --only indent -r

No manual corrections.

# $NetBSD: Makefile,v 1.7 2019/11/03 19:04:03 rillig Exp $

DISTNAME=	micropython-1.9.2
PKGREVISION=	3
CATEGORIES=	lang
MASTER_SITES=	http://micropython.org/resources/source/
EXTRACT_SUFX=	.tar.xz

MAINTAINER=	agc@NetBSD.org
HOMEPAGE=	https://micropython.org/
COMMENT=	Embedded version of python 3
LICENSE=	mit

DIST_SUBDIR=	${PKGNAME_NOREV}
BUILD_DIRS=	unix

USE_TOOLS+=	pax gmake pkg-config

AUTO_MKDIRS=	yes

PYTHON_VERSIONS_INCOMPATIBLE=	27
PYTHON_FOR_BUILD_ONLY=		yes

MAKE_ENV+=	PYTHON=${PYTHONBIN:Q}
MAKE_ENV+=	MICROPY_CPYTHON3=${PYTHONBIN:Q}

REPLACE_PYTHON+=	tools/make-frozen.py
REPLACE_PYTHON+=	tests/run-tests

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'

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

.include "../../devel/libffi/buildlink3.mk"
.include "../../lang/python/application.mk"
.include "../../mk/bsd.pkg.mk"

CVSweb <webmaster@jp.NetBSD.org>