luabitop: moved to github
[packages.git] / lang / pyrrd / Makefile
1 #
2 # Copyright (C) 2011 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:=pyrrd
11 PKG_VERSION:=0.1.0
12 PKG_RELEASE:=2
13
14 PKG_SOURCE:=PyRRD-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://pypi.python.org/packages/source/P/PyRRD/
16 PKG_MD5SUM:=c33a0760b42a23e45e423b8b9f2cd0b0
17
18 PKG_BUILD_DEPENDS:=python
19 PKG_BUILD_DIR:=$(BUILD_DIR)/PyRRD-$(PKG_VERSION)
20
21 include $(INCLUDE_DIR)/package.mk
22 $(call include_mk, python-package.mk)
23
24 define Package/pyrrd
25   SUBMENU:=Python
26   SECTION:=lang
27   CATEGORY:=Languages
28   TITLE:=PyRRD - An Object-Oriented Python Interface for RRDTool
29   URL:=http://code.google.com/p/pyrrd/
30   DEPENDS:=+python +distribute +rrdtool
31 endef
32
33 define Package/pyrrd/description
34   An Object-Oriented Python Interface for RRDTool
35 endef
36
37 define Build/Compile
38         $(call Build/Compile/PyMod,., \
39                 install --prefix="/usr" --root="$(PKG_INSTALL_DIR)" \
40         )
41 endef
42
43 define Package/pyrrd/install
44         $(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR)
45         $(CP) \
46                 $(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/* \
47                 $(1)$(PYTHON_PKG_DIR)/
48 endef
49
50 $(eval $(call BuildPackage,pyrrd))