Makefile 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. COMMENT = a lean and efficient implementation of Python 3
  2. ONLY_FOR_ARCHS = aarch64 amd64
  3. V = 1.23.0
  4. DISTNAME = micropython-$(V)
  5. CATEGORIES = lang devel
  6. HOMEPAGE = https://micropython.org/
  7. MAINTAINER = Markus Hennecke <markus-hennecke@markus-hennecke.de>
  8. # MIT
  9. PERMIT_PACKAGE = Yes
  10. PERMIT_DISTFILES = Yes
  11. SITES = ${HOMEPAGE}resources/source/
  12. EXTRACT_SUFX = .tar.xz
  13. # Dependencies
  14. LIB_DEPENDS = devel/libffi
  15. MODULES = lang/python
  16. MODPY_RUNDEP = No
  17. MAKE_FLAGS = CC=$(CC) V=1
  18. USE_GMAKE = Yes
  19. CONFIGURE_STYLE = none
  20. NO_TEST = Yes
  21. WANTLIB += c m pthread ffi
  22. do-build:
  23. cd ${WRKBUILD}/mpy-cross && \
  24. env -i ${MAKE_ENV} ${MAKE_PROGRAM} ${MAKE_FLAGS} \
  25. -f ${MAKE_FILE} ${ALL_TARGET}
  26. cd ${WRKBUILD}/ports/unix && \
  27. env -i ${MAKE_ENV} ${MAKE_PROGRAM} ${MAKE_FLAGS} \
  28. -f ${MAKE_FILE} ${ALL_TARGET}
  29. do-install:
  30. cd ${WRKBUILD}/ports/unix && \
  31. env -i ${MAKE_ENV} ${FAKE_SETUP} ${MAKE_PROGRAM} ${ALL_FAKE_FLAGS} \
  32. -f ${MAKE_FILE} ${FAKE_TARGET}
  33. ${INSTALL_PROGRAM} ${WRKBUILD}/mpy-cross/build/mpy-cross ${PREFIX}/bin/mpy-cross
  34. .include <bsd.port.mk>