Makefile (1350B)
1 # 2 # Copyright (C) 2007-2017 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:=django-restframework 11 PKG_VERSION:=3.5.4 12 PKG_RELEASE:=1 13 PKG_LICENSE:=BSD-3-Clause 14 15 PKG_SOURCE:=djangorestframework-$(PKG_VERSION).tar.gz 16 PKG_SOURCE_URL:=https://pypi.python.org/packages/e9/24/86dfe19fb82a40a3d7a4c50371a8bd85b9277d3506698bf332a6d41d08f6/ 17 PKG_BUILD_DIR:=$(BUILD_DIR)/djangorestframework-$(PKG_VERSION) 18 PKG_MD5SUM:=979808c387dad8d0ebb6025c39dc7b94 19 PKG_BUILD_DEPENDS:=python python-setuptools 20 21 include $(INCLUDE_DIR)/package.mk 22 $(call include_mk, python-package.mk) 23 24 define Package/django-restframework 25 SUBMENU:=Python 26 SECTION:=lang 27 CATEGORY:=Languages 28 MAINTAINER:=Gergely Kiss <mail.gery@gmail.com> 29 TITLE:=Web APIs for Django, made easy. 30 URL:=http://www.django-rest-framework.org/ 31 DEPENDS:=+python +django 32 endef 33 34 define Package/django-restframework/description 35 Web APIs for Django, made easy. 36 endef 37 38 define Build/Compile 39 $(call Build/Compile/PyMod,,install --prefix=/usr --root=$(PKG_INSTALL_DIR)) 40 endef 41 42 define Package/django-restframework/install 43 $(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR) 44 $(CP) \ 45 $(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/* \ 46 $(1)$(PYTHON_PKG_DIR) 47 endef 48 49 $(eval $(call BuildPackage,django-restframework))