python-ipy.mk 825 B

1234567891011121314151617181920212223242526
  1. ################################################################################
  2. #
  3. # python-ipy
  4. #
  5. ################################################################################
  6. PYTHON_IPY_VERSION = IPy-0.75
  7. PYTHON_IPY_SITE = https://github.com/haypo/python-ipy/tarball/$(PYTHON_IPY_VERSION)
  8. PYTHON_IPY_DEPENDENCIES = host-python python
  9. PYTHON_IPY_LICENSE = BSD-3c
  10. PYTHON_IPY_LICENSE_FILES = COPYING
  11. define PYTHON_IPY_BUILD_CMDS
  12. (cd $(@D); \
  13. $(TARGET_CONFIGURE_OPTS) \
  14. $(HOST_DIR)/usr/bin/python setup.py build_ext \
  15. --include-dirs=$(STAGING_DIR)/usr/include/python$(PYTHON_VERSION_MAJOR) \
  16. )
  17. (cd $(@D); $(HOST_DIR)/usr/bin/python setup.py build)
  18. endef
  19. define PYTHON_IPY_INSTALL_TARGET_CMDS
  20. (cd $(@D); $(HOST_DIR)/usr/bin/python setup.py install --prefix=$(TARGET_DIR)/usr)
  21. endef
  22. $(eval $(generic-package))