Makefile 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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:= pycurl
  5. PKG_VERSION:= 7.19.0.2
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 518be33976dbc6838e42495ada64b43f
  8. PKG_DESCR:= python module for fetching of files
  9. PKG_SECTION:= dev/python
  10. PKG_BUILDDEP:= python2 curl
  11. PKG_DEPENDS:= python2 libcurl
  12. PKG_URL:= http://pycurl.sourceforge.net/
  13. PKG_SITES:= http://pycurl.sourceforge.net/download/
  14. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.gz
  15. include $(ADK_TOPDIR)/mk/package.mk
  16. $(eval $(call PKG_template,PYCURL,pycurl,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  17. CONFIG_STYLE:= manual
  18. BUILD_STYLE:= manual
  19. INSTALL_STYLE:= manual
  20. XAKE_FLAGS+= GCC_HONOUR_COPTS=s
  21. TARGET_CFLAGS+= -fPIC
  22. MAKE_ENV+= LDSHARED="$(TARGET_CC) -shared"
  23. CURL_CONFIG:= $(STAGING_TARGET_DIR)/usr/bin/curl-config
  24. include $(ADK_TOPDIR)/mk/python.mk
  25. do-build:
  26. (cd $(WRKBUILD); env GCC_HONOUR_COPTS=s PYTHONPATH=$(PYTHON_LIBDIR) $(PYTHON) ./setup.py --curl-config=$(CURL_CONFIG) build)
  27. (cd $(WRKBUILD); env GCC_HONOUR_COPTS=s PYTHONPATH=$(PYTHON_LIBDIR) $(PYTHON) ./setup.py --curl-config=$(CURL_CONFIG) install --prefix="$(WRKINST)/usr")
  28. do-install:
  29. $(INSTALL_DIR) $(IDIR_PYCURL)/usr/lib/python$(PYTHON_VERSION)/site-packages
  30. $(CP) $(WRKINST)/usr/lib/python$(PYTHON_VERSION)/site-packages/* \
  31. $(IDIR_PYCURL)/usr/lib/python$(PYTHON_VERSION)/site-packages
  32. include ${ADK_TOPDIR}/mk/pkg-bottom.mk