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 $(ADK_TOPDIR)/rules.mk
  4. PKG_NAME:= urlgrabber
  5. PKG_VERSION:= 3.10
  6. PKG_RELEASE:= 1
  7. PKG_HASH:= 151474dcba8ad99a98eb1f18873bd888e8bfd68fd71a280991899e932689dc89
  8. PKG_DESCR:= python module for fetching of files
  9. PKG_SECTION:= dev/python
  10. PKG_BUILDDEP:= pycurl
  11. PKG_DEPENDS:= pycurl
  12. PKG_URL:= http://urlgrabber.baseurl.org/
  13. PKG_SITES:= http://urlgrabber.baseurl.org/download/
  14. DISTFILES:= $(PKG_NAME)-$(PKG_VERSION).tar.gz
  15. include $(ADK_TOPDIR)/mk/package.mk
  16. $(eval $(call PKG_template,URLGRABBER,urlgrabber,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  17. CONFIG_STYLE:= manual
  18. BUILD_STYLE:= manual
  19. INSTALL_STYLE:= manual
  20. include $(ADK_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_URLGRABBER)/usr/lib/python$(PYTHON_VERSION)/site-packages
  26. $(CP) $(WRKINST)/usr/lib/python$(PYTHON_VERSION)/site-packages/* \
  27. $(IDIR_URLGRABBER)/usr/lib/python$(PYTHON_VERSION)/site-packages
  28. include ${ADK_TOPDIR}/mk/pkg-bottom.mk