2 # Copyright (C) 2015-2016 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=https://pypi.python.org/packages/source/p/pycparser
16 PKG_MD5SUM:=a2bc8d28c923b4fe2b2c3b4b51a4f935
18 PKG_BUILD_DEPENDS:=python python-setuptools
19 HOST_BUILD_DEPENDS:=python/host python-setuptools/host python-ply/host
21 PKG_LICENSE:=BSD-3-Clause
22 PKG_LICENSE_FILES:=LICENSE
23 PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>
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)
30 define Package/python-pycparser
34 TITLE:=python-pycparser
35 URL:=https://github.com/eliben/pycparser
36 DEPENDS:=+python-light +python-ply
39 define Package/python-pycparser/description
40 pycparser is a parser for the C language, written in pure Python. It is a
41 module designed to be easily integrated into applications that need to parse
46 $(call Build/Compile/PyMod,,install --prefix="/usr" --root="$(PKG_INSTALL_DIR)")
50 $(call Build/Compile/HostPyMod,,install --prefix="" --root="$(STAGING_DIR_HOSTPKG)")
56 $(eval $(call HostBuild))
58 $(eval $(call PyPackage,python-pycparser))
59 $(eval $(call BuildPackage,python-pycparser))