Fresh pull from upstream (stable) package feed
[librecmc/package-feed.git] / lang / python-cffi / Makefile
1 #
2 # Copyright (C) 2015-2016 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=cffi
11 PKG_VERSION:=1.8.3
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=https://pypi.python.org/packages/0a/f3/686af8873b70028fccf67b15c78fd4e4667a3da995007afc71e786d61b0a
16 PKG_MD5SUM:=c8e877fe0426a99d0cf5872cf2f95b27
17
18 PKG_BUILD_DEPENDS:=python python-setuptools
19 HOST_BUILD_DEPENDS:=libffi/host python/host python-setuptools/host python-pycparser/host
20
21 PKG_LICENSE:=MIT
22 PKG_LICENSE_FILES:=LICENSE
23 PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>
24
25 include $(INCLUDE_DIR)/host-build.mk
26 include $(INCLUDE_DIR)/package.mk
27 $(call include_mk, python-package.mk)
28 $(call include_mk, python-host.mk)
29
30 define Package/python-cffi
31         SECTION:=lang
32         CATEGORY:=Languages
33         SUBMENU:=Python
34         TITLE:=python-cffi
35         URL:=http://cffi.readthedocs.org/
36         DEPENDS:=+libffi +python-light +python-pycparser
37 endef
38
39 define Package/python-cffi/description
40 Foreign Function Interface for Python calling C code.
41 endef
42
43 define Build/Compile
44         $(call Build/Compile/PyMod,,install --prefix="/usr" --root="$(PKG_INSTALL_DIR)")
45 endef
46
47 define Host/Compile
48         $(call Build/Compile/HostPyMod,,install --prefix="" --root="$(STAGING_DIR_HOSTPKG)")
49 endef
50
51 define Host/Install
52 endef
53
54 $(eval $(call HostBuild))
55
56 $(eval $(call PyPackage,python-cffi))
57 $(eval $(call BuildPackage,python-cffi))