[packages] Introduce php5-pecl-libevent package
[packages.git] / lang / python-django / 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:=python-django
11 PKG_VERSION:=1.3.1
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=Django-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://media.djangoproject.com/releases/1.3/
16 PKG_MD5SUM:=62d8642fd06b9a0bf8544178f8500767
17
18 PKG_BUILD_DIR:=$(BUILD_DIR)/Django-$(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-django
25   SECTION:=language-python
26   CATEGORY:=Languages
27   SUBMENU:=Python
28   TITLE:=Django Web framework
29   URL:=https://www.djangoproject.com/
30   DEPENDS:=+python
31 endef
32
33 define Package/python-django/description
34  Django is a high-level Python Web framework that encourages rapid
35  development and clean, pragmatic design.
36 endef
37
38 define Build/Compile
39         $(call Build/Compile/PyMod,., \
40                 install --prefix="/usr" --root="$(PKG_INSTALL_DIR)" \
41         )
42 endef
43
44 define Package/python-django/install
45         $(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR)
46         $(CP) \
47                 $(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/* \
48                 $(1)$(PYTHON_PKG_DIR)/
49 endef
50
51 $(eval $(call BuildPackage,python-django))