uclibc-ng: add config for aarch64
[openadk.git] / package / pycurl / Makefile
blobcd69c169210aa7cc3bc3df7d3f182ebf08006205
1 # This file is part of the OpenADK project. OpenADK is copyrighted
2 # material, please see the LICENCE file in the top-level directory.
4 include $(ADK_TOPDIR)/rules.mk
6 PKG_NAME:= pycurl
7 PKG_VERSION:= 7.19.0.2
8 PKG_RELEASE:= 1
9 PKG_HASH:= 7a9e793b9181654d5eef3f6d22c244c57d2b51d38feb4c1b71d68efda99b0547
10 PKG_DESCR:= python module for fetching of files
11 PKG_SECTION:= dev/python
12 PKG_BUILDDEP:= python2 curl
13 PKG_DEPENDS:= python2 libcurl
14 PKG_URL:= http://pycurl.sourceforge.net/
15 PKG_SITES:= http://pycurl.sourceforge.net/download/
17 DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.gz
19 include $(ADK_TOPDIR)/mk/package.mk
21 $(eval $(call PKG_template,PYCURL,pycurl,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
23 CONFIG_STYLE:= manual
24 BUILD_STYLE:= manual
25 INSTALL_STYLE:= manual
27 XAKE_FLAGS+= GCC_HONOUR_COPTS=s
28 TARGET_CFLAGS+= -fPIC
29 MAKE_ENV+= LDSHARED="$(TARGET_CC) -shared"
30 CURL_CONFIG:= $(STAGING_TARGET_DIR)/usr/bin/curl-config
32 include $(ADK_TOPDIR)/mk/python.mk
34 do-build:
35 (cd $(WRKBUILD); env GCC_HONOUR_COPTS=s PYTHONPATH=$(PYTHON_LIBDIR) $(PYTHON) ./setup.py --curl-config=$(CURL_CONFIG) build)
36 (cd $(WRKBUILD); env GCC_HONOUR_COPTS=s PYTHONPATH=$(PYTHON_LIBDIR) $(PYTHON) ./setup.py --curl-config=$(CURL_CONFIG) install --prefix="$(WRKINST)/usr")
38 do-install:
39 $(INSTALL_DIR) $(IDIR_PYCURL)/usr/lib/python$(PYTHON_VERSION)/site-packages
40 $(CP) $(WRKINST)/usr/lib/python$(PYTHON_VERSION)/site-packages/* \
41 $(IDIR_PYCURL)/usr/lib/python$(PYTHON_VERSION)/site-packages
43 include ${ADK_TOPDIR}/mk/pkg-bottom.mk