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:= urlgrabber
  5. PKG_VERSION:= 3.9.1
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 00c8359bf71062d0946bacea521f80b4
  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. include $(TOPDIR)/mk/package.mk
  15. $(eval $(call PKG_template,URLGRABBER,urlgrabber,$(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_URLGRABBER)/usr/lib/python$(PYTHON_VERSION)/site-packages
  25. $(CP) $(WRKINST)/usr/lib/python$(PYTHON_VERSION)/site-packages/* \
  26. $(IDIR_URLGRABBER)/usr/lib/python$(PYTHON_VERSION)/site-packages
  27. include ${TOPDIR}/mk/pkg-bottom.mk