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
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}))
25 INSTALL_STYLE
:= manual
27 XAKE_FLAGS
+= GCC_HONOUR_COPTS
=s
29 MAKE_ENV
+= LDSHARED
="$(TARGET_CC) -shared"
30 CURL_CONFIG
:= $(STAGING_TARGET_DIR
)/usr
/bin
/curl-config
32 include $(ADK_TOPDIR
)/mk
/python.mk
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")
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