dsl-qos-queue: remove obsolete kernel version dependencies
[openwrt/svn-archive/archive.git] / lang / python-cjson / Makefile
1 #
2 # Copyright (C) 2010 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:=python-cjson
11 PKG_VERSION:=1.0.5
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=python-cjson-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://pypi.python.org/packages/source/p/python-cjson/
16 PKG_MD5SUM:=4d55b66ecdf0300313af9d030d9644a3
17
18 PKG_BUILD_DIR:=$(BUILD_DIR)/python-cjson-$(PKG_VERSION)
19 PKG_BUILD_DEPENDS:=python
20
21 include $(INCLUDE_DIR)/package.mk
22 $(call include_mk, python-package.mk)
23
24 define Package/python-cjson
25 SUBMENU:=Python
26 SECTION:=lang
27 CATEGORY:=Languages
28 TITLE:=python-cjson
29 URL:=http://pypi.python.org/pypi/python-cjson/
30 DEPENDS:=+python
31 endef
32
33 define Package/python-cjson/description
34 Fast JSON encoder/decoder for Python
35 endef
36
37 define Build/Compile
38 $(call Build/Compile/PyMod,,install --prefix="$(PKG_INSTALL_DIR)/usr")
39 endef
40
41 define Package/python-cjson/install
42 $(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR)
43 $(CP) \
44 $(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/* \
45 $(1)$(PYTHON_PKG_DIR)
46 endef
47
48 $(eval $(call BuildPackage,python-cjson))