Makefile 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. # This file is part of the OpenADK project. OpenADK is copyrighted
  2. # material, please see the LICENCE file in the top-level directory.
  3. include $(TOPDIR)/rules.mk
  4. PKG_NAME:= Pyrex
  5. PKG_VERSION:= 0.9.9
  6. PKG_RELEASE:= 3
  7. PKG_MD5SUM:= 515dee67d15d4393841e2d60e8341947
  8. PKG_DESCR:= mixes Python and C data types
  9. PKG_SECTION:= libs
  10. PKG_DEPENDS:= python2
  11. PKG_URL:= http://www.cosc.canterbury.ac.nz/greg.ewing/python/Pyrex/
  12. PKG_SITES:= http://www.cosc.canterbury.ac.nz/greg.ewing/python/Pyrex/
  13. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.gz
  14. include $(TOPDIR)/mk/package.mk
  15. $(eval $(call PKG_template,PYREX,pyrex,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  16. CONFIG_STYLE:= manual
  17. BUILD_STYLE:= manual
  18. INSTALL_STYLE:= manual
  19. include $(TOPDIR)/mk/python.mk
  20. do-build:
  21. cd $(WRKBUILD); env PYTHONPATH=$(PYTHON_LIBDIR) $(PYTHON) ./setup.py build
  22. cd $(WRKBUILD); env PYTHONPATH=$(PYTHON_LIBDIR) $(PYTHON) ./setup.py install --prefix="$(STAGING_HOST_DIR)/usr"
  23. cd $(WRKBUILD); env PYTHONPATH=$(PYTHON_LIBDIR) $(PYTHON) ./setup.py install --prefix="$(WRKINST)/usr"
  24. do-install:
  25. $(INSTALL_DIR) $(IDIR_PYREX)/usr/lib/python$(PYTHON_VERSION)
  26. $(CP) $(WRKINST)/usr/lib/python$(PYTHON_VERSION)/* \
  27. $(IDIR_PYREX)/usr/lib/python$(PYTHON_VERSION)
  28. include ${TOPDIR}/mk/pkg-bottom.mk