1
0

Makefile 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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.3.0
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 4ac4af5ac21a893f07221cbd7ec4be11
  8. PKG_DESCR:= 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:= https://pypi.python.org/packages/source/C/CherryPy/
  14. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.gz
  15. include $(TOPDIR)/mk/package.mk
  16. $(eval $(call PKG_template,CHERRYPY,cherrypy,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  17. CONFIG_STYLE:= manual
  18. BUILD_STYLE:= manual
  19. INSTALL_STYLE:= manual
  20. include $(TOPDIR)/mk/python.mk
  21. do-build:
  22. cd $(WRKBUILD); env PYTHONPATH=$(PYTHON_LIBDIR) $(PYTHON) ./setup.py build
  23. cd $(WRKBUILD); env PYTHONPATH=$(PYTHON_LIBDIR) $(PYTHON) ./setup.py install --prefix="$(WRKINST)/usr"
  24. do-install:
  25. $(INSTALL_DIR) $(IDIR_CHERRYPY)/usr/bin
  26. $(INSTALL_DIR) $(IDIR_CHERRYPY)/usr/lib/python$(PYTHON_VERSION)
  27. $(CP) $(WRKINST)/usr/lib/python$(PYTHON_VERSION)/* $(IDIR_CHERRYPY)/usr/lib/python$(PYTHON_VERSION)
  28. $(CP) $(WRKINST)/usr/lib/python$(PYTHON_VERSION)/site-packages/cherrypy/cherryd $(IDIR_CHERRYPY)/usr/bin
  29. include ${TOPDIR}/mk/pkg-bottom.mk