Makefile 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  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:= 1
  7. PKG_MD5SUM:= 515dee67d15d4393841e2d60e8341947
  8. PKG_DESCR:= mixes Python and C data types
  9. PKG_SECTION:= libs
  10. PKG_URL:= http://www.cosc.canterbury.ac.nz/greg.ewing/python/Pyrex/
  11. PKG_SITES:= http://www.cosc.canterbury.ac.nz/greg.ewing/python/Pyrex/
  12. include $(TOPDIR)/mk/package.mk
  13. $(eval $(call PKG_template,PYREX,pyrex,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  14. CONFIG_STYLE:= manual
  15. BUILD_STYLE:= manual
  16. INSTALL_STYLE:= manual
  17. include $(TOPDIR)/mk/python.mk
  18. do-build:
  19. cd $(WRKBUILD); env PYTHONPATH=$(PYTHON_LIBDIR) $(PYTHON) ./setup.py build
  20. cd $(WRKBUILD); env PYTHONPATH=$(PYTHON_LIBDIR) $(PYTHON) ./setup.py install --prefix="$(STAGING_TOOLS)"
  21. cd $(WRKBUILD); env PYTHONPATH=$(PYTHON_LIBDIR) $(PYTHON) ./setup.py install --prefix="$(WRKINST)/usr"
  22. do-install:
  23. $(INSTALL_DIR) $(IDIR_PYREX)/usr/lib/python$(PYTHON_VERSION)
  24. $(CP) $(WRKINST)/usr/lib/python$(PYTHON_VERSION)/* \
  25. $(IDIR_PYREX)/usr/lib/python$(PYTHON_VERSION)
  26. include ${TOPDIR}/mk/pkg-bottom.mk