1
0

Makefile 1.2 KB

123456789101112131415161718192021222324252627282930313233343536
  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:= 2
  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. include $(TOPDIR)/mk/package.mk
  14. $(eval $(call PKG_template,PYREX,pyrex,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  15. CONFIG_STYLE:= manual
  16. BUILD_STYLE:= manual
  17. INSTALL_STYLE:= manual
  18. include $(TOPDIR)/mk/python.mk
  19. do-build:
  20. cd $(WRKBUILD); env PYTHONPATH=$(PYTHON_LIBDIR) $(PYTHON) ./setup.py build
  21. cd $(WRKBUILD); env PYTHONPATH=$(PYTHON_LIBDIR) $(PYTHON) ./setup.py install --prefix="$(STAGING_HOST_DIR)"
  22. cd $(WRKBUILD); env PYTHONPATH=$(PYTHON_LIBDIR) $(PYTHON) ./setup.py install --prefix="$(WRKINST)/usr"
  23. do-install:
  24. $(INSTALL_DIR) $(IDIR_PYREX)/usr/lib/python$(PYTHON_VERSION)
  25. $(CP) $(WRKINST)/usr/lib/python$(PYTHON_VERSION)/* \
  26. $(IDIR_PYREX)/usr/lib/python$(PYTHON_VERSION)
  27. include ${TOPDIR}/mk/pkg-bottom.mk