Makefile 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637
  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:= CherryPy
  5. PKG_VERSION:= 3.2.0rc1
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= ee17494e8d4cb9089069f33c28161493
  8. PKG_DESCR:= A Python Web Framework
  9. PKG_SECTION:= libs
  10. PKG_DEPENDS:= python2
  11. PKG_BUILDDEP:= python2
  12. PKG_URL:= http://www.cherrypy.org/
  13. PKG_SITES:= http://download.cherrypy.org/cherrypy/3.2.0rc1/
  14. include $(TOPDIR)/mk/package.mk
  15. $(eval $(call PKG_template,CHERRYPY,cherrypy,$(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="$(WRKINST)/usr"
  23. do-install:
  24. $(INSTALL_DIR) $(IDIR_CHERRYPY)/usr/bin
  25. $(INSTALL_DIR) $(IDIR_CHERRYPY)/usr/lib/python$(PYTHON_VERSION)
  26. $(CP) $(WRKINST)/usr/lib/python$(PYTHON_VERSION)/* $(IDIR_CHERRYPY)/usr/lib/python$(PYTHON_VERSION)
  27. $(CP) $(WRKINST)/usr/lib/python$(PYTHON_VERSION)/site-packages/cherrypy/cherryd $(IDIR_CHERRYPY)/usr/bin
  28. include ${TOPDIR}/mk/pkg-bottom.mk