Makefile 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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_HASH:= 7a9e793b9181654d5eef3f6d22c244c57d2b51d38feb4c1b71d68efda99b0547
  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. TARGET_CFLAGS+= -fPIC
  21. MAKE_ENV+= LDSHARED="$(TARGET_CC) -shared"
  22. CURL_CONFIG:= $(STAGING_TARGET_DIR)/usr/bin/curl-config
  23. include $(ADK_TOPDIR)/mk/python.mk
  24. do-build:
  25. (cd $(WRKBUILD); env PYTHONPATH=$(PYTHON_LIBDIR) $(PYTHON) ./setup.py --curl-config=$(CURL_CONFIG) build)
  26. (cd $(WRKBUILD); env PYTHONPATH=$(PYTHON_LIBDIR) $(PYTHON) ./setup.py --curl-config=$(CURL_CONFIG) install --prefix="$(WRKINST)/usr")
  27. do-install:
  28. $(INSTALL_DIR) $(IDIR_PYCURL)/usr/lib/python$(PYTHON_VERSION)/site-packages
  29. $(CP) $(WRKINST)/usr/lib/python$(PYTHON_VERSION)/site-packages/* \
  30. $(IDIR_PYCURL)/usr/lib/python$(PYTHON_VERSION)/site-packages
  31. include ${ADK_TOPDIR}/mk/pkg-bottom.mk