38 lines
990 B
Bash
38 lines
990 B
Bash
# Template file for 'micropython'
|
|
pkgname=micropython
|
|
version=1.12
|
|
revision=2
|
|
build_wrksrc=ports/unix
|
|
hostmakedepends="pkg-config python3"
|
|
makedepends="libffi-devel"
|
|
short_desc="Implementation of Python 3.x for microcontrollers"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="MIT"
|
|
homepage="https://micropython.org/"
|
|
distfiles="https://github.com/micropython/micropython/releases/download/v${version}/micropython-${version}.tar.gz"
|
|
checksum=be2041924496f49b580f06c2d328c7757bbc7b62408abb11841ebeb87302c575
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
ppc*) broken="missing nlr_push" ;;
|
|
esac
|
|
|
|
if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
|
|
makedepends+=" musl-legacy-compat"
|
|
fi
|
|
|
|
pre_configure() {
|
|
sed -i 's|-Werror||;/^COPT =/d' Makefile
|
|
}
|
|
|
|
do_build() {
|
|
unset CPP
|
|
make -C ../../mpy-cross V=1 STRIP=echo ${makejobs}
|
|
make V=1 CC=${CC} CFLAGS_EXTRA="${CPPFLAGS} ${CFLAGS}" \
|
|
LDFLAGS_EXTRA="${LDFLAGS}" STRIP=echo ${makejobs} axtls all
|
|
}
|
|
|
|
do_install() {
|
|
vbin micropython
|
|
vlicense ../../LICENSE
|
|
}
|