Makefile 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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:= pycurl
  5. PKG_VERSION:= 7.19.0
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 919d58fe37e69fe87ce4534d8b6a1c7b
  8. PKG_DESCR:= Python module for fetching of files
  9. PKG_SECTION:= lang
  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. include $(TOPDIR)/mk/package.mk
  15. $(eval $(call PKG_template,PYCURL,pycurl,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  16. CONFIG_STYLE:= manual
  17. BUILD_STYLE:= manual
  18. INSTALL_STYLE:= manual
  19. XAKE_FLAGS+= GCC_HONOUR_COPTS=s
  20. TARGET_CFLAGS+= -fPIC
  21. ifeq ($(ADK_NATIVE),)
  22. MAKE_ENV+= LDSHARED="$(TARGET_CC) -shared"
  23. CURL_CONFIG:= $(STAGING_DIR)/usr/bin/curl-config
  24. else
  25. MAKE_ENV+= CC="$(CC)" LDSHARED="$(CC) -shared"
  26. CURL_CONFIG:= /usr/bin/curl-config
  27. endif
  28. include $(TOPDIR)/mk/python.mk
  29. do-build:
  30. (cd $(WRKBUILD); env GCC_HONOUR_COPTS=s PYTHONPATH=$(PYTHON_LIBDIR) $(PYTHON) ./setup.py --curl-config=$(CURL_CONFIG) build)
  31. (cd $(WRKBUILD); env GCC_HONOUR_COPTS=s PYTHONPATH=$(PYTHON_LIBDIR) $(PYTHON) ./setup.py --curl-config=$(CURL_CONFIG) install --prefix="$(WRKINST)/usr")
  32. do-install:
  33. $(INSTALL_DIR) $(IDIR_PYCURL)/usr/lib/python$(PYTHON_VERSION)/site-packages
  34. $(CP) $(WRKINST)/usr/lib/python$(PYTHON_VERSION)/site-packages/* \
  35. $(IDIR_PYCURL)/usr/lib/python$(PYTHON_VERSION)/site-packages
  36. include ${TOPDIR}/mk/pkg-bottom.mk