2 # Copyright (C) 2006 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
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
15 PKG_SOURCE_URL
:=http
://pypi.python.org
/packages
/source
/d
/$(PKG_NAME
)/
16 PKG_MD5SUM
:=19ba112f4916cca1d5a89dbad2b361da
17 PKG_BUILD_DIR
:=$(BUILD_DIR_HOST
)/$(PKG_NAME
)-$(PKG_VERSION
)/
19 include $(INCLUDE_DIR
)/host-build.mk
20 include $(INCLUDE_DIR
)/package.mk
21 $(call include_mk
, python-package.mk
)
23 PYTHON
:=$(HOST_PYTHON_BIN
)
25 define Package
/distribute
30 URL
:=http
://pypi.python.org
/pypi
/distribute
35 define Package
/distribute
/description
36 Distribute
(fork of Setuptools
) is a collection of extensions to Distutils
40 $(call Build
/Compile
/PyMod
,,install --prefix=/usr
--root
=$(PKG_INSTALL_DIR
))
44 $(INSTALL_DIR
) $(STAGING_DIR
)$(PYTHON_PKG_DIR
)
46 $(PKG_INSTALL_DIR
)$(PYTHON_PKG_DIR
)/* \
47 $(STAGING_DIR
)$(PYTHON_PKG_DIR
)/
51 $(call Build
/Compile
/PyMod
,,install --prefix=/usr
--root
=$(PKG_INSTALL_DIR
))
54 define Package
/distribute
/install
55 $(INSTALL_DIR
) $(1)$(PYTHON_PKG_DIR
)
57 $(PKG_INSTALL_DIR
)$(PYTHON_PKG_DIR
)/* \
58 $(1)$(PYTHON_PKG_DIR
)/
59 $(INSTALL_DIR
) $(1)/usr
/bin
61 $(PKG_INSTALL_DIR
)/usr
/bin
/easy_install \
63 $(SED
) '1s/#\!.*/#\!\/usr\/bin\/python/' $(1)/usr
/bin
/easy_install
66 $(eval
$(call HostBuild
))
67 $(eval
$(call BuildPackage
,distribute
))