Makefile 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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.2
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 518be33976dbc6838e42495ada64b43f
  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. MAKE_ENV+= LDSHARED="$(TARGET_CC) -shared"
  22. CURL_CONFIG:= $(STAGING_TARGET_DIR)/usr/bin/curl-config
  23. include $(TOPDIR)/mk/python.mk
  24. do-build:
  25. (cd $(WRKBUILD); env GCC_HONOUR_COPTS=s PYTHONPATH=$(PYTHON_LIBDIR) $(PYTHON) ./setup.py --curl-config=$(CURL_CONFIG) build)
  26. (cd $(WRKBUILD); env GCC_HONOUR_COPTS=s 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 ${TOPDIR}/mk/pkg-bottom.mk