OpenWrt packages
Sign in or create your account | Project List | Help
OpenWrt packages Git Source Tree
Root/
1 | # This is free software, licensed under the GNU General Public License |
2 | # v3. See /LICENSE for more information. |
3 | include $(TOPDIR)/rules.mk |
4 | |
5 | PKG_NAME:=pygame |
6 | PKG_VERSION:=1.9.1release |
7 | PKG_RELEASE:=1 |
8 | PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz |
9 | PKG_SOURCE_URL:=http://www.pygame.org/ftp/ |
10 | |
11 | PKG_BUILD_DEPENDS:=python |
12 | |
13 | include $(INCLUDE_DIR)/package.mk |
14 | -include $(if $(DUMP),,$(STAGING_DIR)/mk/python-package.mk) |
15 | |
16 | define Package/pygame |
17 | SUBMENU:=Python |
18 | SECTION:=lang |
19 | CATEGORY:=Languages |
20 | TITLE:=pygame |
21 | URL:=http://pygame.org |
22 | DEPENDS:=+python-mini +libsdl +libpng +libjpeg +libsdl-image +libsdl-mixer |
23 | endef |
24 | |
25 | define Package/pygame/description |
26 | endef |
27 | |
28 | define Build/Compile |
29 | $(call Build/Compile/PyMod,,\ |
30 | install \ |
31 | --prefix="$(PKG_INSTALL_DIR)/usr" \ |
32 | , \ |
33 | LOCALBASE="$(STAGING_DIR)/usr" \ |
34 | NO_SCRAP=1 \ |
35 | ) |
36 | endef |
37 | |
38 | define Package/pygame/install |
39 | $(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR) |
40 | $(CP) \ |
41 | $(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/* \ |
42 | $(1)$(PYTHON_PKG_DIR) |
43 | endef |
44 | |
45 | $(eval $(call BuildPackage,pygame)) |
46 |