2 # Copyright (C) 2007-2017 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
13 PKG_LICENSE
:=BSD-3-Clause
16 PKG_SOURCE_URL
:=https
://github.com
/django
/django.git
17 PKG_SOURCE_SUBDIR
:=$(PKG_NAME
)-$(PKG_VERSION
)
18 PKG_SOURCE_VERSION
:=d3d12fc11da56e4ea8af37a22a9a0aa6579ab2d5
19 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
)-$(PKG_SOURCE_VERSION
).
tar.gz
20 PKG_MIRROR_HASH
:=7d8c4e58486c3a539f17437b3a802b67d53401971eceac2be50c47bcc756c27b
21 PKG_BUILD_DEPENDS
:=python python-setuptools
23 include $(INCLUDE_DIR
)/package.mk
24 $(call include_mk
, python-package.mk
)
30 TITLE
:=The web framework for perfectionists with deadlines.
31 MAINTAINER
:=Gergely Kiss
<mail.gery@gmail.com
>
32 URL
:=https
://www.djangoproject.com
/
36 define Package
/django
/description
37 The web framework for perfectionists with deadlines.
41 $(call Build
/Compile
/PyMod
,,install --prefix=/usr
--root
=$(PKG_INSTALL_DIR
))
44 define Build
/InstallDev
45 $(INSTALL_DIR
) $(1)$(PYTHON_PKG_DIR
)
46 $(INSTALL_DIR
) $(1)/usr
/bin
48 $(PKG_INSTALL_DIR
)$(PYTHON_PKG_DIR
)/* \
50 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/django-admin.py \
54 define Package
/django
/install
55 $(INSTALL_DIR
) $(1)$(PYTHON_PKG_DIR
)
56 $(INSTALL_DIR
) $(1)/usr
/bin
58 $(PKG_INSTALL_DIR
)$(PYTHON_PKG_DIR
)/* \
60 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/django-admin.py \
62 # fix python exec path
63 sed
-i
's/#!.*/#!\/usr\/bin\/python/g' $(1)/usr
/bin
/django-admin.py
66 $(eval
$(call BuildPackage
,django
))