2 # Copyright (C) 2015 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
:=http
://www.dabeaz.com
/ply
16 PKG_MD5SUM
:=94726411496c52c87c2b9429b12d5c50
18 PKG_BUILD_DEPENDS
:=python python-setuptools
19 HOST_BUILD_DEPENDS
:=python
/host python-setuptools
/host
21 PKG_LICENSE
:=BSD-3-Clause
22 PKG_LICENSE_FILES
:=README.md
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-ply
35 URL
:=http
://www.dabeaz.com
/ply
/
36 DEPENDS
:=+python-light
39 define Package
/python-ply
/description
40 PLY is a
100% Python implementation of the common parsing tools
lex
45 $(call Build
/Compile
/PyMod
,,install --prefix="/usr" --root
="$(PKG_INSTALL_DIR)")
48 define Build
/InstallDev
49 $(INSTALL_DIR
) $(1)$(PYTHON_PKG_DIR
)
51 $(PKG_INSTALL_DIR
)$(PYTHON_PKG_DIR
)/* \
56 $(call Build
/Compile
/HostPyMod
,,install --prefix="" --root
="$(STAGING_DIR_HOST)")
62 $(eval
$(call HostBuild
))
64 $(eval
$(call PyPackage
,python-ply
))
65 $(eval
$(call BuildPackage
,python-ply
))